Good Afternoon,
I started this topic in November, but went on a vacation early December and finally got the time to get back to it now. Based on your comments:
O.k., this means the system doesn’t have the packages for the OpenGL library and headers installed…the later ones are at least:
gl.h, glx.h
libGL.so, libGLX.so
There will be others, like X11 etc, though I expect installing the above would provide most of the dependencies.
I managed to get all the above libraries mentioned installed. Now when I try to use the cmake command I get the error that the CMakeLists.txt in the geant4-v11.1.1-build is different from the one in the original geant4-v11.1 package. I checked and found that the dates are indeed different for the same file in both locations (source and build).
Mmmm. CMake caches options and paths. Try removing CmakeCache.txt and start again. Or just build in a new, clean build directory. Let us know if that fixes it.
Thanks for the suggestion, John. I decided to build a new, clean, build directory. I discovered that there were some undesirable links in the source location that shouldn’t have been created and I was able to remove them, delete the existing build directory and build again. Strangely, the CMakeLists.txt did not get copied from the source directory to the build directory. I decided to copy it from source dir to build dir, and then run rest of the cmake commands. That is when it complained again of the CMakeLists.txt as not having the same version in the build as the source and gave me an error.
I shall, therefore, start from the very beginning, untar the tar file, create a new source directory, a new build and see how it goes. Perhaps the entire process should happen on the same day or the same session, in order for proper, systematic installation. I will try on Wednesday when I get back to work and update you.
The CMakeLists.txt file is not (and should not be) copied from the source to the build dir. The latter only ever contains files generated by the configuration and build processes.
Yesterday, I completely deleted the build folder and started again by creating one and running my cmake command from there. This is what I did (as directed in the installation guide):
$ mkdir geant4-v11.1.1-build
$ ls
geant4-v11.1.1 geant4-v11.1.1-build
To configure the build, change into the build directory and run CMake:
$ cd /path/to/geant4-v11.1.1-build
$ cmake -DCMAKE_INSTALL_PREFIX=/path/to/geant4-v11.1.1-install /path/to/geant4-v11.1.1
This supposed to create an install folder, but it didnt. It, however, generated a number of files in the build directory, but not CMakeLists.txt. When I ran the next command:
$ cmake -DGEANT4_INSTALL_DATA=ON .
It complained that the build does not appear to have CMakeLists.txt. Now I realize that I forgot the dot in the end. Would that solve the problem??
Actually, adding the dot in the end of the command did fix the problem. I did remove the CMakeFiles.txt from the build directory which I had copied, and ran the cmake command with the dot in the end. it worked!
I was successfully able to compile and create an executable file for exampleB1. when I did execute it, it did run all the way until the end but did not display graphics. It gave me this error:
Visualization setting /control/execute vis.mac # Macro file for the visualization setting in the initialization phase # of the B1 example when running in interactive mode # # Use these open statements to open selected visualization # # Use this open statement to create an OpenGL view: /vis/open OGL 600x600-0+0 /vis/sceneHandler/create OGL /vis/viewer/create ! ! 600x600-0+0 libGL error: did not find extension DRI_Mesa version 1 libGL error: failed to load driver: swrast G4OpenGLXViewer::G4OpenGLXViewer couldn’t create context. X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 150 (GLX)*
Minor opcode of failed request: 3 (X_GLXCreateContext)*
Value in failed request: 0x0*
Serial number of failed request: 31*
Current serial number in output stream: 32* WARNING - Attempt to delete the physical volume store while geometry closed ! WARNING - Attempt to delete the logical volume store while geometry closed ! WARNING - Attempt to delete the solid store while geometry closed ! WARNING - Attempt to delete the region store while geometry closed !
Apparently there was some problem in finding extension DRI_Mesa version1 and the driver swrast. Is there a simple fix?
I’m not familiar with Fedora, but please make sure you are up to date with your installations of X11 and OpenGL. Bring your operating system up to date.
Also, please note. Geant4 is now up to version 11.3.