matham / rotpy

Python bindings for the Spinnaker SDK to enable Pythonic control of Teledyne/FLIR/Point Grey USB and GigE cameras.
MIT License
17 stars 0 forks source link

Environment variables #8

Open liam-clink opened 3 months ago

liam-clink commented 3 months ago

Just wanted to note that if environment variables are set the usual way on Windows, with SystemPropertiesAdvanced.exe, there will be a semicolon at the end if there are multiple items. The instructions say to add two folders to the library environment variable, and the setup.py file splits the path, resulting in three items, where the last one is ''. This causes this error:

LINK : fatal error LNK1146: no argument specified with option '/LIBPATH:'

So the logic for figuring out library paths should take this into account.

arminbahl commented 1 month ago

Thanks @liam-clink, I had the same problem. You can fix this on Windows by explicitly edit the text of the list when setting environmental variables. Did you manage to compile the package otherwise? I am getting various compiling errors (see my other comment in the Python 3.12 thread).

liam-clink commented 1 month ago

I think I did but it's been a while so I'd need to check