liuhui
May 16, 2012, 11:37am
1
I was going to compile panda3d 1.8 on Fedora 14.
I had installed the packages of
However, when I try to compile dtool, it shows:
Environment variable PPREMAKE_CONFIG not set; using defaults.
Generating src/dtoolutil/pandaVersion.h
Generating src/dtoolutil/checkPandaVersion.h
Generating src/dtoolutil/checkPandaVersion.cxx
Generating src/prc/prc_parameters.h
Read 18 Sources.pp files.
Generating Makefile
Configuring support for the following optional third-party packages:
Did not find Eigen linear algebra library
Did not find OpenSSL
Did not find libjpeg
Did not find libpng
Did not find libtiff
Did not find libtar
Did not find fftw
Did not find squish
Nvidia Cg High Level Shading Language
Cg OpenGL API
Did not find Cg DX8 API
Did not find Cg DX9 API
Did not find Cg DX10 API
Did not find VRPN
Did not find zlib
Did not find Miles Sound System
Did not find FMOD Ex sound library
Did not find OpenAL sound library
Did not find Ageia PhysX
Did not find SpeedTree
Did not find gtk±2
Did not find Freetype
Did not find WxWidgets
Did not find FLTK
Did not find OpenGL
Did not find OpenGL ES 1
Did not find OpenGL ES 2
Did not find DirectX8
Did not find DirectX9
Did not find X11
Did not find Mesa
Did not find OpenCV
Did not find FFMPEG
Did not find ODE
Did not find AWESOMIUM
Did not find OpenMaya
Did not find FCollada
Did not find COLLADA DOM
Did not find Assimp
Did not find ARToolKit
Did not find libRocket
…
I checked I had installed some packages of nspr, libjpeg, libpng, zlib, fmod, freetype, openssl, gtk, ffmpeg, why the compiler cannot find these packages?
rdb
May 16, 2012, 6:27pm
2
You will need the devel versions of the right packages. A (possibly incomplete?) list of packages for Fedora 14 follows:
sudo yum install python-devel bison flex libtiff-devel libpng-devel gtk2-devel openssl-devel gcc-c++ libstdc++-devel freetype-devel libjpeg-devel mesa-libOSMesa-devel libXft-devel mesa-libGL-devel mesa-libGLU-devel opencv-devel ffmpeg-devel nspr-devel xulrunner-devel ode-devel Cg openal-soft-devel fftw2-devel gtk2-devel zlib-devel libX11-devel libXxf86dga-devel libXrandr-devel
rdb:
You will need the devel versions of the right packages. A (possibly incomplete?) list of packages for Fedora 14 follows:
sudo yum install python-devel bison flex libtiff-devel libpng-devel gtk2-devel openssl-devel gcc-c++ libstdc++-devel freetype-devel libjpeg-devel mesa-libOSMesa-devel libXft-devel mesa-libGL-devel mesa-libGLU-devel opencv-devel ffmpeg-devel nspr-devel xulrunner-devel ode-devel Cg openal-soft-devel fftw2-devel gtk2-devel zlib-devel libX11-devel libXxf86dga-devel libXrandr-devel
Do you mean we should use the packages with the sources?
I will try again.
I still can not find the sources of packages below:
Did not find Eigen linear algebra library
Did not find squish
Did not find Cg DX8 API
Did not find Cg DX9 API
Did not find Cg DX10 API
Did not find VRPN
Did not find Miles Sound System
Did not find FMOD Ex sound library
Did not find Ageia PhysX
Did not find SpeedTree
Did not find gtk±2
Did not find WxWidgets
Did not find FLTK
Did not find OpenGL ES 1
Did not find OpenGL ES 2
Did not find DirectX8
Did not find DirectX9
Did not find Mesa
Did not find AWESOMIUM
Did not find OpenMaya
Did not find Assimp
Can you give us some clues?
drwr
May 17, 2012, 4:42pm
5
It is normal not to find all of these packages. Most of these on this list are not available on Linux, or are at least not standard packages. And for the most part, you don’t need them.
For instance, you can’t build (and shouldn’t expect to build) the various DirectX interfaces on Linux, because DirectX is Windows-specific.
If there’s one of these packages that you actually do need, because you are specifically looking for the functionality provided by this package, then you should investigate how to install that package on your Fedora system. But I don’t see anything on that list that you’re likely to need for normal Panda development.
David
rdb
May 17, 2012, 6:49pm
6
You might want to grab the devel package of the libGTK-2.0 package on your system (whatever it is called exactly, but I’m 100% sure it’s in the Fedora main repos), otherwise it won’t be able to build PStats correctly. Besides that, you won’t likely need most of these, as David points out.
You are right, I had met some mistake in the compiling process of ‘panda’. I will do it again and focus on main function of Panda3D first.
liuhui
May 18, 2012, 12:38pm
8
When compiling ‘panda’, error below was met (I use Chinese Language and had translated Chinese characters into English):
make[1]: 离开目录 (leave directory) “/home/liuhui/workspace/panda3d-1.8.0/panda/src/tinydisplay”
cd ./src/vision && make all
make[1]: 进入目录 (enter directory)“/home/liuhui/workspace/panda3d-1.8.0/panda/src/vision”
g++ -ftemplate-depth-30 -c -o Opt3-Linux/p3vision_p3vision_composite1.o -I. -I/home/liuhui/workspace/panda3d-1.8.0/panda -I…/audio -I…/cull -I…/display -I…/downloader -I…/event -I…/express -I…/gobj -I…/gsgbase -I…/linmath -I…/mathutil -I…/movies -I…/nativenet -I…/net -I…/pandabase -I…/parametrics -I…/pgraph -I…/pgraphnodes -I…/pipeline -I…/pnmimage -I…/pnmtext -I…/pstatclient -I…/putil -I…/text -I/usr/local/panda/include -I/usr/include/freetype2 -I/usr/include/ffmpeg -g -O2 -fPIC p3vision_composite1.cxx
In file included from config_vision.cxx:16:0,
from p3vision_composite1.cxx:2:
openCVTexture.h:23:20: 致命错误 (fatal error):cxcore.h:没有那个文件或目录 (no such file or directory)
编译中断 (interrupt the compiling)。
make[1]: *** [Opt3-Linux/p3vision_p3vision_composite1.o] 错误 1 (error 1)
make[1]: 离开目录 (leave directory)“/home/liuhui/workspace/panda3d-1.8.0/panda/src/vision”
make: *** [vision] 错误 2 (error 2)
I do not know how to handle this problem. Do you have some quick methods to continue the compiling process?
rdb
May 18, 2012, 1:41pm
9
Search for the package containing that file using yum or rpm. Probably something like libcxcore-devel.
liuhui
May 18, 2012, 3:14pm
10
When I erase opencv-devel from the packages, the compiling process finished completely.
It seems that the codes of opencv have some problems. How to fix it?
liuhui
May 18, 2012, 3:34pm
11
Really? I will try tomorrow.
It seems the code dependency of Panda3d need more explanations.
By the way, can we ppremake panda3d 1.8 in fedora 16 or above without any modification?
rdb
May 18, 2012, 5:58pm
12
I don’t know. One way to find out.
liuhui
May 19, 2012, 3:34am
13
I think it depends on Fedora. I am not familiar with the rules of ppremake.
Another question:
Does it only mean that we should install rpmbuild or dpkg-deb?
I will try after lunch.
liuhui
May 19, 2012, 4:50am
14
I meet a new problem below:
What is wrong?
liuhui
May 19, 2012, 10:13am
15
Ok, done for fedora 14.
Thanks. Further discussions for further releasing questions in the future.
rdb
May 20, 2012, 8:20am
16
You were trying to build a .deb file on Fedora. You should install rpmbuild instead of dpkg-deb in order to tell makepanda to build an .rpm instead of a .deb file.