ethereum-mining / ethminer

Ethereum miner with OpenCL, CUDA and stratum support
GNU General Public License v3.0
5.96k stars 2.28k forks source link

Build error, missing jsoncpp_lib_static #2204

Open ssghost opened 3 years ago

ssghost commented 3 years ago

Describe the bug ... [100%] Linking CXX executable ethminer ld: library not found for -ljsoncpp_lib_static clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [ethminer/ethminer] Error 1 make[1]: *** [ethminer/CMakeFiles/ethminer.dir/all] Error 2 make: *** [all] Error 2

To Reproduce > cmake --build .

Expected behavior built successful.

Screenshots (Optional)

Screenshot 2021-02-27 at 23 06 21

Environment (please complete the following information):

Additional context see above.

LeChuckDE commented 3 years ago

Read the error-message and u will see what failed/missing ....

ssghost commented 3 years ago

Read the error-message and u will see what failed/missing ....

I know the library "jsoncpp_lib_static" is missing, but the library this name refers is actually deprecated. I compiled another version of "libjsoncpp" and find the flag in the file link.txt (build>ethminer>CMakeFiles>ethminer.dir), change "-ljsoncpp_lib_static" to "-ljsoncpp" and copy "libjsoncpp.a" to LIBRARY_PATH and here is the new error message:

Screenshot 2021-03-01 at 12 33 36
ssghost commented 3 years ago

Update: I have followed this video to get rid of the link problem of libcrypto.dylib. But yet another new error message has raised when doing cmake --build . as below:

Screenshot 2021-03-04 at 23 47 17