Closed ijustlovemath closed 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?
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
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?
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 .
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
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)?
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
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.
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.
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.
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!
Xubuntu 16.04. Panda3d built successfully and installed with dpkg -i, including the patch files.
Here's my build_setup:
Here's my makelog: