由于osgProducer链接错误导致无法安装PyOSG

时间:2012-06-30 05:43:54

标签: python opengl ld openscenegraph

我正在尝试使用pip install PyOSG为OSG安装Python包装器。

但它失败了这个错误:

g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.6/Producer/Referenced.o build/temp.linux-x86_64-2.6/Producer/Camera.o build/temp.linux-x86_64-2.6/Producer/RenderSurface.o build/temp.linux-x86_64-2.6/Producer/KeyboardMouse.o build/temp.linux-x86_64-2.6/Producer/buildinfo.o build/temp.linux-x86_64-2.6/Producer/Block.o build/temp.linux-x86_64-2.6/Producer/Keyboard.o build/temp.linux-x86_64-2.6/Producer/Timer.o build/temp.linux-x86_64-2.6/Producer/VisualChooser.o build/temp.linux-x86_64-2.6/Producer/CameraConfig.o build/temp.linux-x86_64-2.6/Producer/Producer.o build/temp.linux-x86_64-2.6/Producer/CameraGroup.o build/temp.linux-x86_64-2.6/Producer/Trackball.o build/temp.linux-x86_64-2.6/Producer/Events.o build/temp.linux-x86_64-2.6/Producer/InputArea.o build/temp.linux-x86_64-2.6/Producer/Math.o -lboost_python -lOpenThreads -lProducer -lProducer -losg -losgDB -losgFX -losgGA -losgParticle -losgProducer -losgSim -losgUtil -losgText -o build/lib.linux-x86_64-2.6/PyOSG/_Producer.so

/usr/bin/ld: cannot find -losgProducer

collect2: ld returned 1 exit status

error: command 'g++' failed with exit status 1

我已经安装了依赖于OSG的Producer,所以我不应该安装什么来使链接成功。

1 个答案:

答案 0 :(得分:1)

生产者至少已经过了几年的时间,取而代之的是osgViewer和相关的类,至少早在版本1.0之前,也可能在此之前。

尝试寻找更新版本的PyOSG,或尝试其中一个更活跃的项目,例如:

osgSWIG(包括Python)http://code.google.com/p/osgswig/

osgboostpyton:http://code.google.com/p/osgboostpython/

祝你好运!