load module cmake
mkdir build
cd build
cmake ..
CC=gcc CXX=g++ CMAKE_C_COMPILER=gcc CMAKE_CXX_COMPILER=g++ cmake .. -DSIMINT_VECTOR=avx
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:usr/lib64
cd build
std=gnu++11 CMAKE_SOURCE_DIR=/home/umunipala/gamess/gamess-kris-simgms/simgms/simint/example cmake ..
cd ..
-------------------------------------
[umunipala@newark examples]$ make
[ 25%] Linking C executable example1
/usr/local/bin/ld: cannot find -lsimint
collect2: error: ld returned 1 exit status
CMakeFiles/example1.dir/build.make:94: recipe for target 'example1' failed
make[2]: *** [example1] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/example1.dir/all' failed
make[1]: *** [CMakeFiles/example1.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
[umunipala@newark examples]$ make clean
[umunipala@newark examples]$ make
[ 25%] Building C object CMakeFiles/example1.dir/example1.c.o
[ 50%] Linking C executable example1
/usr/local/bin/ld: cannot find -lsimint
collect2: error: ld returned 1 exit status
CMakeFiles/example1.dir/build.make:94: recipe for target 'example1' failed
make[2]: *** [example1] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/example1.dir/all' failed
make[1]: *** [CMakeFiles/example1.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
[umunipala@newark examples]$ vi CMakeLists.txt
cmake_minimum_required(VERSION 3.3)
-----------------------------------------------------------------------------------------------------
copied simgms original version
check for include errors
error: /usr/local/bin/ld: cannot find -lsimint
How do we add the externel lib?
changing cmakelists.txt didn't work
target_compile_options
link_directories(
This seems to be the solution: didn't work
-----------------------------------------------------------------------------------------------------
copied simgms original version
check for include errors
error: /usr/local/bin/ld: cannot find -lsimint
How do we add the externel lib?
changing cmakelists.txt didn't work
target_compile_options
link_directories(
This seems to be the solution: didn't work
-------------------------------------------------------------------------------------------------
#include simint/ostei/ostei.h is missing in vb and original versio??
#include simint/ostei/ostei.h is missing in vb and original versio??
No comments:
Post a Comment