Bugs item #3462547, was opened at 2011-12-19 14:37
Message generated for change (Comment added) made by ghutchis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=835077&aid=3462547&group_id=165310

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Building / Install
>Group: v 1.1.0
Status: Open
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Wirawan Purwanto (wirawan0)
Assigned to: Marcus D. Hanwell (cryosuk)
Summary: Avogadro cmake system does not croak on missing prerequisite

Initial Comment:
I just tried to install avogadro 1.0.3 on my linux debian (6) system, where 
some X libraries are moved from /usr/lib to /usr/lib/x86_64-linux-gnu/ . As a 
result, the configure step of cmake failed silently with no warning. I did not 
know this until later when invoke "make" --- the linking of libavogadro 
complained with lots of missing functions (like glBegin, etc), which clearly 
indicates that the OpenGL libraries did not get linked in. The cause was: 
OpenGL library files (libGL.so and libGLU.so) was missing. For some reason the 
built-in OpenGL library finder of cmake did not croak (quit with an error 
message) when it can't find the OpenGL libraries. Here is a patch I added 
(against 1.0.3 official version; but I notice that the GIT repo version also 
can be patch with this), which will quit with an error message when OpenGL 
cannot be found. Similar check should also be done for Qt4, Eigen2, ZLIB, and 
OpenBabel2 (see CMakeLists.txt file on the project root dir.

----------------------------------------------------------------------

>Comment By: Geoff Hutchison (ghutchis)
Date: 2012-06-13 19:19

Message:
Bump for v1.1

----------------------------------------------------------------------

Comment By: Wirawan Purwanto (wirawan0)
Date: 2011-12-19 20:34

Message:
I'm using cmake 2.8.2.

Wirawan

----------------------------------------------------------------------

Comment By: Marcus D. Hanwell (cryosuk)
Date: 2011-12-19 14:46

Message:
Looking at the latest CMake, it appears that this would work now. What
version of CMake are you using? 

----------------------------------------------------------------------

Comment By: Marcus D. Hanwell (cryosuk)
Date: 2011-12-19 14:43

Message:
We could add something like this as a temporary workaround, but I would
rather get the CMake find modules fixed. The REQUIRED keyword means that
the find module should issue a fatal error if the package is not found. I
think that most of these modules do, but it would appear that you have
found one that doesn't. I will look into it.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=835077&aid=3462547&group_id=165310

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Avogadro-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/avogadro-devel

Reply via email to