|
|
|
Return to Compiling or Editing the Panda Source
by Samurai336 » Tue Jan 31, 2012 2:44 pm
Hi:
I'm trying to build on Kubuntu 11.10 and I get the following error.
panda/src/downloadertools/check_adler.cxx:24:3: error: ‘Filename’ was not declared in this scope
Not sure what is up, any insight would help.
Also used command:
$python makepanda/makepanda.py --everything --no-ffmpeg
since ffmpeg would gave me compile issues.
-

Samurai336
-
- Posts: 44
- Joined: Fri Sep 16, 2011 9:09 am
- Location: Vermont
by rdb » Tue Jan 31, 2012 4:41 pm
Hi,
I've just checked in a fix for that issue. It only shows up when trying to build without zlib support. It doesn't occur often that someone wants a Panda build without zlib support, so that's why we haven't run into this issue before.
If you do want zlib support, then you should install the development package for zlib on your system (probably libz-dev or zlib1g-dev). You'll probably want to make sure that you have most of the essential libraries for basic operations in Panda3D, such as libssl-dev, libjpeg-dev, libpng-dev, libmesa-gl1-dev, libopenal-dev, libfreetype-dev etc.
-
rdb
-
- Posts: 8565
- Joined: Mon Dec 04, 2006 5:58 am
- Location: Netherlands
-
by Samurai336 » Thu Feb 02, 2012 3:26 pm
these should be all available packages in aptitude correct?
-

Samurai336
-
- Posts: 44
- Joined: Fri Sep 16, 2011 9:09 am
- Location: Vermont
by Samurai336 » Thu Feb 02, 2012 5:53 pm
also I thought I was including zlib since I didn't call --no-zlib?
-

Samurai336
-
- Posts: 44
- Joined: Fri Sep 16, 2011 9:09 am
- Location: Vermont
by rdb » Fri Feb 03, 2012 4:09 am
Sure, I guess these packages are available in your favourite package manager.
If you read the makepanda output, it'll say something at the top like "Could not find zlib library, excluding from build".
-
rdb
-
- Posts: 8565
- Joined: Mon Dec 04, 2006 5:58 am
- Location: Netherlands
-
by rectalogic » Tue Apr 24, 2012 2:32 pm
I can't get makepanda to find zlib in Ubuntu 11.10. I have zlib1g-dev installed. I had to patch makepanda.py to use pkg-config to find it, then it works.
Without zlib enabled, the build fails with:
- Code: Select all
panda/src/downloadertools/check_adler.cxx: In function 'int main(int, char**)': panda/src/downloadertools/check_adler.cxx:26:34: error: 'check_adler' was not declared in this scope
Heres' the patch: - Code: Select all
RCS file: /cvsroot/panda3d/makepanda/makepanda.py,v retrieving revision 1.508 diff -u -r1.508 makepanda.py --- makepanda/makepanda.py 30 Mar 2012 16:46:05 -0000 1.508 +++ makepanda/makepanda.py 24 Apr 2012 19:25:13 -0000 @@ -654,7 +654,7 @@ SmartPkgEnable("JPEG", "", ("jpeg"), "jpeglib.h") SmartPkgEnable("OPENSSL", "openssl", ("ssl", "crypto"), ("openssl/ssl.h", "openssl/crypto.h")) SmartPkgEnable("PNG", "libpng", ("png"), "png.h") - SmartPkgEnable("ZLIB", "", ("z"), "zlib.h") + SmartPkgEnable("ZLIB", "zlib", ("z"), "zlib.h") if (RTDIST and sys.platform == "darwin" and "PYTHONVERSION" in SDK): # Don't use the framework for the OSX rtdist build. I'm afraid it gives problems somewhere. SmartPkgEnable("PYTHON", "", SDK["PYTHONVERSION"], (SDK["PYTHONVERSION"], SDK["PYTHONVERSION"] + "/Python.h"), tool = SDK["PYTHONVERSION"] + "-config")
-
rectalogic
-
- Posts: 4
- Joined: Tue Apr 24, 2012 12:31 pm
by rdb » Wed Apr 25, 2012 6:29 am
Thanks very much! I've committed your change, it'll be in the next Panda release.
-
rdb
-
- Posts: 8565
- Joined: Mon Dec 04, 2006 5:58 am
- Location: Netherlands
-
Return to Compiling or Editing the Panda Source
Who is online
Users browsing this forum: No registered users and 0 guests
| | |