1

I have followed the guide "Building headless Bitcoin and Bitcoin-qt on Windows" but with a more recent altcoin source code to test.

The compilation stop on ld.exe: cannot find -lsecp256k1

Is one step missing to generate this missing dll ?

My qt-pro includes:

win32:BOOST_LIB_SUFFIX=-mgw49-mt-s-1_57
win32:BOOST_INCLUDE_PATH=C:/Deps/boost_1_57_0
win32:BOOST_LIB_PATH=C:/Deps/boost_1_57_0/stage/lib
win32:BDB_INCLUDE_PATH=c:/deps/db-4.8.30.NC/build_unix/
win32:BDB_LIB_PATH=c:/deps/db-4.8.30.NC/build_unix
win32:OPENSSL_INCLUDE_PATH=C:/Deps/openssl-1.0.2k/include/
win32:OPENSSL_LIB_PATH=C:/Deps/openssl-1.0.2k
win32:MINIUPNPC_INCLUDE_PATH=C:/Deps/
win32:MINIUPNPC_LIB_PATH=C:/Deps/miniupnpc/
win32:LIBPNG_INCLUDE_PATH=C:/Deps/libpng-1.6.1/
win32:LIBPNG_LIB_PATH=C:/Deps/libpng-1.6.18
win32:QRENCODE_INCLUDE_PATH=C:/Deps/qrencode-3.4.4
win32:QRENCODE_LIB_PATH=C:/Deps/qrencode-3.4.4/.libs
win32:SECP256K1_LIB_PATH = C:/Crypto/mycrypto/src/secp256k1/
win32:SECP256K1_INCLUDE_PATH = C:/Crypto/mycrypto/src/secp256k1/include

  • Welcome to Bitcoin.SE! That is a fairly old guide for Bitcoin Core v0.9.4, v0.10rc4 or, v0.8.6. Usually, these days compiling Bitcoin Core for Windows is done in an Ubuntu environment or similar (build-windows.md) but, without a link to the altcoin source repository, I cannot even check what its build documents say. Probably it uses lsecp256k1 instead of or as well as secp256k1. – Willtech Mar 13 '18 at 11:37
  • @Willtech thanks for your welcome. I have created two learning coins (the last one is github.com/JustCuriously/locavore) just to see how it work, build an explorer etc... it's of course copy of other old fork but it's to understand the process. The linux qt has been compiled but I'm not able to compile the Windows qt. If a use the new method (build-windows.md) on the old code I will have many depends errors now ? – Boody Mar 14 '18 at 8:14
  • Your standard build instructions are here, do they work? – Willtech Mar 14 '18 at 8:20
  • more or less since I have not been able to compile the Windows version, I have not yet updated the method. I just commit the qt version for linux (with qt5). I'm looking for a complete version of code to study, with MN, POW, POS ... but every time I clone the git source and try to compile something is missing .. it seems that dev have something to hide or don't like to share secret :-) – Boody Mar 14 '18 at 17:15
  • Just out of interest, what happens if addthe two paths for lsecp256k1 just pointing them to secp256k1? – Willtech Mar 14 '18 at 20:46
1

Problem resolved ! There was an error during the secp256k1 compilation process (MINGW32 under windows), adding:

LT_INIT([win32-dll])

into the secp256k1/configure.ac has resolved the compilation error.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.