BlindMindStudios/StarRuler2-Source

Unable to build the project on unbuntu 18.04

francois1997 opened this issue · 1 comments

I manage to get most of the dependencies but then i am hitting a linking problem.
Here is what i got :

Done. As root, type make install to install the library.
make[1]: Leaving directory '/media/francois/New Volume/Francois/unbuntu stuff/star ruler 2/StarRuler2-Source/source/angelscript/projects/gnuc'
bash source/linux/build.sh 64 release glfw
-- The C compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Using X11 for window creation
-- Using GLX for context creation
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Configuring done
-- Generating done
-- Build files have been written to: /media/francois/New Volume/Francois/unbuntu stuff/star ruler 2/StarRuler2-Source/source/glfw
make[1]: Entering directory '/media/francois/New Volume/Francois/unbuntu stuff/star ruler 2/StarRuler2-Source/source/glfw'
make[2]: Entering directory '/media/francois/New Volume/Francois/unbuntu stuff/star ruler 2/StarRuler2-Source/source/glfw'
make[3]: Entering directory '/media/francois/New Volume/Francois/unbuntu stuff/star ruler 2/StarRuler2-Source/source/glfw'
make[4]: Entering directory '/media/francois/New Volume/Francois/unbuntu stuff/star ruler 2/StarRuler2-Source/source/glfw'
make[4]: Leaving directory '/media/francois/New Volume/Francois/unbuntu stuff/star ruler 2/StarRuler2-Source/source/glfw'
[100%] Built target glfw
make[3]: Leaving directory '/media/francois/New Volume/Francois/unbuntu stuff/star ruler 2/StarRuler2-Source/source/glfw'
make[2]: Leaving directory '/media/francois/New Volume/Francois/unbuntu stuff/star ruler 2/StarRuler2-Source/source/glfw'
make[1]: Leaving directory '/media/francois/New Volume/Francois/unbuntu stuff/star ruler 2/StarRuler2-Source/source/glfw'
#./source/linux/build.sh 64 release breakpad
source/game/os/glfw_driver.cpp: In member function ‘getMousePos’:
source/game/os/glfw_driver.cpp:328:5: warning: ‘dx’ may be used uninitialized in this function [-Wmaybe-uninitialized]
x = (int)floor(dx);
^
source/game/os/glfw_driver.cpp:326:10: note: ‘dx’ was declared here
double dx, dy;
^
source/game/os/glfw_driver.cpp:329:5: warning: ‘dy’ may be used uninitialized in this function [-Wmaybe-uninitialized]
y = (int)floor(dy);
^
source/game/os/glfw_driver.cpp:326:14: note: ‘dy’ was declared here
double dx, dy;
^
source/game/main/input_handling.cpp: In function ‘onMouseButton’:
source/game/os/glfw_driver.cpp:329:5: warning: ‘dy’ may be used uninitialized in this function [-Wmaybe-uninitialized]
y = (int)floor(dy);
^
source/game/os/glfw_driver.cpp:326:14: note: ‘dy’ was declared here
double dx, dy;
^
source/game/os/glfw_driver.cpp:328:5: warning: ‘dx’ may be used uninitialized in this function [-Wmaybe-uninitialized]
x = (int)floor(dx);
^
source/game/os/glfw_driver.cpp:326:10: note: ‘dx’ was declared here
double dx, dy;
^
source/game/scripts/bind_gui.cpp: In function ‘getMousePos’:
source/game/os/glfw_driver.cpp:329:5: warning: ‘dy’ may be used uninitialized in this function [-Wmaybe-uninitialized]
y = (int)floor(dy);
^
source/game/os/glfw_driver.cpp:326:14: note: ‘dy’ was declared here
double dx, dy;
^
source/game/os/glfw_driver.cpp:328:5: warning: ‘dx’ may be used uninitialized in this function [-Wmaybe-uninitialized]
x = (int)floor(dx);
^
source/game/os/glfw_driver.cpp:326:10: note: ‘dx’ was declared here
double dx, dy;
^
source/game/scripts/bind_general.cpp: In function ‘FindQuarticRoots’:
source/game/scripts/bind_general.cpp:1322:9: warning: ‘positive_root’ may be used uninitialized in this function [-Wmaybe-uninitialized]
double positive_root;
^
source/network/source/server.cpp: In member function ‘listen’:
source/network/source/transport.cpp:110:50: warning: ‘len’ may be used uninitialized in this function [-Wmaybe-uninitialized]
int result = bind(sockfd, (sockaddr*)&saddr, len);
^
source/network/source/transport.cpp:106:12: note: ‘len’ was declared here
socklen_t len;
^
source/network/source/transport.cpp: In member function ‘send’:
source/network/source/transport.cpp:181:20: warning: ‘len’ may be used uninitialized in this function [-Wmaybe-uninitialized]
int bytes = sendto(sockfd, pBytes, byteCount, 0, (sockaddr*)&saddr, len);
^
source/network/source/transport.cpp:173:12: note: ‘len’ was declared here
socklen_t len;
^
/tmp/ccQKQVNA.ltrans0.ltrans.o: In function std::_Function_base::_Base_manager<asCJITCompiler::CompileFunction(asIScriptFunction*, void (**)(asSVMRegisters*, unsigned long))::{lambda(assembler::JumpType, bool)#3}>::_M_manager(std::_Any_data&, std::_Function_base::_Base_manager<asCJITCompiler::CompileFunction(asIScriptFunction*, void (**)(asSVMRegisters*, unsigned long))::{lambda(assembler::JumpType, bool)#3}> const&, std::_Manager_operation)': <artificial>:(.text+0xc8e): undefined reference to operator delete(void*)'
:(.text+0xca9): undefined reference to operator new(unsigned long)' /tmp/ccQKQVNA.ltrans0.ltrans.o: In function std::vector<Design::Descriptor::System, std::allocatorDesign::Descriptor::System >::reserve(unsigned long)':
:(.text+0xd57): undefined reference to operator new(unsigned long)' <artificial>:(.text+0xed1): undefined reference to operator delete(void*)'
:(.text+0xeeb): undefined reference to operator delete(void*)' <artificial>:(.text+0xf0c): undefined reference to operator delete(void*)'
/tmp/ccQKQVNA.ltrans0.ltrans.o: In function HexGrid<int>::resize(vec2<unsigned int>)': <artificial>:(.text+0x117a): undefined reference to operator delete'
:(.text+0x1189): undefined reference to operator new[](unsigned long)' /tmp/ccQKQVNA.ltrans0.ltrans.o: In function HexGrid::resize(unsigned int, unsigned int)':
:(.text+0x11b5): undefined reference to operator delete[](void*)' <artificial>:(.text+0x11c4): undefined reference to operator new[](unsigned long)'
/tmp/ccQKQVNA.ltrans0.ltrans.o: In function HexGrid<bool>::resize(unsigned int, unsigned int)': <artificial>:(.text+0x11f5): undefined reference to operator delete'
:(.text+0x1200): undefined reference to operator new[](unsigned long)' /tmp/ccQKQVNA.ltrans0.ltrans.o: In function Design::buildDamageOrder()':
:(.text+0x1537): undefined reference to operator new(unsigned long)' <artificial>:(.text+0x15c8): undefined reference to operator delete(void*)'

and then it continues on for a while, and then stop and fails to create the binaries.
I don't know what can cause such problem, but it doesn't seems to be the dependencies nor compiler.
If anybody has any idea on what could cause such things.

thanks and see you around

Linux Mint - same issue, was not able to build with gcc or clang