Can't compile the last cvs version

Here is the error:

[LinuxDonald@localhost panda3d]$ makepanda/makepanda.py --everything --installer
WARNING: Could not locate thirdparty package vrpn, excluding from build
Generating dependencies…
[ 7%] Building Interrogate database built/pandac/input/libexpress.in
*** Error in /usr/include/python2.6/pyconfig.h near line 8, column 2:
“Unknown word size”
Error parsing file: ‘buffer.h’
Storing dependency cache.
Elapsed Time: 2 sec

Build terminated.

Please append --verbose to the commandline options and give us the output. Pastebinning the contents of pyconfig.h would help too.

–verbose:

pastebin.com/m6a87f8a8

pyconfig.h:

#include <bits/wordsize.h>

#if __WORDSIZE == 32
#include “pyconfig-32.h”
#elif __WORDSIZE == 64
#include “pyconfig-64.h”
#else
#error “Unknown word size”
#endif

This looks to me like interrogate is simply failing to parse pyconfig.h (presumably because that file expects certain platform-specific macros to be defined).

I guess we’re globally including pyconfig.h from dtoolbase.h now? We can add pyconfig.h to the parser-inc list.

David

Yes, I’ve added an include to it in dtoolbase.h, as Python requires that pyconfig.h is included before any system headers are. The latest gcc starts complaining about that.
I forgot about the parser-inc file though. I’ve just added it. LinuxDonald, I advise updating your CVS tree by invoking “cvs up -AdP” and trying again.

Thank you :slight_smile: But i have find an bug with building an RPM on 64 Bit system that i masted fix manually because without that fix panda3d don’t work with RPM Install. I will post the bug links here when i have created it :slight_smile:

bugs.launchpad.net/panda3d/+bug/450015

Bug report.

And the Thridparty package is broken for using it with panda3d cvs version. For example it can’t find some includes because it searching in the wrong dirs.
When you will i can fix it and Upload it for you? :slight_smile:

The latest CVS version doesn’t need the thirdparty package anymore. You can just remove the thirdparty dir and install the required packages on your system.

just updated full cvs and it still requires thirdparty. double checked by deleteing the whole tree and cvs’d all again but still asks for thirdparty.
also the invalid parameter error appears after adding thirdparty.

Uh, are you sure you updated properly? Im building without a thirdparty dir for weeks now…

Absolutely sure.
I even deleted the tree and cvs all again to a new path:
makepanda\makepanda.py --everything --verbose
Elapsed Time: 0 sec
Cannot read thirdparty/win-libs-vc9/extras/bin/Microsoft.VC90.CRT.manifest
Build terminated.

I need from thirdparty this libs:

artoolkit
fcollada
fmodex
squish

But i can compile cvs version too without that thridparty libs.

Update:

I’m using Linux.

Maybe this is a windows only problem. replicated in other PC. same result.

Oh, you’re using windows. Yes, you need the thirdparty directory there. On Linux, you can use the thirdparty directory although it’s more recommended to just install the corresponding development packages on your system instead.

Tested also on ubuntu Jaunty. also asks for thirdparty
:~/panda3d/panda3d$ python makepanda/makepanda.py --everything
WARNING: Could not locate thirdparty package artoolkit, excluding from build
Couldn’t find library libFColladaUD
Couldn’t find library libFColladaD
Couldn’t find library libFColladaSUD
Couldn’t find library libFColladaSD
WARNING: Could not locate thirdparty package fcollada, 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 jpeg, excluding from build
WARNING: Could not locate thirdparty package nvidiacg, excluding from build
WARNING: Could not locate thirdparty package ode, 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 tinyxml, excluding from build
WARNING: Could not locate thirdparty package vrpn, excluding from build
ERROR: Could not locate thirdparty package cggl, aborting build
Storing dependency cache.
Elapsed Time: 0 sec

No, it just complains that you don’t have these packages installed on your system.

This should fix a lot of them:

sudo apt-get install libjpeg-dev fftw2-dev nvidia-cg-toolkit libode-dev libcv-dev libtiff-dev python-dev

As not all thirdparty packages are in the ubuntu repositories, I’ve packaged most of the rest into this PPA:
launchpad.net/~panda3d/+archive/ppa
After you’ve added that PPA to your software sources, do this:

sudo apt-get install libtinyxml-dev libsquish-dev libfcollada3.05 libfcollada-dev libvrpn-dev libquat-dev

Any problems, please let me know.

thank you very much,
sorry to bother but here it is again.
sinhematik@sinhematik1:~/panda3d/panda3d$ makepanda/makepanda.py --everything --verbose
Couldn’t find header file Cg/cgGL.h
ERROR: Could not locate thirdparty package cggl, aborting build
Storing dependency cache.
Elapsed Time: 0 sec

Build terminated.

Hm, did you install the nvidia-cg-toolkit package? If you did, is there a /usr/include/Cg directory containing the cgGL.h file?

(On a sidenote, this should be a warning, not a fatal error. I’ve just checked in a small change to CVS that should make this a warning rather than an error.)

Also, in the case that makepanda can’t locate a library while you just installed it, you might need to call “sudo ldconfig” to update your ld cache - as makepanda makes use of it, if present.