You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the installation instructions in the README doesn't work for me. There might be some prerequisites worth mentioning.
I am using macOS (13.5.2).
When following the B) section, running the setup.py to create a wheel I receive the following error at around 87%:
/PyPupilEXT/3rdparty/spii/thirdparty/Eigen/Eigen/Core:138:10: fatal error: 'omp.h' file not found
#include <omp.h>
This is probably because I installed libomp via homebrew. I can get rid of it by replacing #include <omp.h> with #include "/usr/local/opt/libomp/include/omp.h".
However this leads to another error at 100%:
ld: warning: directory not found for option '-L/usr/local/Cellar/libomp/14.0.6/lib'
ld: library not found for -llibomp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I thought this was most likely related to the now used version of libomp which is 16.0.6 in my case. I replaced all occurrences of libomp/14.0.6 with libomp/16.0.6 so that all libomp/xx.x.x/include and libomp/xx.x.x/lib point to my current version.
However I still receive a similar error at 100%, only the ld: warning: directory not found line is gone:
ld: library not found for -llibomp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I couldn't figure out how to continue from there so I tried using the C) section of the installation instructions instead.
Although I followed the instructions and put my numpy path in the CMakeLists.txt and verified the file exists, when running cmake --build . --config Release I get an error message saying numpy is not found:
/PyPupilEXT/src/type_converter.cpp:8:10: fatal error: 'numpy/ndarrayobject.h' file not found
#include <numpy/ndarrayobject.h>
I was hoping someone ran into similar problems and wants to share their solution. Other than that it would be great to have a prebuild docker or pip wheel.
The text was updated successfully, but these errors were encountered:
The project has been updated, and the build process should now work smoothly on Windows, Ubuntu, and macOS. The instructions in the README file were revised accordingly.
Further, there are now prebuilt wheel files, so you no longer need to build the project from source if your primary goal is to use it. Here's a link to the wheel files for different platforms: https://github.com/openPupil/PyPupilEXT/releases/tag/v0.0.1-beta
Following the installation instructions in the README doesn't work for me. There might be some prerequisites worth mentioning.
I am using macOS (13.5.2).
When following the
B)
section, running thesetup.py
to create a wheel I receive the following error at around 87%:This is probably because I installed
libomp
via homebrew. I can get rid of it by replacing#include <omp.h>
with#include "/usr/local/opt/libomp/include/omp.h"
.However this leads to another error at 100%:
I thought this was most likely related to the now used version of
libomp
which is 16.0.6 in my case. I replaced all occurrences oflibomp/14.0.6
withlibomp/16.0.6
so that alllibomp/xx.x.x/include
andlibomp/xx.x.x/lib
point to my current version.However I still receive a similar error at 100%, only the
ld: warning: directory not found
line is gone:I couldn't figure out how to continue from there so I tried using the
C)
section of the installation instructions instead.Although I followed the instructions and put my numpy path in the
CMakeLists.txt
and verified the file exists, when runningcmake --build . --config Release
I get an error message saying numpy is not found:I was hoping someone ran into similar problems and wants to share their solution. Other than that it would be great to have a prebuild docker or pip wheel.
The text was updated successfully, but these errors were encountered: