ImperialCollegeLondon / sharpy

Simulation of High Aspect Ratio aeroplanes and wind turbines in Python: a nonlinear aeroelastic code
https://imperial.ac.uk/aeroelastics/sharpy
BSD 3-Clause "New" or "Revised" License
119 stars 58 forks source link

Conflict with libraries in implicit directories #269

Open aash-r opened 8 months ago

aash-r commented 8 months ago

Hi, Post completion of solving environment and activating sharpy environment, while running "cmake .." command, there is an issue with libraries in implicit directories.

OS: Oracle VirtualBox - Ubuntu 22.04.3

The following error message is received:

CMake Warning at lib/xbeam/CMakeLists.txt:12 (add_library): Cannot generate a safe runtime search path for target xbeam because files in some directories may conflict with libraries in implicit directories:

runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-linux-gnu/11 may be hidden by files in:
  /home/Anaconda/envs/sharpy/lib

Some of these libraries may not be found correctly.

CMake Warning at lib/UVLM/CMakeLists.txt:11 (add_library): Cannot generate a safe runtime search path for target uvlm because files in some directories may conflict with libraries in implicit directories:

runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-linux-gnu/11 may be hidden by files in:
  /home/Anaconda/envs/sharpy/lib

Some of these libraries may not be found correctly.

ben-l-p commented 8 months ago

Hi aash-r

It appears there are conflicting files in both the Conda environment and your GNU install, with both being in the system path. I am unable to replicate this issue on my machine, however I have found some possible solutions:

Please let me know if any of these fix your problem. I'll continue to investigate and if I find a fix I will update the CMake files.