monero-cpp
monero-cpp copied to clipboard
"monero-cpp" does not compile on Linux (Ubuntu 20)
Compiling on Ubuntu-20:
Section: Using this library in your project
From the description:
Link to this library's source files in your application or build as a shared library in ./build/: $ cd $MONERO_CPP && ./bin/build_libmonero_cpp.sh
Gives the following error:
[ 95%] Built target simplewallet
[ 95%] Built target blockchain_blackball
[ 96%] Built target gen_multisig
[ 97%] Built target wallet_rpc_server
-- EXTERNAL_LIBS_DIR:/home/mike/code/wrappers/monero-cpp/external-libs
-- EXTRA_LIBRARIES:
-- Protobuf lib: /usr/lib/x86_64-linux-gnu/libprotobuf.so, inc: /usr/include, protoc: /usr/bin/protoc
-- Using Boost include dir at /usr/include
-- Using OpenSSL include dir at /usr/include
-- Using libsodium library at /usr/lib/x86_64-linux-gnu/libsodium.so
-- Using HIDAPI include dir at /usr/include/hidapi
-- Using monero-project build:/home/mike/code/wrappers/monero-cpp/external/monero-project/build/release
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mike/code/wrappers/monero-cpp/build
make[2]: *** No rule to make target '../external/monero-project/build/release/lib/libwallet_merged.a', needed by 'scratchpad'. Stop.
make[1]: *** [CMakeFiles/Makefile2:80: CMakeFiles/scratchpad.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
I expected it to compile by default.
Had the same error when doing step 6, afungible was nice enough to try and help me to use the library.
Yeah libwallet_merged.a is no longer built in monero-project. I'm in the process of updating monero-cpp to work with the latest monero-project.
This branch builds on v0.18.0.0 but is pre-release: https://github.com/monero-ecosystem/monero-cpp/tree/v0.7.2
Thanks @woodser for your prompt reply. @ianniculescu perhaps, you could try the v0.7.2 branch as suggested. And once you have step 6) working, you can leave a comment here so we know we are good.
@woodser it would be nice to have a small note in step 6) that its a WIP, so others won't spend time debugging to get this right. And also, a directory structure of where the static/ dynamic shared libs will be placed would be nice to know. I had expected static libs in monero-cpp/bin/build directory, after successful step 5). I could only find the object (.o) files, but not static libs.
A new version of this library is released, v0.7.2. Please try it and let me know if you continue to have problems. This update removes libwallet_merged.a completely.
Should be fixed with the latest versions.