Welcome, Guest
Username: Password: Remember me

TOPIC: Compiling on Ubuntu 18.10

Compiling on Ubuntu 18.10 5 years 8 months ago #33186

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
This is because you are missing a - before DSHARED the command should be:
cmake -D CMAKE_INSTALL_PREFIX=~/Telemac/v8p0r1/optionals/metis-5.1.0/build -DSHARED=TRUE
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Compiling on Ubuntu 18.10 5 years 8 months ago #33187

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
Hello.

That does not work either.
But I added a "." behind the PATH like so
cmake -D CMAKE_INSTALL_PREFIX=~/Telemac/v8p0r1/optionals/metis-5.1.0/build . -DSHARED=TRUE

which results in start of building but then coming to a similar error again. Attached is the log file and following the command line output.
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for getline
-- Looking for getline - found
CMake Error at /home/clemens/Telemac/v8p0r1/optionals/metis-5.1.0/CMakeFiles/CMakeTmp/CMakeLists.txt:12 (add_executable):
  Cannot find source file:

    GKlib/conf/check_thread_storage.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx


CMake Error at /home/clemens/Telemac/v8p0r1/optionals/metis-5.1.0/CMakeFiles/CMakeTmp/CMakeLists.txt:12 (add_executable):
  No SOURCES given to target: cmTC_f5689


CMake Error at GKlib/GKlibSystem.cmake:110 (try_compile):
  Failed to generate test project build system.
Call Stack (most recent call first):
  CMakeLists.txt:20 (include)


-- Configuring incomplete, errors occurred!
See also "/home/clemens/Telemac/v8p0r1/optionals/metis-5.1.0/CMakeFiles/CMakeOutput.log".
Attachments:
The administrator has disabled public write access.

Compiling on Ubuntu 18.10 5 years 8 months ago #33189

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
This is a bug from metis.

In the metsi folder change the line containing set(GKLIB_PATH...) by
set(GKLIB_PATH "${CMAKE_CURRENT_SOURCE_DIR}/GKlib")

Hopefully that should do the trick
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Compiling on Ubuntu 18.10 5 years 8 months ago #33190

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
That did the trick. Thanks.
Since I just got a libmetis.so file and no libmetis.a I changed that in my .cfg file, but now I am facing an issue with Nestor.
I can remember I had that once as well but not sure how I came over it.
Attached is my log file.
Attachments:
The administrator has disabled public write access.

Compiling on Ubuntu 18.10 5 years 8 months ago #33193

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Just remove the -DSHARED:true to have a libmetis.a and rerun the installation.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Compiling on Ubuntu 18.10 5 years 8 months ago #33196

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
Did so but still no libmetis.a file.
The administrator has disabled public write access.

Compiling on Ubuntu 18.10 5 years 8 months ago #33197

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Maybe remove CMakeCache.txt and redo it all.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
The following user(s) said Thank You: Mustermann

Compiling on Ubuntu 18.10 5 years 8 months ago #33198

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
That worked well.
Now I still have the issue with Nestor when compiling Telemac. I just attach my compile.log here.
Attachments:
The administrator has disabled public write access.

Compiling on Ubuntu 18.10 5 years 8 months ago #33200

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
You are missing the option -cpp in your configuration in cmd_obj.
Add it and rerun compileTELEMAC.py --clean

That should do the trick.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
The following user(s) said Thank You: Mustermann, Htun Pyae Sone

Compiling on Ubuntu 18.10 5 years 8 months ago #33202

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
Thanks I missed that.
Just compiled and running a example case (litoral) to test the compilation. I got the the result files in scalar and parallel, but still get an error, which is related to python.
from scipy.spatial import cKDTree
ImportError: No module named scipy.spatial

Would it help to reinstall scipy?
The administrator has disabled public write access.
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.