Open emmanuelvendeprosaft opened 2 years ago
Hi. Did you install Cython?
Something you also need to change is the path to Packet.lib and wpcap.lib in the setup.py
. On line 22 this
soem_lib_dirs = [os.path.join('.', 'soem', 'oshw', 'win32', 'wpcap', 'Lib', 'x64')]
should be replaced by this:
soem_lib_dirs = [os.path.join('.', 'soem', 'oshw', 'win32', 'wpcap', 'Lib')]
I guess it is sufficient to generate the bdist with an 32 bit Python distribution, the build already knows your target bit-width (so no --plat-name=win32
needed).
Maybe there other things I'm missing, I never tried compiling for 32 bit.
Thanks a lot for your reply @bnjmnp 😀 Indeed I don't have Cython installed 😅, I'll do it quickly and try to re-build with the fix you provide in the setup.py. I'll keep you informed !
Hi all I need to generate a pysoem lib version for someone running Python 32 bits on his Win10 system (he's having Python compiled with MSC v.1900 32 bits INTEL). He can't use Python 64 bits due to his whole system install.
So I try to generate the right binairies from my machine (Win10 with MS build tools installed) typing
python .\setup.py bdist --plat-name=win32
(it this really the right thing to do ?) and I'm getting this:Looks like
pysoem.c
file is missing. Can comeone please help me to solve this issue ? Thanks in advance :)