Open Integrative opened 6 years ago
What's the output of these commands?
$ conan search "Poco*" $ ldd ./creepMiner
Have you tried removing Poco, then rerunning the conan install command?
$ conan remove "Poco/*"
Same here when i execute ./creepMiner (as root it's working fine, but we do not want this ;) ) I solved this by a run.sh script:
#!/bin/sh
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:lib:/usr/local/lib:$(pwd)
export LD_LIBRARY_PATH
./creepMiner
There is a run.sh script inside resources
. Copy it inside your bin dir and run it.
If you run the creepMiner binary directly, your OS (at least Linux) will only look inside the paths in LD_LIBRARY_PATH
.
Before submitting your issue, please review the following checklist:
Subject of the issue
After clean compile, fails to start with error "error while loading shared libraries: libPocoXML.so.60"
Your environment
Steps to reproduce
Compile according to instructions, try to run .. crash
--- conan: root@intmc01mine002:/opt/creepMiner# conan install . --build=missing -s compiler.libcxx=libstdc++11 OpenSSL/1.0.2o@conan/stable requirement zlib/1.2.11@conan/stable overriden by Poco/1.9.0@pocoproject/stable to zlib/1.2.8@conan/stable PROJECT: Installing /opt/creepMiner/conanfile.txt Requirements OpenSSL/1.0.2o@conan/stable from 'conan-center' - Cache Poco/1.9.0@pocoproject/stable from 'conan-center' - Cache zlib/1.2.8@conan/stable from 'conan-center' - Cache Packages OpenSSL/1.0.2o@conan/stable:c5f6a313ef6b26768f5168706e64d0a8c6143d8b - Cache Poco/1.9.0@pocoproject/stable:a8815389905566a8ecc728be3b012ae00d851b4f - Cache zlib/1.2.8@conan/stable:5246c0bd84cb3855ffc2a458086a0813344953bf - Cache
zlib/1.2.8@conan/stable: Already installed! OpenSSL/1.0.2o@conan/stable: Already installed! Poco/1.9.0@pocoproject/stable: Already installed! PROJECT: Generator cmake created conanbuildinfo.cmake PROJECT: Generator txt created conanbuildinfo.txt PROJECT: Generated conaninfo.txt PROJECT imports(): Copied 2 '.0' files: libcrypto.so.1.0.0, libssl.so.1.0.0 PROJECT imports(): Copied 1 '.1' file: libz.so.1 PROJECT imports(): Copied 13 '.60' files: PROJECT imports(): Copied 1 '.8' file: libz.so.1.2.8 PROJECT imports(): Copied 16 '.so' files: root@intmc01mine002:/opt/creepMiner# cmake CMakeLists.txt -DCMAKE_BUILD_TYPE=RELEASE -DUSE_OPENCL=on -DUSE_CUDA=off -- The C compiler identification is GNU 7.3.0 -- The CXX compiler identification is GNU 7.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Current conanbuildinfo.cmake directory: /opt/creepMiner -- Conan: Compiler GCC>=5, checking major version 7 -- Conan: Checking correct version: 7 -- Conan: Using cmake global configuration -- Conan: Adjusting default RPATHs Conan policies -- Conan: Adjusting language standard -- Looking for CL_VERSION_2_2 -- Looking for CL_VERSION_2_2 - not found -- Looking for CL_VERSION_2_1 -- Looking for CL_VERSION_2_1 - not found -- Looking for CL_VERSION_2_0 -- Looking for CL_VERSION_2_0 - found -- Found OpenCL: /opt/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so (found version "2.0") -- Configuring done -- Generating done -- Build files have been written to: /opt/creepMiner
-- make root@intmc01mine002:/opt/creepMiner# make -j$(nproc) Scanning dependencies of target creepMiner [ 2%] Building CXX object CMakeFiles/creepMiner.dir/src/Declarations.cpp.o [ 5%] Building CXX object CMakeFiles/creepMiner.dir/src/MinerUtil.cpp.o [ 10%] Building CXX object CMakeFiles/creepMiner.dir/src/gpu/impl/gpu_cuda_impl.cpp.o [ 10%] Building CXX object CMakeFiles/creepMiner.dir/src/main.cpp.o [ 13%] Building CXX object CMakeFiles/creepMiner.dir/src/gpu/impl/gpu_opencl_impl.cpp.o [ 15%] Building CXX object CMakeFiles/creepMiner.dir/src/logging/channels/ColoredPriorityConsoleChannel.cpp.o [ 18%] Building CXX object CMakeFiles/creepMiner.dir/src/logging/channels/MinerDataChannel.cpp.o [ 21%] Building CXX object CMakeFiles/creepMiner.dir/src/logging/Console.cpp.o [ 23%] Building CXX object CMakeFiles/creepMiner.dir/src/logging/Message.cpp.o [ 26%] Building CXX object CMakeFiles/creepMiner.dir/src/logging/MinerLogger.cpp.o [ 28%] Building CXX object CMakeFiles/creepMiner.dir/src/logging/Output.cpp.o [ 31%] Building CXX object CMakeFiles/creepMiner.dir/src/logging/Performance.cpp.o [ 34%] Building CXX object CMakeFiles/creepMiner.dir/src/logging/ProgressPrinter.cpp.o [ 36%] Building CXX object CMakeFiles/creepMiner.dir/src/mining/Deadline.cpp.o [ 39%] Building CXX object CMakeFiles/creepMiner.dir/src/mining/Miner.cpp.o [ 42%] Building CXX object CMakeFiles/creepMiner.dir/src/mining/MinerCL.cpp.o [ 44%] Building CXX object CMakeFiles/creepMiner.dir/src/mining/MinerConfig.cpp.o [ 47%] Building CXX object CMakeFiles/creepMiner.dir/src/mining/MinerData.cpp.o /opt/creepMiner/src/mining/MinerCL.cpp: In member function ‘_cl_command_queue Burst::MinerCL::createCommandQueue()’: /opt/creepMiner/src/mining/MinerCL.cpp:384:78: warning: ‘_cl_command_queue clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int)’ is deprecated [-Wdeprecated-declarations] auto commandqueue = clCreateCommandQueue(context, getDevice()->id, 0, &ret); ^ In file included from /opt/creepMiner/src/mining/MinerCL.hpp:35:0, from /opt/creepMiner/src/mining/MinerCL.cpp:22: /usr/include/CL/cl.h:1359:1: note: declared here clCreateCommandQueue(cl_context / context */, ^
~~~~~~~ [ 50%] Building CXX object CMakeFiles/creepMiner.dir/src/network/NonceSubmitter.cpp.o [ 52%] Building CXX object CMakeFiles/creepMiner.dir/src/network/Request.cpp.o [ 55%] Building CXX object CMakeFiles/creepMiner.dir/src/network/Response.cpp.o [ 57%] Building CXX object CMakeFiles/creepMiner.dir/src/network/Url.cpp.o [ 60%] Building CXX object CMakeFiles/creepMiner.dir/src/nxt/nxt_address.cpp.o [ 63%] Building CXX object CMakeFiles/creepMiner.dir/src/plots/Plot.cpp.o [ 65%] Building CXX object CMakeFiles/creepMiner.dir/src/plots/PlotGenerator.cpp.o [ 68%] Building CXX object CMakeFiles/creepMiner.dir/src/plots/PlotReader.cpp.o [ 71%] Building CXX object CMakeFiles/creepMiner.dir/src/plots/PlotSizes.cpp.o [ 73%] Building CXX object CMakeFiles/creepMiner.dir/src/plots/PlotVerifier.cpp.o [ 76%] Building CXX object CMakeFiles/creepMiner.dir/src/shabal/MinerShabal.cpp.o [ 78%] Building CXX object CMakeFiles/creepMiner.dir/src/shabal/sphlib/sph_shabal.cpp.o [ 81%] Building CXX object CMakeFiles/creepMiner.dir/src/wallet/Account.cpp.o [ 84%] Building CXX object CMakeFiles/creepMiner.dir/src/wallet/Wallet.cpp.o [ 86%] Building CXX object CMakeFiles/creepMiner.dir/src/webserver/MinerServer.cpp.o [ 89%] Building CXX object CMakeFiles/creepMiner.dir/src/webserver/RequestHandler.cpp.o [ 92%] Building CXX object CMakeFiles/creepMiner.dir/src/shabal/mshabal/mshabal_sse4.cpp.o [ 94%] Building CXX object CMakeFiles/creepMiner.dir/src/shabal/mshabal/mshabal_avx1.cpp.o [ 97%] Building CXX object CMakeFiles/creepMiner.dir/src/shabal/mshabal/mshabal_avx2.cpp.o [100%] Linking CXX executable bin/creepMiner [100%] Built target creepMinerrun
root@intmc01mine002:/opt/creepMiner/bin# ./creepMiner ./creepMiner: error while loading shared libraries: libPocoXML.so.60: cannot open shared object file: No such file or directory