Difference between revisions of "Build PyCEGUI from source for Linux"

From CEGUI Wiki - Crazy Eddie's GUI System (Open Source)
Jump to: navigation, search
m
(made python version the same across code snippets)
Line 17: Line 17:
 
= Still not working? =
 
= Still not working? =
 
You can try running your program with:
 
You can try running your program with:
  PYTHONPATH="/usr/local/lib/python2.7/site-packages:$PYTHONPATH" python <file.py>
+
  PYTHONPATH="/usr/local/lib/python2.6/site-packages:$PYTHONPATH" python <file.py>
  
 
'''Note for Panda3D users'''
 
'''Note for Panda3D users'''
 
You can run your program at the same way, using:
 
You can run your program at the same way, using:
  PYTHONPATH="/usr/local/lib/python2.7/site-packages:$PYTHONPATH" ppython <file.py>
+
  PYTHONPATH="/usr/local/lib/python2.6/site-packages:$PYTHONPATH" ppython <file.py>
  
 
[[Category:HowTo]]
 
[[Category:HowTo]]

Revision as of 11:26, 10 July 2011

Written for CEGUI 0.7


Works with versions 0.7.x (obsolete)

Requires at least version
0.7.4

Ubuntu 11.04

Version shipped in repositories is 0.6.0 (as of 7th July 2011) so if we want 0.7.x we need to build it from source.

  • Install dependency packages: sudo apt-get install build-essential pkg-config python-dev libfreetype6-dev libpcre3-dev libboost-python-dev libglut3-dev libpng-dev libmng-dev libjpeg-dev libfreeimage-dev
  • Obtain a copy of CEGUI here
  • Extract to a folder
  • Before we build, we have to symlink the site-packages directory correctly, so it installs to the correct place.
sudo rmdir /usr/local/lib/python2.6/site-packages
sudo ln -s /usr/local/lib/python2.6/dist-packages/ /usr/local/lib/python2.6/site-packages
  • Build CEGUI with python support
./configure && make && sudo make install && sudo ldconfig
  • Note: On some Ubuntu systems it seems that CEGUI's configure system does not correctly detect the Python headers. To solve this, do the following:
export CXXFLAGS=-I/usr/include/python2.6
./configure && make && sudo make install && sudo ldconfig

Still not working?

You can try running your program with:

PYTHONPATH="/usr/local/lib/python2.6/site-packages:$PYTHONPATH" python <file.py>

Note for Panda3D users You can run your program at the same way, using:

PYTHONPATH="/usr/local/lib/python2.6/site-packages:$PYTHONPATH" ppython <file.py>