

More fun is going to come… )Īfter “export VERBOSE=1” in the build directory of RE03 I made the “cmake” and you can find the output in. (And next year we are going to have “Big Sur” with another architecture.
#Xquartz 2.7 4 how to#
Well, if you do not want to use anything from MacPorts or Brew, you will have to find a way to enforce the usage of the XQuartz X11 in the G4 cmake, but I don’t know how to do that.Īnd (for the vis group), it is clearly needed to revisit the G4 cmake logic to be sure to be consistent with X11 and GL (and Motif) (both should be taken from the same source or XQuartz, or MacPorts, or Brew). Then try by “arranging” to use “consistent” libX11 and libGL… With MacPorts all is under /opt/local (I think) (I hope)). (I don’t like Brew, it touches things under /usr, which does not do MacPorts.
#Xquartz 2.7 4 install#
If someone install things with Brew, it should be the same, someone must use all X11, GL, (Motif) coming with it. (I cross checked, and all my Motif apps doing GL is ok on Catalina if being “all MacPorts”). One critical point is that for example Motif (I still use it, and is still usable with Geant4), does not come with XQuartz, but can be installed with MacPorts in a consistent way with the rest. I think that we must definitely forget the libs of XQuartz when building and run “X11 clients”. In my things, I use MacPorts for all my X11 things, and I changed them to enforce the usage of libGL coming from that. (Then you should see in the link command : /opt/local/lib/libX11.dylib and /opt/local/lib/libGL.dylib). Then when building your example, cross check the link command and run… It should pass… (with G4 dylibs or. Sudo port install mesa (or glxinfo, or better libGLU to have also libGLU) Note that you may not have the libGL in your MacPorts area, if not, you can have have them with: To use the GL found under /opt/local/include and /opt/local/lib. What I did for the moment is just tweak the : – Looking for XOpenDisplay in /opt/local/lib/libX11.dylib /opt/local/lib/libXext.dylib - found – Looking for XOpenDisplay in /opt/local/lib/libX11.dylib /opt/local/lib/libXext.dylib THEN, what is bad, is that for me the cmake on the build of Geant4 clearly says : I think that “it passed” at the time of Morave because the two lib sets where not so much different, but now there is clearly a big gap, at least concerning the dates and sizes from the libs coming with MacPorts and the ones of XQuartz. a static libs, I have the same problem that you describe. If I use the Geant4 dylib, in fact I have a crash with something as :Īssertion failed: (pthreadret = 0), function _xcb_in_wake_up_next_reader, file xcb_in.c, line 926Īnd if I use the Geant4. If in the build of your example, you do a “export VERBOSE=1” (or “setenv VERBOSE 1”, if under a csh), and then do “make” again (by rooming the RE03 binary), you will probably see that in the (long) link command, you too mix both. (And for which there is a symlink from /usr/X11R6 are really nasty point) (and which is installed under /opt, which is confusing relative to MacPorts that installs under /opt/local). I can reproduce, and yes for me the problem comes clearly from a mix up of the usage of the libX11.dylib taken from /opt/local/lib (then coming from a MacPorts installation) and the usage of the libGL.dylib taken from /opt/X11 (then coming from the XQuartz installation). Parallel worlds requested but none exist.ĮRROR: G4VisCommandsViewerSet::SetNewValue: no current viewer.ĮRROR: G4VisCommandsViewerZoom::SetNewValue: no current viewer. WARNING: G4VisCommandSceneAddVolume::SetNewValue: G4OpenGLStoredX::CreateViewer: error flagged by negative view id in G4OpenGLStoredXViewer creation.ĭestroying view and returning null pointer.ĮRROR in G4VisManager::CreateViewer: null pointer during OpenGLStoredX viewer creation. G4OpenGLXViewer::G4OpenGLXViewer: unable to get required visuals. G4OpenGLXViewer::G4OpenGLXViewer: unable to get a double buffer visual. G4OpenGLXViewer::G4OpenGLXViewer: unable to get a single buffer visual.

RE03 vis.mac I obtain the error you can find in at the end of this email.
#Xquartz 2.7 4 mac os#
I’m working with Geant4 10.6 on mac OS Catalina 15.10.5 with XQuartz 2.7.11 and I’m looking at /examples/extended/runAndEvent/RE03/
