Message: Need help for building brachytherapy advance example in Geant4. Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Need help for building brachytherapy advance example in Geant4.  

Forum: Documentation and Examples
Date: 10 Jul, 2013
From: Yue Yan <Yue Yan>

Hello, guys:

I have a Ubuntu 12.04 b4-bit Linux system and I installed Geant4.9.5.p02 on my
PC. I try to build the brachytherapy advanced example in Geant4. In the example
folder, there is no cmakelist.txt file and I try to build the example using the
traditional make command. However, I have the following error information:

------error information------------
Creating shared library
/home/yunzhongfan107/geant4_workdir/tmp/Linux-g++/phantom/libphantom.so ...
/usr/bin/ld: cannot find -lInventorXt
/usr/bin/ld: cannot find -lInventor
collect2: ld returned 1 exit status
make: ***
[/home/yunzhongfan107/geant4_workdir/tmp/Linux-g++/phantom/libphantom.so] Error
1
------------------------------------

I tried to build other examples using make. It seems that the above error is
not exclusive for brathytherapy example. Every example trying to build by
make always fails due to the same problem. Could you give me some
information to solve this problem please?

By the way, cmake command works well on my PC.

I provide some information you may need to solve this problem.

------some detail information-------------

The installation path of my Geant4 is

/home/yunzhongfan107/Program/Geant4/geant4.9.5-install

The advance example folder is located in

/media/7b6affeb-931d-46f5-ab55-dca1255b2204/yunzhongfan107/work/Geant4/study/brachytherapy

The work folder is chosen to be

/home/yunzhongfan107/geant4_workdir

I modified my .bashrc file to add the geant4make.sh to my path. The lines I
added are

--------added lines in .bashrc file---------
if [ -f
/home/yunzhongfan107/Program/Geant4/geant4.9.5-install/share/Geant4-9.5.2/geant4make/geant4make.sh
]; then
  
source /home/yunzhongfan107/Program/Geant4/geant4.9.5-install/share/Geant4-9.5.2/geant4make/geant4make.sh
fi


export QTMOC="/usr/bin/moc-qt4"
export QTFLAGS="-I/usr/include/qt4 -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL"
export QTLIBS="-L/usr/lib -lQtCore -lQtGui"
export GLQTLIBS="-L/usr/lib -lQtCore -lQtGui -lQtOpenGL"
---------------------------------------------

Thank you for your help and best wishes!



   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2013/07/10/09.42-91374-m_2013-07-10_11.23.05.png

 Add Message Add Message
to: "Need help for building brachytherapy advance example in Geant4. "

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]