ubuntu maya2012 compiling panda3d

hey there

here it is

$ makepanda/makepanda.py --use-maya2012
WARNING: Could not locate thirdparty package eigen, excluding from build
Generating library cache…
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 ffmpeg, excluding from build
WARNING: Could not locate thirdparty package swscale, 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 freetype, excluding from build
WARNING: Could not locate thirdparty package gl, 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 openal, excluding from build
WARNING: Could not locate thirdparty package opencv, excluding from build
WARNING: Could not locate thirdparty package squish, excluding from build
WARNING: Could not locate thirdparty package tiff, excluding from build
WARNING: Could not locate thirdparty package vrpn, excluding from build
WARNING: Could not locate thirdparty package bullet, excluding from build
WARNING: Could not locate thirdparty package rocket, excluding from build
WARNING: Could not locate pkg-config package gtk±2.0, excluding from build
WARNING: Could not locate thirdparty package jpeg, excluding from build
WARNING: Could not locate thirdparty package png, excluding from build
WARNING: Could not locate thirdparty package xrandr, excluding from build
WARNING: Could not locate thirdparty package xf86dga, excluding from build
WARNING: Could not locate thirdparty package xcursor, excluding from build
Generating dependencies…
[ 45%] Linking dynamic library built/lib/libp3glstuff.so
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
Storing dependency cache.
Elapsed Time: 1 sec
The following command returned a non-zero value: g++ -shared -Wl,-soname=libp3glstuff.so.1.8 -o built/lib/libp3glstuff.so.1.8 -Lbuilt/lib -Lbuilt/tmp -L/usr/X11R6/lib built/tmp/p3glstuff_glpure.o -lpanda -lpandaexpress -lp3dtool -lp3dtoolconfig -lGL -lCg -lCgGL -pthread -ldl
Build terminated.

is it possible to compilling maya2egg2012 in the beginning so i will not need to compile all panda?

This is a bug in the build script, I guess nobody tried building without support for any graphics operations before. I’ve just checked in a fix; in the meantime, find this line in makepanda.py:

TargetAdd('libp3glstuff.dll', opts=['ADVAPI', 'GL',  'NVIDIACG', 'CGGL'])

Change it to:

TargetAdd('libp3glstuff.dll', opts=['ADVAPI'])

You cannot compile maya2egg2012 without compiling at least part of Panda3D, it makes use of various Panda modules. You’re really compiling without support for any other thirdparty modules, which I’m not sure will work. For the record, you’ll also need --use-pandatool in order to build the Maya exporters.

thanks rdb
here is another problem

$ makepanda/makepanda.py --use-maya2012
WARNING: Could not locate thirdparty package eigen, excluding from build
Generating library cache…
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 ffmpeg, excluding from build
WARNING: Could not locate thirdparty package swscale, 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 freetype, excluding from build
WARNING: Could not locate thirdparty package gl, 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 openal, excluding from build
WARNING: Could not locate thirdparty package opencv, excluding from build
WARNING: Could not locate thirdparty package squish, excluding from build
WARNING: Could not locate thirdparty package tiff, excluding from build
WARNING: Could not locate thirdparty package vrpn, excluding from build
WARNING: Could not locate thirdparty package bullet, excluding from build
WARNING: Could not locate thirdparty package rocket, excluding from build
WARNING: Could not locate pkg-config package gtk±2.0, excluding from build
WARNING: Could not locate thirdparty package jpeg, excluding from build
WARNING: Could not locate thirdparty package png, excluding from build
WARNING: Could not locate thirdparty package xrandr, excluding from build
WARNING: Could not locate thirdparty package xf86dga, excluding from build
WARNING: Could not locate thirdparty package xcursor, excluding from build
Generating dependencies…
[ 91%] Linking executable built/bin/maya2egg2012
built/lib/libpandaexpress.so: undefined reference to PyExc_ValueError' built/lib/libpandaexpress.so: undefined reference toPyString_Size’
built/lib/libp3dtoolconfig.so: undefined reference to PyObject_Call' built/lib/libpandaexpress.so: undefined reference toPyString_AsStringAndSize’
built/lib/libpandaexpress.so: undefined reference to PyExc_IndexError' built/lib/libp3dtoolconfig.so: undefined reference toPyObject_GetAttrString’
built/lib/libpandaexpress.so: undefined reference to PyObject_GenericSetAttr' built/lib/libp3dtoolconfig.so: undefined reference toPyType_IsSubtype’
built/lib/libp3dtoolconfig.so: undefined reference to PyDict_SetItem' built/lib/libpandaexpress.so: undefined reference toPyModule_AddObject’
built/lib/libpandaexpress.so: undefined reference to PyEval_RestoreThread' built/lib/libpandaexpress.so: undefined reference toPyInt_AsSsize_t’
built/lib/libp3dtool.so: undefined reference to _Py_NoneStruct' built/lib/libpandaexpress.so: undefined reference toPyExc_AttributeError’
built/lib/libpandaexpress.so: undefined reference to PyDict_SetItemString' built/lib/libp3dtoolconfig.so: undefined reference toPyList_Append’
built/lib/libpandaexpress.so: undefined reference to PyString_Type' built/lib/libpandaexpress.so: undefined reference toPyArg_ParseTupleAndKeywords’
built/lib/libpandaexpress.so: undefined reference to PyTuple_Size' built/lib/libpandaexpress.so: undefined reference toPyNumber_Long’
built/lib/libpandaexpress.so: undefined reference to PyType_GenericAlloc' built/lib/libpandaexpress.so: undefined reference toPyUnicodeUCS4_GetSize’
built/lib/libpandaexpress.so: undefined reference to PyErr_Format' built/lib/libp3dtoolconfig.so: undefined reference toPyObject_CallFunction’
built/lib/libpandaexpress.so: undefined reference to PyFloat_FromDouble' built/lib/libpandaexpress.so: undefined reference toPyString_FromString’
built/lib/libpandaexpress.so: undefined reference to PyModule_AddIntConstant' built/lib/libpandaexpress.so: undefined reference toPyLong_FromUnsignedLongLong’
built/lib/libp3dtool.so: undefined reference to Py_BuildValue' built/lib/libpandaexpress.so: undefined reference toPyErr_ExceptionMatches’
built/lib/libpandaexpress.so: undefined reference to PyCFunction_NewEx' built/lib/libp3dtool.so: undefined reference toPyList_New’
built/lib/libpandaexpress.so: undefined reference to PyUnicodeUCS4_AsWideChar' built/lib/libpandaexpress.so: undefined reference toPySequence_Check’
built/lib/libp3dtool.so: undefined reference to PyList_GetItem' built/lib/libp3dtool.so: undefined reference toPyString_FromStringAndSize’
built/lib/libpandaexpress.so: undefined reference to PyErr_Clear' built/lib/libp3dtoolconfig.so: undefined reference toPy_InitModule4_64’
built/lib/libpandaexpress.so: undefined reference to PyUnicodeUCS4_FromWideChar' built/lib/libpandaexpress.so: undefined reference toPyDict_New’
built/lib/libpandaexpress.so: undefined reference to PyErr_SetString' built/lib/libp3dtoolconfig.so: undefined reference toPyArg_ParseTuple’
built/lib/libp3dtool.so: undefined reference to PySys_GetObject' built/lib/libpandaexpress.so: undefined reference toPyLong_AsUnsignedLongLong’
built/lib/libp3dtool.so: undefined reference to PyGILState_Release' built/lib/libpandaexpress.so: undefined reference toPyExc_AssertionError’
built/lib/libpandaexpress.so: undefined reference to PyInt_AsLong' built/lib/libpandaexpress.so: undefined reference to_Py_NotImplementedStruct’
built/lib/libpandaexpress.so: undefined reference to PyObject_Free' built/lib/libpandaexpress.so: undefined reference toPyExc_TypeError’
built/lib/libpandaexpress.so: undefined reference to PyType_Ready' built/lib/libpandaexpress.so: undefined reference toPyEval_SaveThread’
built/lib/libpandaexpress.so: undefined reference to PySequence_GetItem' built/lib/libpandaexpress.so: undefined reference toPyLong_AsLongLong’
built/lib/libpandaexpress.so: undefined reference to PySequence_Size' built/lib/libpandaexpress.so: undefined reference toPyLong_FromLongLong’
built/lib/libp3dtool.so: undefined reference to PyObject_CallMethod' built/lib/libpandaexpress.so: undefined reference toPyObject_IsTrue’
built/lib/libpandaexpress.so: undefined reference to PyLong_AsUnsignedLong' built/lib/libpandaexpress.so: undefined reference toPyErr_Occurred’
built/lib/libpandaexpress.so: undefined reference to PyObject_GenericGetAttr' built/lib/libp3dtoolconfig.so: undefined reference toPyList_SetItem’
built/lib/libp3dtool.so: undefined reference to PyObject_Type' built/lib/libpandaexpress.so: undefined reference toPyDict_Size’
built/lib/libpandaexpress.so: undefined reference to PyArg_Parse' built/lib/libp3dtoolconfig.so: undefined reference toPyLong_FromUnsignedLong’
built/lib/libp3dtool.so: undefined reference to PyString_AsString' built/lib/libpandaexpress.so: undefined reference toPyInt_FromLong’
built/lib/libp3dtool.so: undefined reference to PyGILState_Ensure' built/lib/libp3dtool.so: undefined reference toPy_IsInitialized’
built/lib/libpandaexpress.so: undefined reference to `PyBool_FromLong’
collect2: ld returned 1 exit status
Storing dependency cache.
Elapsed Time: 2 sec
The following command returned a non-zero value: g++ -o built/bin/maya2egg2012 -Lbuilt/lib -Lbuilt/tmp -L/usr/X11R6/lib built/tmp/mayapath2012.o -lp3dtool -lp3dtoolconfig -lpandaexpress -pthread -ldl
Build terminated

Hmm. Can you give me the output with --verbose? Also, do you perhaps have a conflicting Panda3D version installed on your system that could interfere with the build?

sudo apt-get remove panda3d1.9

or do i need to use autoremove?

$ makepanda/makepanda.py --use-maya2012 --verbose
WARNING: Could not locate thirdparty package eigen, excluding from build
Generating library cache…
Couldn’t find library libAR
Couldn’t find header file AR/ar.h
WARNING: Could not locate thirdparty package artoolkit, excluding from build
Couldn’t find any of the libraries FColladaD, FColladaSD
Couldn’t find library libFColladaD
Couldn’t find header file FCollada.h
WARNING: Could not locate thirdparty package fcollada, excluding from build
Couldn’t find library libavformat
Couldn’t find library libavcodec
Couldn’t find library libavutil
WARNING: Could not locate thirdparty package ffmpeg, excluding from build
Couldn’t find library libswscale
Couldn’t find header file libswscale/swscale.h
WARNING: Could not locate thirdparty package swscale, excluding from build
Couldn’t find library libfftw
Couldn’t find library librfftw
Couldn’t find header file fftw.h
Couldn’t find header file rfftw.h
WARNING: Could not locate thirdparty package fftw, excluding from build
Couldn’t find library libfmodex
Couldn’t find header file fmodex/fmod.h
WARNING: Could not locate thirdparty package fmodex, excluding from build
Couldn’t find library libfreetype
Couldn’t find header file freetype2/freetype/freetype.h
WARNING: Could not locate thirdparty package freetype, excluding from build
Couldn’t find header file GL/gl.h
WARNING: Could not locate thirdparty package gl, excluding from build
Couldn’t find library libGLESv1_CM
Couldn’t find header file GLES/gl.h
WARNING: Could not locate thirdparty package gles, excluding from build
Couldn’t find library libGLESv2
Couldn’t find header file GLES2/gl2.h
WARNING: Could not locate thirdparty package gles2, excluding from build
Couldn’t find library libEGL
Couldn’t find header file EGL/egl.h
WARNING: Could not locate thirdparty package egl, excluding from build
Couldn’t find library libOSMesa
Couldn’t find header file GL/osmesa.h
WARNING: Could not locate thirdparty package osmesa, excluding from build
Couldn’t find library libode
Couldn’t find header file ode/ode.h
WARNING: Could not locate thirdparty package ode, excluding from build
Couldn’t find library libopenal
Couldn’t find header file AL/al.h
WARNING: Could not locate thirdparty package openal, excluding from build
Couldn’t find library libcv
Couldn’t find library libhighgui
Couldn’t find library libcvaux
Couldn’t find library libml
Couldn’t find library libcxcore
Couldn’t find header file opencv/cv.h
WARNING: Could not locate thirdparty package opencv, excluding from build
Couldn’t find library libsquish
Couldn’t find header file squish.h
WARNING: Could not locate thirdparty package squish, excluding from build
Couldn’t find library libtiff
Couldn’t find header file tiff.h
WARNING: Could not locate thirdparty package tiff, excluding from build
Couldn’t find library libvrpn
Couldn’t find library libquat
Couldn’t find header file quat.h
Couldn’t find header file vrpn/vrpn_Types.h
WARNING: Could not locate thirdparty package vrpn, excluding from build
Couldn’t find library libBulletSoftBody
Couldn’t find library libBulletDynamics
Couldn’t find library libBulletCollision
Couldn’t find library libLinearMath
Couldn’t find header file bullet/btBulletDynamicsCommon.h
WARNING: Could not locate thirdparty package bullet, excluding from build
Couldn’t find library libRocketCore
Couldn’t find library libRocketControls
Couldn’t find library libboost_python
Couldn’t find header file Rocket/Core.h
WARNING: Could not locate thirdparty package rocket, excluding from build
WARNING: Could not locate pkg-config package gtk±2.0, excluding from build
Couldn’t find library libjpeg
Couldn’t find header file jpeglib.h
WARNING: Could not locate thirdparty package jpeg, excluding from build
Couldn’t find library libpng
Couldn’t find header file png.h
WARNING: Could not locate thirdparty package png, excluding from build
Couldn’t find library libXrandr
Couldn’t find header file X11/extensions/Xrandr.h
WARNING: Could not locate thirdparty package xrandr, excluding from build
Couldn’t find library libXxf86dga
Couldn’t find header file X11/extensions/xf86dga.h
WARNING: Could not locate thirdparty package xf86dga, excluding from build
Couldn’t find library libXcursor
Couldn’t find header file X11/Xcursor/Xcursor.h
WARNING: Could not locate thirdparty package xcursor, excluding from build
Generating dependencies…
WARNING: file dependencies changed: [‘built/models/maps/smiley.rgb’]
WARNING: file dependencies changed: [‘built/models/maps/smiley.rgb’]
[ 91%] Linking executable built/bin/maya2egg2012
g++ -o built/bin/maya2egg2012 -Lbuilt/lib -Lbuilt/tmp -L/usr/X11R6/lib built/tmp/mayapath2012.o -lp3dtool -lp3dtoolconfig -lpandaexpress -pthread -ldl
built/lib/libpandaexpress.so: undefined reference to `PyExc_ValueError’


built/lib/libpandaexpress.so: undefined reference to PyInt_FromLong' built/lib/libp3dtool.so: undefined reference toPyGILState_Ensure’
built/lib/libp3dtool.so: undefined reference to Py_IsInitialized' built/lib/libpandaexpress.so: undefined reference toPyBool_FromLong’
collect2: ld returned 1 exit status
Process exited with exit status 1 and signal code 0
Storing dependency cache.
Elapsed Time: 1 sec
The following command returned a non-zero value: g++ -o built/bin/maya2egg2012 -Lbuilt/lib -Lbuilt/tmp -L/usr/X11R6/lib built/tmp/mayapath2012.o -lp3dtool -lp3dtoolconfig -lpandaexpress -pthread -ldl
Build terminated.

Hmm, well, it does look like part of your build was compiled with Python support and part wasn’t. Does dtool/include/dtool_config.h contain HAVE_PYTHON?

I’m not sure if the Maya exporters will work without Python support at all, though. I would advise you to rebuild cleanly with Python support, preferably the same version of Python that Maya uses.

thanks rdb
Maya exporter works ( i did not test an animation export yet)