Open tomcruiseqi opened 8 months ago
I tried something different(alongside this). I simply switched the version of CMake (from 3.25.1 which i was using and getting the same error) to 3.2.0, due to this thread .
TLDR:- It seems to be a CMake 3.21+ related issue
Hello:
When I build with
cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/programs/mylibvmi -DENABLE_KVM=ON -DENABLE_XEN=OFF -DENABLE_BAREFLANK=OFF
and then runmake -j6
, there are so many undefined references errors:After many tries, I found that this code (line 33 in [ROOT]/CMakeLists.txt) is doing the bad thing:
string(REGEX REPLACE "-l" "" GLIB_LDFLAGS ${GLIB_LDFLAGS})
when i comment out this line, everything works fine.I don't know if there will be some other problems, so I made this issue.