stelic / limitload

Limit Load is an arcade cockpit flight game with story-driven campaigns.
http://www.limitload.org
Other
26 stars 2 forks source link

Make failed: recipe for target 'misc_c.so' failed #2

Closed ijustlovemath closed 7 years ago

ijustlovemath commented 7 years ago

Xubuntu 16.04. Panda3d built successfully and installed with dpkg -i, including the patch files.

Here's my build_setup:

#!/bin/sh

build_env=lingcc

envsep=":"

python_cmd=python
python_inc_dir="/usr/include/python2.7"
python_lib_dir="/usr/lib/python2.7"
eigen_inc_dir="/usr/include/eigen3"
panda_inc_dir="/usr/include/panda3d"
panda_lib_dir="/usr/lib/x86_64-linux-gnu/panda3d"
panda_rtti=true

Here's my makelog:

make[1]: Entering directory '/home/jer/build/limitload/src'
make[2]: Entering directory '/home/jer/build/limitload/src/core'
../../util/build_module.sh misc_c misc.h MISC \
        misc.cpp
Referencing Library misc_c
/tmp/cch0c2sH.o: In function `Dtool_RandomBase_get_class_type_18(_object*, _object*)':
misc_c-igate.cpp:(.text+0x1fa): undefined reference to `_Dtool_CheckErrorOccurred()'
/tmp/cch0c2sH.o: In function `Dtool_NumRandom_get_class_type_26(_object*, _object*)':
misc_c-igate.cpp:(.text+0x24a): undefined reference to `_Dtool_CheckErrorOccurred()'
/tmp/cch0c2sH.o: In function `Dtool_HaltonDistrib_get_class_type_33(_object*, _object*)':
misc_c-igate.cpp:(.text+0x29a): undefined reference to `_Dtool_CheckErrorOccurred()'
/tmp/cch0c2sH.o: In function `Dtool_RandomBase_random_17(_object*, _object*)':
misc_c-igate.cpp:(.text+0x301): undefined reference to `Dtool_Call_ExtractThisPointer_NonConst(_object*, Dtool_PyTypedObject&, void**, char const*)'
misc_c-igate.cpp:(.text+0x31a): undefined reference to `_Dtool_CheckErrorOccurred()'
/tmp/cch0c2sH.o: In function `Dtool_NumRandom_randrange_24(_object*, _object*, _object*)':
misc_c-igate.cpp:(.text+0x39b): undefined reference to `Dtool_Call_ExtractThisPointer_NonConst(_object*, Dtool_PyTypedObject&, void**, char const*)'
misc_c-igate.cpp:(.text+0x4ca): undefined reference to `_Dtool_CheckErrorOccurred()'
misc_c-igate.cpp:(.text+0x4e8): undefined reference to `Dtool_Raise_TypeError(char const*)'
misc_c-igate.cpp:(.text+0x50d): undefined reference to `_Dtool_CheckErrorOccurred()'
misc_c-igate.cpp:(.text+0x538): undefined reference to `Dtool_Raise_TypeError(char const*)'
/tmp/cch0c2sH.o: In function `Dtool_NumRandom_randunit_22(_object*, _object*)':
misc_c-igate.cpp:(.text+0x5a1): undefined reference to `Dtool_Call_ExtractThisPointer_NonConst(_object*, Dtool_PyTypedObject&, void**, char const*)'
misc_c-igate.cpp:(.text+0x5ba): undefined reference to `_Dtool_CheckErrorOccurred()'
/tmp/cch0c2sH.o: In function `Dtool_HaltonDistrib_next1_30(_object*, _object*)':
misc_c-igate.cpp:(.text+0x631): undefined reference to `Dtool_Call_ExtractThisPointer_NonConst(_object*, Dtool_PyTypedObject&, void**, char const*)'
misc_c-igate.cpp:(.text+0x64a): undefined reference to `_Dtool_CheckErrorOccurred()'
/tmp/cch0c2sH.o: In function `Dtool_fx_randunit_11(_object*, _object*)':
misc_c-igate.cpp:(.text+0x6a0): undefined reference to `_Dtool_CheckErrorOccurred()'
/tmp/cch0c2sH.o: In function `Dtool_randunit_10(_object*, _object*)':
misc_c-igate.cpp:(.text+0x6e0): undefined reference to `_Dtool_CheckErrorOccurred()'
/tmp/cch0c2sH.o: In function `Dtool_fx_reset_random_9(_object*, _object*, _object*)':
misc_c-igate.cpp:(.text+0x8d8): undefined reference to `Dtool_Raise_TypeError(char const*)'
misc_c-igate.cpp:(.text+0x8ea): undefined reference to `_Dtool_Return_None()'
/tmp/cch0c2sH.o: In function `Dtool_reset_random_8(_object*, _object*, _object*)':
misc_c-igate.cpp:(.text+0x978): undefined reference to `Dtool_Raise_TypeError(char const*)'
misc_c-igate.cpp:(.text+0x98a): undefined reference to `_Dtool_Return_None()'
/tmp/cch0c2sH.o: In function `Dtool_NumRandom_uniform_23(_object*, _object*, _object*)':
misc_c-igate.cpp:(.text+0x9d9): undefined reference to `Dtool_Call_ExtractThisPointer_NonConst(_object*, Dtool_PyTypedObject&, void**, char const*)'
misc_c-igate.cpp:(.text+0xa40): undefined reference to `Dtool_Raise_TypeError(char const*)'
misc_c-igate.cpp:(.text+0xa6d): undefined reference to `_Dtool_CheckErrorOccurred()'
/tmp/cch0c2sH.o: In function `Dtool_clamp_1(_object*, _object*, _object*)':
misc_c-igate.cpp:(.text+0xb08): undefined reference to `Dtool_Raise_TypeError(char const*)'
misc_c-igate.cpp:(.text+0xb2e): undefined reference to `_Dtool_CheckErrorOccurred()'
/tmp/cch0c2sH.o: In function `Dtool_texture_frame_7(_object*, _object*, _object*)':
misc_c-igate.cpp:(.text+0xbd0): undefined reference to `Dtool_Raise_TypeError(char const*)'
misc_c-igate.cpp:(.text+0xc4a): undefined reference to `_Dtool_CheckErrorOccurred()'
misc_c-igate.cpp:(.text+0xc64): undefined reference to `DTool_CreatePyInstance(void*, Dtool_PyTypedObject&, bool, bool)'
/tmp/cch0c2sH.o: In function `Dtool_ConstCoerce_HaltonDistrib(_object*, HaltonDistrib const*&, bool&)':
misc_c-igate.cpp:(.text+0xd28): undefined reference to `DTOOL_Call_ExtractThisPointerForType(_object*, Dtool_PyTypedObject*, void**)'
/tmp/cch0c2sH.o: In function `Dtool_Init_HaltonDistrib(_object*, _object*, _object*)':
misc_c-igate.cpp:(.text+0xeac): undefined reference to `DTOOL_Call_ExtractThisPointerForType(_object*, Dtool_PyTypedObject*, void**)'
misc_c-igate.cpp:(.text+0xeea): undefined reference to `_Dtool_CheckErrorOccurred()'
misc_c-igate.cpp:(.text+0xf85): undefined reference to `_Dtool_CheckErrorOccurred()'
misc_c-igate.cpp:(.text+0xfa7): undefined reference to `DTool_PyInit_Finalize(_object*, void*, Dtool_PyTypedObject*, bool, bool)'
misc_c-igate.cpp:(.text+0x1021): undefined reference to `Dtool_Raise_TypeError(char const*)'
/tmp/cch0c2sH.o: In function `Dtool_ConstCoerce_RandomBase(_object*, RandomBase const*&, bool&)':
misc_c-igate.cpp:(.text+0x10e8): undefined reference to `DTOOL_Call_ExtractThisPointerForType(_object*, Dtool_PyTypedObject*, void**)'
/tmp/cch0c2sH.o: In function `Dtool_Init_RandomBase(_object*, _object*, _object*)':
misc_c-igate.cpp:(.text+0x12b0): undefined reference to `DTOOL_Call_ExtractThisPointerForType(_object*, Dtool_PyTypedObject*, void**)'
misc_c-igate.cpp:(.text+0x12fa): undefined reference to `_Dtool_CheckErrorOccurred()'
misc_c-igate.cpp:(.text+0x131c): undefined reference to `DTool_PyInit_Finalize(_object*, void*, Dtool_PyTypedObject*, bool, bool)'
misc_c-igate.cpp:(.text+0x13eb): undefined reference to `_Dtool_CheckErrorOccurred()'
misc_c-igate.cpp:(.text+0x14ab): undefined reference to `Dtool_Raise_TypeError(char const*)'
/tmp/cch0c2sH.o: In function `Dtool_ConstCoerce_NumRandom(_object*, NumRandom const*&, bool&)':
misc_c-igate.cpp:(.text+0x15d8): undefined reference to `DTOOL_Call_ExtractThisPointerForType(_object*, Dtool_PyTypedObject*, void**)'
/tmp/cch0c2sH.o: In function `Dtool_Init_NumRandom(_object*, _object*, _object*)':
misc_c-igate.cpp:(.text+0x16f0): undefined reference to `DTOOL_Call_ExtractThisPointerForType(_object*, Dtool_PyTypedObject*, void**)'
misc_c-igate.cpp:(.text+0x1749): undefined reference to `_Dtool_CheckErrorOccurred()'
misc_c-igate.cpp:(.text+0x176b): undefined reference to `DTool_PyInit_Finalize(_object*, void*, Dtool_PyTypedObject*, bool, bool)'
misc_c-igate.cpp:(.text+0x183b): undefined reference to `_Dtool_CheckErrorOccurred()'
misc_c-igate.cpp:(.text+0x190a): undefined reference to `Dtool_Raise_TypeError(char const*)'
/tmp/cch0c2sH.o: In function `Dtool_Coerce_NumRandom(_object*, NumRandom*&, bool&)':
misc_c-igate.cpp:(.text+0x1938): undefined reference to `DTOOL_Call_ExtractThisPointerForType(_object*, Dtool_PyTypedObject*, void**)'
/tmp/cch0c2sH.o: In function `Dtool_Coerce_HaltonDistrib(_object*, HaltonDistrib*&, bool&)':
misc_c-igate.cpp:(.text+0x19c2): undefined reference to `DTOOL_Call_ExtractThisPointerForType(_object*, Dtool_PyTypedObject*, void**)'
/tmp/cch0c2sH.o: In function `Dtool_Coerce_RandomBase(_object*, RandomBase*&, bool&)':
misc_c-igate.cpp:(.text+0x1af2): undefined reference to `DTOOL_Call_ExtractThisPointerForType(_object*, Dtool_PyTypedObject*, void**)'
/tmp/cch0c2sH.o: In function `Dtool_solve_quad_s_4(_object*, _object*, _object*)':
misc_c-igate.cpp:(.text+0x1f28): undefined reference to `Dtool_Raise_TypeError(char const*)'
misc_c-igate.cpp:(.text+0x1f7d): undefined reference to `Dtool_Return_Bool(bool)'
misc_c-igate.cpp:(.text+0x1fa9): undefined reference to `Dtool_Raise_ArgTypeError(_object*, int, char const*, char const*)'
/tmp/cch0c2sH.o: In function `Dtool_solve_quad_minpos_s_5(_object*, _object*, _object*)':
misc_c-igate.cpp:(.text+0x20b8): undefined reference to `Dtool_Raise_TypeError(char const*)'
misc_c-igate.cpp:(.text+0x210d): undefined reference to `Dtool_Return_Bool(bool)'
misc_c-igate.cpp:(.text+0x2139): undefined reference to `Dtool_Raise_ArgTypeError(_object*, int, char const*, char const*)'
/tmp/cch0c2sH.o: In function `Dtool_HaltonDistrib_next2_31(_object*, _object*)':
misc_c-igate.cpp:(.text+0x21f7): undefined reference to `Dtool_Call_ExtractThisPointer_NonConst(_object*, Dtool_PyTypedObject&, void**, char const*)'
misc_c-igate.cpp:(.text+0x225f): undefined reference to `_Dtool_CheckErrorOccurred()'
misc_c-igate.cpp:(.text+0x2279): undefined reference to `DTool_CreatePyInstance(void*, Dtool_PyTypedObject&, bool, bool)'
/tmp/cch0c2sH.o: In function `Dtool_hprtovec_3(_object*, _object*)':
misc_c-igate.cpp:(.text+0x23f7): undefined reference to `_Dtool_CheckErrorOccurred()'
misc_c-igate.cpp:(.text+0x2415): undefined reference to `DTool_CreatePyInstance(void*, Dtool_PyTypedObject&, bool, bool)'
misc_c-igate.cpp:(.text+0x2494): undefined reference to `Dtool_Raise_ArgTypeError(_object*, int, char const*, char const*)'
/tmp/cch0c2sH.o: In function `Dtool_HaltonDistrib_next3_32(_object*, _object*)':
misc_c-igate.cpp:(.text+0x2597): undefined reference to `Dtool_Call_ExtractThisPointer_NonConst(_object*, Dtool_PyTypedObject&, void**, char const*)'
misc_c-igate.cpp:(.text+0x260e): undefined reference to `_Dtool_CheckErrorOccurred()'
misc_c-igate.cpp:(.text+0x2628): undefined reference to `DTool_CreatePyInstance(void*, Dtool_PyTypedObject&, bool, bool)'
/tmp/cch0c2sH.o: In function `Dtool_randvec_12(_object*, _object*, _object*)':
misc_c-igate.cpp:(.text+0x27b8): undefined reference to `Dtool_Raise_TypeError(char const*)'
misc_c-igate.cpp:(.text+0x2838): undefined reference to `_Dtool_CheckErrorOccurred()'
misc_c-igate.cpp:(.text+0x2852): undefined reference to `DTool_CreatePyInstance(void*, Dtool_PyTypedObject&, bool, bool)'
/tmp/cch0c2sH.o: In function `Dtool_fx_randvec_13(_object*, _object*, _object*)':
misc_c-igate.cpp:(.text+0x29b8): undefined reference to `Dtool_Raise_TypeError(char const*)'
misc_c-igate.cpp:(.text+0x2a38): undefined reference to `_Dtool_CheckErrorOccurred()'
misc_c-igate.cpp:(.text+0x2a52): undefined reference to `DTool_CreatePyInstance(void*, Dtool_PyTypedObject&, bool, bool)'
/tmp/cch0c2sH.o: In function `Dtool_NumRandom_randvec_25(_object*, _object*, _object*)':
misc_c-igate.cpp:(.text+0x2b2d): undefined reference to `Dtool_Call_ExtractThisPointer_NonConst(_object*, Dtool_PyTypedObject&, void**, char const*)'
misc_c-igate.cpp:(.text+0x2be8): undefined reference to `Dtool_Raise_TypeError(char const*)'
misc_c-igate.cpp:(.text+0x2c6d): undefined reference to `_Dtool_CheckErrorOccurred()'
misc_c-igate.cpp:(.text+0x2c87): undefined reference to `DTool_CreatePyInstance(void*, Dtool_PyTypedObject&, bool, bool)'
/tmp/cch0c2sH.o: In function `Dtool_intercept_time_s_6(_object*, _object*, _object*)':
misc_c-igate.cpp:(.text+0x2e18): undefined reference to `Dtool_Raise_TypeError(char const*)'
misc_c-igate.cpp:(.text+0x30a9): undefined reference to `Dtool_Return_Bool(bool)'
misc_c-igate.cpp:(.text+0x3109): undefined reference to `Dtool_Raise_ArgTypeError(_object*, int, char const*, char const*)'
misc_c-igate.cpp:(.text+0x3166): undefined reference to `Dtool_Raise_ArgTypeError(_object*, int, char const*, char const*)'
misc_c-igate.cpp:(.text+0x31c9): undefined reference to `Dtool_Raise_ArgTypeError(_object*, int, char const*, char const*)'
misc_c-igate.cpp:(.text+0x3229): undefined reference to `Dtool_Raise_ArgTypeError(_object*, int, char const*, char const*)'
misc_c-igate.cpp:(.text+0x3289): undefined reference to `Dtool_Raise_ArgTypeError(_object*, int, char const*, char const*)'
/tmp/cch0c2sH.o:misc_c-igate.cpp:(.text+0x3321): more undefined references to `Dtool_Raise_ArgTypeError(_object*, int, char const*, char const*)' follow
/tmp/cch0c2sH.o: In function `Dtool_misc_c_RegisterTypes()':
misc_c-igate.cpp:(.text+0x3723): undefined reference to `RegisterRuntimeTypedClass(Dtool_PyTypedObject&)'
misc_c-igate.cpp:(.text+0x37af): undefined reference to `RegisterRuntimeTypedClass(Dtool_PyTypedObject&)'
misc_c-igate.cpp:(.text+0x3840): undefined reference to `RegisterRuntimeTypedClass(Dtool_PyTypedObject&)'
/tmp/cch0c2sH.o: In function `Dtool_misc_c_ResolveExternals()':
misc_c-igate.cpp:(.text+0x38b9): undefined reference to `LookupNamedClass(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
misc_c-igate.cpp:(.text+0x38dc): undefined reference to `LookupRuntimeTypedClass(TypeHandle)'
misc_c-igate.cpp:(.text+0x38f1): undefined reference to `LookupRuntimeTypedClass(TypeHandle)'
misc_c-igate.cpp:(.text+0x3906): undefined reference to `LookupRuntimeTypedClass(TypeHandle)'
misc_c-igate.cpp:(.text+0x391b): undefined reference to `LookupRuntimeTypedClass(TypeHandle)'
misc_c-igate.cpp:(.text+0x3930): undefined reference to `LookupRuntimeTypedClass(TypeHandle)'
/tmp/cch0c2sH.o:misc_c-igate.cpp:(.text+0x3945): more undefined references to `LookupRuntimeTypedClass(TypeHandle)' follow
/tmp/cch0c2sH.o: In function `Dtool_misc_c_BuildInstants(_object*)':
misc_c-igate.cpp:(.text+0x3c38): undefined reference to `Dtool_Raise_TypeError(char const*)'
misc_c-igate.cpp:(.text+0x3c50): undefined reference to `Dtool_Raise_TypeError(char const*)'
misc_c-igate.cpp:(.text+0x3c68): undefined reference to `Dtool_Raise_TypeError(char const*)'
/tmp/cch0c2sH.o: In function `Dtool_unitv_2(_object*, _object*)':
misc_c-igate.cpp:(.text+0x3d70): undefined reference to `DTOOL_Call_ExtractThisPointerForType(_object*, Dtool_PyTypedObject*, void**)'
misc_c-igate.cpp:(.text+0x3e23): undefined reference to `_Dtool_CheckErrorOccurred()'
misc_c-igate.cpp:(.text+0x3e3d): undefined reference to `DTool_CreatePyInstance(void*, Dtool_PyTypedObject&, bool, bool)'
misc_c-igate.cpp:(.text+0x3ec6): undefined reference to `DTOOL_Call_ExtractThisPointerForType(_object*, Dtool_PyTypedObject*, void**)'
misc_c-igate.cpp:(.text+0x3f80): undefined reference to `_Dtool_CheckErrorOccurred()'
misc_c-igate.cpp:(.text+0x4022): undefined reference to `DTool_CreatePyInstance(void*, Dtool_PyTypedObject&, bool, bool)'
misc_c-igate.cpp:(.text+0x4096): undefined reference to `DTOOL_Call_ExtractThisPointerForType(_object*, Dtool_PyTypedObject*, void**)'
misc_c-igate.cpp:(.text+0x4167): undefined reference to `_Dtool_CheckErrorOccurred()'
misc_c-igate.cpp:(.text+0x4212): undefined reference to `DTool_CreatePyInstance(void*, Dtool_PyTypedObject&, bool, bool)'
misc_c-igate.cpp:(.text+0x4253): undefined reference to `DTOOL_Call_ExtractThisPointerForType(_object*, Dtool_PyTypedObject*, void**)'
misc_c-igate.cpp:(.text+0x432d): undefined reference to `_Dtool_CheckErrorOccurred()'
misc_c-igate.cpp:(.text+0x43a4): undefined reference to `DTool_CreatePyInstance(void*, Dtool_PyTypedObject&, bool, bool)'
misc_c-igate.cpp:(.text+0x4409): undefined reference to `DTOOL_Call_ExtractThisPointerForType(_object*, Dtool_PyTypedObject*, void**)'
misc_c-igate.cpp:(.text+0x4459): undefined reference to `_Dtool_CheckErrorOccurred()'
misc_c-igate.cpp:(.text+0x44ce): undefined reference to `DTOOL_Call_ExtractThisPointerForType(_object*, Dtool_PyTypedObject*, void**)'
misc_c-igate.cpp:(.text+0x4511): undefined reference to `_Dtool_CheckErrorOccurred()'
misc_c-igate.cpp:(.text+0x454e): undefined reference to `DTOOL_Call_ExtractThisPointerForType(_object*, Dtool_PyTypedObject*, void**)'
misc_c-igate.cpp:(.text+0x4599): undefined reference to `_Dtool_CheckErrorOccurred()'
misc_c-igate.cpp:(.text+0x45c9): undefined reference to `DTOOL_Call_ExtractThisPointerForType(_object*, Dtool_PyTypedObject*, void**)'
misc_c-igate.cpp:(.text+0x4613): undefined reference to `_Dtool_CheckErrorOccurred()'
misc_c-igate.cpp:(.text+0x4643): undefined reference to `DTOOL_Call_ExtractThisPointerForType(_object*, Dtool_PyTypedObject*, void**)'
misc_c-igate.cpp:(.text+0x468f): undefined reference to `_Dtool_CheckErrorOccurred()'
misc_c-igate.cpp:(.text+0x46bf): undefined reference to `DTOOL_Call_ExtractThisPointerForType(_object*, Dtool_PyTypedObject*, void**)'
misc_c-igate.cpp:(.text+0x46ea): undefined reference to `DTOOL_Call_ExtractThisPointerForType(_object*, Dtool_PyTypedObject*, void**)'
misc_c-igate.cpp:(.text+0x4718): undefined reference to `DTOOL_Call_ExtractThisPointerForType(_object*, Dtool_PyTypedObject*, void**)'
misc_c-igate.cpp:(.text+0x4e98): undefined reference to `Dtool_Raise_TypeError(char const*)'
/tmp/cch0c2sH.o: In function `Dtool_RandomBase_get_class_type_18(_object*, _object*)':
misc_c-igate.cpp:(.text+0x215): undefined reference to `DTool_CreatePyInstance(void*, Dtool_PyTypedObject&, bool, bool)'
/tmp/cch0c2sH.o: In function `Dtool_NumRandom_get_class_type_26(_object*, _object*)':
misc_c-igate.cpp:(.text+0x265): undefined reference to `DTool_CreatePyInstance(void*, Dtool_PyTypedObject&, bool, bool)'
/tmp/cch0c2sH.o: In function `Dtool_HaltonDistrib_get_class_type_33(_object*, _object*)':
misc_c-igate.cpp:(.text+0x2b5): undefined reference to `DTool_CreatePyInstance(void*, Dtool_PyTypedObject&, bool, bool)'
/tmp/cch0c2sH.o: In function `Dtool_PyModuleClassInit_HaltonDistrib(_object*)':
misc_c-igate.cpp:(.text+0x1c91): undefined reference to `Dtool_Raise_TypeError(char const*)'
/tmp/cch0c2sH.o: In function `Dtool_PyModuleClassInit_RandomBase(_object*)':
misc_c-igate.cpp:(.text+0x1d71): undefined reference to `Dtool_Raise_TypeError(char const*)'
/tmp/cch0c2sH.o: In function `Dtool_PyModuleClassInit_NumRandom(_object*)':
misc_c-igate.cpp:(.text+0x1e51): undefined reference to `Dtool_Raise_TypeError(char const*)'
/tmp/cch0c2sH.o: In function `StaticInitializer__in_configure_misc_c::StaticInitializer__in_configure_misc_c()':
misc_c-igate.cpp:(.text+0x3d38): undefined reference to `interrogate_request_module'
/tmp/cch0c2sH.o:(.data.rel+0x2a8): undefined reference to `Dtool_BorrowThisReference(_object*, _object*)'
/tmp/cch0c2sH.o:(.data.rel+0x2c8): undefined reference to `Dtool_AddToDictionary(_object*, _object*)'
/tmp/cch0c2sH.o:(.data.rel+0x568): undefined reference to `copy_from_copy_constructor(_object*, _object*)'
/tmp/cch0c2sH.o:(.data.rel+0x588): undefined reference to `map_deepcopy_to_copy(_object*, _object*)'
/tmp/cch0c2sH.o:(.data.rel+0x848): undefined reference to `copy_from_copy_constructor(_object*, _object*)'
/tmp/cch0c2sH.o:(.data.rel+0x868): undefined reference to `map_deepcopy_to_copy(_object*, _object*)'
/tmp/cch0c2sH.o:(.data.rel+0xac8): undefined reference to `copy_from_copy_constructor(_object*, _object*)'
/tmp/cch0c2sH.o:(.data.rel+0xae8): undefined reference to `map_deepcopy_to_copy(_object*, _object*)'
/tmp/ccxExx4d.o: In function `initmisc_c':
misc_c-module.cpp:(.text+0x3d): undefined reference to `Dtool_PyModuleInitHelper(LibraryDef**, char const*)'
collect2: error: ld returned 1 exit status
makefile:25: recipe for target 'misc_c.so' failed
make[2]: *** [misc_c.so] Error 1
make[2]: Leaving directory '/home/jer/build/limitload/src/core'
makefile:38: recipe for target 'subdir-core' failed
make[1]: *** [subdir-core] Error 2
make[1]: Leaving directory '/home/jer/build/limitload/src'
makefile:8: recipe for target 'src' failed
make: *** [src] Error 2
nikolmiv commented 7 years ago

I'm not sure where the problem is, so it prolly won't help, but: what if you put just python_lib_dir="/usr/lib" (without .../python2.7), and if you set panda_rtti=false?

ijustlovemath commented 7 years ago

That failed with another set of errors:

make[1]: Entering directory '/home/jer/build/limitload/src'
make[2]: Entering directory '/home/jer/build/limitload/src/core'
../../util/build_module.sh misc_c misc.h MISC \
        misc.cpp
Referencing Library misc_c
In file included from /usr/include/panda3d/referenceCount.h:159:0,
                 from /usr/include/panda3d/typedReferenceCount.h:20,
                 from /usr/include/panda3d/thread.h:19,
                 from /usr/include/panda3d/mutexDebug.h:20,
                 from /usr/include/panda3d/lightMutex.h:18,
                 from /usr/include/panda3d/typedWritable.h:20,
                 from /usr/include/panda3d/typedWritableReferenceCount.h:19,
                 from /usr/include/panda3d/cachedTypedWritableReferenceCount.h:19,
                 from /usr/include/panda3d/copyOnWriteObject.h:19,
                 from /usr/include/panda3d/geomVertexData.h:18,
                 from /usr/include/panda3d/geomVertexWriter.h:18,
                 from misc_c-igate.cpp:17:
/usr/include/panda3d/referenceCount.I: In static member function ‘static void RefCountObj<Base>::init_type()’:
/usr/include/panda3d/referenceCount.I:385:33: error: cannot use typeid with -fno-rtti
   string base_name = typeid(Base).name();
                                 ^
In file included from /usr/include/panda3d/copyOnWriteObject.h:160:0,
                 from /usr/include/panda3d/geomVertexData.h:18,
                 from /usr/include/panda3d/geomVertexWriter.h:18,
                 from misc_c-igate.cpp:17:
/usr/include/panda3d/copyOnWriteObject.I: In static member function ‘static void CopyOnWriteObj<Base>::init_type()’:
/usr/include/panda3d/copyOnWriteObject.I:124:33: error: cannot use typeid with -fno-rtti
   string base_name = typeid(Base).name();
                                 ^
/usr/include/panda3d/copyOnWriteObject.I: In static member function ‘static void CopyOnWriteObj1<Base, Param1>::init_type()’:
/usr/include/panda3d/copyOnWriteObject.I:184:33: error: cannot use typeid with -fno-rtti
   string base_name = typeid(Base).name();
                                 ^
In file included from /usr/include/panda3d/nodeReferenceCount.h:91:0,
                 from /usr/include/panda3d/pointerToArrayBase.h:19,
                 from /usr/include/panda3d/pointerToArray.h:51,
                 from /usr/include/panda3d/pta_uchar.h:19,
                 from /usr/include/panda3d/datagram.h:23,
                 from /usr/include/panda3d/lvecBase2.h:21,
                 from /usr/include/panda3d/lvec2_ops.h:19,
                 from /usr/include/panda3d/aa_luse.h:26,
                 from /usr/include/panda3d/luse.h:41,
                 from /usr/include/panda3d/geomVertexColumn.h:21,
                 from /usr/include/panda3d/geomVertexArrayFormat.h:19,
                 from /usr/include/panda3d/geomVertexFormat.h:20,
                 from /usr/include/panda3d/geomVertexData.h:20,
                 from /usr/include/panda3d/geomVertexWriter.h:18,
                 from misc_c-igate.cpp:17:
/usr/include/panda3d/nodeReferenceCount.I: In static member function ‘static void NodeRefCountObj<Base>::init_type()’:
/usr/include/panda3d/nodeReferenceCount.I:222:33: error: cannot use typeid with -fno-rtti
   string base_name = typeid(Base).name();
                                 ^
In file included from /usr/include/panda3d/referenceCount.h:159:0,
                 from /usr/include/panda3d/pStatCollectorForwardBase.h:18,
                 from /usr/include/panda3d/pointerToArrayBase.h:18,
                 from /usr/include/panda3d/pointerToArray.h:51,
                 from /usr/include/panda3d/pta_uchar.h:19,
                 from /usr/include/panda3d/datagram.h:23,
                 from /usr/include/panda3d/lmatrix.h:21,
                 from /usr/include/panda3d/lquaternion.h:17,
                 from misc.cpp:9:
/usr/include/panda3d/referenceCount.I: In static member function ‘static void RefCountObj<Base>::init_type()’:
/usr/include/panda3d/referenceCount.I:385:33: error: cannot use typeid with -fno-rtti
   string base_name = typeid(Base).name();
                                 ^
In file included from /usr/include/panda3d/nodeReferenceCount.h:91:0,
                 from /usr/include/panda3d/pointerToArrayBase.h:19,
                 from /usr/include/panda3d/pointerToArray.h:51,
                 from /usr/include/panda3d/pta_uchar.h:19,
                 from /usr/include/panda3d/datagram.h:23,
                 from /usr/include/panda3d/lmatrix.h:21,
                 from /usr/include/panda3d/lquaternion.h:17,
                 from misc.cpp:9:
/usr/include/panda3d/nodeReferenceCount.I: In static member function ‘static void NodeRefCountObj<Base>::init_type()’:
/usr/include/panda3d/nodeReferenceCount.I:222:33: error: cannot use typeid with -fno-rtti
   string base_name = typeid(Base).name();
                                 ^
In file included from /usr/include/panda3d/copyOnWriteObject.h:160:0,
                 from /usr/include/panda3d/geomVertexData.h:18,
                 from /usr/include/panda3d/geomVertexWriter.h:18,
                 from ./misc.h:9,
                 from misc.cpp:11:
/usr/include/panda3d/copyOnWriteObject.I: In static member function ‘static void CopyOnWriteObj<Base>::init_type()’:
/usr/include/panda3d/copyOnWriteObject.I:124:33: error: cannot use typeid with -fno-rtti
   string base_name = typeid(Base).name();
                                 ^
/usr/include/panda3d/copyOnWriteObject.I: In static member function ‘static void CopyOnWriteObj1<Base, Param1>::init_type()’:
/usr/include/panda3d/copyOnWriteObject.I:184:33: error: cannot use typeid with -fno-rtti
   string base_name = typeid(Base).name();
                                 ^
makefile:25: recipe for target 'misc_c.so' failed
make[2]: *** [misc_c.so] Error 1
make[2]: Leaving directory '/home/jer/build/limitload/src/core'
makefile:38: recipe for target 'subdir-core' failed
make[1]: *** [subdir-core] Error 2
make[1]: Leaving directory '/home/jer/build/limitload/src'
makefile:8: recipe for target 'src' failed
make: *** [src] Error 2

I think the issue is in the make -C src part. I've since set build_setup like this:

#!/bin/sh

build_env=lingcc

envsep=":"

python_cmd=python
python_inc_dir="/usr/include/python2.7"
python_lib_dir="/usr/lib/"
eigen_inc_dir="/usr/include/eigen3"
panda_inc_dir="/usr/include/panda3d"
panda_lib_dir="/usr/lib/x86_64-linux-gnu/panda3d"
panda_rtti=true
nikolmiv commented 7 years ago

Ah, right, right, panda_rtti must be set according to how Panda itself was built, which in your case appears to be with rtti.

And with that last build_setup, you still have the same error as in the first comment?

ijustlovemath commented 7 years ago

Yes, same one! I followed the build.rst file almost to a t, excepting that I used 2 threads to compile panda.

On Saturday, September 10, 2016, Nikola Milentijevic < notifications@github.com> wrote:

Ah, right, right, panda_rtti must be set according to how Panda itself was built, which in your case appears to be with rtti.

And with that last build_setup, you still have the same error as in the first comment?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/stelic/limitload/issues/2#issuecomment-246127715, or mute the thread https://github.com/notifications/unsubscribe-auth/AL3tMKcSdTfnov5sFubO_mQQ2xHV8_2vks5qovcQgaJpZM4J3doI .

ijustlovemath commented 7 years ago

Here's the exact list of commands I've done for the build so far:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git python-pip make gettext gcc \
    build-essential pkg-config python-dev libpng-dev \
    libjpeg-dev libtiff-dev zlib1g-dev libssl-dev \
    libx11-dev libgl1-mesa-dev libxrandr-dev \
    libxxf86dga-dev libxcursor-dev bison flex \
    libfreetype6-dev libvorbis-dev libeigen3-dev \
    libopenal-dev libode-dev libbullet-dev \
    nvidia-cg-toolkit libgtk2.0-dev
pip install pygame
mkdir -p ~/build
cd ~/build
git clone https://github.com/panda3d/panda3d.git
git clone https://github.com/stelic/limitload.git
cd panda3d
patch -p1 <../limitload/util/patch-panda3d/0001-Consolidate-distance-factor-for-3D-audio.patch
python makepanda/makepanda.py --installer --optimize 3 --threads 2 \
    --lzma --use-python --use-direct --use-gl --no-gles --no-gles2 \
    --no-dx9 --no-tinydisplay --no-nvidiacg --no-egl --use-eigen \
    --use-openal --use-fmodex --use-vorbis --no-ffmpeg \
    --no-ode --no-physx --no-bullet \
    --use-pandaphysics --use-speedtree --use-zlib \
    --use-png --use-jpeg --use-tiff --use-squish --use-freetype \
    --no-maya6 --no-maya65 --no-maya7 --no-maya8 --no-maya85 \
    --no-maya2008 --no-maya2009 --no-maya2010 --no-maya2011 \
    --no-maya2012 --no-maya2013 --no-maya20135 --no-maya2014 \
    --no-maya2015 --no-max6 --no-max7 --no-max8 --no-max9 --no-max2009 \
    --no-max2010 --no-max2011 --no-max2012 --no-max2013 --no-max2014 \
    --no-fcollada --no-vrpn --no-openssl --no-fftw  --no-artoolkit \
    --no-opencv --no-directcam --no-vision \
    --no-mfc --no-gtk2 --no-wx --no-fltk --no-rocket --no-awesomium \
    --no-carbon --no-cocoa \
    --use-x11 --use-xf86dga --use-xrandr --use-xcursor \
    --use-pandatool --use-pview --use-deploytools --use-skel \
    --use-pandafx --use-pandaparticlesystem --use-contrib \
    --use-sse2 --no-neon --no-touchinput
sudo dpkg -i panda3d1.10_1.10.0_amd64.deb
cd ../limitload
cp util/build_setup.lingcc util/build_setup
nikolmiv commented 7 years ago

Now I see you used Panda from the latest repository version. Maybe there was some redistribution of symbols across Panda libraries, so some other libraries need to be linked. Could you try with 1.8.1 release, the one from http://www.panda3d.org/download/panda3d-1.8.1/panda3d-1.8.1.tar.gz (and also applying the patch)?

nikolmiv commented 7 years ago

Sorry, I meant 1.9.1, not 1.8.1! This one: http://www.panda3d.org/download/panda3d-1.9.1/panda3d-1.9.1.tar.gz

ijustlovemath commented 7 years ago

Didn't think about getting a stables release, must show my noobiness here :) I'll try that! Compiling took ~90mins last time so I'll have to get back to you on the results.

ijustlovemath commented 7 years ago

So that compiled, but now I get this error:

INFO: Starting game.
ERROR: Aborting, backtrace follows:
Traceback (most recent call last):
  File "/home/jer/build/limitload/src/main.py", line 1268, in <module>
    main()
  File "/home/jer/build/limitload/src/main.py", line 376, in main
    pandalog=panda_log_real_path)
  File "/home/jer/build/limitload/src/core/basestack.py", line 136, in __init__
    with_antialiasing, with_bloom)
  File "/home/jer/build/limitload/src/core/basestack.py", line 349, in _setup_window
    panda_notify.error("Cannot open the window.")
  File "/usr/share/panda3d/direct/directnotify/Notifier.py", line 131, in error
    raise exception(errorString)
StandardError: Cannot open the window.

Same whether or not I run with root.

nikolmiv commented 7 years ago

I had such problem when I was trying some settings that the graphics card driver did not support. Which graphics card do you have? Try copying config/config.ini.default to ~/.config/limload/config.ini and in it playing with stuff in [video] section. Like, setting full-screen to false, multi-sampling-antialiasing to 0, or anisotropic-filtering to 0.

ijustlovemath commented 7 years ago

Okay, so it looks like it's loading now, woohoo! The response is godawful slow, something like 10-20s from mouse move to reaction. I'm using Intel HD 4000, inside a Virtualbox VM, but I never really expected it to run smoothly. I just wanted to get a working binary for a friend, as the binary on the website fails to load. I can't see myself being able to test if the actual game plays until I tweak the VM settings, but I think I can handle it from here. Will reopen if I have any problems. Thanks for all of your help!