2.49b Blenderplayer problem under linux

Game Engine, Players & Web Plug-in, Virtual Reality, support for other engines

Moderators: jesterKing, stiv

satoril
Posts: 2
Joined: Thu Dec 27, 2012 7:51 pm

2.49b Blenderplayer problem under linux

Postby satoril » Thu Dec 27, 2012 8:04 pm

Hello All!

Please help me!
I am working on a project to connect the Kinect (libfreenect) to blender game engine, and it works under blender when i press P, but it crashes if i try to run with the blenderplayer with this message:
ImportError: /usr/local/lib/python2.6/dist-packages/freenect.so: undefined symbol: PyUnicodeUCS4_DecodeUTF8
I tried to solve the problem:
1. other blender versions like 2.49a
-same
2. other python versions 2.6.6, 2.6.7, 2.6.8
-same
3. sudo perl -p -i -e 's/PyUnicodeUCS2/PyUnicodeUCS4/g' ./freenect.so
-cant import freenect
My linux: Ubuntu 12.04 with python 2.6.8
What can i do?

Yours:
SL

satoril
Posts: 2
Joined: Thu Dec 27, 2012 7:51 pm

Re: 2.49b Blenderplayer problem under linux

Postby satoril » Fri Dec 28, 2012 2:14 pm

Solved by compiling blender from source!
If somebody needs:

sudo apt-get install yasm
mkdir blender-svn
cd blender-svn
gedit ~/.subversion/servers <=to the last line: ssl-trust-default-ca = no
# do i need sudo?
sudo svn checkout https://svn.blender.org/svnroot/bf-blen ... blender2.4 blender
cd blender
sudo gedit ./user-config.py

############
BF_OPENAL_LIB = 'openal alut'
WITH_BF_INTERNATIONAL = 'true'
WITH_BF_VERSE = 'true'
WITH_BF_YAFRAY = 'false'
BF_TWEAK_MODE = 'false'
WITH_BF_JPEG = 'true'
WITH_BF_PNG = 'true'
WITH_BF_OPENEXR = 'true'
WITH_BF_QUICKTIME = 'false'
WITH_BF_FFMPEG = 'false'
WITH_BF_OPENAL = 'false'
WITH_BF_SDL = 'true'
WITH_BF_GAMEENGINE = 'true'
WITH_BF_PLAYER = 'true'
WITH_BF_BULLET = 'true'
WITH_BF_ZLIB = 'true'
WITH_BF_FMOD = 'false'
WITH_BF_FTGL = 'false'
WITH_BF_ICONV = 'false'
WITH_BF_STATICOPENGL = 'false'
BF_PYTHON_VERSION = '2.6'
BF_DEBUG = 'false'
CXXFLAGS="-fpermissive"
#######################
cd ..
sudo svn update -r123123
sudo svn update -r2055
cd blender
sudo python scons/scons.py

satoril wrote:Hello All!

Please help me!
I am working on a project to connect the Kinect (libfreenect) to blender game engine, and it works under blender when i press P, but it crashes if i try to run with the blenderplayer with this message:
ImportError: /usr/local/lib/python2.6/dist-packages/freenect.so: undefined symbol: PyUnicodeUCS4_DecodeUTF8
I tried to solve the problem:
1. other blender versions like 2.49a
-same
2. other python versions 2.6.6, 2.6.7, 2.6.8
-same
3. sudo perl -p -i -e 's/PyUnicodeUCS2/PyUnicodeUCS4/g' ./freenect.so
-cant import freenect
My linux: Ubuntu 12.04 with python 2.6.8
What can i do?

Yours:
SL


Return to “Interactive 3d”

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest