Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Problems during installation #13

Open
cramke opened this issue Mar 4, 2017 · 4 comments
Open

Problems during installation #13

cramke opened this issue Mar 4, 2017 · 4 comments

Comments

@cramke
Copy link

cramke commented Mar 4, 2017

First of all I want to thank you for sharing this code. Unfortunately I have some trouble installing it and I have no idea of programming with C. Maybe you find some time to help me.

When I run python setup.py install in cmd, I get the error: ids_core/ids_core.c(31): fatal error C1083: Cannot open include file: 'ueye.h': No such file or directory. To resolve that I made a change to ids_core.c:

  • Old: #include <ueye.h>
  • New: #include <C:\Program Files\IDS\uEye\Develop\include\ueye.h>

When I try to install it again, the command line outputs a list of errors like the following C:\Program Files\IDS\uEye\Develop\include\ueye.h(1902): error C2059: syntax error: 'string' where only the number (1902) is exchanged with other numbers. The last error which command line prints is C:\Program Files\IDS\uEye\Develop\include\ueye.h(2349): fatal error C1003: error count exceeds 100; stopping compilation

If helpful here is the complete command line output: command line.txt

@tygerlord
Copy link

tygerlord commented Mar 4, 2017 via email

@cramke
Copy link
Author

cramke commented Mar 4, 2017 via email

@shapecoder
Copy link

I have the exact same problem as artnsec above. Trying to install on a 64-bit Windows 10 machine with 64-bit Python. Any ideas?

@Yendolosch
Copy link

@artnsec , @shapecoder : late to the party, but in case someone comes along in the future:

It seems that the compiler can't #include <ueye.h>, because it can't find the file when it looks through its include path, i.e. the directories where it's supposed to be able to find these header files. You can kludge your way around the problem by adding the full path in the #include, like you did, but most of the time that will only postpone the inevitable. It's better to add the missing include directory to the include path.

Look at the output of cl.exe /?: there will be mention of something like -I<dir>. Add -I"C:/Program Files/IDS/uEye/Develop/include/" to the compiler parameters, and things should work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants