Closed pranny closed 1 year ago
Hi Pranav,
Thank you for reporting this. Looks like the default template argument of clip_polygon_to_plane_in_4d
is specified twice and AppleClang doesn't like that, and for some reasons other compilers accept it.
The fix should be simple: Here https://github.com/patrikhuber/eos/blob/41d5af0971ebcf1d65a7f5bcf2465c1451c7484d/include/eos/render/SoftwareRenderer.hpp#L400, can you change this to template <typename T, glm::precision P>
and see whether it fixes the error?
Thanks!
HI Patrik,
That does solve the issue. It was a very minor issue, and I could've caught it but C++ isn't my first language. Thanks for the quick resolution. Closing this issue now.
Thanks a lot for reporting back. Great that this worked. I'll re-open / leave this open, as I should probably check this and fix it / change it permanently.
Hello Patrik and Pranav,
I am also trying to build EOS on MacOS Catalina, so decided to post my issue here instead op opening new issue. Sorry, for a silly question - I am new to C++ so all these building procedures is something new for me. Anyhow, I am trying to follow the installation instructions from README.md and here what I have when trying to build in the terminal:
(base) MBP-Denys:eos denys.volkov$ cmake -G "Unix Makefiles" ../eos -DCMAKE_INSTALL_PREFIX=../install/ -- Options: -- EOS_BUILD_EXAMPLES: ON -- EOS_BUILD_CERES_EXAMPLE: OFF -- EOS_BUILD_UTILS: OFF -- EOS_BUILD_DOCUMENTATION: OFF -- EOS_GENERATE_PYTHON_BINDINGS: OFF -- EOS_GENERATE_MATLAB_BINDINGS: OFF -- Eigen3 found: TRUE, version: 3.3.4 -- Eigen3 include dir found at /Users/denys.volkov/Documents/Stuff/Projects/CIEM/Code/Step_3_3dmm_fitting/denys/Using EOS/eos/3rdparty/eigen -- OpenCV 2.x detected -- Boost found at /usr/local/include -- Configuring done CMake Error at examples/CMakeLists.txt:29 (add_executable): Target "fit-model-simple" links to target "JPEG::JPEG" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?
CMake Error at examples/CMakeLists.txt:41 (add_executable): Target "fit-model-multi" links to target "JPEG::JPEG" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?
CMake Error at examples/CMakeLists.txt:47 (add_executable): Target "generate-obj" links to target "JPEG::JPEG" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?
CMake Error at examples/CMakeLists.txt:35 (add_executable): Target "fit-model" links to target "JPEG::JPEG" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?
-- Generating done CMake Generate step failed. Build files cannot be regenerated correctly.
Seems to be some problems with JPEG but I can't figure out how to fix it myself. I would be most appreciated if you could check what's wrong with my settings. Thank you in advance!
Hi @DenysVolkov,
eos does not need libjpeg, I think this comes as a transitive dependency from OpenCV. Maybe the eos CMake scripts have to be updated in the way they use OpenCV, but I rather think that this is some issue related to OpenCV's CMake scripts. I would recommend that you post this question on the OpenCV forums or on StackOverflow. You should also post the exact versions of things you're using (if your log output is correct and you're using OpenCV 2.x, that's quite old, I'd recommend updating).
Note that the eos library doesn't need OpenCV (and thus doesn't need libjpeg). Only the examples do, for reading images. So you could set up your own project and start using the eos library, without needing to compile the examples with OpenCV.
Hi @patrikhuber ,
Thank you very much for such a quick reply! You were right - the problem was that I had old OpenCV. Ones I updated it to newer version it all worked out perfectly!
I've just released eos v1.4.0, which removed all of glm, and now uses Eigen everywhere. So these default template argument errors with glm should be gone now as well. If there are other/new issues with macOS, please let me know via new issues! :-)
I cloned and checked out v1.2.1, and followed build instructions with Generator as "Unix Makefiles". I am getting this error below.
Make output
Build output log