vle-forge / vle

Virtual Laboratory Environment
http://www.vle-project.org
GNU General Public License v3.0
21 stars 22 forks source link

Wrong assignment of binary packages dir ? #381

Open rtrepos opened 4 years ago

rtrepos commented 4 years ago

In Context::getBinaryPackagesDir, two directory paths are provided for

On ubuntu 18.04 cmake version 3.10.2, it is OK On Debian GNU/Linux 10, cmake version 3.13.4 (in a docker container), the system pkgs dir is not ok.

On Debian, The system pkgs are installed in PREFIX/lib/x86_64-linux-gnu/vle-2.1/pkgs Is this a cmake concern or debian ? maybe information is given by cmake :

https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html

quesnel commented 4 years ago

On Debian:

rtrepos commented 4 years ago

The cmake commad used is :

cmake -G "Ninja" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo DWITH_CVLE=ON -DWITH_GVLE=OFF ..

the directory /usr/lib/vle-2.1 does not exist but the /usr/lib/x86_64-linux-gnu/vle-2.1/ does exist.

This temporary patch worked :

https://github.com/rtrepos/vle/commit/57ac7b3aa94da54249446568e714e6b32ec9f85c

quesnel commented 4 years ago

Can you give me the Debian stable docker image to perform test?

rtrepos commented 4 years ago

Yes you can find the recipe here :

https://forgemia.inra.fr/record/azodyn/blob/siwaa/siwaa_recipe/container/Dockerfile