Open afiran opened 8 years ago
Hi, it looks like you don't have OpenGL working or, you didn't compile Geant4 with OpenGL. Does this ring a bell ?
J.
On Fri, Feb 5, 2016 at 3:21 PM, Ana notifications@github.com wrote:
I have issues using the visualization package I do not have OpenInventor but I do have installed QT4 It seems that just commenting and uncommenting the /vis/open statements in the macro is not working for meI get the following error: ERROR: G4VisCommandsViewerSet::SetNewValue: no current viewer ERROR: G4VisCommandSceneHandlerCreate::SetNewValue: could not find fallback graphics system for "OGL" ERROR: G4VisCommandViewerCreate::SetNewValue: no scene handlers Create a scene handler with "/vis/sceneHandler/create" ERROR: G4VisCommandsViewerSet::SetNewValue: no current viewer Visualization verbosity changed to errors (2) * Illegal parameter (0) *
Any suggestions would be greatly appreciated Ana
— Reply to this email directly or view it on GitHub https://github.com/ALLPix/allpix/issues/6.
I do have OpenGL. If I run the Geant4 examples , the visualization works. Ana
Then the problem is with Qt ? Did you compile geant4 with that support ? The flags are
-DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_XM=ON -DGEANT4_USE_QT=ON
J.
On Fri, Feb 5, 2016 at 3:44 PM, Ana notifications@github.com wrote:
I do have OpenGL. If I run the Geant4 examples , the visualization works. Ana
— Reply to this email directly or view it on GitHub https://github.com/ALLPix/allpix/issues/6#issuecomment-180384391.
I compile Geant4 using: cmake ../ -DCMAKE_INSTALL_PREFIX=/Applications/Misc/geant4.10.02 -DGEANT4_BUILD_MULTITHREADED=ON -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_QT=ON -DXERCESC_ROOT_DIR=/opt/local/include/xercesc
I am also attaching a screenshot of example B2a running on my computer. Ana [cid:4BDA91B0-1607-4821-A748-21CB8F750941@ndc.nasa.gov]
On Feb 5, 2016, at 8:59 AM, idarraga notifications@github.com<mailto:notifications@github.com> wrote:
Then the problem is with Qt ? Did you compile geant4 with that support ? The flags are
-DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_XM=ON -DGEANT4_USE_QT=ON
J.
On Fri, Feb 5, 2016 at 3:44 PM, Ana notifications@github.com<mailto:notifications@github.com> wrote:
I do have OpenGL. If I run the Geant4 examples , the visualization works. Ana
— Reply to this email directly or view it on GitHub https://github.com/ALLPix/allpix/issues/6#issuecomment-180384391.
— Reply to this email directly or view it on GitHubhttps://github.com/ALLPix/allpix/issues/6#issuecomment-180390215.
You need to turn on XM and OpenGL too. Why don't you follow our recomendation to install OpenGL with full support for allpix ? Here:
https://twiki.cern.ch/twiki/bin/view/Main/AllPix#Dependencies
J.
On Fri, Feb 5, 2016 at 4:09 PM, Ana notifications@github.com wrote:
I compile Geant4 using: cmake ../ -DCMAKE_INSTALL_PREFIX=/Applications/Misc/geant4.10.02 -DGEANT4_BUILD_MULTITHREADED=ON -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_QT=ON -DXERCESC_ROOT_DIR=/opt/local/include/xercesc
I am also attaching a screenshot of example B2a running on my computer. Ana [cid:4BDA91B0-1607-4821-A748-21CB8F750941@ndc.nasa.gov]
On Feb 5, 2016, at 8:59 AM, idarraga <notifications@github.com<mailto: notifications@github.com>> wrote:
Then the problem is with Qt ? Did you compile geant4 with that support ? The flags are
-DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_XM=ON -DGEANT4_USE_QT=ON
J.
On Fri, Feb 5, 2016 at 3:44 PM, Ana <notifications@github.com<mailto: notifications@github.com>> wrote:
I do have OpenGL. If I run the Geant4 examples , the visualization works. Ana
— Reply to this email directly or view it on GitHub https://github.com/ALLPix/allpix/issues/6#issuecomment-180384391.
— Reply to this email directly or view it on GitHub< https://github.com/ALLPix/allpix/issues/6#issuecomment-180390215>.
— Reply to this email directly or view it on GitHub https://github.com/ALLPix/allpix/issues/6#issuecomment-180394189.
Ana. If you decide to follow the official recommendation for Geant4 installation allpix-compatible, please don't hesitate posting questions on it. I personally think that having the OpenInventor support pays off greatly for debugging both, geometries and physics. Feel free to post as many questions as necessary. We'll try to walk you through the process. Good luck ! And thanks for your interest in allpix :) !
J.
On Fri, Feb 5, 2016 at 4:17 PM, John Idarraga john.idarraga@gmail.com wrote:
You need to turn on XM and OpenGL too. Why don't you follow our recomendation to install OpenGL with full support for allpix ? Here:
https://twiki.cern.ch/twiki/bin/view/Main/AllPix#Dependencies
J.
On Fri, Feb 5, 2016 at 4:09 PM, Ana notifications@github.com wrote:
I compile Geant4 using: cmake ../ -DCMAKE_INSTALL_PREFIX=/Applications/Misc/geant4.10.02 -DGEANT4_BUILD_MULTITHREADED=ON -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_QT=ON -DXERCESC_ROOT_DIR=/opt/local/include/xercesc
I am also attaching a screenshot of example B2a running on my computer. Ana [cid:4BDA91B0-1607-4821-A748-21CB8F750941@ndc.nasa.gov]
On Feb 5, 2016, at 8:59 AM, idarraga <notifications@github.com<mailto: notifications@github.com>> wrote:
Then the problem is with Qt ? Did you compile geant4 with that support ? The flags are
-DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_XM=ON -DGEANT4_USE_QT=ON
J.
On Fri, Feb 5, 2016 at 3:44 PM, Ana <notifications@github.com<mailto: notifications@github.com>> wrote:
I do have OpenGL. If I run the Geant4 examples , the visualization works. Ana
— Reply to this email directly or view it on GitHub https://github.com/ALLPix/allpix/issues/6#issuecomment-180384391.
— Reply to this email directly or view it on GitHub< https://github.com/ALLPix/allpix/issues/6#issuecomment-180390215>.
— Reply to this email directly or view it on GitHub https://github.com/ALLPix/allpix/issues/6#issuecomment-180394189.
Ana and I worked to get that dependency working; but SoXt doesn't compile under OS X. We got the head version of Coin3D to compile, that was a simple fix that I sent along to the Coin3D guys to implement.
-Ryan
Alright, so you guys are working in OS X. Ok, so you got Coin3D to compile, but not SoXt. Is this correct ? What is the problem you are having with SoXt ?
J.
On Fri, Feb 5, 2016 at 4:45 PM, Ryan notifications@github.com wrote:
Ana and I worked to get that dependency working; but SoXt doesn't compile under OS X. We got the head version of Coin3D to compile, that was a simple fix that I sent along to the Coin3D guys to implement.
-Ryan
— Reply to this email directly or view it on GitHub https://github.com/ALLPix/allpix/issues/6#issuecomment-180409694.
Hello,
Out of interest, has anyone considered using a CernVM for working with Allpix?
We use them with CERN@school (which uses Allpix!) to avoid this kind of configuration issue as the VM software will run on OS X, Windows, or whatever the schools are running...
You could even develop a CernVM "context" specifically for Allpix, and/or deploy Allpix to the CernVM-FS.
Apologies if this has been thought of before! Best, @twhyntie
@idarraga, I haven't ignored the issue; I've been busy with some other detector deployments last week and am at a workshop this week.
@twhyntie, I'd love to use CernVM for AllPix and many other software projects, but all the ports are blocked where I work. I have to go through a long and involved process to get them unblocked, but it is something I would like to use.
Is this working now ?
Sorry for the long delays in responses. SoXT was the hold up for us to run it under OS X; it never compiled. We're trying to set it up on another cluster which has access to CernVM. Please go ahead ahead and close this ticket.
I have compiled it before in OSX successfully. It should work. You could also share here the error message so we can try to help.
J.
On Mon, Apr 11, 2016 at 8:15 PM, Ryan notifications@github.com wrote:
Sorry for the long delays in responses. SoXT was the hold up for us to run it under OS X; it never compiled. We're trying to set it up on another cluster which has access to CernVM. Going to go ahead and close this ticket.
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/ALLPix/allpix/issues/6#issuecomment-208483451
Ok, so there are compilation problems in SoXt. I've done it in the past, but I suspect it's probably due to the way X11 is handled in newer versions of OS X. We're running El Capitan.
export PREFIX=/Applications/Misc/GeantV_Related
Coin3D:
hg clone ssh://hg@bitbucket.org/Coin3D/coin
export CC=clang
export CXX=clang++
./configure
make -j
sudo make install
SoXt:
cd $PREFIX
hg clone ssh://hg@bitbucket.org/Coin3D/soxt
cd soxt
./configure --with-x --x-includes=/usr/X11/include/ --x-libraries=/usr/X11/lib/ --enable-darwin-x11 --enable-optimization
make -j
Then I get the compilation error here: make_error.txt
Right, there it is. "Undefined symbols". This means you have the wrong version of one of the dependencies. It looks like it is coin. Coin is a dependency for SoXt. Which version (or revision) or Coin did you compile ?
J.
On Tue, Apr 12, 2016 at 3:16 PM, Ryan notifications@github.com wrote:
Ok, so there are compilation problems in SoXt. I've done it in the past, but I suspect it's probably due to the way X11 is handled in newer versions of OS X. We're running El Capitan.
export PREFIX=/Applications/Misc/GeantV_Related
Coin3D:
hg clone ssh://hg@bitbucket.org/Coin3D/coinexport CC=clangexport CXX=clang++ ./configure make -j sudo make install
SoXt:
cd $PREFIX hg clone ssh://hg@bitbucket.org/Coin3D/soxtcd soxt ./configure --with-x --x-includes=/usr/X11/include/ --x-libraries=/usr/X11/lib/ --enable-darwin-x11 --enable-optimization make -j
Then I get the compilation error here: make_error.txt https://github.com/ALLPix/allpix/files/215054/make_error.txt
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/ALLPix/allpix/issues/6#issuecomment-208900089
I used the head.
yeah ... I think that one doesn't work ... it is written in the wiki. Try the revision recommended there
https://twiki.cern.ch/twiki/bin/view/Main/AllPix#Dependencies
if this one doesn't contain those functions missing ... simply try to find a revision or release which does. I remember I got it right in OSX simply by picking the right version.
cheers,
J.
On Tue, Apr 12, 2016 at 3:28 PM, Ryan notifications@github.com wrote:
I used the head.
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/ALLPix/allpix/issues/6#issuecomment-208904814
The head version compiles and installs fine; I'll go ahead and try the other revision.
see if the symbols exists before hand, so you don't loose the time compiling
J.
On Tue, Apr 12, 2016 at 3:43 PM, Ryan notifications@github.com wrote:
The head version compiles and installs fine; I'll go ahead and try the other revision.
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/ALLPix/allpix/issues/6#issuecomment-208912110
Compilation doesn't take too long for either, maybe a minute. Same problem though using Coin with revision 11361.
Then you need to find the version where these symbols exists.
J.
On Tue, Apr 12, 2016 at 4:05 PM, Ryan notifications@github.com wrote:
Compilation doesn't take too long for either, maybe a minute. Same problem though using Coin with revision 11361.
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/ALLPix/allpix/issues/6#issuecomment-208923206
SoXt hasn't been touched in several years and it has been a problem in OS X for at least 1.5yrs - https://trac.macports.org/ticket/45612
If I have time, I'll find see if I can find a version that works.
Thanks for the help John.
Did you try the other way around ... downgrading SoXt ? ... so the set of the API they are using is different ?
J.
On Tue, Apr 12, 2016 at 5:38 PM, Ryan notifications@github.com wrote:
SoXt hasn't been touched in several years and it has been a problem in OS X for at least 1.5yrs - https://trac.macports.org/ticket/45612
If I have time, I'll find see if I can find a version that works.
Thanks for the help John.
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/ALLPix/allpix/issues/6#issuecomment-208966561
Tried downgrading SoXt - no success. Tried downgrading Coin and SoXt - no success. It's an old problem and SoXt hasn't been modified in years. I thought I'd try to compiler Geant4 with OpenInventor using SoQt, and while that compiled - I ended up seeing that you have your own fork of SoXt. I grabbed that and it worked. So, now I have OpenInventor in Geant4.
> geant4-config --has-feature open inventor
yes
Now, I'm getting can't even compile AllPix v.1.1 alpha:
> git clone https://github.com/ALLPix/allpix.git
Cloning into 'allpix'...
remote: Counting objects: 985, done.
remote: Total 985 (delta 0), reused 0 (delta 0), pack-reused 985
Receiving objects: 100% (985/985), 2.72 MiB | 2.51 MiB/s, done.
Resolving deltas: 100% (685/685), done.
Checking connectivity... done.
> cd allpix
> git checkout AllPix_v1.1alpha
rning: refname 'AllPix_v1.1alpha' is ambiguous.
Already on 'AllPix_v1.1alpha'
Your branch is up-to-date with 'origin/AllPix_v1.1alpha'.
> mkdir build && cd build
> cmake ../ -DCMAKE_BUILD_TYPE=Optimized -DCMAKE_INSTALL_PREFIX=../ -DGCCXML=/Applications/Misc/GeantV_Related/gccxml/
> cmake ../ -DCMAKE_BUILD_TYPE=Optimized -DCMAKE_INSTALL_PREFIX=../ -DGCCXML=/Applications/Misc/GeantV_Related/gccxml/
-- The C compiler identification is AppleClang 7.3.0.7030029
-- The CXX compiler identification is AppleClang 7.3.0.7030029
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ROOT 6.06/02 in /Applications/Misc/root
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- Performing Test COMPILER_SUPPORTS_CXX0X
-- Performing Test COMPILER_SUPPORTS_CXX0X - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /Applications/Misc/GeantV_Related/allpix/build
> make -j install
make[2]: *** No rule to make target `CMakeFiles/allpix.dir/depend'. Stop.
make[1]: *** [CMakeFiles/allpix.dir/all] Error 2
make: *** [all] Error 2
Hi, yes.
I created that fork and fixed some stuff, but then I didn’t get much further than you.I saw that error and was like « WTF » . This need some John wizardry here,
Cheers,
Mathieu Benoit
Maître-Assistant, DPNC-UNIGE Office : 301 1-006 CERN CH-1211 Genève 23 Switzerland Mobile : +41754119859
Le 14 avr. 2016 à 20:16, Ryan notifications@github.com<mailto:notifications@github.com> a écrit :
Tried downgrading SoXt - no success. Tried downgrading Coin and SoXt - no success. It's an old problem and SoXt hasn't been modified in years. I thought I'd try to compiler Geant4 with OpenInventor using SoQt, and while that compiled - I ended up seeing that you have your own fork of SoXt. I grabbed that and it worked. So, now I have OpenInventor in Geant4.
geant4-config --has-feature open inventor yes
Now, I'm getting can't even compile AllPix v.1.1 alpha:
git clone https://github.com/ALLPix/allpix.git Cloning into 'allpix'... remote: Counting objects: 985, done. remote: Total 985 (delta 0), reused 0 (delta 0), pack-reused 985 Receiving objects: 100% (985/985), 2.72 MiB | 2.51 MiB/s, done. Resolving deltas: 100% (685/685), done. Checking connectivity... done.
cd allpix
git checkout AllPix_v1.1alpha rning: refname 'AllPix_v1.1alpha' is ambiguous. Already on 'AllPix_v1.1alpha' Your branch is up-to-date with 'origin/AllPix_v1.1alpha'.
mkdir build && cd build
cmake ../ -DCMAKE_BUILD_TYPE=Optimized -DCMAKE_INSTALL_PREFIX=../ -DGCCXML=/Applications/Misc/GeantV_Related/gccxml/ cmake ../ -DCMAKE_BUILD_TYPE=Optimized -DCMAKE_INSTALL_PREFIX=../ -DGCCXML=/Applications/Misc/GeantV_Related/gccxml/ -- The C compiler identification is AppleClang 7.3.0.7030029 -- The CXX compiler identification is AppleClang 7.3.0.7030029 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found ROOT 6.06/02 in /Applications/Misc/root -- Performing Test COMPILER_SUPPORTS_CXX11 -- Performing Test COMPILER_SUPPORTS_CXX11 - Success -- Performing Test COMPILER_SUPPORTS_CXX0X -- Performing Test COMPILER_SUPPORTS_CXX0X - Success -- Configuring done -- Generating done -- Build files have been written to: /Applications/Misc/GeantV_Related/allpix/build
make -j install make[2]: * No rule to make target `CMakeFiles/allpix.dir/depend'. Stop. make[1]: * [CMakeFiles/allpix.dir/all] Error 2 make: *\ [all] Error 2
— You are receiving this because you commented. Reply to this email directly or view it on GitHubhttps://github.com/ALLPix/allpix/issues/6#issuecomment-210084390
Thanks for the fork Mathieu. Had I checked looked up one directory above AllPix, I could have shaved some months off the age of this issue. Hope John has a quick fix. ^_^
-Ryan
I have issues using the visualization package. I do not have OpenInventor but I do have installed QT4 . It seems that just commenting and uncommenting the /vis/open statements in the macro is not working for me.I get the following error: ERROR: G4VisCommandsViewerSet::SetNewValue: no current viewer. ERROR: G4VisCommandSceneHandlerCreate::SetNewValue: could not find fallback graphics system for "OGL". ERROR: G4VisCommandViewerCreate::SetNewValue: no scene handlers. Create a scene handler with "/vis/sceneHandler/create" ERROR: G4VisCommandsViewerSet::SetNewValue: no current viewer. Visualization verbosity changed to errors (2) * Illegal parameter (0) </vis/sceneHandler/create> *
Any suggestions would be greatly appreciated. Ana