Closed HBD-BH closed 4 years ago
Have you possibly installed the shared libraries of Boost after setting up Artery's build directory? CMake won't substitute once found libraries (static) by more suitable ones (shared) without further ado then.
No that's not it since I created Artery's build directory after all the previous steps had completed successfully. I even deleted and recreated it several times. However, I might have run make veins
before installing boost (shared and static) libraries, could that have set some settings already?
I don't expect make veins
to have an influence on this matter. Ultimately, Artery relies on CMake's capabilities to detect the Boost libraries on your system. This is quite similar to Vanetza, though.
Which version of CMake are you using? Maybe I can reproduce your setup on my computer then.
I was using 3.10.2 (preinstalled in the Linux image I used), but I will try as next step to update cmake to the latest version and try building again.
Update: I have just tried to replicate your setup by compiling Boost 1.70.0 containing shared and static libraries side by side in its stage/lib directory. Both, Vanetza and Artery select the shared libraries. For reference, my CMake version is 3.13.4 and it only warns about the Boost version being newer than itself. Otherwise, everything is building fine.
Hi, I tried to install artery on a clean new VM with Ubuntu 18.04. Building veins, Vanetza, and INET according to the artery build instructions worked just fine. When then performing
cmake ..
for artery itself, it tells meso per my understanding only finding static boost libraries (same for libbboost_system). When I then perform
cmake --build .
, in the part for building vanetza, it gives meso per my understanding it is able to locate the shared libraries for building vanetza (I adjusted BUILD_SHARED_LIBS to ON in the vanetza CMakeLists.txt), and building it terminates successfully.
But then, at 66%, building artery fails with the following error:
How can I tell artery to also look for the shared boost libraries instead of the static ones? I already looked into artery/build/CMakeCache.txt, but did not find anything that seemed to fit.
Many thanks for your help.