DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 3rd October 2017
puffymon puffymon is offline
Real Name: Leonid
Port Guard
 
Join Date: Apr 2017
Location: Earth
Posts: 30
Default AngelScript/QFusion game

Hi! I'm trying to make a port of AngelScript 2.31.2, it compiles without patches, but fails to install. Installing AngelScript 2.30.2 was easy, but it seems that I need AngelScript 2.31.x to compile Warsow 2.1:
Code:
$ cmake -DQFUSION_GAME="Warsow" .
-- The C compiler identification is Clang 4.0.0
-- The CXX compiler identification is Clang 4.0.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OGG: /usr/local/include  
-- Found VORBIS: /usr/local/include  
-- Found THEORA: /usr/local/include  
-- Found CURL: /usr/local/lib/libcurl.so.25.11 (found version "7.55.1") 
-- Found ZLIB: /usr/lib/libz.so.5.0 (found version "1.2.3") 
-- Found Freetype: /usr/X11R6/lib/libfreetype.so.28.1 (found version "2.8.0") 
-- Found JPEG: /usr/local/lib/libjpeg.so.68.1  
-- Found PNG: /usr/local/lib/libpng.so.17.4 (found version "1.6.31") 
-- Found ANGELSCRIPT: /usr/local/include  
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/warsow_21_sdk/source/source
$ gmake                           
Scanning dependencies of target angelwrap
[  0%] Building CXX object angelwrap/CMakeFiles/angelwrap.dir/qas_angelwrap.cpp.o
In file included from /tmp/warsow_21_sdk/source/source/angelwrap/qas_angelwrap.cpp:32:
In file included from /usr/include/c++/v1/list:180:
/usr/include/c++/v1/__undef_min_max:17:2: warning: : macro min is incompatible
      with C++. #undefing min [-W#warnings]
#warning: macro min is incompatible with C++.  #undefing min
 ^
/usr/include/c++/v1/__undef_min_max:29:2: warning: : macro max is incompatible
      with C++. #undefing max [-W#warnings]
#warning: macro max is incompatible with C++.  #undefing max
 ^
2 warnings generated.
[  0%] Building CXX object angelwrap/CMakeFiles/angelwrap.dir/qas_main.cpp.o
[  0%] Building CXX object angelwrap/CMakeFiles/angelwrap.dir/qas_precompiled.cpp.o
[  0%] Building CXX object angelwrap/CMakeFiles/angelwrap.dir/qas_syscalls.cpp.o
[  0%] Building CXX object angelwrap/CMakeFiles/angelwrap.dir/addon/addon_any.cpp.o
/tmp/warsow_21_sdk/source/source/angelwrap/addon/addon_any.cpp:345:12: error: 
      no member named 'IsHandleCompatibleWithObject' in 'asIScriptEngine'
                        engine->IsHandleCompatibleWithObject(value.value...
                        ~~~~~~  ^
1 error generated.
gmake[2]: *** [angelwrap/CMakeFiles/angelwrap.dir/build.make:159: angelwrap/CMakeFiles/angelwrap.dir/addon/addon_any.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:86: angelwrap/CMakeFiles/angelwrap.dir/all] Error 2
gmake: *** [Makefile:84: all] Error 2
$
Now the reason why AngelScript 2.31.x doesn't install: since version 2.31.0 AngelScript's Makefile contains "CP_SYMLINK = cp --no-dereference --preserve=links". After reading cp(1) man page I've made a patch:
Code:
$ cat patches/patch-angelscript_projects_gnuc_Makefile  
$OpenBSD$

Index: angelscript/projects/gnuc/Makefile
--- angelscript/projects/gnuc/Makefile.orig
+++ angelscript/projects/gnuc/Makefile
@@ -43,7 +43,7 @@ INSTALL_DIR = $(INSTALL) -d
 INSTALL_SHLIB = $(INSTALL) -m 755
 INSTALL_ARLIB = $(INSTALL) -m 644
 INSTALL_HEADER = $(INSTALL) -m 644
-CP_SYMLINK = cp --no-dereference --preserve=links
+CP_SYMLINK = cp -P -p
 CP_R = cp -R
 
 
$
Of course that didn't work because -p flag is not equivalent to --preserve=links flag. So, is there any equivalent command to "cp -P --preserve=links"?
Note: Yes, I don't know C++. Yes, I don't know AngelScript. And yes, I don't know how Makefile works
__________________
$ uname -a
OpenBSD puffy.pc 6.2 GENERIC.MP#146 amd64
$
Reply With Quote
  #2   (View Single Post)  
Old 4th October 2017
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,975
Default

You might try the GNU version of cp(), installed as /usr/local/bin/gcp with sysutils/coreutils.
Reply With Quote
  #3   (View Single Post)  
Old 7th October 2017
puffymon puffymon is offline
Real Name: Leonid
Port Guard
 
Join Date: Apr 2017
Location: Earth
Posts: 30
Default

Sorry for late response and thanks, I'll change the game after I start and finish learning C++ (currently learning C), Warsow 2.1 requires AngelScript 2.29.x and is incompatible with newer AngelScript. AngelScript 2.29.x has a funny and scary compilation error:
/tmp//ccE3HohO.s: Assembler messages:
/tmp//ccE3HohO.s:141: Error: CFI instruction used without previous .cfi_startproc
/tmp//ccE3HohO.s:180: Error: CFI instruction used without previous .cfi_startproc
__________________
$ uname -a
OpenBSD puffy.pc 6.2 GENERIC.MP#146 amd64
$
Reply With Quote
Reply

Tags
angelscript, c++, qfusion, warsow

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DoS attacks that took down big game sites abused Web’s time-sync protocol J65nko News 0 9th January 2014 07:34 PM
Whats the name of that game? xmorg Off-Topic 5 25th January 2012 09:20 PM
BSD hackers game! DNAeon FreeBSD General 8 2nd August 2009 11:19 AM


All times are GMT. The time now is 04:38 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick