Re: [cgkit-user] cgkit on osx 10.5.6
Brought to you by:
mbaas
|
From: massimo di s. <mas...@ya...> - 2009-01-14 15:12:09
|
Hi, to find a solution i tried : checkout boost from svn configure it using : ../configure --with-python=/usr/bin/python2.5 --prefix=/opt/gis/cgkit/ build make make install then in supportlib/config.cfg i added : CPPPATH += ["/opt/gis/cgkit/build/include/boost-1_38/"] scon build without errors then : in trunk/config.cfg i added : INC_DIRS = ["/opt/gis/cgkit/build/include/boost-1_38/"] LIB_DIRS = ["/opt/gis/cgkit/build/lib/"] macbook-pro-15-di-sasha:trunk sasha$ sudo python setup.py install Password: Updating version in the cgkitinfo module... Version: 2.0.0alpha8cvs (Jan 14 2009, 16:05) ====================================================================== 3DS importer: disabled VRML/X3D importer: disabled OpenSceneGraph: disabled OGRE: disabled 3DXWare: disabled Wintab: disabled Glove module: disabled ====================================================================== Include paths (INC_DIRS): supportlib/include /opt/gis/cgkit/build/include/boost-1_38/ /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/ Library paths (LIB_DIRS): supportlib/lib /opt/gis/cgkit/build/lib/ /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries Libraries to link with (LIBS): boost_python, core, GL, GLU Forcing compilation of py_wrapper.cpp ====================================================================== running install running build running build_py copying cgkit/cgkitinfo.py -> build/lib.macosx-10.5-i386-2.5/cgkit running build_ext building '_core' extension gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused- madd -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes - DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -arch i386 -arch ppc -pipe - Isupportlib/include -I/opt/gis/cgkit/build/include/boost-1_38/ -I/ System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/ -I/ System/Library/Frameworks/Python.framework/Versions/2.5/include/ python2.5 -c wrappers/py_wrapper.cpp -o build/temp.macosx-10.5- i386-2.5/wrappers/py_wrapper.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ g++ -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc build/temp.macosx-10.5-i386-2.5/wrappers/py_wrapper.o build/ temp.macosx-10.5-i386-2.5/wrappers/py_noise.o build/temp.macosx-10.5- i386-2.5/wrappers/py_vec3.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_vec4.o build/temp.macosx-10.5-i386-2.5/wrappers/py_mat3.o build/ temp.macosx-10.5-i386-2.5/wrappers/py_mat4.o build/temp.macosx-10.5- i386-2.5/wrappers/py_quat.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_slots1.o build/temp.macosx-10.5-i386-2.5/wrappers/py_slots2.o build/ temp.macosx-10.5-i386-2.5/wrappers/py_slots3.o build/temp.macosx-10.5- i386-2.5/wrappers/py_slots4.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_arrayslots1.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_arrayslots2.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_arrayslot_mat3.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_arrayslot_mat4.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_arrayslots4.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_component.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_boundingbox.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_worldobject.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_worldobject2.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_worldobject3.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_material.o build/temp.macosx-10.5-i386-2.5/wrappers/py_glmaterial.o build/temp.macosx-10.5-i386-2.5/wrappers/py_geoms1.o build/ temp.macosx-10.5-i386-2.5/wrappers/py_spheregeom.o build/ temp.macosx-10.5-i386-2.5/wrappers/py_ccylindergeom.o build/ temp.macosx-10.5-i386-2.5/wrappers/py_torusgeom.o build/ temp.macosx-10.5-i386-2.5/wrappers/py_boxgeom.o build/temp.macosx-10.5- i386-2.5/wrappers/py_planegeom.o build/temp.macosx-10.5-i386-2.5/ wrappers/py_trimeshgeom.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_polyhedrongeom.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_drawgeom.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_lightsource.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_glpointlight.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_glspotlight.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_gldistantlight.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_glrenderer.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_massproperties.o build/temp.macosx-10.5-i386-2.5/wrappers/rply/rply/ rply.o build/temp.macosx-10.5-i386-2.5/wrappers/rply/py_rply_read.o build/temp.macosx-10.5-i386-2.5/wrappers/rply/py_rply_write.o - Lsupportlib/lib -L/opt/gis/cgkit/build/lib/ -L/System/Library/ Frameworks/OpenGL.framework/Versions/A/Libraries -lboost_python -lcore -lGL -lGLU -o build/lib.macosx-10.5-i386-2.5/cgkit/_core.so -framework AGL -framework OpenGL ld: library not found for -lboost_python collect2: ld returned 1 exit status ld: library not found for -lboost_python collect2: ld returned 1 exit status lipo: can't open input file: /var/tmp//ccdIV73T.out (No such file or directory) error: command 'g++' failed with exit status 1 ############################ i don'tknow if it make sense, but without clue, i've also tried to add : LIBS += ["/opt/gis/cgkit/build/lib/libboost_python-xgcc40- mt-1_38.dylib"] but nothing changes : ############################ macbook-pro-15-di-sasha:trunk sasha$ sudo python setup.py install Updating version in the cgkitinfo module... Version: 2.0.0alpha8cvs (Jan 14 2009, 15:38) ====================================================================== 3DS importer: disabled VRML/X3D importer: disabled OpenSceneGraph: disabled OGRE: disabled 3DXWare: disabled Wintab: disabled Glove module: disabled ====================================================================== Include paths (INC_DIRS): supportlib/include /opt/gis/cgkit/build/include/boost-1_38/ /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/ Library paths (LIB_DIRS): supportlib/lib /opt/gis/cgkit/build/lib/ /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries Libraries to link with (LIBS): /opt/gis/cgkit/build/lib/libboost_python-xgcc40-mt-1_38.dylib, boost_python, core, GL, GLU Forcing compilation of py_wrapper.cpp ====================================================================== running install running build running build_py copying cgkit/cgkitinfo.py -> build/lib.macosx-10.5-i386-2.5/cgkit running build_ext building '_core' extension gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused- madd -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes - DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -arch i386 -arch ppc -pipe - Isupportlib/include -I/opt/gis/cgkit/build/include/boost-1_38/ -I/ System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/ -I/ System/Library/Frameworks/Python.framework/Versions/2.5/include/ python2.5 -c wrappers/py_wrapper.cpp -o build/temp.macosx-10.5- i386-2.5/wrappers/py_wrapper.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ warning: no library file corresponding to '/opt/gis/cgkit/build/lib/ libboost_python-xgcc40-mt-1_38.dylib' found (skipping) g++ -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc build/temp.macosx-10.5-i386-2.5/wrappers/py_wrapper.o build/ temp.macosx-10.5-i386-2.5/wrappers/py_noise.o build/temp.macosx-10.5- i386-2.5/wrappers/py_vec3.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_vec4.o build/temp.macosx-10.5-i386-2.5/wrappers/py_mat3.o build/ temp.macosx-10.5-i386-2.5/wrappers/py_mat4.o build/temp.macosx-10.5- i386-2.5/wrappers/py_quat.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_slots1.o build/temp.macosx-10.5-i386-2.5/wrappers/py_slots2.o build/ temp.macosx-10.5-i386-2.5/wrappers/py_slots3.o build/temp.macosx-10.5- i386-2.5/wrappers/py_slots4.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_arrayslots1.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_arrayslots2.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_arrayslot_mat3.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_arrayslot_mat4.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_arrayslots4.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_component.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_boundingbox.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_worldobject.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_worldobject2.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_worldobject3.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_material.o build/temp.macosx-10.5-i386-2.5/wrappers/py_glmaterial.o build/temp.macosx-10.5-i386-2.5/wrappers/py_geoms1.o build/ temp.macosx-10.5-i386-2.5/wrappers/py_spheregeom.o build/ temp.macosx-10.5-i386-2.5/wrappers/py_ccylindergeom.o build/ temp.macosx-10.5-i386-2.5/wrappers/py_torusgeom.o build/ temp.macosx-10.5-i386-2.5/wrappers/py_boxgeom.o build/temp.macosx-10.5- i386-2.5/wrappers/py_planegeom.o build/temp.macosx-10.5-i386-2.5/ wrappers/py_trimeshgeom.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_polyhedrongeom.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_drawgeom.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_lightsource.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_glpointlight.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_glspotlight.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_gldistantlight.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_glrenderer.o build/temp.macosx-10.5-i386-2.5/wrappers/ py_massproperties.o build/temp.macosx-10.5-i386-2.5/wrappers/rply/rply/ rply.o build/temp.macosx-10.5-i386-2.5/wrappers/rply/py_rply_read.o build/temp.macosx-10.5-i386-2.5/wrappers/rply/py_rply_write.o - Lsupportlib/lib -L/opt/gis/cgkit/build/lib/ -L/System/Library/ Frameworks/OpenGL.framework/Versions/A/Libraries -lboost_python -lcore -lGL -lGLU -o build/lib.macosx-10.5-i386-2.5/cgkit/_core.so -framework AGL -framework OpenGL ldld: library not found for -lboost_python : library not found for -lboost_python collect2: ld returned 1 exit status collect2: ld returned 1 exit status lipo: can't open input file: /var/tmp//ccPmMtgE.out (No such file or directory) error: command 'g++' failed with exit status 1 p.s. are the .dmg binary version usable on osx-10.5.6 too ? the package is marked for osx-10.4 i tried to install it but impoer cgkit.all give me error. i tried to remove the installed (by the cgki .dmg) files but i find only the cgkit files in the site packages what files are installed in usr/local/bin ? thank for you're help!!! Massimo "epifanio on irc.freenode.net #gfoss #qgis #grass #scipy #python" Il giorno 13/gen/09, alle ore 22:10, Matthias Baas ha scritto: > massimo di stefano wrote: > >> " from cgkit.all import * " >> having these error : >> macbook-pro-15-di-sasha:~ sasha$ python >> Python 2.5.1 (r251:54863, Nov 11 2008, 17:46:48) >> [GCC 4.0.1 (Apple Inc. build 5465)] on darwin >> Type "help", "copyright", "credits" or "license" for more >> information. >> >>> from cgkit.all import * >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> File "/Library/Python/2.5/site-packages/cgkit/all/__init__.py", >> line 46, in <module> >> from cgkit import _core >> ImportError: dlopen(/Library/Python/2.5/site-packages/cgkit/ >> _core.so, 2): Symbol not found: >> __ZN5boost6python7objects9enum_baseC2EPKcPFP7_objectPKvEPFPvS6_EPFvS6_PNS0_9converter30rvalue_from_python_stage1_dataEENS0_9type_infoE >> Referenced from: /Library/Python/2.5/site-packages/cgkit/_core.so >> Expected in: dynamic lookup > > Looks like there is still a problem with linking boost (or finding > the dynamic library). Can you please check the dependencies of > _core.so using otool -L? Are you sure the boost libs are in a > directory that is included in the library search? > > Maybe as a workaround, can you try compiling against the static > version of Boost.Python? > > - Matthias - Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com |