-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add GudhUI compilation flag #1001
Conversation
I am not opposed to a flag just for GudhUI, it makes some sense, but the priority should be understanding what is going wrong. CMakeLists.txt has find_package(QGLViewer QUIET)
if ( QGLVIEWER_FOUND) before the compilation of GudhUI, which seems to imply that QGLViewer was found by CMake. @VincentRouvreau could you try to reproduce? |
@DavidLapous what does CMakeCache.txt say about QGLViewer in that failing scenario? |
If I try on my laptop in a conda environment created from your .yml, CMake prints
(or python-documentation instead of python depending how I call cmake exactly) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok if Vincent is ok with it.
But I would really like to understand the failure, don't forget about it just because you have a way to skip it.
Sorry for the delay. Here is my CMakeCache.txt. |
It does not reproduce on my computer because cmake finds libGL.so in /usr/lib64 on Fedora but not in /usr/lib/x86_64-linux-gnu on Debian (strange)... and thus it never even looks for QGLViewer on my computer.
|
I've tried with the make and cmake from conda (ie removing build + relaunch cmake), and it doesn't fix the problem. |
I managed to reproduce by telling CMake to look in /usr/lib/x86_64-linux-gnu.
Assuming my guess is close to the truth, that makes it a big bug in conda's cmake package (maybe related to conda-forge/cmake-feedstock#106 and conda-forge/cmake-feedstock#129 ?). |
I can confirm that the cmake in conda has a long CMAKE_SYSTEM_PREFIX_PATH that includes not just the conda paths but also /usr, /usr/local (twice!), /usr/X11R6, /opt, etc). What conda+cmake does is bound to break... In the mean time, when something that is installed on your system causes trouble for your conda environment, a natural workaround is to install this in conda as well and hopefully the build will use the right version. |
Thanks for the proposal @DavidLapous and for the investigation @mglisse ! |
This adds a flag
WITH_GUDHI_GUDHUI
to disable GudhUI compilation, without disabling everything.This is very useful as Gudhi doesn't compile on a conda environment without qgl libraries, such as the following one :
I suppose that cmake doesn't like some of the flags that comes with the cxx-compiler package, which gives the following error