LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-16-2012, 07:58 AM   #1
prabir banik
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Rep: Reputation: Disabled
please help me compile xray_fluorescence


I have installed geant4.9.4.p02 with clhep-2.1.0.1.tgz.When I compile xray_fluorescence example I get:

pbanik@user-desktop:~/geant4/g4work/xray_fluorescence$ make
Making dependency for file src/XrayFluoSimulation.cc ...
Making dependency for file src/XrayFluoPlaneDetectorConstruction.cc ...
Making dependency for file src/XrayFluoMercuryDetectorConstruction.cc ...
Making dependency for file src/XrayFluoDetectorConstruction.cc ...
Compiling XrayFluoDetectorConstruction.cc ...
In file included from src/XrayFluoDetectorConstruction.cc:52:
/home/pbanik/geant4/geant4.9.4/source/run/include/G4RunManager.hh: In member function ‘void G4RunManager::SetRandomNumberStoreDir(const G4String&)’:
/home/pbanik/geant4/geant4.9.4/source/run/include/G4RunManager.hh:358: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result
Compiling XrayFluoMercuryDetectorConstruction.cc ...
In file included from src/XrayFluoMercuryDetectorConstruction.cc:49:
/home/pbanik/geant4/geant4.9.4/source/run/include/G4RunManager.hh: In member function ‘void G4RunManager::SetRandomNumberStoreDir(const G4String&)’:
/home/pbanik/geant4/geant4.9.4/source/run/include/G4RunManager.hh:358: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result
Compiling XrayFluoPlaneDetectorConstruction.cc ...
In file included from src/XrayFluoPlaneDetectorConstruction.cc:48:
/home/pbanik/geant4/geant4.9.4/source/run/include/G4RunManager.hh: In member function ‘void G4RunManager::SetRandomNumberStoreDir(const G4String&)’:
/home/pbanik/geant4/geant4.9.4/source/run/include/G4RunManager.hh:358: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result
Compiling XrayFluoSimulation.cc ...
In file included from src/XrayFluoSimulation.cc:37:
/home/pbanik/geant4/geant4.9.4/source/run/include/G4RunManager.hh: In member function ‘void G4RunManager::SetRandomNumberStoreDir(const G4String&)’:
/home/pbanik/geant4/geant4.9.4/source/run/include/G4RunManager.hh:358: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result
Creating shared library /home/pbanik/geant4/g4work/tmp/Linux-g++/XrayFluo/libXrayFluo.so ...
Using global libraries ...
Linking XrayFluo
... Done!
To run I type: $G4WORKDIR/bin/Linux-g++/XrayFluo
I get:


XrayFluoSteppingVerbose created

*************************************************************
Geant4 version Name: geant4-09-04 (17-December-2010)
Copyright : Geant4 Collaboration
Reference : NIM A 506 (2003), 250-303
WWW : http://cern.ch/geant4
*************************************************************

Please Select Simulation Geometrical Set-Up:
1 - Test Beam
2 - Infinite Plane
3 - Planet and Sun
4 - Phase-Space Production
***after I enter '1', I get:
------ ---- ---- --- --- ---- ---- -----
- ----- ---- ----- ---- ----- ---- ------
--- ------- ----- ------ ------ -------
17 %
---> Isotope: Cu65 Z = 29 N = 65 A = 64.93 g/mole abundance: 30.83 % ElmMassFraction: 100.00 % ElmAbundance 100.00 %


PixelThickness(mm): 3.5
PixelSizeXY(cm): 7
DeviceThickness(cm): 0.358002
DeviceSizeX(cm): 7
DeviceSizeY(cm): 7
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct NULL not valid
Aborted

# please help me so that I can solve it.I will be thankful for your reply.

Last edited by prabir banik; 10-17-2012 at 05:40 AM. Reason: i want to change subject
 
Old 10-18-2012, 05:01 AM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 6,403
Blog Entries: 6

Rep: Reputation: Disabled
Hi:


When you downloaded the clhep-2.1.0.1.tgz it should of came with a "READ ME" File.
That file can be handy to help you install and compile it properly.
Do you have the Read Me file? Did you create a directory?

Put it into your directory of choice, such as:
~/CLHEP

What distro are you using? This might help me and other members who help you.

When I looked I was only able to find clhep-2.1.25-
http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/
Here's the mirror
http://mirror.lug.udel.edu/pub/gento.../clhep-2.1.0.1
Instructions for getting and installing (this you could use to compare with what you have already done) Using the terminal:
http://geant4.slac.stanford.edu/tuto...#_What_are_the

I'm not the expert here but you may need other applications/packages and or there may be other dependencies-

Here is the Install Guide hope this helps
http://www-cdf.fnal.gov/~devoto/WebP...ationGuide.txt

Here's a tutorial from our group:
http://www.linuxquestions.org/linux/...ms_from_Source

This sounds like an Amazing application. Good Luck

Last edited by Ztcoracat; 10-18-2012 at 05:09 AM. Reason: Spelling
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Eglibc cannot compile suffix of object files while trying to cross compile Bry6n Linux From Scratch 0 08-21-2012 07:14 PM
Am I obliged to compile the kernel to compile a module? abd_bela Linux - Kernel 1 08-20-2011 01:17 PM
Trying to patch kernel + compile, compile is looping. kripz Linux - Kernel 1 06-16-2009 07:51 AM
CLFS 5.9 - Glibc compile: suffix of object files, cannot compile Noddegamra Linux From Scratch 3 04-27-2009 01:49 AM
how to compile software for any other Linux box which is do not have compile? hocheetiong Linux - Newbie 4 03-06-2009 05:35 PM


All times are GMT -5. The time now is 08:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration