2011/8/18 Frank Conradie <fr...@qfin.net> > I am wondering if anyone has tried to build pythonocc for 64bit Python on > Win64? Looking at environment.py. there is no special case code for 64 bit > builds on Windows yet, although there is for Linux and MacOS. > > - Frank > > Hi Frank,
There's not any Win64 specific code because I did not have the opportunity to have a Win64 machine to test pythonocc with this platform. However I do think that the 64bit code for linux/darwin could be used as is for Win64. The script environment.py first detects whether or not python is 64 bit (by querying sys.maxint). After that, according to the result (32 or 64bit), environment.py decides to set -D_OCC64 as a compiler define. That's all. If you just append ('_OCC64',None) to the DEFINE_MACROS list, you should have pythonocc compiled properly under Win64. Just a question: under Win32, sys.platform returns the 'win32' string. Is 'win64' returned under win64? I will create a branch named tp/win64-support (don't know if you're familiar with git). I will notify you when it's done so that you can test building pythonocc from github (https://github.com/tpaviot/pythonocc). I don't know if there are speficic things to be aware of when dealing with python and windows in 64 bit mode, feel free to send any suggestion. Best Regards, Thomas
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users