Message: Re: Error with GNUMakefile Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: Error with GNUMakefile 

Forum: Installation and Configuration
Re: None Error with GNUMakefile (Ish Mukul)
Re: None Re: Error with GNUMakefile (John Allison)
Re: Question Re: Error with GNUMakefile (Neil Fazel)
Re: Note Re: Error with GNUMakefile (Ben Morgan)
Date: 12 Mar, 2014
From: Neil Fazel <Neil Fazel>

On Wed, 12 Mar 2014 10:24:42 GMT, Ben Morgan wrote:
> Hi Neil
> 
> On Wed, 12 Mar 2014 00:46:16 GMT, Neil Fazel wrote:

> >     When you say "old" way, are there any advantages to switching to cmake? 

<snip>
> You can also have several builds against the same source tree, without
> having to reconfigure and rebuild everything each time you change an
> option. For example, you could have one build directory that is
> configured to use Geant4 9.6, one using 10.0, and one using 10.0 with
> multithreading. With Geant4's GNUmake system, you'd need to continually
> delete, reconfigure the environment and rebuild for every version/config
> change. With CMake, you configure and build once for each variation,
> further builds being incremental.
> 
> CMake was also selected because of its cross-platform support, easy use
> and ease of integration of other libraries/applications (e.g. Qt, Boost).
<snip> 


Hi Ben,

    Thanks for the information. Right now I'm able to build using cmake whereas 
gmake fails, so I'm motivated to switch. You mentioned that one can have a "build 
directory that is configured to use Geant4 9.6, one using 10.0, ...". How does 
one do that? I tried it, but replacing

cmake -DGeant4_DIR=path_to_Geant4_installation/lib[64]/Geant4.10.0.0/ ../exampleXYZ

with

cmake -DGeant4_DIR=path_to_Geant4_installation/lib[64]/Geant4.9.6/ ../exampleXYZ

before rebuilding wasn't enough to switch from 4.10 back to 4.9, i.e. the code was 
still linked with 4.10. (A thought: for 4.10, I source 

path_to_Geant4_installation/Geant4.10/bin/geant4.sh

Is there something similar for 4.9?)


When installing using cmake, 'make install' attempted to install in /usr/local/bin/, 
which is not a user directory (no write permission). It seems I need to set 
CMAKE_INSTALL_PREFIX; does that require editting CMakeLists.txt or CMakeCache.txt?

Thanks for your help.

Neil

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Note: Re: Error with GNUMakefile   (Ben Morgan - 14 Mar, 2014)
(_ None: Re: Error with GNUMakefile   (Neil Fazel - 14 Mar, 2014)
 Add Message Add Message
to: "Re: Error with GNUMakefile"

 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 ]