Author Topic: Help needed setting up Code::blocks IDE for geant4 - from scratch  (Read 9946 times)

Offline beastraban

  • Single posting newcomer
  • *
  • Posts: 6
Hello all,
I know I know, there's already a thread addressing this but please indulge me
for a moment:

I am trying to set up code::blocks as an IDE for geant4,
I am following instructions as on a youtube flick at:

http://www.youtube.com/watch?v=LWSFxR1G1Og

only problem is: it doesn't work for me - it won't compile the example.
and I have no idea what he did in:
(a) the release target folder (he doesn't say what he does exactly) and,
(b) when he adds directories I don't know which directories he's  adding and which files
     I am supposed to look for in order to add their containing directory.

at the other thread they also mentioned a .bashrc which I have no idea what is,
and they also mentioned "port" which I am clueless about.

could anybody  please provide a step-by-step installation guide for the said configuration?

I have tried to research the web before posting this, Nada^2...

thank you

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Help needed setting up Code::blocks IDE for geant4 - from scratch
« Reply #1 on: May 10, 2011, 11:00:39 pm »
Please give the information needed to ask an smart question!
We are not mind readers!!!
Your Operating System!!!
Your Compiler name and version!!!
The version of Code::Blocks being used!!!

Note: This is NOT really a Code::Blocks question; but, maybe you will learn to ask a smart question for another site.

Tim S.
« Last Edit: May 11, 2011, 12:08:36 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline beastraban

  • Single posting newcomer
  • *
  • Posts: 6
Re: Help needed setting up Code::blocks IDE for geant4 - from scratch
« Reply #2 on: May 11, 2011, 05:25:42 am »
Wow, sorry, I'm new to this (obviously)...

OS: Windows vista 32-bit.
C::B version 10.05 rev 6283

as for compiler, there are many options there, so I guess
I'm using GNU GCC compiler.


thank you

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Help needed setting up Code::blocks IDE for geant4 - from scratch
« Reply #3 on: May 11, 2011, 09:07:54 am »
as for compiler, there are many options there, so I guess
I'm using GNU GCC compiler.
But do you have installed any version of GCC? Having it as an option doesn't mean you have it installed.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline beastraban

  • Single posting newcomer
  • *
  • Posts: 6
Re: Help needed setting up Code::blocks IDE for geant4 - from scratch
« Reply #4 on: May 11, 2011, 12:38:57 pm »
I think I do have it installed bc when I write normal c++ programming,
I am compiling it also with GNU gcc and it compiles and runs just fine...
so probably its not that..

when I try to compile G4 work,  I get either:

Using makefile: Makefile
Execution of 'make.exe -s -f Makefile Release' in 'C:\Program Files\CodeBlocks\Hall1' failed.
Nothing to be done.

in some cases,

and in others:

Using makefile: Makefile
Execution of 'make.exe -s -f Makefile Debug' in 'C:\G4WORKDIR\88' failed.
Nothing to be done.

so... I really don't know.

I would be happy if there would have been some documentation helping ppl with this stuff anywhere,
I just can't find any, not even in G4 dedicated forums... :(

thanks though



Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Help needed setting up Code::blocks IDE for geant4 - from scratch
« Reply #6 on: May 11, 2011, 01:18:22 pm »
I suggest reading the "geant4" directions; I saw that it said Cygwin and MSVC is the normal way to build it.

http://geant4.slac.stanford.edu/tutorial/installation/Geant4.8.0.p01/Windows/Geant4_8_0_p01_Windows_Installation.htm

http://geant4.slac.stanford.edu/installation/

Note: I suggest find a site that supports building "geant4" and try to follow the directions.
I would guess building "geant4" would not be easy for a beginner.

Tim S.
 
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline beastraban

  • Single posting newcomer
  • *
  • Posts: 6
Re: Help needed setting up Code::blocks IDE for geant4 - from scratch
« Reply #7 on: May 11, 2011, 01:36:25 pm »
thank you, I have actually followed your advice...

it seems cygwin GCC is the right compiler, but it still doesn't compile like it should.

about the geant4 building... well I did follow the instructions to the letter
(because I'm new to all of this) and I have GEANT4 properly installed etc.
but as far as compiling it in c::b... well that just wont work... :(


TY

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Help needed setting up Code::blocks IDE for geant4 - from scratch
« Reply #8 on: May 11, 2011, 02:13:36 pm »
it seems cygwin GCC is the right compiler, but it still doesn't compile like it should.

This may be Wrong! You need to use any library with an Compiler that is compatible to Compiler used to create the library.
I would guess MSVC compiler is the correct compiler; but, I do not know that.
You need to find a site that supports the library. This is NOT a site that supports the library.

Note: Saying you installed the Library means it is already compiled; I am giving up helping you because you are not talking like a experienced programmer.

Tim S.
« Last Edit: May 11, 2011, 06:12:56 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org