Panda for Ubuntu 12.04

Return to Compiling or Editing the Panda Source

Panda for Ubuntu 12.04

Postby PeteX » Sat May 05, 2012 10:52 am

If anyone is looking for a Panda build on Ubuntu 12.04 64-bit, you can get it from here. It includes all the optional packages except ARToolkit, VRPN, and the modules that don't allow commercial reuse. Having said that, I can't say I've tested every last corner of the build, so it's possible that some of the more obscure functionality doesn't work.

I've also put together a cheatsheet that might help other people who are trying to build Panda on Debian or Ubuntu.

I hope this helps someone!
PeteX
 
Posts: 3
Joined: Sat May 05, 2012 10:44 am

Postby coppertop » Sat May 05, 2012 11:16 am

For the record, you can well install Panda's official 11.10 (Oneiric) packages on 12.04. All you need is two 11.10 packages -- libcv2.1 and libhighgui2.1, which you can remove once the official builds are up.
User avatar
coppertop
 
Posts: 527
Joined: Sat Apr 18, 2009 5:48 am

Postby powerpup118 » Thu May 10, 2012 2:44 pm

Hi PeteX,

I wanted to say thanks for the build and the cheatsheet, I've used both and they're awesome.

One note would be that when you use make, you can specify the number of threads just like makepanda, sooo:

Code: Select all
make -j3

instead of

make

the 3 is (obviously) for the number of threads, which from what I've read number of cores +1 seems to be best.

Anywho, thank you for the cheatsheet!
~powerpup118
User avatar
powerpup118
 
Posts: 325
Joined: Sat Apr 17, 2010 11:59 pm

Postby PeteX » Sat May 12, 2012 12:09 pm

Glad it was useful and thanks for the suggestion, which I've added to the cheatsheet.
PeteX
 
Posts: 3
Joined: Sat May 05, 2012 10:44 am

Postby rigved » Mon Jun 11, 2012 10:34 am

Hi PeteX,

I want to thank you for the awesome cheatsheet. I was able to compile the sdk and the runtime as well for Ubuntu 12.04 with some help from google searches and IRC. A few things that did not work as written in the cheatsheet:

The cmake line for Bullet should be like this:
Code: Select all
cmake -DCMAKE_CXX_FLAGS="-fPIC" \
-DCMAKE_INSTALL_PREFIX=../panda3d-1.8.0/thirdparty/linux-libs-x64/bullet \
-DINCLUDE_INSTALL_DIR=../panda3d-1.8.0/thirdparty/linux-libs-x64/bullet/include/


The mistake is that you have written it as ../../panda3d-1.8.0/thirdparty/linux-libs-x64/bullet/include/ (not ../../ but ../).

Secondly, during the Bullet 'make -j3' line, I get an error:

Code: Select all
In static member function ‘static _cl_context* btOpenCLUtils::createContextFromPlatform(cl_platform_id, cl_device_type, cl_int*, void*, void*, int, int)’:
Demos/SharedOpenCL/btOpenCLUtils.cpp:125:12: error: ‘CL_GL_CONTEXT_KHR’ was not declared in this scope
Demos/SharedOpenCL/btOpenCLUtils.cpp:127:12: error: ‘CL_WGL_HDC_KHR’ was not declared in this scope


So, to solve this, in Demos/SharedOpenCL/btOpenCLUtils.cpp, I need to include CL/cl_gl.h. This can be done by removing the #ifdef _WIN32 (line 49) and the corresponding #endif //_WIN32 lines.

Also, before compiling Panda3D 1.8 on a 64-bit architecture, I needed to change 'lib64' to 'lib' in makepanda/installpanda.py (at the beginning of the file). This is not needed if you are using the sources from the CVS repository.

On a side note, to compile the panda3d runtime, I installed firefox-dev package and changed
Code: Select all
char* NP_GetMIMEDescription
in "direct/src/plugin_npapi/startup.h" and "direct/src/plugin_npapi/startup.cxx" to
Code: Select all
const char* NP_GetMIMEDescription
rigved
 
Posts: 2
Joined: Mon Jun 11, 2012 6:47 am
Location: Mumbai, Maharashtra, India

Postby PeteX » Tue Jun 12, 2012 9:35 am

Thanks for the suggestions, which I've incorporated into the cheatsheet. Please could you take a look and make sure I've done this clearly and accurately, especially with the second point. That problem didn't affect me, so it's hard to be sure I've explained it properly.

It might be worth raising a bug with the Bullet developers, because that problem doesn't seem to be anything to do with Panda. It's just that there are Linux configurations where it fails to build.
PeteX
 
Posts: 3
Joined: Sat May 05, 2012 10:44 am

Postby rigved » Wed Jun 13, 2012 2:57 am

Hi PeteX,

Yes, you have made the corrections properly. I am using the default nvdia-updates driver which ships with Ubuntu 12.04. Also, I am using bullet-2.80-rev2531, if that makes any difference. I will file a bug report with the Bullet developers.
rigved
 
Posts: 2
Joined: Mon Jun 11, 2012 6:47 am
Location: Mumbai, Maharashtra, India

32 bit deb

Postby Robvdl » Wed Jul 11, 2012 11:47 pm

I needed a 32 bit .deb of Panda 3D 1.8.0 for Ubuntu 12.04, so I built one using the instructions from PeteX.

The only thing different is that I added the fmod library as well.

I uploaded the .deb onto my dropbox if anyone wants to use it, I've tested it on Ubuntu 12.04 using the Sandybridge graphics, and everything works fine.

https://dl.dropbox.com/u/91157204/panda ... 0_i386.deb
Robvdl
 
Posts: 14
Joined: Tue Jul 13, 2010 9:01 pm
Location: Petone, New Zealand

Postby benchang » Fri Jul 20, 2012 10:54 pm

Awesome - thanks, PeteX!
User avatar
benchang
 
Posts: 202
Joined: Wed May 30, 2007 3:16 pm
Location: Troy, NY

Postby dimfish » Fri Aug 10, 2012 10:29 pm

Hi PeteX, thanks for the info. I downloaded your 12.04 x86_64 .deb and noticed this:

dpkg -I panda3d1.8_1.8.0_amd64.deb

...

Depends:
...
nvidia-current
...

This is the nvidia binary driver and I'm guessing you added it by mistake. I missed it during install and ended up without graphics drivers for a brief period. If you are still able to edit your post to reflect this or rebuild the deb without this dependency I think that would be helpful.
dimfish
 
Posts: 2
Joined: Mon Apr 16, 2012 7:06 am

Re: Panda for Ubuntu 12.04

Postby lee » Tue Apr 09, 2013 7:03 am

does anyone have the link for installing panda in ubuntu 12.10?
lee
 
Posts: 5
Joined: Fri Apr 05, 2013 12:57 pm

Re: Panda for Ubuntu 12.04

Postby bamdastard » Tue Apr 09, 2013 7:51 pm

I'm running xubuntu 12.10 and I was able to install the 12.04 binary posted above by first installing this:

https://launchpad.net/ubuntu/quantal/+p ... thon1.46.1

at first a progress par went across in the top right of the ubuntu software center as it was preparing to install and then went away. Don't be fooled like me by clicking the install button again or it will install it a second time.

nothing seemed to happen for a minute or two but then it actually started the install process.

Cheers
User avatar
bamdastard
 
Posts: 12
Joined: Thu Sep 10, 2009 3:45 pm
Location: Anchorage


Return to Compiling or Editing the Panda Source

Who is online

Users browsing this forum: Bing [Bot] and 0 guests