Compiling on Kubuntu 12.04

Return to Compiling or Editing the Panda Source

Compiling on Kubuntu 12.04

Postby aeronmike » Fri May 11, 2012 10:51 am

Hi!

Well, I got Panda source code (v1.7.2) but when I try:
Code: Select all
./makepanda/makepanda.py --everything

it gives me the messages:
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 fmodex, 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 pkg-config package gtk+-2.0, 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 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 jpeg, excluding from build
WARNING: Could not locate thirdparty package openssl, excluding from build
WARNING: Could not locate thirdparty package zlib, excluding from build
WARNING: Could not locate thirdparty package python, excluding from build
WARNING: Could not locate thirdparty package xf86dga, excluding from build
WARNING: Could not locate thirdparty package xcursor, excluding from build
Storing dependency cache.
Elapsed Time: 0 sec
Could not locate bison!
Build terminated.

There is no "thirdparty" folder in this source code, neither for download (v1.7.2).

What should I do?
I've also tried
Code: Select all
./makepanda/makepanda.py --installer --everything --no-fftw --threads 2

(I have a dual core cpu)
but it gives me the same results. :(

Actually, I can find the thirdparties for download, but for another version (1.3.x).

I've also already tried to manually install these thirdparty, unsuccessfully.

I'm lost, please, help me. :(
aeronmike
 
Posts: 7
Joined: Wed May 09, 2012 6:04 am
Location: Rio de Janeiro, Brazil

Postby rdb » Sat May 12, 2012 2:40 am

You have to install the relevant packages (the one you are interested in) using your package manager, like libssl-dev, zlib1g-dev, python-dev, libjpeg-dev, libpng-dev, nvidia-cg-toolkit...
rdb
 
Posts: 9582
Joined: Mon Dec 04, 2006 5:58 am
Location: Netherlands

Postby aeronmike » Sat May 12, 2012 5:06 pm

OK.

I did a test with "jpeg".
I used
Code: Select all
sudo apt-get install libjpeg-dev

... It installed (once was not installed, of course).

Then tried "makepanda" again, and the line
WARNING: Could not locate thirdparty package jpeg, excluding from build

is still appearing. That is because it looks for the thirdparty packages from the folder, instead of the ones installed in your system, I suppose.

Even in the "makepanda" readme file, it says you must have the thirdparty folder:
Make sure you have all three pieces. If you do, then your panda
directory will contain the following subdirectories:

direct - piece 1, source code from sourceforge
dmodels - piece 1, source code from sourceforge
doc - piece 1, source code from sourceforge
dtool - piece 1, source code from sourceforge
Makefile - piece 1, source code from sourceforge
makepanda - piece 1, source code from sourceforge
models - piece 1, source code from sourceforge
panda - piece 1, source code from sourceforge
pandatool - piece 1, source code from sourceforge
ppremake - piece 1, source code from sourceforge
contrib - piece 1, source code from sourceforge
thirdparty - piece 2, third party tools
samples - piece 3, sample programs

If you have all of these, you're ready to go. If not, then you
must have missed a piece.


If you download the source version 1.7.2, you will see the "Makefile" and the "thirdparty" are missing.

Well. I got them from the complete source v1.6.2 (the last which you find those missing ones).
I'll test here and watch the results then give you a feedback.

Hope it works :!:
aeronmike
 
Posts: 7
Joined: Wed May 09, 2012 6:04 am
Location: Rio de Janeiro, Brazil

Postby rdb » Mon May 14, 2012 4:12 am

There is no "thirdparty" directory for Linux. You have to install them on your system, as I said. It looks for the packages on your system. I do not advise trying to use an outdated thirdparty directory.

As for jpeg, perhaps the package name is libjpeg62-dev?
rdb
 
Posts: 9582
Joined: Mon Dec 04, 2006 5:58 am
Location: Netherlands

Postby aeronmike » Mon May 14, 2012 5:13 pm

Well, I got the thirdparty folder from an older version as I said, and the lines warning me about each missing one were less.
I cannot post them now because my system crashed.

There is no "thirdparty" directory for Linux. You have to install them on your system, as I said. It looks for the packages on your system. I do not advise trying to use an outdated thirdparty directory.

As for jpeg, perhaps the package name is libjpeg62-dev?

I`ll test it today. Let me just finish resetting up the system.

Thanks.
aeronmike
 
Posts: 7
Joined: Wed May 09, 2012 6:04 am
Location: Rio de Janeiro, Brazil

Postby aeronmike » Mon May 14, 2012 9:56 pm

Sincerely, I DESIST from "makepanda"!

Really, you must get manually EACH thirdparty package for it!

Just to get jpeg lib, I had to find its website, find the source, download, extract, compile and FINALLY install it. Because using my built-in package manager doesn't solve it (not even through bash).

Sorry to say, but I'm very said about it. Not because I'm newbie to the Panda3D... But because it doesn't provide a complete installer since it asks you for those "missing" libraries just to fully work.

If I'm wrong (what I actually really wish) tell me, please, and explain me why I cannot simply build and install it.

Please, I need to get it running so I can learn it, for a commercial project.

I would be really thank!
And soon, I'll make sure I'm going to deploy a true automated builder|installer.

Thanks.
aeronmike
 
Posts: 7
Joined: Wed May 09, 2012 6:04 am
Location: Rio de Janeiro, Brazil

Postby benchang » Tue May 15, 2012 11:37 pm

Check the thread just below this one for a complete Ubuntu 12.04 package :)

http://www.panda3d.org/forums/viewtopic.php?t=13322
User avatar
benchang
 
Posts: 202
Joined: Wed May 30, 2007 3:16 pm
Location: Troy, NY

Postby rdb » Wed May 16, 2012 1:30 pm

It's really just a matter of installing the right packages. There is no need to compile jpeg from scratch, and doing so could actually interfere with the proper working of your system.

Since you are building an outdated version of Panda, it may be that it had an older version of makepanda that was not yet able to pick up the newer ubuntu jpeg package correctly.
rdb
 
Posts: 9582
Joined: Mon Dec 04, 2006 5:58 am
Location: Netherlands

Postby aeronmike » Tue May 22, 2012 1:33 am

Ok. Thank you all for the help.
And, of course, sorry for my "upset behavior".
That's because I crashed my system (As rdb said above, just by trying to compile them from scratch).

Actually I migrated to Fedora distro (I'm not sorry for that, fortunately).

Anyway, the 1.7.2 version does not provide me the RPM package, so, whatever... I'll have to hunt these thirdparty libraries anyway. LOL

But this time I'll be careful.

As the topic is about Kubuntu 12.04, and now I'm no longer using it, I think I may say I'm done here. :)

But anyway, I'll give you a feedback soon, right here, just for you to know what I had to do to get it working. :P

Thanks.
aeronmike
 
Posts: 7
Joined: Wed May 09, 2012 6:04 am
Location: Rio de Janeiro, Brazil

Postby paddyg » Thu May 31, 2012 2:17 pm

I am trying to compile panda3d for(on) the raspberry pi. I have been using it on ubuntu on a laptop for a short while and am impressed (easy to install works very well).

However on the raspberry pi I get these same thirdparty package warnings. I am compiling with makepanda.py --nothing --use-png --use-jpeg --use-python

when I got the warning I tried sudo apt-get install jpeg
etc which seemed to install ok though for python it told me that I already had the latest version.

makepanda.py gives the same warnings.

I then noticed that you (rdb) suggested that jpeg implies the installation of libjpeg62-dev or suchlike!!!

The link does not seem obvious to me and I can't find any information in the documents or online.

Could you point me in the right direction? Maybe something in the INSTALL-MK would be a good idea. It says you don't really need the thirdparty things for linux but that otherwise download the thirdparty stuff (which I thought might have some clues to help match jpeg=libjpeg62-dec etc) from "Panda3D source, piecewise, 3 of 3" however this doesn't seem to match anything on the panda website any more.

Thanks
paddyg
 
Posts: 2
Joined: Thu May 31, 2012 1:59 pm

Postby rdb » Fri Jun 01, 2012 10:25 am

You'd need to install the -dev packages, such as python-dev. Some packages (like libmesa-gles1-dev) are a bit trickier to figure out, but still easy by running makepanda with the --verbose flag and checking which files are missing, and then using "apt-file" to find which package has that file.
rdb
 
Posts: 9582
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: Yahoo [Bot] and 0 guests