This is the g++ command running as reported by make:
g++ -o "../build/HeatMethod" obj/Debug/HeatMethod/GradientLerp.o obj/Debug/HeatMethod/MRS.o obj/Debug/HeatMethod/heat_method.o -L../libraries/glfw-3.2.1/bin -L/usr/local/opt/libunwind-headers/include -L../libraries/vulkansdk-linux/1.2.154.0/x86_64/lib -L../libraries/shaderc/build/libshaderc -L../libraries/googletest/build/lib -L../libraries/benchmark/build/src -L../build -L../libraries/GeographicLib/BUILD/src -lstdc++fs -O0 -ldl -export-dynamic -lstdc++fs -O0 -ldl -pg -export-dynamic ../build/libCoreVulkanEngine.a -lglfw -lunwind -lvulkan -lshaderc_combined -lpthread -lfreetype -lharfbuzz -lcairo -lgtest -lbenchmark -lGeographic
Might be somewhat verbose but focus on the fact that -L../libraries/GeographicLib/BUILD/src
is specified in the command.
The linker fails with the following error:
./HeatMethod: error while loading shared libraries: libGeographic.so.19: cannot open shared object file: No such file or directory
Well, here are the directory contents:
ls libraries/GeographicLib/BUILD/src/
CMakeFiles cmake_install.cmake libGeographic.so libGeographic.so.19 libGeographic.so.19.1.0 Makefile
The file it claims does not exist is defined inside the directory specified in the command, why cannot it find it?
Cleaned directory through make -C Generated/ clean
(Generated is where the makefile is)
Someone helped me get things working by doing:
LD_PRELOAD="/home/makogan/vkengine/libraries/GeographicLib/BUILD/src/libGeographic.so" ./HeatMethod