2011/4/13 Paul <spookte...@gmail.com>

>
>  Hello,
>>>>
>>>>> I'm trying to build the framework using the source archive on ArchLinu
>>>>> x64
>>>>> using gcc 4.6.
>>>>> I have built and installed the opencascade 6.3, geom and smesh
>>>>> dependencies.
>>>>> The build fails with the output:
>>>>>
>>>>> g++ -pthread -shared -Wl,--hash-style=gnu -Wl,--as-needed
>>>>>
>>>>>
>>>>> build/temp.linux-x86_64-2.7/home/paul/Downloads/pythonocc-0.5/src/wrapper/SWIG/linux_darwin/SMDSAbs_wrap.o
>>>>> -L/opt/opencascade/lib -L/usr/local/lib -L/usr/local/lib -L/usr/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 -lDriver -lDriverDAT -lDriverSTL -lDriverUNV -lSMDS
>>>>> -lSMESH
>>>>> -lSMESHDS -lStdMeshers -lpython2.7 -o
>>>>> build/lib.linux-x86_64-2.7/OCC/_SMDSAbs.so -Wl,--no-undefined -lm
>>>>> -lstdc++
>>>>> -lpython2.7
>>>>> /usr/bin/ld: cannot find -lDriver
>>>>> collect2: ld returned 1 exit status
>>>>> error: command 'g++' failed with exit status 1
>>>>>
>>>>> How can this be fixed?
>>>>> Thank you,
>>>>>
>>>>> Paul
>>>>>
>>>>>
>>>>>  Hi Paul,
>>>>>
>>>> A smesh library is missing from your system (libDriver). After compiling
>>>> SMESH (located in the /src/contrib folder), make sure you have the
>>>> following
>>>> libraries installed on your machine (replace the 'dylib' extension with
>>>> 'so'
>>>> if you run Linux)
>>>>
>>>> -rwxr-xr-x  1 thomas  staff    16200 18 jan 09:41 libDriver.dylib
>>>> -rwxr-xr-x  1 thomas  staff    36600 18 jan 09:42 libDriverDAT.dylib
>>>> -rwxr-xr-x  1 thomas  staff    57912 18 jan 09:42 libDriverSTL.dylib
>>>> -rwxr-xr-x  1 thomas  staff   110576 18 jan 09:42 libDriverUNV.dylib
>>>> -rwxr-xr-x  1 thomas  staff   469376 18 jan 09:41 libSMDS.dylib
>>>> -rwxr-xr-x  1 thomas  staff  1430584 18 jan 09:43 libSMESH.dylib
>>>> -rwxr-xr-x  1 thomas  staff   244616 18 jan 09:42 libSMESHDS.dylib
>>>> -rwxr-xr-x  1 thomas  staff  1407576 18 jan 09:45 libStdMeshers.dylib
>>>>
>>>> Thomas
>>>>
>>>>  Hi Thomas,
>>>>
>>> You were right. It was a library missing due to a faulty packaging
>>> script.
>>> It has now built and
>>> passed the unit tests. But the Hello World example fails to launch. I
>>> belive that it could fail bacause
>>> the OCC 6.3 package I made. This is the console output:
>>>
>>> ImportError: /opt/opencascade/lib/libTKNIS.so.0: undefined symbol:
>>> glMultMatrixd
>>>
>>>
>>> Paul
>>>
>>>  Hi Paul,
>>
>> This comes from your opencascade installation, not from pythonocc. Are you
>> sure you linked occ libs with OpenGl ?
>>
>> Thomas
>>
>
> Hi Thomas,
>
> In that build I used the flags i got from the OCC 6.5 package.
>
> --------------------------------------------------------------------------------------------------------
> ./configure --disable-debug --enable-production \
>    --with-java-include=${JAVA_HOME}/include --prefix="$pkgdir/opt/$pkgname"
>
> --------------------------------------------------------------------------------------------------------
>
> After reading your post I've made a second build adding
>
> --------------------------------------------------------------------------------------------------------
> --with-gl-include=/usr/include --with-gl-library=/usr/share
>
> --------------------------------------------------------------------------------------------------------
> but i had the problem persisted.
>
> Now i am doing a build with --enable-draw=yes
>
> --------------------------------------------------------------------------------------------------------
> ./configure --disable-debug --enable-production \
>    --with-java-include=${JAVA_HOME}/include --prefix="$pkgdir/opt/$pkgname"
> \
>    --with-gl-include=/usr/include --with-gl-library=/usr/share
> --enable-draw=yes
>
> --------------------------------------------------------------------------------------------------------
> I hope that this will add the needed OpenGL support.
> Are there any other flags that I'm missing?
>
>
> Paul
>

Paul,

I you have problems with compiling opencascade, I suggest you register the
oce-dev ml (http://groups.google.com/group/oce-dev). We've been trying there
to improve the latest 6.5.0 OCC release. 6.3.0 is outdated, and pythonocc
will soon move to the new oce release.

Best Regards,

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

Reply via email to