I am trying to compile pythonocc on mac os x 10.6. After a few hours
of compilation I got the following error:


/Library/OpenCASCADE/6.3.0/inc/config.h:38:1: warning: "HAVE_FINITE" redefined
In file included from
/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:8,
                 from
/Users/istvancsanady/Downloads/pythonocc-0.5/src/wrapper/SWIG/linux_darwin/Archimede_wrap.cpp:129:
/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/pyconfig.h:179:1:
warning: this is the location of the previous definition
/Users/istvancsanady/Downloads/pythonocc-0.5/src/wrapper/SWIG/linux_darwin/Archimede_wrap.cpp:
In function ‘void SWIG_Python_AddErrorMsg(const char*)’:
/Users/istvancsanady/Downloads/pythonocc-0.5/src/wrapper/SWIG/linux_darwin/Archimede_wrap.cpp:870:
warning: format not a string literal and no format arguments
g++-4.2 -F. --no_undefined -bundle -dynamic_lookup -arch x86_64 -m64
-L. -lm -lstdc++ -lpython2.6
build/temp.macosx-10.6-universal-2.6/Users/istvancsanady/Downloads/pythonocc-0.5/src/wrapper/SWIG/linux_darwin/Archimede_wrap.o
-L/Library/OpenCASCADE/6.3.0/lib -L/usr/local/lib/ -L/usr/local/lib/
-lBinLPlugin -lBinPlugin -lBinXCAFPlugin -lFWOSPlugin -lPTKernel
-lStdLPlugin -lStdPlugin -lTKAdvTools -lTKBin -lTKBinL -lTKBinTObj
-lTKBinXCAF -lTKBO -lTKBool -lTKBRep -lTKCAF -lTKCDF -lTKernel
-lTKFeat -lTKFillet -lTKG2d -lTKG3d -lTKGeomAlgo -lTKGeomBase -lTKHLR
-lTKIGES -lTKLCAF -lTKMath -lTKMesh -lTKMeshVS -lTKNIS -lTKOffset
-lTKOpenGl -lTKPCAF -lTKPLCAF -lTKPrim -lTKPShape -lTKService
-lTKShapeSchema -lTKShHealing -lTKStdLSchema -lTKStdSchema -lTKSTEP
-lTKSTEP209 -lTKSTEPAttr -lTKSTEPBase -lTKSTL -lTKTObj -lTKTopAlgo
-lTKV2d -lTKV3d -lTKVRML -lTKXCAF -lTKXCAFSchema -lTKXDEIGES
-lTKXDESTEP -lTKXMesh -lTKXml -lTKXmlL -lTKXmlTObj -lTKXmlXCAF
-lTKXSBase -lXCAFPlugin -lXmlLPlugin -lXmlPlugin -lXmlXCAFPlugin
-lSketcher -lShHealOper -lPartition -lNMTTools -lNMTDS -lGEOM
-lGEOMImpl -lGEOMAlgo -lArchimede -o
build/lib.macosx-10.6-universal-2.6/OCC/_Archimede.so
ld: library not found for -lSketcher
collect2: ld returned 1 exit status
error: command 'g++-4.2' failed with exit status 1

It seems that ld does not find libSketcher.dylib however it is at
/usr/local/lib/GEOM-5.1.2.7/libSketcher.dylib and the environmental
variable DYLD_LIBRARY_PATH is defined as
DYLD_LIBRARY_PATH=/usr/local/lib/SMESH-5.1.2.2:/usr/local/lib/GEOM-5.1.2.7:/Library/OpenCASCADE/6.3.0/lib:

What am I doing wrong?

Regards,
István

_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to