Hi guys,

I was successful in installing OCE and PythonOCC. I however want to run the
graphical examples so I need to install PyQt4. I installed it through
macport, but the python versions have got mixed up (it seems, macport
installed py26-pyqt4 for python2.6.1, which got installed in mac osx's
python2.6.7. I tried to build PythonOCC with different versions of python
interpreter, but that didn't help). If any of you guys have PythonOCC GUI
examples working on MacOSX Snow Leopard, would you mind sharing the python
interpreter and QT versions you are using, and how you installed it? That
will be very helpful.

Thanks,
--
Jayesh


On Wed, Oct 5, 2011 at 2:56 PM, Jayesh Salvi <jayeshsa...@gmail.com> wrote:

>
>>> ....
>>> swigging
>>> /Users/jayesh/git/pythonocc/src/wrapper/SWIG_files/linux_darwin/Poly.i to
>>> /Users/jayesh/git/pythonocc/src/wrapper/SWIG_files/linux_darwin/Poly_wrap.cpp
>>> swig -python -O -c++ -DHAVE_LIMITS_H -DHAVE_CONFIG_H -DCSFDB
>>> -w302,401,314,509,512 -DOCC_CONVERT_SIGNALS -outdir
>>> /Users/jayesh/git/pythonocc/src/build/swig_output_darwin_py26 -D_OCC64 -o
>>> /Users/jayesh/git/pythonocc/src/wrapper/SWIG_files/linux_darwin/Poly_wrap.cpp
>>> /Users/jayesh/git/pythonocc/src/wrapper/SWIG_files/linux_darwin/Poly.i
>>> g++ -O2 -fPIC -dynamic -pipe -arch x86_64 -DHAVE_CONFIG_H -DHAVE_LIMITS_H
>>> -DCSFDB -DOCC_CONVERT_SIGNALS -D_OCC64 -I/usr/local/inc
>>> -I/Users/jayesh/git/pythonocc/src/wrapper/SWIG_files/linux_darwin
>>> -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
>>> -c
>>> /Users/jayesh/git/pythonocc/src/wrapper/SWIG_files/linux_darwin/Poly_wrap.cpp
>>> -o
>>> build/temp.macosx-10.6-universal-2.6/Users/jayesh/git/pythonocc/src/wrapper/SWIG_files/linux_darwin/Poly_wrap.o
>>> -I/usr/X11R6/include
>>> /Users/jayesh/git/pythonocc/src/wrapper/SWIG_files/linux_darwin/Poly_wrap.cpp:
>>> In function ‘void SWIG_Python_AddErrorMsg(const char*)’:
>>> /Users/jayesh/git/pythonocc/src/wrapper/SWIG_files/linux_darwin/Poly_wrap.cpp:870:
>>> warning: format not a string literal and no format arguments
>>> /Users/jayesh/git/pythonocc/src/wrapper/SWIG_files/linux_darwin/Poly_wrap.cpp:
>>> In function ‘PyObject* _wrap_Poly_PointOnTriangle(PyObject*, PyObject*)’:
>>> /Users/jayesh/git/pythonocc/src/wrapper/SWIG_files/linux_darwin/Poly_wrap.cpp:14294:
>>> error: ‘PointOnTriangle’ is not a member of ‘Poly’
>>> error: command 'g++' failed with exit status 1
>>>
>>> I know that PythonOCC is still not ready to work with OCE, are these
>>> errors related to that?
>>>
>>
>> False. The current pythonocc master works fine with OCE-0.6.0. If you
>> built OCE-0.6.0 on Linux, (cmake/make/make install) I think that header
>> files are installed to /usr/local/include/oce.
>>
>
> That was the problem. I had OCE headers in /usr/local/inc from some old
> build adventure, didn't realize that the latest one installed them to
> /usr/local/include/oce. The compilation is making progress now, I will post
> again if I run into more errors.
>
> Thanks.
>
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to