Problem 1489 - Building problems for brachytherapy advance example in Geant4.
Summary: Building problems for brachytherapy advance example in Geant4.
Status: RESOLVED INVALID
Alias: None
Product: Examples/Advanced
Classification: Unclassified
Component: brachytherapy (show other problems)
Version: 9.5
Hardware: PC Linux
: P5 major
Assignee: Susanna Guatelli
URL:
Depends on:
Blocks:
 
Reported: 2013-07-10 18:24 CEST by Yue Yan
Modified: 2013-07-11 01:39 CEST (History)
0 users

See Also:


Attachments
Screenshot of the error information in terminal in Ubuntu 12.04 64 bit system. (236.77 KB, image/png)
2013-07-10 18:24 CEST, Yue Yan
Details

Note You need to log in before you can comment on or make changes to this problem.
Description Yue Yan 2013-07-10 18:24:01 CEST
Created attachment 224 [details]
Screenshot of the error information in terminal in Ubuntu 12.04 64 bit system.

Dear Sir/Madam:

I have a Ubuntu 12.04 b4-bit Linux system and I installed Geant4.9.5.p02 in 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 just for brathytherapy example. Every example trying to build by make is 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!

Sincerely Yours
    Yue Yan
Comment 1 Susanna Guatelli 2013-07-11 01:37:42 CEST
In geant4 9.5,the advanced example human_phantom is built with GNUMakeFile and gmake. 
In the next public release of Geant4, the example will be built with cmake only.
This is not a bug. 

Susanna Guatelli
Comment 2 Susanna Guatelli 2013-07-11 01:39:04 CEST
The user mentions problem with brachytherapy example, however - reading the attachment - it seems the problem is with the human_phantom advanced example