Message: Re: recipe for target 'all' failed (Ubuntu 16.04 LTS, Qt5.9.1) Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: recipe for target 'all' failed (Ubuntu 16.04 LTS, Qt5.9.1) 

Forum: Installation and Configuration
Re: Question recipe for target 'all' failed (Ubuntu 16.04 LTS, Qt5.9.1) (Nick)
Date: 04 Jul, 2017
From: Ben Morgan <Ben Morgan>

On Tue, 04 Jul 2017 03:00:29 GMT, Nick wrote:
> Hi, I am trying to install Geant4.10.03.p01 on Ubuntu 16.04 LTS with Qt
> 5.9.1. At first I typed in the following:
> 
>  cmake -DCMAKE_INSTALL_PREFIX='/home/amicus/Geant4/geant4.10.03.p01-install' -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_RAYTRACER_X11=ON -DGEANT4_USE_QT=ON GEANT4_BUILD_MULTITHREADED=ON  -DEXPAT_INCLUDE_DIR=/usr/include -DEXPAT_LIBRARY=/usr/lib/libexpat.dylib  -DCMAKE_PREFIX_PATH='/home/amicus/Qt5.9.1/5.9.1/gcc_64' -DGEANT4_FORCE_QT4=OFF '/home/amicus/Geant4/geant4.10.03.p01'
> 

The error is due to the setting of the EXPAT_LIBRARY to a (almost certainly) non-existent and invalid library (No .dylib on Linux).

On Ubuntu 16, it should be sufficient to install the libexpat1-dev package (https://packages.ubuntu.com/xenial/libexpat1-dev) to get a suitable system install. The -DEXPAT_{INCLUDE_DIR,LIBRARY} arguments can then be removed, and CMake should pick up the needed system install. You will need to remove the CMakeCache.txt file in the build directory before re-running cmake so that it re-searched for the Expat headers and library.

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

1 Agree: Re: recipe for target 'all' failed (Ubuntu 16.04 LTS, Qt5.9.1)   (Nick - 04 Jul, 2017)
 Add Message Add Message
to: "Re: recipe for target 'all' failed (Ubuntu 16.04 LTS, Qt5.9.1)"

 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 ]