flt2egg fails on LinuxPPC

Return to Compiling or Editing the Panda Source

flt2egg fails on LinuxPPC

Postby Arne » Mon Jun 06, 2005 1:00 pm

Hello,

I try to compile Panda with the following command line:

Code: Select all
./makepanda/./makepanda.py --everything --no-nspr --no-vrpn --no-fmod --no-nvidiacg --no-fftw


on Ubuntu-Linux PPC.

However it fails with the following error:

Code: Select all
built/bin/flt2egg -pr ../= -o built/tmp/tmp.egg dmodels/src/gui/dialog_box_gui.flt

Reading dmodels/src/gui/dialog_box_gui.flt
Assertion failed: reader.get_opcode() == FO_header at line 1238 of pandatool/src/flt/fltHeader.cxx
Could not extract record for FltHeader db
Unable to read: invalid record


Any ideas what is going on?


Thanks,
Arne
Arne
 

Postby drwr » Mon Jun 06, 2005 2:48 pm

Is the PPC chip a big-endian architecture? I'll bet that makepanda didn't correctly configure Panda to build with big-endian support.

If the PPC is indeed big-endian, one easy hack is to modify makepanda.py. Look for a line like this:
Code: Select all
    ("WORDS_BIGENDIAN",                'UNDEF',     'UNDEF'),

And replace it with:
Code: Select all
    ("WORDS_BIGENDIAN",                '1',             '1'),

Then make a clean build.

David
drwr
 
Posts: 11253
Joined: Fri Feb 13, 2004 12:42 pm
Location: Glendale, CA

Postby Guest » Tue Jun 07, 2005 1:53 am

drwr wrote:Then make a clean build.


It may sound silly but how do I make "clean" with makepanda.py?
Code: Select all
makepanda.py clean
does not seem to do the trick :-/

For the moment I rely on the dependency tracking that everything is rebuilt correctly ;-)
Guest
 

Postby Arne » Tue Jun 07, 2005 3:59 am

David,

Thank you very much for your help! Now it builds fine and it works!

/Arne
Arne
 

xyz.

Postby Josh Yelon » Wed Jun 08, 2005 1:11 pm

I'm glad the dependency checking worked.

To make a clean build, just remove the 'built' directory.
Josh Yelon, Teacher, Carnegie Mellon Entertainment Technology Center
Josh Yelon
 
Posts: 1360
Joined: Wed Mar 30, 2005 8:30 pm


Return to Compiling or Editing the Panda Source

Who is online

Users browsing this forum: No registered users and 0 guests