You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling on Lubuntu in my virtual machine I get the following error:
medusa/src/core/instruction.cpp:40:22: error: ‘format’ is not a member of ‘boost’
std::string Res = (boost::format("mnem: %s(%08x), length: %d, prefix: %08x, oprd: %d")
This can be fixed by adding #include <boost/format.hpp> at the top of the instruction.cpp file, but I am assuming I am doing something else wrong during build.
I created the makefiles using cmake -DCMAKE_BUILD_TYPE=Release -DBOOST_ROOT:PATH=/usr/local/lib/ -DLLVM_ROOT=~/User/tools/llvm-build ..
I built boost from the source code directly and installed it using ./b2 install once it was done. The output and a check in the file system finds the installed files in /usr/local/lib.
My boost version is 1.62.0 and there have been CMake warnings before this happens, but it seemed to have found the boost dependencies anyway. This can be seen here
CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
Imported targets not available for Boost version 106200
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:102 (find_package)
-- Boost version: 1.62.0
-- Found the following Boost libraries:
-- system
-- filesystem
-- thread
-- date_time
-- program_options
-- unit_test_framework
Any ideas what I'm doing wrong?
The text was updated successfully, but these errors were encountered:
It seems I forgot to add a include here, but for some reason it was working before boost 1.62, thanks for reporting.
I applied your fix on my current build, but since I'm planning to do a massive release soon, I've to finish the db_soci first. Sorry for the inconvenience.
Regarding the warning on CMake, I think it might come from your CMake version and the FindBoost.cmake shipped with it. Please take a look at https://github.com/Kitware/CMake/blob/master/Modules/FindBoost.cmake#L533 and compare with your version. I think this is not important here, and the issue came from the missing include.
When compiling on Lubuntu in my virtual machine I get the following error:
This can be fixed by adding
#include <boost/format.hpp>
at the top of the instruction.cpp file, but I am assuming I am doing something else wrong during build.I created the makefiles using
cmake -DCMAKE_BUILD_TYPE=Release -DBOOST_ROOT:PATH=/usr/local/lib/ -DLLVM_ROOT=~/User/tools/llvm-build ..
I built boost from the source code directly and installed it using
./b2 install
once it was done. The output and a check in the file system finds the installed files in /usr/local/lib.My boost version is 1.62.0 and there have been CMake warnings before this happens, but it seemed to have found the boost dependencies anyway. This can be seen here
Any ideas what I'm doing wrong?
The text was updated successfully, but these errors were encountered: