Geant4 CMake Error #1732
Replies: 1 comment 1 reply
-
Based on paths, I think you force linked the keg-only It looks like the problem is caused by some relative paths in Qt5's .cmake files, which are expecting the original unlinked locations and by using them from linked directory The way to get this to work right now would be to add the necessary compiler flags as specified in: ❯ brew info qt@5
...
If you need to have qt@5 first in your PATH, run:
echo 'export PATH="/usr/local/opt/qt@5/bin:$PATH"' >> ~/.zshrc
For compilers to find qt@5 you may need to set:
export LDFLAGS="-L/usr/local/opt/qt@5/lib"
export CPPFLAGS="-I/usr/local/opt/qt@5/include"
For pkg-config to find qt@5 you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/qt@5/lib/pkgconfig" For a more detailed look at issue:
You can see that the default installed (keg-only/unlinked) path will find the correct directory while the force-linked path is non-existent. Probably needs some more digging into to see if there is a way to modify formula to allow force linkage to work correctly. As |
Beta Was this translation helpful? Give feedback.
-
On calling the above build commend for geant4 from master in g4-git from g4-build, I receive the following error. I believe there may be an issue with the homebrew qt@5 binary
CMake Error at /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:14 (message):
The imported target "Qt5::Core" references the file
but this file does not exist. Possible reasons include:
The file was deleted, renamed, or moved to another location.
An install or uninstall procedure did not complete successfully.
The installation package was faulty and contained
"/usr/local/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake"
but not all the files it references.
-- Configuring incomplete, errors occurred!
See also "/Users/d3x381/Applications/g4-build/CMakeFiles/CMakeOutput.log".
Beta Was this translation helpful? Give feedback.
All reactions