Linux Build -- CURL issue

Building from grangerhub github Stellar-prey repo. (I am also having an issue with CURL when building the forked tremulous grangerhub github repo.)
CURL seems to be missing even though I have made sure it is installed. I have also tried installing other similar libraries:

sudo apt-get install curl
sudo apt-get install libcurl4
sudo apt-get install libcurlpp-dev

(Also added GeoIp dependency)

sudo add-apt-repository ppa:maxmind/ppa
sudo apt install geoipupdate

Here are the outputs following the readme:

ubuntu@ubuntu:~/Github/Stellar-Prey$ ./sp-tools.sh init
Initializing the Stellar Prey Test development environment.

ubuntu@ubuntu:~/Github/Stellar-Prey$ ./sp-tools.sh install_default_paks

sent 296 bytes received 12 bytes 616.00 bytes/sec
total size is 253,803,596 speedup is 824,037.65

ubuntu@ubuntu:~/Github/Stellar-Prey$ ./sp-tools.sh configure_cmake both
Configuring cmake for the OpenWolf Engine.

– writing /home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/framework/appConfig.h
– Curl include was found
CMake Error at cmake/FindCURL.cmake:66 (MESSAGE):
CURL was not found.
Call Stack (most recent call first):
CMakeLists.txt:538 (find_package)

– Configuring incomplete, errors occurred!
See also “/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/CMakeFiles/CMakeOutput.log”.
See also “/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/CMakeFiles/CMakeError.log”.
Configuring cmake for the game logic of Stellar Prey Test.

– writing /home/ubuntu/Github/Stellar-Prey/source/game-logic/…/OpenWolf-Engine/src/engine/framework/appConfig.h
– Looking for Bullet…
– BULLET_INCLUDE_DIRS: /home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src/BulletCollision;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src/BulletDynamics;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/Extras/ConvexDecomposition;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src/BulletSoftBody;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src/LinearMath;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/Extras/Serialize/BulletFileLoader;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/Extras/Serialize/BulletWorldImporter
– Configuring done
– Generating done
– Build files have been written to: /home/ubuntu/Github/Stellar-Prey/source/game-logic

ubuntu@ubuntu:~/Github/Stellar-Prey$ ./sp-tools.sh build both
#Build type options: Debug, Release, RelWithDebInfo, MinSizeRelConfiguring cmake for the game logic of Stellar Prey Test.

– writing /home/ubuntu/Github/Stellar-Prey/source/game-logic/…/OpenWolf-Engine/src/engine/framework/appConfig.h
– Looking for Bullet…
– BULLET_INCLUDE_DIRS: /home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src/BulletCollision;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src/BulletDynamics;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/Extras/ConvexDecomposition;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src/BulletSoftBody;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src/LinearMath;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/Extras/Serialize/BulletFileLoader;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/Extras/Serialize/BulletWorldImporter
– Configuring done
– Generating done
– Build files have been written to: /home/ubuntu/Github/Stellar-Prey/source/game-logic
make: *** No targets specified and no makefile found. Stop.
cp: cannot stat ‘/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/bin/unix/.’: No such file or directory
[ 1%] Building CXX object CMakeFiles/cgame.dir/cmake_pch.hxx.pch
[ 2%] Building CXX object CMakeFiles/cgame.dir/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp.o
/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp:261:5: warning:
‘register’ storage class specifier is deprecated and incompatible with
C++17 [-Wdeprecated-register]
register sint hash, i;
^~~~~~~~~
/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp:261:5: warning:
‘register’ storage class specifier is deprecated and incompatible with
C++17 [-Wdeprecated-register]
register sint hash, i;
^~~~~~~~~
/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp:2801:35: error:
cast from pointer to smaller type ‘sint’ (aka ‘int’) loses information
*nameLength = ( sint )out - ( sint ) * name;
^~~~~~~~~~~
/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp:2801:49: error:
cast from pointer to smaller type ‘sint’ (aka ‘int’) loses information
*nameLength = ( sint )out - ( sint ) * name;
^~~~~~~~~~~~~~~
/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp:2835:31: error:
cast from pointer to smaller type ‘sint’ (aka ‘int’) loses information
if( *text ) *textLength = ( sint )out - ( sint ) * text; // compr…
^~~~~~~~~~~
/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp:2835:45: error:
cast from pointer to smaller type ‘sint’ (aka ‘int’) loses information
if( *text ) *textLength = ( sint )out - ( sint ) * text; // compresse…
^~~~~~~~~~~~~~~
/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp:2837:9: error:
cast from pointer to smaller type ‘sint’ (aka ‘int’) loses information
c = ( sint )out - ( sint ) * data_p…
^~~~~~~~~~~
/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp:2837:23: error:
cast from pointer to smaller type ‘sint’ (aka ‘int’) loses information
…- ( sint ) * data_p; // u…
^~~~~~~~~~~~~~~~~
2 warnings and 6 errors generated.
CMakeFiles/cgame.dir/build.make:78: recipe for target ‘CMakeFiles/cgame.dir/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp.o’ failed
make[2]: *** [CMakeFiles/cgame.dir/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp.o] Error 1
CMakeFiles/Makefile2:79: recipe for target ‘CMakeFiles/cgame.dir/all’ failed
make[1]: *** [CMakeFiles/cgame.dir/all] Error 2
Makefile:151: recipe for target ‘all’ failed
make: *** [all] Error 2
deleting: eX-texture-pack1.pk3
deleting: eX-texture-pack2.pk3
deleting: map-eXcs.pk3
deleting: map-UTCSUD.pk3
deleting: pak0000_A_8f7eae0.pk3
deleting: pak0000_B_8f7eae0.pk3
deleting: pak0001_bf9dde3_diff_8f7eae0.pk3
zip warning: zip file empty
zip warning: bin.pk3 not found or empty
adding: eX-texture-pack1.pk3 (deflated 0%)
adding: eX-texture-pack2.pk3 (deflated 0%)
adding: map-eXcs.pk3 (deflated 0%)
adding: map-UTCSUD.pk3 (deflated 0%)
adding: pak0000_A_8f7eae0.pk3 (deflated 1%)
adding: pak0000_B_8f7eae0.pk3 (deflated 0%)
adding: pak0001_bf9dde3_diff_8f7eae0.pk3 (deflated 5%)

1 Like

Thank you very much for this info.
I have fixed your problems with compiling engine.

For the cURL on the Unix platform, you need libcurl4-openssl-dev

try sudo apt-get install libcurl4-openssl-dev

1 Like

Thank you, I did ‘sudo apt-get install libcurl4-openssl-dev’ and it now finds curl.

Tried again and ran into error:

CMake Error at /usr/local/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 > (message):
Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)

Fixed with ‘sudo apt-get install libncurses5-dev libncursesw5-dev’

Tried again and ran into error:

– Found GEOIP include: GEOIP_INCLUDE_DIR-NOTFOUND
– Found GEOIP library: GEOIP_LIBRARY-NOTFOUND
– Could NOT find GeoIP (missing: GEOIP_LIBRARIES)

Tried ‘sudo apt-get install libgeoip-dev’

Ran again, and finally am stuck with this:

ubuntu@ubuntu:~/Github/Stellar-Prey$ ./sp-tools.sh configure_cmake both
Configuring cmake for the OpenWolf Engine.

– writing /home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/framework/appConfig.h
– Curl include was found
– Curl lib was found
– Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so
ZLIB_INCLUDE_DIRS is /usr/include
ZLIB_LIBRARIES is /usr/lib/x86_64-linux-gnu/libz.so
– Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so
– Vorbis was found.
– Curl include was found
– Curl lib was found
– Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so
ZLIB_INCLUDE_DIRS is /usr/include
ZLIB_LIBRARIES is /usr/lib/x86_64-linux-gnu/libz.so
– Curl include was found
– Curl lib was found
– Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so
ZLIB_INCLUDE_DIRS is /usr/include
ZLIB_LIBRARIES is /usr/lib/x86_64-linux-gnu/libz.so
– Found GEOIP include: /home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/libs/geoip/libGeoIP
– Found GEOIP library: GEOIP_LIBRARY-NOTFOUND
– Found GeoIP: /usr/lib/x86_64-linux-gnu/libGeoIP.so
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
BZ2_LIBRARY (ADVANCED)
linked by target “engine” in directory /home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine
linked by target “server” in directory /home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine

– Configuring incomplete, errors occurred!
See also “/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/CMakeFiles/CMakeOutput.log”.
See also “/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/CMakeFiles/CMakeError.log”.
Configuring cmake for the game logic of Stellar Prey Test.

– writing /home/ubuntu/Github/Stellar-Prey/source/game-logic/…/OpenWolf-Engine/src/engine/framework/appConfig.h
– Looking for Bullet…
– BULLET_INCLUDE_DIRS: /home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src/BulletCollision;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src/BulletDynamics;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/Extras/ConvexDecomposition;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src/BulletSoftBody;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src/LinearMath;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/Extras/Serialize/BulletFileLoader;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/Extras/Serialize/BulletWorldImporter
– Configuring done
– Generating done
– Build files have been written to: /home/ubuntu/Github/Stellar-Prey/source/game-logic

Seems that the GeoIp is missing a library.

@GoldenKrisp , @TheDushan gave me a list of dependencies, make sure that you have all of these installed:

cmake-curses-gui
g++
libglew-dev
libjpeg-dev
libsdl1.2-dev
libcurl4-openssl-dev
opencl-dev
mysql-dev
ncurses-dev
mysql-client
libmysqlclient-dev
libfreetype6-dev

Okay, I installed all those libraries. The configure_cmake now is returning an issue:

ubuntu@ubuntu:~/Github/Stellar-Prey$ ./sp-tools.sh configure_cmake both
Configuring cmake for the OpenWolf Engine.

– writing /home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/framework/appConfig.h
– Curl include was found
– Curl lib was found
– Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so
ZLIB_INCLUDE_DIRS is /usr/include
ZLIB_LIBRARIES is /usr/lib/x86_64-linux-gnu/libz.so
– Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so
– Vorbis was found.
– Curl include was found
– Curl lib was found
– Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so
ZLIB_INCLUDE_DIRS is /usr/include
ZLIB_LIBRARIES is /usr/lib/x86_64-linux-gnu/libz.so
– Curl include was found
– Curl lib was found
– Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so
ZLIB_INCLUDE_DIRS is /usr/include
ZLIB_LIBRARIES is /usr/lib/x86_64-linux-gnu/libz.so
– Found GEOIP include: /home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/libs/geoip/libGeoIP
– Found GEOIP library: /usr/lib/x86_64-linux-gnu/libGeoIP.so
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
BZ2_LIBRARY (ADVANCED)
linked by target “engine” in directory /home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine
linked by target “server” in directory /home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine

– Configuring incomplete, errors occurred!
See also “/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/CMakeFiles/CMakeOutput.log”.
See also “/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/CMakeFiles/CMakeError.log”.
Configuring cmake for the game logic of Stellar Prey Test.

– writing /home/ubuntu/Github/Stellar-Prey/source/game-logic/…/OpenWolf-Engine/src/engine/framework/appConfig.h
– Looking for Bullet…
– BULLET_INCLUDE_DIRS: /home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src/BulletCollision;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src/BulletDynamics;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/Extras/ConvexDecomposition;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src/BulletSoftBody;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src/LinearMath;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/Extras/Serialize/BulletFileLoader;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/Extras/Serialize/BulletWorldImporter
– Configuring done
– Generating done
– Build files have been written to: /home/ubuntu/Github/Stellar-Prey/source/game-logic

Looks like it wants me to set variables that have not been set.

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
BZ2_LIBRARY (ADVANCED)
linked by target “engine” in directory /home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine
linked by target “server” in directory /home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine

Try installing: libbz2-dev

Yes I just installed ‘sudo apt-get install libbz2-dev’ and now ’ ./sp-tools.sh configure_cmake both’ works. :slightly_smiling_face:

Now I still have an issue when building with ‘./sp-tools.sh build both’:

ubuntu@ubuntu:~/Github/Stellar-Prey$ ./sp-tools.sh build both
#Build type options: Debug, Release, RelWithDebInfo, MinSizeRelConfiguring cmake for the game logic of Stellar Prey Test.

– writing /home/ubuntu/Github/Stellar-Prey/source/game-logic/…/OpenWolf-Engine/src/engine/framework/appConfig.h
– Looking for Bullet…
– BULLET_INCLUDE_DIRS: /home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src/BulletCollision;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src/BulletDynamics;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/Extras/ConvexDecomposition;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src/BulletSoftBody;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/src/LinearMath;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/Extras/Serialize/BulletFileLoader;/home/ubuntu/Github/Stellar-Prey/source/game-logic/libs/bullet-2.80-rev2531/Extras/Serialize/BulletWorldImporter
– Configuring done
– Generating done
– Build files have been written to: /home/ubuntu/Github/Stellar-Prey/source/game-logic
Scanning dependencies of target client
[ 1%] Building CXX object CMakeFiles/client.dir/src/engine/platform/systemLauncher.cpp.o
[ 1%] Linking CXX executable bin/unix/StellarPreyTest.AMD64
[ 1%] Built target client
Scanning dependencies of target engine
[ 2%] Building CXX object CMakeFiles/engine.dir/cmake_pch.hxx.pch
[ 2%] Building CXX object CMakeFiles/engine.dir/src/engine/qcommon/q_shared.cpp.o
/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp:261:5: warning:
‘register’ storage class specifier is deprecated and incompatible with
C++17 [-Wdeprecated-register]
register sint hash, i;
^~~~~~~~~
/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp:261:5: warning:
‘register’ storage class specifier is deprecated and incompatible with
C++17 [-Wdeprecated-register]
register sint hash, i;
^~~~~~~~~
/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp:2801:35: error:
cast from pointer to smaller type ‘sint’ (aka ‘int’) loses information
*nameLength = ( sint )out - ( sint ) * name;
^~~~~~~~~~~
/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp:2801:49: error:
cast from pointer to smaller type ‘sint’ (aka ‘int’) loses information
*nameLength = ( sint )out - ( sint ) * name;
^~~~~~~~~~~~~~~
/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp:2835:31: error:
cast from pointer to smaller type ‘sint’ (aka ‘int’) loses information
if( *text ) *textLength = ( sint )out - ( sint ) * text; // compr…
^~~~~~~~~~~
/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp:2835:45: error:
cast from pointer to smaller type ‘sint’ (aka ‘int’) loses information
if( *text ) *textLength = ( sint )out - ( sint ) * text; // compresse…
^~~~~~~~~~~~~~~
/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp:2837:9: error:
cast from pointer to smaller type ‘sint’ (aka ‘int’) loses information
c = ( sint )out - ( sint ) * data_p…
^~~~~~~~~~~
/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp:2837:23: error:
cast from pointer to smaller type ‘sint’ (aka ‘int’) loses information
…- ( sint ) * data_p; // u…
^~~~~~~~~~~~~~~~~
2 warnings and 6 errors generated.
CMakeFiles/engine.dir/build.make:78: recipe for target ‘CMakeFiles/engine.dir/src/engine/qcommon/q_shared.cpp.o’ failed
make[2]: *** [CMakeFiles/engine.dir/src/engine/qcommon/q_shared.cpp.o] Error 1
CMakeFiles/Makefile2:112: recipe for target ‘CMakeFiles/engine.dir/all’ failed
make[1]: *** [CMakeFiles/engine.dir/all] Error 2
Makefile:105: recipe for target ‘all’ failed
make: *** [all] Error 2
[ 1%] Building CXX object CMakeFiles/cgame.dir/cmake_pch.hxx.pch
[ 2%] Building CXX object CMakeFiles/cgame.dir/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp.o
/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp:261:5: warning:
‘register’ storage class specifier is deprecated and incompatible with
C++17 [-Wdeprecated-register]
register sint hash, i;
^~~~~~~~~
/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp:261:5: warning:
‘register’ storage class specifier is deprecated and incompatible with
C++17 [-Wdeprecated-register]
register sint hash, i;
^~~~~~~~~
/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp:2801:35: error:
cast from pointer to smaller type ‘sint’ (aka ‘int’) loses information
*nameLength = ( sint )out - ( sint ) * name;
^~~~~~~~~~~
/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp:2801:49: error:
cast from pointer to smaller type ‘sint’ (aka ‘int’) loses information
*nameLength = ( sint )out - ( sint ) * name;
^~~~~~~~~~~~~~~
/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp:2835:31: error:
cast from pointer to smaller type ‘sint’ (aka ‘int’) loses information
if( *text ) *textLength = ( sint )out - ( sint ) * text; // compr…
^~~~~~~~~~~
/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp:2835:45: error:
cast from pointer to smaller type ‘sint’ (aka ‘int’) loses information
if( *text ) *textLength = ( sint )out - ( sint ) * text; // compresse…
^~~~~~~~~~~~~~~
/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp:2837:9: error:
cast from pointer to smaller type ‘sint’ (aka ‘int’) loses information
c = ( sint )out - ( sint ) * data_p…
^~~~~~~~~~~
/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp:2837:23: error:
cast from pointer to smaller type ‘sint’ (aka ‘int’) loses information
…- ( sint ) * data_p; // u…
^~~~~~~~~~~~~~~~~
2 warnings and 6 errors generated.
CMakeFiles/cgame.dir/build.make:78: recipe for target ‘CMakeFiles/cgame.dir/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp.o’ failed
make[2]: *** [CMakeFiles/cgame.dir/home/ubuntu/Github/Stellar-Prey/source/OpenWolf-Engine/src/engine/qcommon/q_shared.cpp.o] Error 1
CMakeFiles/Makefile2:79: recipe for target ‘CMakeFiles/cgame.dir/all’ failed
make[1]: *** [CMakeFiles/cgame.dir/all] Error 2
Makefile:151: recipe for target ‘all’ failed
make: *** [all] Error 2
deleting: eX-texture-pack1.pk3
deleting: eX-texture-pack2.pk3
deleting: map-eXcs.pk3
deleting: map-UTCSUD.pk3
deleting: pak0000_A_8f7eae0.pk3
deleting: pak0000_B_8f7eae0.pk3
deleting: pak0001_bf9dde3_diff_8f7eae0.pk3
zip warning: zip file empty
zip warning: bin.pk3 not found or empty
adding: eX-texture-pack1.pk3 (deflated 0%)
adding: eX-texture-pack2.pk3 (deflated 0%)
adding: map-eXcs.pk3 (deflated 0%)
adding: map-UTCSUD.pk3 (deflated 0%)
adding: pak0000_A_8f7eae0.pk3 (deflated 1%)
adding: pak0000_B_8f7eae0.pk3 (deflated 0%)
adding: pak0001_bf9dde3_diff_8f7eae0.pk3 (deflated 5%)

Nice, we’re getting closer (I’ll list the dependencies we’ve discussed on the README in a little bit). TheDushan pushed a fix to the OpenWolf engine that looks like it might address your current issue with building, I just need to test it on Linux, and push it to the Stellar Prey repo (I’ll look into this right now).

1 Like

@GoldenKrisp , I’ve updated the repo. execute the following to update before rebuilding again:
git pull origin master
git submodule update

Okay, I’m up-to-date and running the build command. I get an error to make sgame_admin at 55%:

[ 55%] Building CXX object CMakeFiles/sgame.dir/src/gameLogics/sgame/sgame_admin.cpp.o
/home/ubuntu/Github/Stellar-Prey/source/game-logic/src/gameLogics/sgame/sgame_admin.cpp:1262:35: warning:
‘memset’ call operates on objects of type ‘g_admin_namelog_t’
(aka ‘g_admin_namelog’) while the size is based on a different type
'g_admin_namelog_t ’ (aka ‘g_admin_namelog *’)
[-Wsizeof-pointer-memaccess]
::memset( namelog, 0, sizeof( namelog ) );
~~~~~~~ ^~~~~~~
/home/ubuntu/Github/Stellar-Prey/source/game-logic/src/gameLogics/sgame/sgame_admin.cpp:1262:35: note:
did you mean to dereference the argument to ‘sizeof’ (and multiply it by
the number of elements)?
::memset( namelog, 0, sizeof( namelog ) );
^~~~~~~
/home/ubuntu/Github/Stellar-Prey/source/game-logic/src/gameLogics/sgame/sgame_admin.cpp:1903:98: error:
cannot initialize a parameter of type ‘valueType *’ (aka ‘char *’) with an
rvalue of type ‘const valueType *’ (aka ‘const char *’)
…g_adminTempBan.string ) ), ( *reason ) ? reason : “kicked by admin” );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ubuntu/Github/Stellar-Prey/source/game-logic/src/gameLogics/sgame/sgame_admin.cpp:1753:129: note:
passing argument to parameter ‘reason’ here
…valueType
guid, valueType* ip, sint seconds, valueType* reason )
^
1 warning and 1 error generated.
CMakeFiles/sgame.dir/build.make:213: recipe for target ‘CMakeFiles/sgame.dir/src/gameLogics/sgame/sgame_admin.cpp.o’ failed
make[2]: *** [CMakeFiles/sgame.dir/src/gameLogics/sgame/sgame_admin.cpp.o] Error 1
CMakeFiles/Makefile2:106: recipe for target ‘CMakeFiles/sgame.dir/all’ failed
make[1]: *** [CMakeFiles/sgame.dir/all] Error 2
Makefile:151: recipe for target ‘all’ failed
make: *** [all] Error 2
deleting: cgameAMD64.so
adding: cgameAMD64.so (deflated 62%)

Ah, its an issue with the const not able to convert to non-const.

© GrangerHub. All rights reserved. Tremulous © Darklegion Development. Granger by err-overflow and MoP licensed CC-BY-SA-2.5