PyOgre Install errors

track07

26-10-2012 15:31:06

I had alot of problems installing pyogre but everything was resolved until now when i do not know what to do:

Everything was fine(no errors on installing with commands from wiki) until I went open Demo_Grass.py and I had an error.I read a post from this forum and I gave this command in terminal

sudo python python-ogre/BuildModule.py -g -c ogre
and i had an BIG error in log.out.

This is log.out( I don't know what to do from here :( )

10-26 17:22 PythonOgre.BuildModule INFO Building Source code for ogre
10-26 17:22 PythonOgre.BuildModule DEBUG Spawning 'python generate_code.py' in '/home/track07/dev/python-ogre/code_generators/ogre'
10-26 17:22 PythonOgre.BuildModule WARNING Task Failed
10-26 17:22 PythonOgre.BuildModule DEBUG
10-26 17:22 PythonOgre.BuildModule DEBUG Traceback (most recent call last):
File "generate_code.py", line 1713, in <module>
generate_code()
File "generate_code.py", line 1448, in generate_code
, cflags=environment.ogre.cflags
File "/usr/local/lib/python2.6/dist-packages/pyplusplus/module_builder/boost_python_builder.py", line 95, in __init__
, indexing_suite_version)
File "/usr/local/lib/python2.6/dist-packages/pyplusplus/module_builder/boost_python_builder.py", line 138, in __parse_declarations
decls = reader.read_files( files, compilation_mode )
File "/usr/local/lib/python2.6/dist-packages/pygccxml/parser/project_reader.py", line 217, in read_files
return self.__parse_file_by_file(files)
File "/usr/local/lib/python2.6/dist-packages/pygccxml/parser/project_reader.py", line 238, in __parse_file_by_file
, self.__decl_factory )
File "/usr/local/lib/python2.6/dist-packages/pygccxml/parser/source_reader.py", line 88, in __init__
self.__config.raise_on_wrong_settings()
File "/usr/local/lib/python2.6/dist-packages/pygccxml/parser/config.py", line 173, in raise_on_wrong_settings
super( gccxml_configuration_t, self ).raise_on_wrong_settings()
File "/usr/local/lib/python2.6/dist-packages/pygccxml/parser/config.py", line 113, in raise_on_wrong_settings
, self.include_paths )
File "/usr/local/lib/python2.6/dist-packages/pygccxml/parser/config.py", line 112, in <lambda>
map( lambda idir: self.__ensure_dir_exists( idir, 'include directory' )
File "/usr/local/lib/python2.6/dist-packages/pygccxml/parser/config.py", line 104, in __ensure_dir_exists
raise RuntimeError( '%s("%s") does not exist!' % ( meaning, dir_path ) )
RuntimeError: include directory("/home/track07/dev/root/usr/include/boost") does not exist!

10-26 17:22 PythonOgre.BuildModule INFO Compiling Source code for ogre
10-26 17:22 PythonOgre.BuildModule DEBUG Spawning 'scons -j1



and this is the error when i try python Demo_Grass.py
File "Demo_Grass.py", line 32, in <module>
import ogre.renderer.OGRE as ogre
File "/usr/local/lib/python2.6/dist-packages/ogre/renderer/OGRE/__init__.py", line 10, in <module>
from _ogre_ import *
ImportError: dynamic module does not define init function (init_ogre_)

skorpio

27-10-2012 17:22:24

Hello,

Here are my 2 cents:
you have not installed ogre successfully that is why the demos will not run. I have struggled with installation myself.
I have been able to install python-ogre sometimes. The information in the wiki page is pretty old so I clean the steps, see below
Also, you should probably using python 2.7 before trying again.

you can download the shell scripts here.
https://bitbucket.org/wxogre_linux/scre ... 3d06dc53f6

Also here, although not all the demos work for me, however this will install the basic ogre stuff you need to write your own stuff.
Good luck




#echo "_________________________________________________________________________________________________________________"
#echo "STEP 1. Installing Packages"
#echo "_________________________________________________________________________________________________________________"

sudo apt-get install subversion
sudo apt-get install cvs
sudo apt-get install scons
sudo apt-get install cmake
sudo apt-get install gccxml
sudo apt-get install python-pygccxml
sudo apt-get install nvidia-cg-toolkit

sudo apt-get install libxaw7-dev
sudo apt-get install libxxf86vm-dev
sudo apt-get install libxrandr-dev
sudo apt-get install libxt-dev
sudo apt-get install libglew1.6-dev
sudo apt-get install libboost1.48-dev
sudo apt-get install freeglut3-dev
sudo apt-get install libcg
sudo apt-get install libboost-thread1.48-dev
sudo apt-get install libboost-python1.48-dev
sudo apt-get install libboost-date-time1.48-dev
sudo apt-get install libfreeimage-dev
sudo apt-get install libfreeimage3
sudo apt-get install libzzip-dev
sudo apt-get install libfreetype6-dev
sudo apt-get install libpcre3-dev
sudo apt-get install python-dev
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libx11-dev


#echo
#echo "_________________________________________________________________________________________________________________"
#echo "STEP 2. Getting python-ogre Trunk"
#echo "_________________________________________________________________________________________________________________"

svn co https://python-ogre.svn.sourceforge.net ... ython-ogre python-ogre


#echo
#echo "_________________________________________________________________________________________________________________"
#echo "STEP 3. Installing Packages from /python-ogre/scripts"
#echo "_________________________________________________________________________________________________________________"
#echo

ln -s python-ogre/scripts/00-PreReqs.sh
sh ./00-PreReqs.sh


#echo "_________________________________________________________________________________________________________________"
#echo
#echo "modify file: python-ogre/scripts/00-PreReqs.sh"
#echo "modify python-ogre/environment.py line at ~1877, comment out: #moduleLibs = [ os.path.join(Config.PATH_LIB_hydrax, 'Hydrax')]"
#echo "_________________________________________________________________________________________________________________"
#echo
#echo


#echo "_________________________________________________________________________________________________________________"
#echo "STEP 4a. Installing py++ "
#echo "_________________________________________________________________________________________________________________"

python python-ogre/BuildModule.py -r pyplusplus
python python-ogre/BuildModule.py -b pyplusplus --usesystem
cd pyplusplus/
sudo python setup.py install
cd ..


#echo
#echo "_________________________________________________________________________________________________________________"
#echo "STEP 4b. Installing pygccxml"
#echo "_________________________________________________________________________________________________________________"

python python-ogre/BuildModule.py -r pygccxml
python python-ogre/BuildModule.py -b pygccxml --usesystem
cd pygccxml/
sudo python setup.py install
cd ..

#echo
#echo "_________________________________________________________________________________________________________________"
#echo "STEP 4c. Installing cg"
#echo "_________________________________________________________________________________________________________________"

python python-ogre/BuildModule.py -r cg
python python-ogre/BuildModule.py -b cg --usesystem
sudo python setup.py install
cd ..


#echo
#echo "_________________________________________________________________________________________________________________"
#echo "STEP 5 Installing ogre"
#echo "_________________________________________________________________________________________________________________"

python python-ogre/BuildModule.py -r ogre
python python-ogre/BuildModule.py -b ogre --usesystem
python python-ogre/BuildModule.py -g -c ogre --usesystem
python python-ogre/BuildModule.py -b install

python python-ogre/BuildModule.py -r ois
python python-ogre/BuildModule.py -b ois --usesystem
python python-ogre/BuildModule.py -g -c ois --usesystem
python python-ogre/BuildModule.py -b install

python python-ogre/BuildModule.py -r caelum
python python-ogre/BuildModule.py -b caelum --usesystem
python python-ogre/BuildModule.py -g -c caelum --usesystem
python python-ogre/BuildModule.py -b install

cd python-ogre
sudo python setup.py install
cd ..

IchUndNichtDu

08-11-2012 12:56:24

I have installed ogre like you said and the demos don't work and return this error:
sven@sven-VirtualBox:~/Ogre/python-ogre/demos/ogre$ python Demo_Basic.py
Traceback (most recent call last):
File "Demo_Basic.py", line 19, in <module>
import ogre.renderer.OGRE as ogre
File "/usr/local/lib/python2.7/dist-packages/ogre/renderer/OGRE/__init__.py", line 10, in <module>
from _ogre_ import *
ImportError: No module named _ogre_


There was one error while the installation:
the installation can't cd to python-ogre but i have done alls step's after this error manually

dermont

20-11-2012 15:34:35

I have installed ogre like you said and the demos don't work and return this error:
sven@sven-VirtualBox:~/Ogre/python-ogre/demos/ogre$ python Demo_Basic.py
Traceback (most recent call last):
File "Demo_Basic.py", line 19, in <module>
import ogre.renderer.OGRE as ogre
File "/usr/local/lib/python2.7/dist-packages/ogre/renderer/OGRE/__init__.py", line 10, in <module>
from _ogre_ import *
ImportError: No module named _ogre_
sven@sven-VirtualBox:~/Ogre/python-ogre/demos/ogre$ python Demo_Basic.py
Traceback (most recent call last):
File "Demo_Basic.py", line 19, in <module>
import ogre.renderer.OGRE as ogre
File "/usr/local/lib/python2.7/dist-packages/ogre/renderer/OGRE/__init__.py", line 10, in <module>
from _ogre_ import *
ImportError: No module named _ogre_
sven@sven-VirtualBox:~/Ogre/python-ogre/demos/ogre$


There was one error while the installation:
the installation can't cd to python-ogre but i have done alls step's after this error manually


I haven't gone through the build steps above but it looks as the ogre module hasn't been built, it would have been installed as:
/usr/local/lib/python2.7/dist-packages/ogre/renderer/OGRE/_ogre_.so

a) Try generating the ogre module wrapper code and check log.out for any errors:
python python-ogre/BuildModule.py -g ogre --usesystem

b) Try compiling the ogre module wrapper and check log.out for any errors:
python python-ogre/BuildModule.py -c ogre --usesystem

(a) should take about 10 mins, (b) will take anywhere between 4 and 8 hours. Post a link to your first log.out file that reports error/failure so we can see where the error occurs.

IchUndNichtDu

20-11-2012 16:41:38

thanks for the answer. I tried not yet but i will.

IchUndNichtDu

21-11-2012 07:58:28

I tried to generate the ogre module but then appears a message "Task failed"
then i tried to redo the hole installation and looking for any errors
then appear this error:
sven@sven-VirtualBox:~/development$ sh ./00-PreReqs.sh
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Statusinformationen werden eingelesen... Fertig
Hinweis: »libglew1.6-dev« wird an Stelle von »libglew-dev« gewählt
Paket bjam ist nicht verfügbar, wird aber von einem anderen Paket
referenziert. Das kann heißen, dass das Paket fehlt, dass es abgelöst
wurde oder nur aus einer anderen Quelle verfügbar ist.
Doch die folgenden Pakete ersetzen es:
libboost1.48-dev libboost1.46-dev

Paket libglut3-dev ist nicht verfügbar, wird aber von einem anderen Paket
referenziert. Das kann heißen, dass das Paket fehlt, dass es abgelöst
wurde oder nur aus einer anderen Quelle verfügbar ist.

E: Paket »libglut3-dev« hat keinen Installationskandidaten (E: Paket »libglut3-dev« have no installation candidate)
E: Paket »bjam« hat keinen Installationskandidaten (E: Paket »bjam« have no installation candidate)
sven@sven-VirtualBox:~/development$

dermont

21-11-2012 09:01:59

There appears to be quite a bit of duplication between the sudo apt-get installs and 00-PreReqs.sh. Nevertheless the following link should help.

viewtopic.php?f=3&t=29564

Just remove or comment out bjam/libglut3-dev in scripts/00-PreReqs.sh.

IchUndNichtDu

21-11-2012 10:42:25

Thanks for the link. Sorry for not looking for it myself.
Now i have another problem:
sven@sven-VirtualBox:~/development$ python python-ogre/BuildModule.py -r pyplusplus
PythonOgre.BuildModule: INFO Retrieving co http://pygccxml.svn.sourceforge.net/svn ... usplus_dev pyplusplus
sven@sven-VirtualBox:~/development$ python python-ogre/BuildModule.py -b pyplusplus --usesystem
Traceback (most recent call last):
File "python-ogre/BuildModule.py", line 9, in <module>
import environment
File "/home/sven/development/python-ogre/environment.py", line 1858, in <module>
class hydrax(pymodule):
File "/home/sven/development/python-ogre/environment.py", line 1877, in hydrax
moduleLibs = [ os.path.join(Config.PATH_LIB_hydrax, 'Hydrax')]
AttributeError: 'module' object has no attribute 'PATH_LIB_hydrax'
sven@sven-VirtualBox:~/development$

dermont

21-11-2012 11:20:50

I think you missed the part from skorpio's instructions regarding modifying environment.py for the Hydrax module.

#echo "modify python-ogre/environment.py line at ~1877, comment out: #moduleLibs = [ os.path.join(Config.PATH_LIB_hydrax, 'Hydrax')]"

IchUndNichtDu

21-11-2012 12:45:30

oh i idn't noticed this steps.
no i have another problem (again :roll: ):
sven@sven-VirtualBox:~/development$ python python-ogre/BuildModule.py -g -c ogre --usesystem
PythonOgre.BuildModule: INFO Building Source code for ogre
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Compiling Source code for ogre
PythonOgre.BuildModule: WARNING Task Failed
sven@sven-VirtualBox:~/development$

in the log.out file are on the end this errors:
PythonOgre : INFO Included: RenderOperation
PythonOgre : INFO Included: VertexBoneAssignment_s
PythonOgre : INFO Included: MaterialPtr
Traceback (most recent call last):
File "generate_code.py", line 1484, in <module>
generate_code()
File "generate_code.py", line 1353, in generate_code
common_utils.addDetailVersion ( mb, environment, environment.ogre )
File "../common_utils/__init__.py", line 143, in addDetailVersion
s = getSVNVersion( env )
File "../common_utils/__init__.py", line 116, in getSVNVersion
process = subprocess.Popen (cmd, shell=True,stdout=subprocess.PIPE, stderr=subprocess.PIPE )
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1143, in _execute_child
self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory

11-21 13:35 PythonOgre.BuildModule INFO Compiling Source code for ogre
11-21 13:35 PythonOgre.BuildModule DEBUG Spawning 'scons -j1 PROJECTS=ogre' in '/home/sven/development/python-ogre'
11-21 13:35 PythonOgre.BuildModule WARNING Task Failed
11-21 13:35 PythonOgre.BuildModule DEBUG scons: Reading SConscript files ...
SCONS: Building ogre
WARNING: Over-Writing /home/sven/development/python-ogre/generated/ogre_1.7.2/SConscript as it already exists
scons: done reading SConscript files.
scons: Building targets ...
gcc -o build_dir_2.7/ogre_1.7.2/ogre.so `pkg-config --libs OGRE` -lstdc++ -shared -Wl,-rpath=\/../../lib -L/usr/lib -L/usr/lib/python2.7/libs -lboost_python -lOgreMain -lOgreProperty
scons: building terminated because of errors.

11-21 13:35 PythonOgre.BuildModule DEBUG
scons: warning: BuildDir() and the build_dir keyword have been deprecated;
use VariantDir() and the variant_dir keyword instead.
File "/home/sven/development/python-ogre/SConstruct", line 228, in <module>
/usr/bin/ld: cannot find -lboost_python
collect2: ld gab 1 als Ende-Status zurück
scons: *** [build_dir_2.7/ogre_1.7.2/ogre.so] Error 1

dermont

21-11-2012 13:28:10

It looks like the build is failing at the generator/wrapper stage "-g" due to insufficient memory?

How much memory do you have? What distro are you building on?

Are you building on a Virtual Machine and if so?
viewtopic.php?f=3&t=7134&start=195

The compile stage "-c" will require way more memory than the generator/wrapper stage.


The second part of the error, did you install boost-python?
<< sudo apt-get install libboost-python1.48-dev

If so what are the names of the libraries installed, e.g ls /usr/lib/*boost_python*. Have you run sudo ldconfig to (re)generate the library cache?

Once you have these issues fixed you can run the -g -c ogre step again.

IchUndNichtDu

22-11-2012 14:41:02

The installation of ogre works fine now. I runned it in an VM with only 512MB memory now it works.
But now i have another probelm...
on the installation of ois appears this error:
sven@ubuntu:~/ogre$ python python-ogre/BuildModule.py -b ois --usesystem
PythonOgre.BuildModule: INFO Build Command ./bootstrap
PythonOgre.BuildModule: INFO Build Command ./configure --prefix=/usr --includedir=/usr/include
PythonOgre.BuildModule: INFO Build Command make
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Build Command sudo make install
[sudo] password for sven:
PythonOgre.BuildModule: WARNING Task Failed
sven@ubuntu:~/ogre$


here my log.out file:
11-22 16:02 PythonOgre.BuildModule INFO Build Command ./bootstrap
11-22 16:02 PythonOgre.BuildModule DEBUG Spawning './bootstrap' in '/home/sven/ogre/ois'
11-22 16:02 PythonOgre.BuildModule INFO Build Command ./configure --prefix=/usr --includedir=/usr/include
11-22 16:02 PythonOgre.BuildModule DEBUG Spawning './configure --prefix=/usr --includedir=/usr/include' in '/home/sven/ogre/ois'
11-22 16:02 PythonOgre.BuildModule INFO Build Command make
11-22 16:02 PythonOgre.BuildModule DEBUG Spawning 'make' in '/home/sven/ogre/ois'
11-22 16:02 PythonOgre.BuildModule WARNING Task Failed
11-22 16:02 PythonOgre.BuildModule DEBUG Making all in src
make[1]: Betrete Verzeichnis '/home/sven/ogre/ois/src'
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISInputManager.lo -MD -MP -MF ".deps/OISInputManager.Tpo" -c -o OISInputManager.lo OISInputManager.cpp; \
then mv -f ".deps/OISInputManager.Tpo" ".deps/OISInputManager.Plo"; else rm -f ".deps/OISInputManager.Tpo"; exit 1; fi
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISInputManager.lo -MD -MP -MF .deps/OISInputManager.Tpo -c OISInputManager.cpp -fPIC -DPIC -o .libs/OISInputManager.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISInputManager.lo -MD -MP -MF .deps/OISInputManager.Tpo -c OISInputManager.cpp -o OISInputManager.o >/dev/null 2>&1
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISObject.lo -MD -MP -MF ".deps/OISObject.Tpo" -c -o OISObject.lo OISObject.cpp; \
then mv -f ".deps/OISObject.Tpo" ".deps/OISObject.Plo"; else rm -f ".deps/OISObject.Tpo"; exit 1; fi
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISObject.lo -MD -MP -MF .deps/OISObject.Tpo -c OISObject.cpp -fPIC -DPIC -o .libs/OISObject.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISObject.lo -MD -MP -MF .deps/OISObject.Tpo -c OISObject.cpp -o OISObject.o >/dev/null 2>&1
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISEffect.lo -MD -MP -MF ".deps/OISEffect.Tpo" -c -o OISEffect.lo OISEffect.cpp; \
then mv -f ".deps/OISEffect.Tpo" ".deps/OISEffect.Plo"; else rm -f ".deps/OISEffect.Tpo"; exit 1; fi
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISEffect.lo -MD -MP -MF .deps/OISEffect.Tpo -c OISEffect.cpp -fPIC -DPIC -o .libs/OISEffect.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISEffect.lo -MD -MP -MF .deps/OISEffect.Tpo -c OISEffect.cpp -o OISEffect.o >/dev/null 2>&1
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISJoyStick.lo -MD -MP -MF ".deps/OISJoyStick.Tpo" -c -o OISJoyStick.lo OISJoyStick.cpp; \
then mv -f ".deps/OISJoyStick.Tpo" ".deps/OISJoyStick.Plo"; else rm -f ".deps/OISJoyStick.Tpo"; exit 1; fi
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISJoyStick.lo -MD -MP -MF .deps/OISJoyStick.Tpo -c OISJoyStick.cpp -fPIC -DPIC -o .libs/OISJoyStick.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISJoyStick.lo -MD -MP -MF .deps/OISJoyStick.Tpo -c OISJoyStick.cpp -o OISJoyStick.o >/dev/null 2>&1
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISKeyboard.lo -MD -MP -MF ".deps/OISKeyboard.Tpo" -c -o OISKeyboard.lo OISKeyboard.cpp; \
then mv -f ".deps/OISKeyboard.Tpo" ".deps/OISKeyboard.Plo"; else rm -f ".deps/OISKeyboard.Tpo"; exit 1; fi
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISKeyboard.lo -MD -MP -MF .deps/OISKeyboard.Tpo -c OISKeyboard.cpp -fPIC -DPIC -o .libs/OISKeyboard.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISKeyboard.lo -MD -MP -MF .deps/OISKeyboard.Tpo -c OISKeyboard.cpp -o OISKeyboard.o >/dev/null 2>&1
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISForceFeedback.lo -MD -MP -MF ".deps/OISForceFeedback.Tpo" -c -o OISForceFeedback.lo OISForceFeedback.cpp; \
then mv -f ".deps/OISForceFeedback.Tpo" ".deps/OISForceFeedback.Plo"; else rm -f ".deps/OISForceFeedback.Tpo"; exit 1; fi
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISForceFeedback.lo -MD -MP -MF .deps/OISForceFeedback.Tpo -c OISForceFeedback.cpp -fPIC -DPIC -o .libs/OISForceFeedback.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISForceFeedback.lo -MD -MP -MF .deps/OISForceFeedback.Tpo -c OISForceFeedback.cpp -o OISForceFeedback.o >/dev/null 2>&1
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISException.lo -MD -MP -MF ".deps/OISException.Tpo" -c -o OISException.lo OISException.cpp; \
then mv -f ".deps/OISException.Tpo" ".deps/OISException.Plo"; else rm -f ".deps/OISException.Tpo"; exit 1; fi
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISException.lo -MD -MP -MF .deps/OISException.Tpo -c OISException.cpp -fPIC -DPIC -o .libs/OISException.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISException.lo -MD -MP -MF .deps/OISException.Tpo -c OISException.cpp -o OISException.o >/dev/null 2>&1
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT EventHelpers.lo -MD -MP -MF ".deps/EventHelpers.Tpo" -c -o EventHelpers.lo `test -f './linux/EventHelpers.cpp' || echo './'`./linux/EventHelpers.cpp; \
then mv -f ".deps/EventHelpers.Tpo" ".deps/EventHelpers.Plo"; else rm -f ".deps/EventHelpers.Tpo"; exit 1; fi
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT EventHelpers.lo -MD -MP -MF .deps/EventHelpers.Tpo -c ./linux/EventHelpers.cpp -fPIC -DPIC -o .libs/EventHelpers.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT EventHelpers.lo -MD -MP -MF .deps/EventHelpers.Tpo -c ./linux/EventHelpers.cpp -o EventHelpers.o >/dev/null 2>&1
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT LinuxInputManager.lo -MD -MP -MF ".deps/LinuxInputManager.Tpo" -c -o LinuxInputManager.lo `test -f './linux/LinuxInputManager.cpp' || echo './'`./linux/LinuxInputManager.cpp; \
then mv -f ".deps/LinuxInputManager.Tpo" ".deps/LinuxInputManager.Plo"; else rm -f ".deps/LinuxInputManager.Tpo"; exit 1; fi
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT LinuxInputManager.lo -MD -MP -MF .deps/LinuxInputManager.Tpo -c ./linux/LinuxInputManager.cpp -fPIC -DPIC -o .libs/LinuxInputManager.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT LinuxInputManager.lo -MD -MP -MF .deps/LinuxInputManager.Tpo -c ./linux/LinuxInputManager.cpp -o LinuxInputManager.o >/dev/null 2>&1
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT LinuxJoyStickEvents.lo -MD -MP -MF ".deps/LinuxJoyStickEvents.Tpo" -c -o LinuxJoyStickEvents.lo `test -f './linux/LinuxJoyStickEvents.cpp' || echo './'`./linux/LinuxJoyStickEvents.cpp; \
then mv -f ".deps/LinuxJoyStickEvents.Tpo" ".deps/LinuxJoyStickEvents.Plo"; else rm -f ".deps/LinuxJoyStickEvents.Tpo"; exit 1; fi
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT LinuxJoyStickEvents.lo -MD -MP -MF .deps/LinuxJoyStickEvents.Tpo -c ./linux/LinuxJoyStickEvents.cpp -fPIC -DPIC -o .libs/LinuxJoyStickEvents.o
make[1]: Verlasse Verzeichnis '/home/sven/ogre/ois/src'

11-22 16:02 PythonOgre.BuildModule DEBUG ./linux/LinuxJoyStickEvents.cpp: In member function 'virtual void OIS::LinuxJoyStick::capture()':
./linux/LinuxJoyStickEvents.cpp:101:76: error: 'read' was not declared in this scope
./linux/LinuxJoyStickEvents.cpp: In static member function 'static OIS::JoyStickInfoList OIS::LinuxJoyStick::_scanJoys()':
./linux/LinuxJoyStickEvents.cpp:269:13: error: 'close' was not declared in this scope
./linux/LinuxJoyStickEvents.cpp:277:12: error: 'close' was not declared in this scope
./linux/LinuxJoyStickEvents.cpp: In static member function 'static void OIS::LinuxJoyStick::_clearJoys(OIS::JoyStickInfoList&)':
./linux/LinuxJoyStickEvents.cpp:288:20: error: 'close' was not declared in this scope
make[1]: *** [LinuxJoyStickEvents.lo] Fehler 1
make: *** [all-recursive] Fehler 1

11-22 16:02 PythonOgre.BuildModule INFO Build Command sudo make install
11-22 16:02 PythonOgre.BuildModule DEBUG Spawning 'sudo make install' in '/home/sven/ogre/ois'
11-22 16:02 PythonOgre.BuildModule WARNING Task Failed
11-22 16:02 PythonOgre.BuildModule DEBUG Making install in src
make[1]: Betrete Verzeichnis '/home/sven/ogre/ois/src'
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT LinuxJoyStickEvents.lo -MD -MP -MF ".deps/LinuxJoyStickEvents.Tpo" -c -o LinuxJoyStickEvents.lo `test -f './linux/LinuxJoyStickEvents.cpp' || echo './'`./linux/LinuxJoyStickEvents.cpp; \
then mv -f ".deps/LinuxJoyStickEvents.Tpo" ".deps/LinuxJoyStickEvents.Plo"; else rm -f ".deps/LinuxJoyStickEvents.Tpo"; exit 1; fi
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT LinuxJoyStickEvents.lo -MD -MP -MF .deps/LinuxJoyStickEvents.Tpo -c ./linux/LinuxJoyStickEvents.cpp -fPIC -DPIC -o .libs/LinuxJoyStickEvents.o
make[1]: Verlasse Verzeichnis '/home/sven/ogre/ois/src'

11-22 16:02 PythonOgre.BuildModule DEBUG ./linux/LinuxJoyStickEvents.cpp: In member function 'virtual void OIS::LinuxJoyStick::capture()':
./linux/LinuxJoyStickEvents.cpp:101:76: error: 'read' was not declared in this scope
./linux/LinuxJoyStickEvents.cpp: In static member function 'static OIS::JoyStickInfoList OIS::LinuxJoyStick::_scanJoys()':
./linux/LinuxJoyStickEvents.cpp:269:13: error: 'close' was not declared in this scope
./linux/LinuxJoyStickEvents.cpp:277:12: error: 'close' was not declared in this scope
./linux/LinuxJoyStickEvents.cpp: In static member function 'static void OIS::LinuxJoyStick::_clearJoys(OIS::JoyStickInfoList&)':
./linux/LinuxJoyStickEvents.cpp:288:20: error: 'close' was not declared in this scope
make[1]: *** [LinuxJoyStickEvents.lo] Fehler 1
make: *** [install-recursive] Fehler 1


i have installed libboost1.49 (and other libboosts) and not 1.48 because 1.48 wasn't found (i'm using Ubuntu 12.10)

dermont

22-11-2012 15:26:46

The installation of ogre works fine now. I runned it in an VM with only 512MB memory now it works.
But now i have another probelm...
on the installation of ois appears this error:
sven@ubuntu:~/ogre$ python python-ogre/BuildModule.py -b ois --usesystem
PythonOgre.BuildModule: INFO Build Command ./bootstrap
PythonOgre.BuildModule: INFO Build Command ./configure --prefix=/usr --includedir=/usr/include
PythonOgre.BuildModule: INFO Build Command make
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Build Command sudo make install
[sudo] password for sven:
PythonOgre.BuildModule: WARNING Task Failed
sven@ubuntu:~/ogre$


here my log.out file:
11-22 16:02 PythonOgre.BuildModule INFO Build Command ./bootstrap
11-22 16:02 PythonOgre.BuildModule DEBUG Spawning './bootstrap' in '/home/sven/ogre/ois'
11-22 16:02 PythonOgre.BuildModule INFO Build Command ./configure --prefix=/usr --includedir=/usr/include
11-22 16:02 PythonOgre.BuildModule DEBUG Spawning './configure --prefix=/usr --includedir=/usr/include' in '/home/sven/ogre/ois'
11-22 16:02 PythonOgre.BuildModule INFO Build Command make
11-22 16:02 PythonOgre.BuildModule DEBUG Spawning 'make' in '/home/sven/ogre/ois'
11-22 16:02 PythonOgre.BuildModule WARNING Task Failed
11-22 16:02 PythonOgre.BuildModule DEBUG Making all in src
make[1]: Betrete Verzeichnis '/home/sven/ogre/ois/src'
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISInputManager.lo -MD -MP -MF ".deps/OISInputManager.Tpo" -c -o OISInputManager.lo OISInputManager.cpp; \
then mv -f ".deps/OISInputManager.Tpo" ".deps/OISInputManager.Plo"; else rm -f ".deps/OISInputManager.Tpo"; exit 1; fi
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISInputManager.lo -MD -MP -MF .deps/OISInputManager.Tpo -c OISInputManager.cpp -fPIC -DPIC -o .libs/OISInputManager.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISInputManager.lo -MD -MP -MF .deps/OISInputManager.Tpo -c OISInputManager.cpp -o OISInputManager.o >/dev/null 2>&1
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISObject.lo -MD -MP -MF ".deps/OISObject.Tpo" -c -o OISObject.lo OISObject.cpp; \
then mv -f ".deps/OISObject.Tpo" ".deps/OISObject.Plo"; else rm -f ".deps/OISObject.Tpo"; exit 1; fi
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISObject.lo -MD -MP -MF .deps/OISObject.Tpo -c OISObject.cpp -fPIC -DPIC -o .libs/OISObject.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISObject.lo -MD -MP -MF .deps/OISObject.Tpo -c OISObject.cpp -o OISObject.o >/dev/null 2>&1
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISEffect.lo -MD -MP -MF ".deps/OISEffect.Tpo" -c -o OISEffect.lo OISEffect.cpp; \
then mv -f ".deps/OISEffect.Tpo" ".deps/OISEffect.Plo"; else rm -f ".deps/OISEffect.Tpo"; exit 1; fi
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISEffect.lo -MD -MP -MF .deps/OISEffect.Tpo -c OISEffect.cpp -fPIC -DPIC -o .libs/OISEffect.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISEffect.lo -MD -MP -MF .deps/OISEffect.Tpo -c OISEffect.cpp -o OISEffect.o >/dev/null 2>&1
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISJoyStick.lo -MD -MP -MF ".deps/OISJoyStick.Tpo" -c -o OISJoyStick.lo OISJoyStick.cpp; \
then mv -f ".deps/OISJoyStick.Tpo" ".deps/OISJoyStick.Plo"; else rm -f ".deps/OISJoyStick.Tpo"; exit 1; fi
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISJoyStick.lo -MD -MP -MF .deps/OISJoyStick.Tpo -c OISJoyStick.cpp -fPIC -DPIC -o .libs/OISJoyStick.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISJoyStick.lo -MD -MP -MF .deps/OISJoyStick.Tpo -c OISJoyStick.cpp -o OISJoyStick.o >/dev/null 2>&1
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISKeyboard.lo -MD -MP -MF ".deps/OISKeyboard.Tpo" -c -o OISKeyboard.lo OISKeyboard.cpp; \
then mv -f ".deps/OISKeyboard.Tpo" ".deps/OISKeyboard.Plo"; else rm -f ".deps/OISKeyboard.Tpo"; exit 1; fi
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISKeyboard.lo -MD -MP -MF .deps/OISKeyboard.Tpo -c OISKeyboard.cpp -fPIC -DPIC -o .libs/OISKeyboard.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISKeyboard.lo -MD -MP -MF .deps/OISKeyboard.Tpo -c OISKeyboard.cpp -o OISKeyboard.o >/dev/null 2>&1
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISForceFeedback.lo -MD -MP -MF ".deps/OISForceFeedback.Tpo" -c -o OISForceFeedback.lo OISForceFeedback.cpp; \
then mv -f ".deps/OISForceFeedback.Tpo" ".deps/OISForceFeedback.Plo"; else rm -f ".deps/OISForceFeedback.Tpo"; exit 1; fi
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISForceFeedback.lo -MD -MP -MF .deps/OISForceFeedback.Tpo -c OISForceFeedback.cpp -fPIC -DPIC -o .libs/OISForceFeedback.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISForceFeedback.lo -MD -MP -MF .deps/OISForceFeedback.Tpo -c OISForceFeedback.cpp -o OISForceFeedback.o >/dev/null 2>&1
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISException.lo -MD -MP -MF ".deps/OISException.Tpo" -c -o OISException.lo OISException.cpp; \
then mv -f ".deps/OISException.Tpo" ".deps/OISException.Plo"; else rm -f ".deps/OISException.Tpo"; exit 1; fi
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISException.lo -MD -MP -MF .deps/OISException.Tpo -c OISException.cpp -fPIC -DPIC -o .libs/OISException.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT OISException.lo -MD -MP -MF .deps/OISException.Tpo -c OISException.cpp -o OISException.o >/dev/null 2>&1
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT EventHelpers.lo -MD -MP -MF ".deps/EventHelpers.Tpo" -c -o EventHelpers.lo `test -f './linux/EventHelpers.cpp' || echo './'`./linux/EventHelpers.cpp; \
then mv -f ".deps/EventHelpers.Tpo" ".deps/EventHelpers.Plo"; else rm -f ".deps/EventHelpers.Tpo"; exit 1; fi
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT EventHelpers.lo -MD -MP -MF .deps/EventHelpers.Tpo -c ./linux/EventHelpers.cpp -fPIC -DPIC -o .libs/EventHelpers.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT EventHelpers.lo -MD -MP -MF .deps/EventHelpers.Tpo -c ./linux/EventHelpers.cpp -o EventHelpers.o >/dev/null 2>&1
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT LinuxInputManager.lo -MD -MP -MF ".deps/LinuxInputManager.Tpo" -c -o LinuxInputManager.lo `test -f './linux/LinuxInputManager.cpp' || echo './'`./linux/LinuxInputManager.cpp; \
then mv -f ".deps/LinuxInputManager.Tpo" ".deps/LinuxInputManager.Plo"; else rm -f ".deps/LinuxInputManager.Tpo"; exit 1; fi
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT LinuxInputManager.lo -MD -MP -MF .deps/LinuxInputManager.Tpo -c ./linux/LinuxInputManager.cpp -fPIC -DPIC -o .libs/LinuxInputManager.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT LinuxInputManager.lo -MD -MP -MF .deps/LinuxInputManager.Tpo -c ./linux/LinuxInputManager.cpp -o LinuxInputManager.o >/dev/null 2>&1
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT LinuxJoyStickEvents.lo -MD -MP -MF ".deps/LinuxJoyStickEvents.Tpo" -c -o LinuxJoyStickEvents.lo `test -f './linux/LinuxJoyStickEvents.cpp' || echo './'`./linux/LinuxJoyStickEvents.cpp; \
then mv -f ".deps/LinuxJoyStickEvents.Tpo" ".deps/LinuxJoyStickEvents.Plo"; else rm -f ".deps/LinuxJoyStickEvents.Tpo"; exit 1; fi
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT LinuxJoyStickEvents.lo -MD -MP -MF .deps/LinuxJoyStickEvents.Tpo -c ./linux/LinuxJoyStickEvents.cpp -fPIC -DPIC -o .libs/LinuxJoyStickEvents.o
make[1]: Verlasse Verzeichnis '/home/sven/ogre/ois/src'

11-22 16:02 PythonOgre.BuildModule DEBUG ./linux/LinuxJoyStickEvents.cpp: In member function 'virtual void OIS::LinuxJoyStick::capture()':
./linux/LinuxJoyStickEvents.cpp:101:76: error: 'read' was not declared in this scope
./linux/LinuxJoyStickEvents.cpp: In static member function 'static OIS::JoyStickInfoList OIS::LinuxJoyStick::_scanJoys()':
./linux/LinuxJoyStickEvents.cpp:269:13: error: 'close' was not declared in this scope
./linux/LinuxJoyStickEvents.cpp:277:12: error: 'close' was not declared in this scope
./linux/LinuxJoyStickEvents.cpp: In static member function 'static void OIS::LinuxJoyStick::_clearJoys(OIS::JoyStickInfoList&)':
./linux/LinuxJoyStickEvents.cpp:288:20: error: 'close' was not declared in this scope
make[1]: *** [LinuxJoyStickEvents.lo] Fehler 1
make: *** [all-recursive] Fehler 1

11-22 16:02 PythonOgre.BuildModule INFO Build Command sudo make install
11-22 16:02 PythonOgre.BuildModule DEBUG Spawning 'sudo make install' in '/home/sven/ogre/ois'
11-22 16:02 PythonOgre.BuildModule WARNING Task Failed
11-22 16:02 PythonOgre.BuildModule DEBUG Making install in src
make[1]: Betrete Verzeichnis '/home/sven/ogre/ois/src'
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT LinuxJoyStickEvents.lo -MD -MP -MF ".deps/LinuxJoyStickEvents.Tpo" -c -o LinuxJoyStickEvents.lo `test -f './linux/LinuxJoyStickEvents.cpp' || echo './'`./linux/LinuxJoyStickEvents.cpp; \
then mv -f ".deps/LinuxJoyStickEvents.Tpo" ".deps/LinuxJoyStickEvents.Plo"; else rm -f ".deps/LinuxJoyStickEvents.Tpo"; exit 1; fi
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../includes -I../includes -I/usr/include -L/usr/lib -L/usr/lib64 -I/usr/X11R6/include -I/usr/include -L/usr/lib -L/usr/lib64 -MT LinuxJoyStickEvents.lo -MD -MP -MF .deps/LinuxJoyStickEvents.Tpo -c ./linux/LinuxJoyStickEvents.cpp -fPIC -DPIC -o .libs/LinuxJoyStickEvents.o
make[1]: Verlasse Verzeichnis '/home/sven/ogre/ois/src'

11-22 16:02 PythonOgre.BuildModule DEBUG ./linux/LinuxJoyStickEvents.cpp: In member function 'virtual void OIS::LinuxJoyStick::capture()':
./linux/LinuxJoyStickEvents.cpp:101:76: error: 'read' was not declared in this scope
./linux/LinuxJoyStickEvents.cpp: In static member function 'static OIS::JoyStickInfoList OIS::LinuxJoyStick::_scanJoys()':
./linux/LinuxJoyStickEvents.cpp:269:13: error: 'close' was not declared in this scope
./linux/LinuxJoyStickEvents.cpp:277:12: error: 'close' was not declared in this scope
./linux/LinuxJoyStickEvents.cpp: In static member function 'static void OIS::LinuxJoyStick::_clearJoys(OIS::JoyStickInfoList&)':
./linux/LinuxJoyStickEvents.cpp:288:20: error: 'close' was not declared in this scope
make[1]: *** [LinuxJoyStickEvents.lo] Fehler 1
make: *** [install-recursive] Fehler 1



The ois version used by python-ogre is really old. For later versions of gcc you need to edit/update the ois source code add an include looks for header:
a) <ois src dir>/src/linux/LinuxJoyStickEvents.cpp

...
#include <linux/input.h>
#include <unistd.h>
...


b) <ois src dir>/demos/OISConsole.cpp and demos/FFConsoleDemo.cpp

...
#include <iostream>
#include <vector>
#include <sstream>
#include <unistd.h>
...



i have installed libboost1.49 (and other libboosts) and not 1.48 because 1.48 wasn't found (i'm using Ubuntu 12.10)

Fair enough 1.49 should be fine, that's the version I last built with.

IchUndNichtDu

22-11-2012 17:22:08

It works! I can run the demos! I would give you 1000 kudos! Thanks for all the help! :D

IchUndNichtDu

30-01-2013 19:30:01

I tried to compile bullet with the BuildModule.py and have this log.
sven@Sven-Ubuntu:~/ogre$ python python-ogre/BuildModule.py -r bullet
PythonOgre.BuildModule: INFO Retrieving http://bullet.googlecode.com/files/bullet-svn-r2243.zip
sven@Sven-Ubuntu:~/ogre$ python python-ogre/BuildModule.py -b bullet --usesystemPythonOgre.BuildModule: INFO Build Command sudo find . -name *.a -execdir cp {} /usr/lib \;
Traceback (most recent call last):
File "python-ogre/BuildModule.py", line 426, in <module>
buildModule ( classList[ moduleName ] )
File "python-ogre/BuildModule.py", line 175, in buildModule
ret = spawnTask ( cmd, path )
File "python-ogre/BuildModule.py", line 125, in spawnTask
process = subprocess.Popen (task, shell=True,stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd = cwdin, env=env)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory: '/home/sven/ogre/bullet-svn-r2243'
sven@Sven-Ubuntu:~/ogre$

okay the script can't find the bulle directory so i unpack it myself to the right directory:

sven@Sven-Ubuntu:~/ogre$ unzip downloads/bullet-svn-r2243.zip
<a lot of output>

and continue the building process:

sven@Sven-Ubuntu:~/ogre$ python python-ogre/BuildModule.py -b bullet --usesystem
PythonOgre.BuildModule: INFO Build Command sudo find . -name *.a -execdir cp {} /usr/lib \;
sven@Sven-Ubuntu:~/ogre$ python python-ogre/BuildModule.py -g bullet --usesystem
PythonOgre.BuildModule: INFO Building Source code for bullet
sven@Sven-Ubuntu:~/ogre$

so everything seems fine and now i get this error:

sven@Sven-Ubuntu:~/ogre$ python python-ogre/BuildModule.py -c bullet --usesystem
PythonOgre.BuildModule: INFO Compiling Source code for bullet
PythonOgre.BuildModule: WARNING Task Failed
sven@Sven-Ubuntu:~/ogre$


last lines of log.out:

01-30 20:25 PythonOgre.BuildModule DEBUG
scons: warning: BuildDir() and the build_dir keyword have been deprecated;
use VariantDir() and the variant_dir keyword instead.
File "/home/sven/ogre/python-ogre/SConstruct", line 228, in <module>
/usr/bin/ld: cannot find -lGIMPACTUtils
/usr/bin/ld: cannot find -lBulletWorldImporter
/usr/bin/ld: cannot find -lBulletFileLoader
collect2: Fehler: ld gab 1 als Ende-Status zurück
scons: *** [build_dir_2.7/bullet_r2243/bullet.so] Error 1

can anyone help me?

dermont

08-02-2013 06:32:49

I tried to compile bullet with the BuildModule.py and have this log.
sven@Sven-Ubuntu:~/ogre$ python python-ogre/BuildModule.py -r bullet
PythonOgre.BuildModule: INFO Retrieving http://bullet.googlecode.com/files/bullet-svn-r2243.zip
sven@Sven-Ubuntu:~/ogre$ python python-ogre/BuildModule.py -b bullet --usesystemPythonOgre.BuildModule: INFO Build Command sudo find . -name *.a -execdir cp {} /usr/lib \;
Traceback (most recent call last):
File "python-ogre/BuildModule.py", line 426, in <module>
buildModule ( classList[ moduleName ] )
File "python-ogre/BuildModule.py", line 175, in buildModule
ret = spawnTask ( cmd, path )
File "python-ogre/BuildModule.py", line 125, in spawnTask
process = subprocess.Popen (task, shell=True,stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd = cwdin, env=env)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory: '/home/sven/ogre/bullet-svn-r2243'
sven@Sven-Ubuntu:~/ogre$

okay the script can't find the bulle directory so i unpack it myself to the right directory:

sven@Sven-Ubuntu:~/ogre$ unzip downloads/bullet-svn-r2243.zip
<a lot of output>

and continue the building process:

sven@Sven-Ubuntu:~/ogre$ python python-ogre/BuildModule.py -b bullet --usesystem
PythonOgre.BuildModule: INFO Build Command sudo find . -name *.a -execdir cp {} /usr/lib \;
sven@Sven-Ubuntu:~/ogre$ python python-ogre/BuildModule.py -g bullet --usesystem
PythonOgre.BuildModule: INFO Building Source code for bullet
sven@Sven-Ubuntu:~/ogre$

so everything seems fine and now i get this error:

sven@Sven-Ubuntu:~/ogre$ python python-ogre/BuildModule.py -c bullet --usesystem
PythonOgre.BuildModule: INFO Compiling Source code for bullet
PythonOgre.BuildModule: WARNING Task Failed
sven@Sven-Ubuntu:~/ogre$


last lines of log.out:

01-30 20:25 PythonOgre.BuildModule DEBUG
scons: warning: BuildDir() and the build_dir keyword have been deprecated;
use VariantDir() and the variant_dir keyword instead.
File "/home/sven/ogre/python-ogre/SConstruct", line 228, in <module>
/usr/bin/ld: cannot find -lGIMPACTUtils
/usr/bin/ld: cannot find -lBulletWorldImporter
/usr/bin/ld: cannot find -lBulletFileLoader
collect2: Fehler: ld gab 1 als Ende-Status zurück
scons: *** [build_dir_2.7/bullet_r2243/bullet.so] Error 1

can anyone help me?


1. Have you checked that the static extra libs libGIMPACTUtils.a etc. are installed correctly in /usr/lib (or your install directory)?

2. Do you have more than one version of bullet installed? Check if you have say shared libs for bullet libBulletCollision.so/libBulletDynamics.so and are missing the "extras" shared libs.

3. I've seen this error before but can't remember what the problem was. It may be due to gcc 4.7 and the link command (the bullet libs should be last or the link command is malformed). Can you zip up and upload your full build log somewhere?

IchUndNichtDu

09-02-2013 00:42:39

libGIMPACTUtils.a isn't installed in /usr/lib. To which package do it belong? I found <bullet directory>/Extras/GIMPACTUtils, but without *.a files. Shouldn't they build in the building-process of bullet?
log.out is attached, but is a little bit different as the log.out i posted because i deinstalled the previos installed bullet from apt-get.
It was very hard for me to find the right words in english. I hope you can understand me. :?

dermont

09-02-2013 03:46:24

It was very hard for me to find the right words in english. I hope you can understand me. :?
Yes, there are no problems understanding your post.

libGIMPACTUtils.a isn't installed in /usr/lib. To which package do it belong? I found <bullet directory>/Extras/GIMPACTUtils, but without *.a files. Shouldn't they build in the building-process of bullet?


For bullet-svn-r2243 the extra libs should be built by default, for later versions of bullet I don't think this is the case.

Open <bullet directory>/CMakeCache.txt in gedit and see if the extra libs are being built by default.

You should see something like:

//Set when you want to build the extras
BUILD_EXTRAS:BOOL=ON


If BUILD_EXTRAS:BOOL=OFF then:

1. Remove <bullet directory>/CMakeCache.txt it will be re-generated.
2. Edit environment.py and update the build command for the bullet module to build the extra libs, e.g.

buildCmds = [
..
[0, "cmake . -DBUILD_EXTRAS:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=%s" % PREFIX, baseDir],
..

3. Build the bullet libs again "-b bullet" step, checking the extra libs (.a files) are built in:
<bullet directory>/Extras/GIMPACTUtils
<bullet directory>/Extras/Serialize/BulletWorldImporter
<bullet directory>/Extras/Serialize/BulletFileLoader

4. Check the libs are installed correctly.

IchUndNichtDu

09-02-2013 10:00:11

I lokked at python-ogre/environment.py and see these build_cmds:

buildCmds = [
#[0, unzip + os.path.join(downloadPath, base) + ".zip", ''],
#[0, "cmake . -DCMAKE_INSTALL_PREFIX:PATH=%s" % PREFIX, baseDir],
#[0, "make", baseDir],
[0, _sudo + "find . -name *.a -execdir cp {} %s/lib \;" % PREFIX, baseDir]
]

That explains the error and that the bullet files are not unpacked when needed. I removed all of the '#'. Then i deleted all the bullet directorys and zip-files and redone the building process of bullet since 'python python-ogre/BuildModule.py -r bullet. The libs are now builded and copid to /usr/lib correctly, without unpacking the bullet directory manually.
Now there is another error by 'python python-ogre/BuildModule.py -c bullet --usesystem'.
Here the Error in the log.lout:

02-09 10:40 PythonOgre.BuildModule DEBUG
scons: warning: BuildDir() and the build_dir keyword have been deprecated;
use VariantDir() and the variant_dir keyword instead.
File "/home/sven/ogre/python-ogre/SConstruct", line 228, in <module>
/usr/bin/ld: /usr/lib/libBulletCollision.a(btAxisSweep3.o): relocation R_X86_64_32S against `_ZTV20btAxisSweep3InternalItE' can not be used when making a shared object; recompile with -fPIC
/usr/lib/libBulletCollision.a: could not read symbols: Ungültiger Wert
collect2: Fehler: ld gab 1 als Ende-Status zurück
scons: *** [build_dir_2.7/bullet_r2243/bullet.so] Error 1

dermont

09-02-2013 14:15:15

I lokked at python-ogre/environment.py and see these build_cmds:

buildCmds = [
#[0, unzip + os.path.join(downloadPath, base) + ".zip", ''],
#[0, "cmake . -DCMAKE_INSTALL_PREFIX:PATH=%s" % PREFIX, baseDir],
#[0, "make", baseDir],
[0, _sudo + "find . -name *.a -execdir cp {} %s/lib \;" % PREFIX, baseDir]
]

That explains the error and that the bullet files are not unpacked when needed. I removed all of the '#'. Then i deleted all the bullet directorys and zip-files and redone the building process of bullet since 'python python-ogre/BuildModule.py -r bullet. The libs are now builded and copid to /usr/lib correctly, without unpacking the bullet directory manually.
Now there is another error by 'python python-ogre/BuildModule.py -c bullet --usesystem'.
Here the Error in the log.lout:

02-09 10:40 PythonOgre.BuildModule DEBUG
scons: warning: BuildDir() and the build_dir keyword have been deprecated;
use VariantDir() and the variant_dir keyword instead.
File "/home/sven/ogre/python-ogre/SConstruct", line 228, in <module>
/usr/bin/ld: /usr/lib/libBulletCollision.a(btAxisSweep3.o): relocation R_X86_64_32S against `_ZTV20btAxisSweep3InternalItE' can not be used when making a shared object; recompile with -fPIC
/usr/lib/libBulletCollision.a: could not read symbols: Ungültiger Wert
collect2: Fehler: ld gab 1 als Ende-Status zurück
scons: *** [build_dir_2.7/bullet_r2243/bullet.so] Error 1


I think this is the common issue building static libs on 64 bit machines where you need to build with fPIC. See the last post in the following link:
http://bulletphysics.org/Bullet/phpBB3/ ... php?t=5250

IchUndNichtDu

09-02-2013 15:04:03

Thanks. I did the build_cmd in the environment.py myself and edited the CMakeCache.txt after the cmake command. Now it works fine.