Page 1 of 1
[Solved] Install CEED on ubuntu. Problems with PyCEGUI
Posted: Fri Mar 20, 2015 20:38
by nao
Hi.
I trying to install CEED/CEGUI on ubuntu but I get a sigfault. Here my steps:
Read
http://cegui.org.uk/wiki/CEED. After that I did:
Code: Select all
hg clone https://bitbucket.org/cegui/cegui
hg clone https://bitbucket.org/cegui/ceed
cd ceed
hg update v0-8
cd ../
cd cegui
hg update v0-8
cd ../
mkdir cegui/build
cd cegui/build
cmake -DCEGUI_BUILD_PYTHON_MODULES=ON -DCEGUI_BUILD_RENDERER_OPENGL=ON -DCEGUI_BUILD_RENDERER_OPENGL3=ON ../
And then:
Code: Select all
cd ../ceed
cd bin
./runwrapper.sh
./ceed-gui
It doesn't works because of the cd .., so I did:
Code: Select all
cd ../../ceed
cd bin
./runwrapper.sh
./ceed-gui
Still doesn't work so I tried a little bit more I went to the folder cegui/build previously created and i did "make".
Then I tried again but I got:
/usr/lib/python2.7/dist-packages/cegui-0.8
Following problems found:
PyCEGUI package is missing! PyCEGUI provides Python bindings for CEGUI, the library this editor edits assets for, see cegui.org.uk. (exception: No module named PyCEGUI)
Your environment doesn't meet critical prerequisites! Can't start!
After that I edited the runwrapper.sh and I changed
Code: Select all
CEGUI_BUILD_PATH="$PARENT_DIR/../../cegui-v0-8"
by
Code: Select all
CEGUI_BUILD_PATH="$PARENT_DIR/../../cegui"
And then I get the segment fault. I had a look at prerequisites.py and it's just when it try to do __import__("PyCEGUI")
I have read the followings links but without success
, any ideas?
http://cegui.org.uk/wiki/CEEDviewtopic.php?f=15&t=5566viewtopic.php?f=15&t=6862viewtopic.php?f=15&t=6932https://bitbucket.org/cegui/ceguiPS.1: I'm on ubuntu 14.04 32bits with these dependences:
Code: Select all
cmake python-opengl pyside-tools libboost-python-dev libboost-python1.54.0 libboost-python1.54-dev
there isn't
on my system.
PS.2: I don't get any error after cmake or make.
PS.3: If I don't change the runwrapper.sh and i put PyCEGUI.so in the same folder as ceed-gui, I get the same segment fault.
Thanks.
Re: Install CEED on ubuntu. Problems with PyCEGUI
Posted: Fri Mar 20, 2015 20:44
by lucebac
You need to call 'make' after you called CMake:
Code: Select all
[...]
mkdir cegui/build
cd cegui/build
cmake -DCEGUI_BUILD_PYTHON_MODULES=ON -DCEGUI_BUILD_RENDERER_OPENGL=ON -DCEGUI_BUILD_RENDERER_OPENGL3=ON ../
make -j4
[...]
Re: Install CEED on ubuntu. Problems with PyCEGUI
Posted: Fri Mar 20, 2015 22:52
by nao
Thank you lucebac but actually I did it.
Still doesn't work so I tried a little bit more I went to the folder cegui/build previously created and i did "make".
My post is so long and maybe you didn't notice it. the only difference is that I used make instead of make -j4
Re: Install CEED on ubuntu. Problems with PyCEGUI
Posted: Sat Mar 21, 2015 08:17
by TheSHEEEP
The make "-jX" command is just a command to allow parallel building.
-j4, for example will use 4 threads for that. Makes building a lot faster.
And using only "-j" will allow the building to use as many threads as it wants (not sure what is the limit there), which can really slow down your machine.
Re: Install CEED on ubuntu. Problems with PyCEGUI
Posted: Sat Mar 21, 2015 09:37
by dermont
Do you have python3 installed? There is a well known issue with CMake/FindPython finding the wrong python paths it happens to me on Ubuntu. It shouldn't seg fault but you never know.
If so did you check that you that the build is not picking up the wrong version of python? Go to the /cegui/build dir and either double click on CMakeCache.txt and check via the cmage-gui or open CMakeCache.txt and check the paths for PYTHON_INCLUDE_DIR etc. You can pass the correct paths via the command line as per one of the links you provided.
Otherwise got to the cegui/build/lib dir and see if you can import the modules manually.
Python 2.7.8 (default, Oct 20 2014, 15:05:19)
[GCC 4.9.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyCEGUI
>>> import PyCEGUIOpenGLRenderer
Re: Install CEED on ubuntu. Problems with PyCEGUI
Posted: Sat Mar 21, 2015 11:50
by nao
Hi. No, I don't have python 3 but after trying to import manually a get:
Code: Select all
Python 2.7.6 (default, Mar 22 2014, 22:59:38)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyCEGUI
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: ./PyCEGUI.so: undefined symbol: _ZTIN5boost6python15instance_holderE
>>> import PyCEGUIOpenGLRenderer
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: ./PyCEGUIOpenGLRenderer.so: undefined symbol: _ZTIN5boost6python15instance_holderE
I guess that's a problem with boost. I started again so see if there is something missing. I see two lines related to boost. What do you think?:
Code: Select all
cmake -DCEGUI_BUILD_PYTHON_MODULES=ON -DCEGUI_BUILD_RENDERER_OPENGL=ON -DCEGUI_BUILD_RENDERER_OPENGL3=ON ../
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PCRE: /usr/lib/i386-linux-gnu/libpcre.so
-- Found FREETYPE: /usr/lib/i386-linux-gnu/libfreetype.so
-- Could NOT find MINIZIP (missing: MINIZIP_LIB MINIZIP_H_PATH)
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- checking for module 'fribidi'
-- package 'fribidi' not found
-- Could NOT find FRIBIDI (missing: FRIBIDI_FOUND_ALL_LIBS FRIBIDI_INCLUDE_DIR)
-- Looking for iconv
-- Looking for iconv - found
-- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/i386-linux-gnu/libX11.so
-- Found OpenGL: /usr/lib/i386-linux-gnu/libGL.so
-- Found GLEW: /usr/lib/i386-linux-gnu/libGLEW.so
-- Found GLM: /usr/include
-- Could NOT find GLFW (missing: GLFW_LIB GLFW_H_PATH)
-- Could NOT find DIRECTXSDK (missing: DIRECTXSDK_LIB_PATH DIRECTXSDK_H_PATH DIRECTXSDK_MAX_D3D)
-- Could NOT find D3DX11EFFECTS (missing: D3DX11EFFECTS_LIB D3DX11EFFECTS_H_PATH)
-- Could NOT find IRRLICHT (missing: IRRLICHT_LIB IRRLICHT_H_PATH)
-- Found OGRE: /usr/lib/i386-linux-gnu/libOgreMain.so
-- Boost version: 1.54.0
-- Found the following Boost libraries:
-- thread
-- system
-- Found OIS: /usr/lib/i386-linux-gnu/libOIS.so
-- Could NOT find DIRECTFB (missing: DIRECTFB_LIB DIRECTFB_H_PATH)
-- Could NOT find OPENGLES (missing: OPENGLES_LIB OPENGLES_H_PATH)
-- Found EXPAT: /usr/lib/i386-linux-gnu/libexpat.so
-- Found XERCESC: /usr/lib/i386-linux-gnu/libxerces-c.so
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
-- Could NOT find TINYXML (missing: TINYXML_LIB TINYXML_H_PATH)
-- Could NOT find RAPIDXML (missing: RAPIDXML_H_PATH)
-- Found IL: /usr/lib/i386-linux-gnu/libIL.so
-- Found ILU: /usr/lib/i386-linux-gnu/libILU.so
-- Found FREEIMAGE: /usr/lib/libfreeimage.so
-- Could NOT find SILLY (missing: SILLY_LIB SILLY_H_PATH)
-- Could NOT find CORONA (missing: CORONA_LIB CORONA_H_PATH)
-- Could NOT find PVRTOOLS (missing: PVRTOOLS_LIB PVRTOOLS_H_PATH)
-- Found LUA51: /usr/lib/i386-linux-gnu/liblua5.1.so
-- Could NOT find TOLUAPP (missing: TOLUAPP_LIB TOLUAPP_H_PATH)
-- Found PythonInterp: /usr/bin/python (found version "2.7.6")
-- Found PythonLibs: /usr/lib/i386-linux-gnu/libpython2.7.so (found version "2.7.6")
-- Could NOT find Boost
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.6")
-- Some or all of the gtk libraries were not found. (missing: GTK2_GTK_LIBRARY GTK2_GTK_INCLUDE_DIR GTK2_GDK_INCLUDE_DIR GTK2_GDKCONFIG_INCLUDE_DIR GTK2_GDK_LIBRARY)
-- Info: The OpenGL- and/or OpenGL3 Renderers are disabled in the SampleBrowser because of missing dependencies (GLFW library). Please add the GFLW dependency and run 'Configure' in CMake again, in case you want to run the SampleBrowser using the OpenGL or OpenGL3 Renderers.
-- Configuring done
-- Generating done
-- Build files have been written to:
If I edited the file CMakeCache.txt I see this line:
Code: Select all
//The directory containing a CMake configuration file for Boost.
Boost_DIR:PATH=Boost_DIR-NOTFOUND
Re: Install CEED on ubuntu. Problems with PyCEGUI
Posted: Sat Mar 21, 2015 12:23
by dermont
It looks like boost python developers package isn't installed. I just looked at your commands again you should be running apt not cmake and install libglfw-dev as well you may need that to ensure the OpenGL module is built and the OpenGL demos run.
Code: Select all
###cmake python-opengl pyside-tools libboost-python-dev libboost-python1.54.0 libboost-python1.54-dev
sudo apt-get install python-opengl pyside-tools libboost-python-dev libboost-python1.54.0 libboost-python1.54-dev libglfw-dev
Edit: maybe also check you have the boost headers install /usr/include/boost - libboos1.54-dev.
Re: Install CEED on ubuntu. Problems with PyCEGUI
Posted: Sat Mar 21, 2015 12:46
by dermont
Also run your cmake command with boost debug to see exactly what is being searched for and post the results.
Code: Select all
cmake -DCEGUI_BUILD_PYTHON_MODULES=ON -DCEGUI_BUILD_RENDERER_OPENGL=ON -DCEGUI_BUILD_RENDERER_OPENGL3=ON -DBoost_DEBUG:BOOL=ON ../
Also double check you have libpythonX.X-dev installed for whatever version python you are running.
Edit you'll probably need libglm-dev for the OpenGL renderer and a xml parser such as libexpat1-dev / libxml2-dev / libexpat1-dev or xerces if you don't already have one installed.
Re: Install CEED on ubuntu. Problems with PyCEGUI
Posted: Sat Mar 21, 2015 15:10
by nao
When I wrote that my dependences are
Code: Select all
cmake python-opengl pyside-tools libboost-python-dev libboost-python1.54.0 libboost-python1.54-dev
I meant cmake was one of them.
I did what you said, I installed libglfw-dev and also libboost-dev. I already had libpython2.7-dev, libglm-dev, libexpat1-dev and libxerces-c-dev but not libxml2-dev
Now it seems to work. I try and then I'll let you know if everything is working.
Re: Install CEED on ubuntu. Problems with PyCEGUI
Posted: Sat Mar 21, 2015 15:57
by nao
It works!
Thank you dermont!
I mark the thread as solved.
Re: Install CEED on ubuntu. Problems with PyCEGUI
Posted: Sat Mar 21, 2015 17:08
by dermont
nao wrote:When I wrote that my dependences are
Code: Select all
cmake python-opengl pyside-tools libboost-python-dev libboost-python1.54.0 libboost-python1.54-dev
I meant cmake was one of them.
Yeah, sorry about that I didn't read your original post post properly. Anyway glad you got it sorted.