2

を使用して OSG 用の Python ラッパーをインストールしようとしていpip install PyOSGます。

しかし、このエラーで失敗しました:

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

ProducerOSG に依存するものをインストールしたので、リンクを成功させるために他に何をインストールすればよいかわかりません。

4

1 に答える 1

1

プロデューサーは少なくとも2年前のものであり、osgViewerおよび関連するクラスに置き換えられており、少なくともバージョン1.0までさかのぼり、おそらくそれ以前にも使用されています。

PyOSGの新しいバージョンを探すか、よりアクティブなプロジェクトの1つを試してみてください。例:

osgSWIG(Pythonを含む)http://code.google.com/p/osgswig/

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

幸運を!

于 2012-07-02T19:46:30.763 に答える