compiling from CVS on Ubuntu 13.10

Hello,

I am quite new to compiling, maybe this is trivial.
I’m trying to compile the latest CVS source using gcc-4.8 (I also tried gcc-4.6) on Ubuntu 13.10 using “makepanda --everything --use-bullet” and got:

[ 47%] Building C++ object built/tmp/p3glxdisplay_composite1.o
In file included from panda/src/glxdisplay/glxGraphicsPipe.h:41:0,
                 from panda/src/glxdisplay/glxGraphicsBuffer.h:20,
                 from panda/src/glxdisplay/config_glxdisplay.cxx:16,
                 from panda/src/glxdisplay/p3glxdisplay_composite1.cxx:1:
panda/src/glxdisplay/panda_glxext.h:472:22: error: ISO C++ forbids declaration of ‘GLXContextID’ with no type [-fpermissive]
panda/src/glxdisplay/panda_glxext.h:472:22: error: typedef ‘GLXContextID’ is initialized (use decltype instead)
panda/src/glxdisplay/panda_glxext.h:472:25: error: ‘PFNGLXGETCONTEXTIDEXTPROC’ was not declared in this scope
panda/src/glxdisplay/panda_glxext.h:473:70: error: ‘GLXContextID’ has not been declared
Storing dependency cache.
Elapsed Time: 24 min 10 sec
The following command returned a non-zero value: g++ -ftemplate-depth-30 -fPIC -c -o built/tmp/p3glxdisplay_composite1.o -Ibuilt/tmp -Ibuilt/include -I/usr/include/python2.7 -I/usr/include/eigen3 -I/usr/include/libdrm -Ipanda/src/glxdisplay -pthread -msse2 -O2 -DBUILDING_PANDAGL panda/src/glxdisplay/p3glxdisplay_composite1.cxx

If I patch this up really quickly, soon I run into this error:

Importing code library: libp3vision
Traceback (most recent call last):
  File "direct/src/ffi/jGenPyCode.py", line 94, in <module>
    DoGenPyCode.run()
  File "/panda3d/built/direct/ffi/DoGenPyCode.py", line 305, in run
    generateNativeWrappers()
  File "/panda3d/built/direct/ffi/DoGenPyCode.py", line 258, in generateNativeWrappers
    Dtool_PreloadDLL(moduleName)
  File "/panda3d/built/direct/extensions_native/extension_native_helpers.py", line 79, in Dtool_PreloadDLL
    imp.load_dynamic(module, pathname)
ImportError: /panda3d/built/lib/libp3vision.so: undefined symbol: cvSetCaptureProperty
Storing dependency cache.
Elapsed Time: 18 min 57 sec
The following command returned a non-zero value: /usr/bin/python -B direct/src/ffi/jGenPyCode.py -r libpandaexpress libpanda libpandaphysics libpandafx libp3direct libp3vision libpandaskel libpandaegg

Maybe it is relevant what parts are not involved:

WARNING: Could not locate thirdparty package artoolkit, excluding from build
WARNING: Could not locate thirdparty package fcollada, excluding from build
WARNING: Could not locate thirdparty package swresample, excluding from build
WARNING: Could not locate thirdparty package fftw, excluding from build
WARNING: Could not locate thirdparty package fmodex, excluding from build
WARNING: Could not locate thirdparty package gles, excluding from build
WARNING: Could not locate thirdparty package gles2, excluding from build
WARNING: Could not locate thirdparty package egl, excluding from build
WARNING: Could not locate thirdparty package osmesa, excluding from build
WARNING: Could not locate thirdparty package ode, excluding from build
WARNING: Could not locate thirdparty package squish, excluding from build
WARNING: Could not locate thirdparty package vrpn, excluding from build
WARNING: Could not locate thirdparty package rocket, excluding from build
WARNING: Could not locate thirdparty package xf86dga, excluding from build

I’d appreciate any hints. BTW: I’m compiling against Bullet 2.81.

Cheers

Hi again,

I resolved above issues. I had to use both the “–no-osmesa” and the “–no-opencv” option when starting makepanda.
opencv 2.4.7 seems to have changed library names. I don’t need mesa, just had to find out it could be disabled :slight_smile:

It was built on Ubuntu 13.10 using makepanda. Bullet 2.81 works, other stuff is missing (artoolkit, osmesa, opencv etc.)

You can download this Panda3D dev-1.9 Build here:
ul.to/ualmlbhu

Hope this comes in handy,
wolfgangp