Message: Geant4.10.01.p02 with standard GNUmake instead of CMake Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Geant4.10.01.p02 with standard GNUmake instead of CMake 

Forum: Installation and Configuration
Date: 16 May, 2016
From: Anthony Villano <Anthony Villano>

I am using the examples to learn how to use CMake to create a build file for my simulations when I intend to use Geant4 versions after 4.10.

Is the standard GNUmake still viable? I have tried with the included GNUMakefile to build a simulation that I have.

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2016/05/16/11.21-85132-GNUmakefile

When I use this Makefile with the line:

include $(G4INSTALL)/config/binmake.gmk

at the end, it fails to link giving this error:

Creating shared library /XXX/geant4_workdir/tmp/Linux-g++/k100/libk100.so ... touch: cannot touch `/XXX/geant4_workdir/tmp/Linux-g++/k100/exe/obj.last': No such file or directory make: *** [XXX/geant4_workdir/tmp/Linux-g++/k100/exe/obj.last] Error 1

When I put that include before the .PHONY line, the compilation finishes. Although the executable isn't present. This is not surprising, what's probably happening is that in that order the linking just isn't being attempted.

Is there a way to make compilation work in this version of Geant4 with only a standard GNUmakefile instead of doing it the CMake way? Is there documentation/tutorials on either of these methods?

I've made the examples before with CMake, I'm just still not used to making my own applications that way.

 Add Message Add Message
to: "Geant4.10.01.p02 with standard GNUmake instead of CMake"

 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 ]