njoy / NJOY21

NJOY for the 21st Century
https://www.njoy21.io/NJOY21
Other
74 stars 38 forks source link

cmake error with "subprojects/hopscotch-map-adapter" #89

Closed kernie closed 5 years ago

kernie commented 5 years ago

Hi,

I did a

cmake -D fetched_subprojects=true -D CMAKE_BUILD_TYPE=release -D static_libraries=true ../

in the bin dir of a NJOY21 clone of master aswell tagged 1.0.1 branch.

Several error messages appear

-- -----------------------------------------------------------
-- 
-- header-utilities
-- Git current branch: HEAD
-- Git commit hash: 744e1feb2d050d90be9668ce4b445eeed3861577
-- 
-- -----------------------------------------------------------
CMake Error at CMakeLists.txt:231 (add_subdirectory):
  add_subdirectory given source
  "/home/id6945/Programs/NJOY21/subprojects/hopscotch-map-adapter" which is
  not an existing directory.
.
.
.
-- utility
-- Git current branch: HEAD
-- Git commit hash: 361c72300422aa1c9e7b00cf9be3b6c885871a40
-- 
-- -----------------------------------------------------------
CMake Error at subprojects/lipservice/CMakeLists.txt:213 (add_subdirectory):
  add_subdirectory given source
  "/home/id6945/Programs/NJOY21/subprojects/hopscotch-map-adapter" which is
  not an existing directory.
.
.
.
-- Configuring incomplete, errors occurred!

Help appreciated...

Thanks, Maarten

System: opensuse leap 15.1 compiler gcc-suite 8.2.1

jlconlin commented 5 years ago

@kernie The command you used is intended for those times when you don't have access to the internet from where you are trying to run NJOY. (Or if you are very interested in a specific version of NJOY.)

Try this instead:

cmake -D CMAKE_BUILD_TYPE=release -D static_libraries=true ../
kernie commented 5 years ago

OK,

just saw the

wget https://raw.githubusercontent.com/njoy/signatures/master/NJOY21/1.0.1-NJOY21.json

command and using this instead of doing simply

./metaconfigure/fetch_subprojects.py

leads now to a successful end.

However, I see this

cmake  -D CMAKE_BUILD_TYPE=release -D static_libraries=true ../
-- Found Git: /usr/bin/git (found suitable version "2.16.4", minimum required is "2.1") 
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.5", minimum required is "3.4") 
warning: unable to rmdir 'dependencies/hopscotch-map-adapter': Das Verzeichnis ist nicht leer
error: pathspec 'hopscotch-map-adapter' did not match any file(s) known to git.
Checke Dateien aus: 100% (219/219), Fertig.

Testing now compilation.

Thank you for your help! Maarten

kernie commented 5 years ago

Successful build...

jlconlin commented 5 years ago

Glad things are working for you.