Coder Social home page Coder Social logo

Installation problem about njoy21 HOT 2 CLOSED

njoy avatar njoy commented on July 29, 2024
Installation problem

from njoy21.

Comments (2)

whaeck avatar whaeck commented on July 29, 2024

By default, NJOY21 is compiled using dynamic libraries. If you move the executable, you should move the dynamic library that is generated as well.

As an alternative, you may want to try static compilation:

cmake -D static_libraries=True -D static_njoy21=True  -D CMAKE_EXE_LINKER_FLAGS="-static" ../

from njoy21.

AI-Pranto avatar AI-Pranto commented on July 29, 2024

@whaeck, With the latest release of 1.2.2, I got

[ 92%] Linking CXX executable njoy21.Version.test
cd /home/pranto/github/NJOY21/bin/src/njoy21/Version/test && /home/pranto/.local/lib/python3.8/site-packages/cmake/data/bin/cmake -E cmake_link_script CMakeFiles/njoy21.Version.test.dir/link.txt --verbose=1
/usr/bin/clang++ -g -static CMakeFiles/njoy21.Version.test.dir/Version.test.cpp.o -o njoy21.Version.test   -L/usr/lib/gcc/x86_64-linux-gnu/9  ../../../../_deps/njoy_c_bindings-build/libnjoy_c_bindings.a ../../../../_deps/njoy-build/libnjoy.a ../../../../_deps/utility-build/libutility.a -lgfortran -lquadmath 
make[2]: Leaving directory '/home/pranto/github/NJOY21/bin'
[ 92%] Built target njoy21.Version.test
In file included from /home/pranto/github/NJOY21/src/njoy21/io/Manager/test/Manager.test.cpp:6:
/home/pranto/github/NJOY21/src/njoy21.hpp:21:32: warning: unknown warning group '-Wmaybe-uninitialized', ignored [-Wunknown-warning-option]
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
                               ^
In file included from /home/pranto/github/NJOY21/src/njoy21/Driver/test/Driver.test.cpp:4:
/home/pranto/github/NJOY21/src/njoy21.hpp:21:32: warning: unknown warning group '-Wmaybe-uninitialized', ignored [-Wunknown-warning-option]
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
                               ^
In file included from /home/pranto/github/NJOY21/src/njoy21/legacy/Sequence/test/Sequence.test.cpp:6:
/home/pranto/github/NJOY21/src/njoy21.hpp:21:32: warning: unknown warning group '-Wmaybe-uninitialized', ignored [-Wunknown-warning-option]
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
                               ^
In file included from /home/pranto/github/NJOY21/src/njoy21/CommandLine/test/CommandLine.test.cpp:4:
/home/pranto/github/NJOY21/src/njoy21.hpp:21:32: warning: unknown warning group '-Wmaybe-uninitialized', ignored [-Wunknown-warning-option]
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
                               ^
Killed
make[2]: *** [src/njoy21/io/Manager/test/CMakeFiles/njoy21.io.Manager.test.dir/build.make:82: src/njoy21/io/Manager/test/CMakeFiles/njoy21.io.Manager.test.dir/Manager.test.cpp.o] Error 137
make[2]: Leaving directory '/home/pranto/github/NJOY21/bin'
make[1]: *** [CMakeFiles/Makefile2:2745: src/njoy21/io/Manager/test/CMakeFiles/njoy21.io.Manager.test.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      Start  4: njoy21.io.Manager
Could not find executable /home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/njoy21.io.Manager.test
Looked in the following places:
/home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/njoy21.io.Manager.test
/home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/njoy21.io.Manager.test
/home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/Release/njoy21.io.Manager.test
/home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/Release/njoy21.io.Manager.test
/home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/Debug/njoy21.io.Manager.test
/home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/Debug/njoy21.io.Manager.test
/home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/MinSizeRel/njoy21.io.Manager.test
/home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/MinSizeRel/njoy21.io.Manager.test
/home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/RelWithDebInfo/njoy21.io.Manager.test
/home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/RelWithDebInfo/njoy21.io.Manager.test
/home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/Deployment/njoy21.io.Manager.test
/home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/Deployment/njoy21.io.Manager.test
/home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/Development/njoy21.io.Manager.test
/home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/Development/njoy21.io.Manager.test
home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/njoy21.io.Manager.test
home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/njoy21.io.Manager.test
home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/Release/njoy21.io.Manager.test
home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/Release/njoy21.io.Manager.test
home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/Debug/njoy21.io.Manager.test
home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/Debug/njoy21.io.Manager.test
home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/MinSizeRel/njoy21.io.Manager.test
home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/MinSizeRel/njoy21.io.Manager.test
home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/RelWithDebInfo/njoy21.io.Manager.test
home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/RelWithDebInfo/njoy21.io.Manager.test
home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/Deployment/njoy21.io.Manager.test
home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/Deployment/njoy21.io.Manager.test
home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/Development/njoy21.io.Manager.test
home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/Development/njoy21.io.Manager.test
Unable to find executable: /home/pranto/github/NJOY21/bin/src/njoy21/io/Manager/test/njoy21.io.Manager.test
 4/63 Test  #4: njoy21.io.Manager ................***Not Run   0.00 sec

I am using

  • CXX compiler Clang 11.0.0
  • Fortran compiler GNU 9.3.0

from njoy21.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.