|Message: Re: OPENGL_INCLUDE_DIR error during install||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
Hi Mythra & John,
Not sure if you've already resolved this issue, but this morning I came across the exact same problem when trying to install Geant4 v10 on a Macbook Air running Mavericks (OSX 10.9.1). I believe I've found the cause of the problem and a solution.
My (very limited) understanding is that Apple made some changes in Mavericks that include, among other things, a relocation of the OpenGL libraries that are needed for Geant4 applications using this type of visualization. Setting the cmake flag -DGEANT4_USE_OPENGL_X11=ON correctly tells cmake to build the OpenGL libraries, but because they've been moved to a new directory in Mavericks Geant4 can't find them and, consequently, you get the error described as:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: OPENGL_INCLUDE_DIR (ADVANCED) used as include directory in directory /Users/mahathi/Documents/Software/geant4.10.00/source/visualization/externals/gl2ps used as include directory in directory /Users/mahathi/Documents/Software/geant4.10.00/source/visualization/OpenGL
You should be able to see the file CMakeCache.txt file in your build directory which stores several variables (including one that points to the directory containing the OpenGL headers) needed for cmake. After receiving the above error, if you open the CMakeCache.txt file and search for the variable OPENGL_INCLUDE_DIR:PATH, you'll see that it's been set to:
//Include for OpenGL on OSX OPENGL_INCLUDE_DIR:PATH=OPENGL_INCLUDE_DIR-NOTFOUND
and this is causing the error. After some digging, I found a forum post (link: https://github.com/parrot/parrot/issues/1016) that gives the new directory for the OpenGL headers in Mavericks as /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers (you can check yourself in Finder that this directory contains the key header files gcl.h and OpenCL.h). So, if you change the variable OPENGL_INCLUDE_DIR:PATH in CMakeCache.txt to point to this directory and then run cmake, the OpenGL libraries will be found correctly. So, change this variable to say:
//Include for OpenGL on OSX OPENGL_INCLUDE_DIR:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers
Now, run cmake again (as you did before) and you shouldn't see this error message anymore. Continue following the installation procedure by running -make in the build directory, followed by -make install, and everything should work just fine. Rebuild the application you want to run, and you should be able to use the OpenGL visualization now.
Hopefully this helps - please confirm whether or not this solves the problem. If you encounter any more errors (hopefully not!) please post them below.
|Inline Depth:||Outline Depth:||Add message:|