Message: Re: Building hadrontherapy example Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Building hadrontherapy example 

Forum: Documentation and Examples
Re: Question Building hadrontherapy example
Re: None Re: Building hadrontherapy example (Luciano Pandola)
Re: None Re: Building hadrontherapy example
Re: None Re: Building hadrontherapy example (Luciano Pandola)
Date: 27 Sep, 2016
From: <jeonyboy@gmail.com>

On Tue, 27 Sep 2016 07:36:35 GMT, Luciano Pandola wrote:
> Ciao,
> 
> > Hi, so I redownloaded from https://root.cern.ch/content/release-53436 ;
> > the Windows Visual Studio 2013 version, root_v5.34.36.win32.vc12.exe.
> > I linked all the necessary libraries in the Cmake but I am still getting
> > error on Tfile and Tntuple. Any ideas why?
> 
> I am not familiar with Windows, so I cannot really provide a good
> answer. My naive explanation is that the cmake script properly links the
> libraries but does not locate the includes of ROOT. I have seen a
> similar problem also on Linux (same error message, I mean), but I am not
> sure that the reason is the same. I force cmake to use the
> findROOT.cmake script provided by Geant4 (instead of the "native"
> cmake-find script provided by ROOT), by using the option
> 
> -DCMAKE_MODULE_PATH=..../install/lib/Geant4.10.y.x./Modules
> 
> Ciao, Luciano
> 

I'm not sure where I use the command "-DCMAKE_MODULE_PATH=..../install/lib/Geant4.10.y.x./Modules"

I manually linked each library to its location in C drive but I don't think it is working because problem persists where the generated file does not have headers such as #include "TROOT.h"

#include "TFile.h"
#include "TNtuple.h"
#include "TH1F.h"

I followed the http://hypernews.slac.stanford.edu/HyperNews/geant4/get/installconfig/1467.html?inline=-1 link and tried solution but still no go.. Adding below lines in FindROOT.cmake files just after line 37.

#defined by fada, 2012-05-22
  set(ROOTSYS D:/root)
  set(ROOT_VERSION 5.30/00)
  set(ROOT_INCLUDE_DIR ${ROOTSYS}/include)
  set(ROOT_LIBRARY_DIR ${ROOTSYS}/lib)
  set(ROOT_LIBRARIES -LIBPATH:${ROOT_LIBRARY_DIR} libGpad.lib libHist.lib libGraf.lib libGraf3d.lib libTree.lib libRint.lib libPostscript.lib libMatrix.lib libPhysics.lib libMathCore.lib libRIO.lib libNet.lib libThread.lib libCore.lib libCint.lib)

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2016/09/27/23.33-7216-librarys.PNG

 Add Message Add Message
to: "Re: Building hadrontherapy example"

 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 ]