Message: Dificulty in building example B1 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Dificulty in building example B1 

Forum: Installation and Configuration
Date: 02 Nov, 2016
From: Robert Nnaemeka <Robert Nnaemeka>

Good day all. I successfully installed Geant4 in window 10 using Microsoft visual studio developer command prompt. But after successfully building example B1 and the executable output exampleB1.exe I get the errors telling me I do not have some Geant4 dll files in my computer and asking me to reinstall it. I decided to add the path to the Geant4 dll files directory to the environmental. After doing this, I could no longer even build the example B1. It happens that when I runs
 "cmake --build . --config RelWithDebInfo" error is displayed saying that it cannot see some included files the error output is shown below. How can I solve it?

C:\Users\Nnaemeka\MCNP Files\Geant4\B1\include\B1DetectorConstruction.hh(34): f
atal error C1083: Cannot open include file: 'G4VUserDetectorConstruction.hh': N
o such file or directory (compiling source file C:\Users\Nnaemeka\MCNP Files\Ge
ant4\B1\exampleB1.cc) [C:\Users\Nnaemeka\MCNP Files\Geant4\B1\build2\exampleB1.
vcxproj]
C:\Users\Nnaemeka\MCNP Files\Geant4\B1\include\B1SteppingAction.hh(34): fatal e
rror C1083: Cannot open include file: 'G4UserSteppingAction.hh': No such file o
r directory (compiling source file C:\Users\Nnaemeka\MCNP Files\Geant4\B1\src\B
1SteppingAction.cc) [C:\Users\Nnaemeka\MCNP Files\Geant4\B1\build2\exampleB1.vc
xproj]
C:\Users\Nnaemeka\MCNP Files\Geant4\B1\include\B1RunAction.hh(34): fatal error
C1083: Cannot open include file: 'G4UserRunAction.hh': No such file or director
y (compiling source file C:\Users\Nnaemeka\MCNP Files\Geant4\B1\src\B1RunAction
.cc) [C:\Users\Nnaemeka\MCNP Files\Geant4\B1\build2\exampleB1.vcxproj]
C:\Users\Nnaemeka\MCNP Files\Geant4\B1\include\B1EventAction.hh(34): fatal erro
r C1083: Cannot open include file: 'G4UserEventAction.hh': No such file or dire
ctory (compiling source file C:\Users\Nnaemeka\MCNP Files\Geant4\B1\src\B1Event
Action.cc) [C:\Users\Nnaemeka\MCNP Files\Geant4\B1\build2\exampleB1.vcxproj]
C:\Users\Nnaemeka\MCNP Files\Geant4\B1\include\B1DetectorConstruction.hh(34): f
atal error C1083: Cannot open include file: 'G4VUserDetectorConstruction.hh': N
o such file or directory (compiling source file C:\Users\Nnaemeka\MCNP Files\Ge
ant4\B1\src\B1DetectorConstruction.cc) [C:\Users\Nnaemeka\MCNP Files\Geant4\B1\
build2\exampleB1.vcxproj]
C:\Users\Nnaemeka\MCNP Files\Geant4\B1\include\B1PrimaryGeneratorAction.hh(34):
 fatal error C1083: Cannot open include file: 'G4VUserPrimaryGeneratorAction.hh
': No such file or directory (compiling source file C:\Users\Nnaemeka\MCNP File
s\Geant4\B1\src\B1PrimaryGeneratorAction.cc) [C:\Users\Nnaemeka\MCNP Files\Gean
t4\B1\build2\exampleB1.vcxproj]
C:\Users\Nnaemeka\MCNP Files\Geant4\B1\include\B1ActionInitialization.hh(34): f
atal error C1083: Cannot open include file: 'G4VUserActionInitialization.hh': N
o such file or directory (compiling source file C:\Users\Nnaemeka\MCNP Files\Ge
ant4\B1\src\B1ActionInitialization.cc) [C:\Users\Nnaemeka\MCNP Files\Geant4\B1\
build2\exampleB1.vcxproj]
Done Building Project "C:\Users\Nnaemeka\MCNP Files\Geant4\B1\build2\exampleB1.
vcxproj" (default targets) -- FAILED.

Done Building Project "C:\Users\Nnaemeka\MCNP Files\Geant4\B1\build2\ALL_BUILD. vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\Users\Nnaemeka\MCNP Files\Geant4\B1\build2\ALL_BUILD.vcxproj" (default targ
et) (1) ->
"C:\Users\Nnaemeka\MCNP Files\Geant4\B1\build2\exampleB1.vcxproj" (default targ
et) (3) ->
(ClCompile target) ->
  C:\Users\Nnaemeka\MCNP Files\Geant4\B1\include\B1DetectorConstruction.hh(34):
 fatal error C1083: Cannot open include file: 'G4VUserDetectorConstruction.hh':
 No such file or directory (compiling source file C:\Users\Nnaemeka\MCNP Files\
Geant4\B1\exampleB1.cc) [C:\Users\Nnaemeka\MCNP Files\Geant4\B1\build2\exampleB
1.vcxproj]
  C:\Users\Nnaemeka\MCNP Files\Geant4\B1\include\B1SteppingAction.hh(34): fatal
 error C1083: Cannot open include file: 'G4UserSteppingAction.hh': No such file
 or directory (compiling source file C:\Users\Nnaemeka\MCNP Files\Geant4\B1\src
\B1SteppingAction.cc) [C:\Users\Nnaemeka\MCNP Files\Geant4\B1\build2\exampleB1.
vcxproj]
  C:\Users\Nnaemeka\MCNP Files\Geant4\B1\include\B1RunAction.hh(34): fatal erro
r C1083: Cannot open include file: 'G4UserRunAction.hh': No such file or direct
ory (compiling source file C:\Users\Nnaemeka\MCNP Files\Geant4\B1\src\B1RunActi
on.cc) [C:\Users\Nnaemeka\MCNP Files\Geant4\B1\build2\exampleB1.vcxproj]
  C:\Users\Nnaemeka\MCNP Files\Geant4\B1\include\B1EventAction.hh(34): fatal er
ror C1083: Cannot open include file: 'G4UserEventAction.hh': No such file or di
rectory (compiling source file C:\Users\Nnaemeka\MCNP Files\Geant4\B1\src\B1Eve
ntAction.cc) [C:\Users\Nnaemeka\MCNP Files\Geant4\B1\build2\exampleB1.vcxproj]
  C:\Users\Nnaemeka\MCNP Files\Geant4\B1\include\B1DetectorConstruction.hh(34):
 fatal error C1083: Cannot open include file: 'G4VUserDetectorConstruction.hh':
 No such file or directory (compiling source file C:\Users\Nnaemeka\MCNP Files\
Geant4\B1\src\B1DetectorConstruction.cc) [C:\Users\Nnaemeka\MCNP Files\Geant4\B
1\build2\exampleB1.vcxproj]
  C:\Users\Nnaemeka\MCNP Files\Geant4\B1\include\B1PrimaryGeneratorAction.hh(34
): fatal error C1083: Cannot open include file: 'G4VUserPrimaryGeneratorAction.
hh': No such file or directory (compiling source file C:\Users\Nnaemeka\MCNP Fi
les\Geant4\B1\src\B1PrimaryGeneratorAction.cc) [C:\Users\Nnaemeka\MCNP Files\Ge
ant4\B1\build2\exampleB1.vcxproj]
  C:\Users\Nnaemeka\MCNP Files\Geant4\B1\include\B1ActionInitialization.hh(34):
 fatal error C1083: Cannot open include file: 'G4VUserActionInitialization.hh':
 No such file or directory (compiling source file C:\Users\Nnaemeka\MCNP Files\
Geant4\B1\src\B1ActionInitialization.cc) [C:\Users\Nnaemeka\MCNP Files\Geant4\B
1\build2\exampleB1.vcxproj]

    0 Warning(s)
    7 Error(s)

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

1 Question: Re: Dificulty in building example B1   (Ben Morgan - 03 Nov, 2016)
(_ More: Re: Dificulty in building example B1   (Robert Nnaemeka - 03 Nov, 2016)
(_ More: Re: Dificulty in building example B1   (Robert Nnaemeka - 03 Nov, 2016)
 Add Message Add Message
to: "Dificulty in building example B1"

 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 ]