cryptonotefoundation / cryptonote

CryptoNote protocol implementation. This is the reference repository for starting a new CryptoNote currency. See /src/cryptonote_config.h
https://cryptonote.org/
992 stars 6.11k forks source link

I cannot compile Cryptonote - cannot find -lCryptoupnpc-static #45

Open leocrypt opened 7 years ago

leocrypt commented 7 years ago

I am trying to compile the cryptonote and on the following line I get stuck. I am very new on machine programming and I would really appreciate any help!

[ 45%] Linking CXX executable azcoind
/usr/bin/ld: cannot find -lCryptoupnpc-static
collect2: error: ld returned 1 exit status
src/CMakeFiles/Daemon.dir/build.make:139: recipe for target 'src/azcoind' failed
make[3]: *** [src/azcoind] Error 1

I searched google, but cannot find any ubuntu package for Cryptoupnpc-static. I have installed miniupnpc package, which is running fine. But it didn't fix the issue. Please assist.

dirtyvader commented 7 years ago

Hey ! It's just a typo in src/CMakeLists.txt. at line65, you need to write "Crypto upnpc-static" not "Cryptoupnpc-static"

OlegFisher commented 7 years ago

Oh, thanks, in my case it worked!

pktejani commented 6 years ago

same error how to solved this

/usr/bin/ld: cannot find -lCryptoupnpc-static collect2: error: ld returned 1 exit status src/CMakeFiles/Daemon.dir/build.make:139: recipe for target 'src/hird' failed make[3]: [src/hird] Error 1 make[3]: Leaving directory '/home/pkinfosys/hir/build/debug' CMakeFiles/Makefile2:489: recipe for target 'src/CMakeFiles/Daemon.dir/all' failed make[2]: [src/CMakeFiles/Daemon.dir/all] Error 2 make[2]: Leaving directory '/home/pkinfosys/hir/build/debug' Makefile:94: recipe for target 'all' failed make[1]: [all] Error 2 make[1]: Leaving directory '/home/pkinfosys/hir/build/debug' Makefile:8: recipe for target 'build-debug' failed make: [build-debug] Error 2

SoraKohaku commented 6 years ago

never got error used my last repo~

On Jan 5, 2018 2:25 PM, "PK Infosys" notifications@github.com wrote:

same error how to solved this

/usr/bin/ld: cannot find -lCryptoupnpc-static collect2: error: ld returned 1 exit status src/CMakeFiles/Daemon.dir/build.make:139: recipe for target 'src/hird' failed make[3]: [src/hird] Error 1 make[3]: Leaving directory '/home/pkinfosys/hir/build/debug' CMakeFiles/Makefile2:489: recipe for target 'src/CMakeFiles/Daemon.dir/all' failed make[2]: [src/CMakeFiles/Daemon.dir/all] Error 2 make[2]: Leaving directory '/home/pkinfosys/hir/build/debug' Makefile:94: recipe for target 'all' failed make[1]: [all] Error 2 make[1]: Leaving directory '/home/pkinfosys/hir/build/debug' Makefile:8: recipe for target 'build-debug' failed make: [build-debug] Error 2

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/45#issuecomment-355475872, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tZNyjXDCMso35hriaB3402LOWNn_ks5tHbJGgaJpZM4OEGOh .

QuinnMallorry commented 6 years ago

You need to edit line 65 in src/CMakeLists.txt you need to correct the line so it says "crypto upnpc-static" not "cryptoupnpc-static"