Hey @gjhiggins thanks for the reply.
How do you link to that directory?
Take a look at xtrabytes examples,
compile-win.sh which shows how to cross-compile the leveldb/memenv libraries
https://github.com/borzalom/XtraBYtes/blob/master/compile-win.sh#L12 and
xtrabytes-qt.pro which shows how to bind the environment variables to pick up the newly cross-compiled libraries:
https://github.com/borzalom/XtraBYtes/blob/master/xtrabytes-qt.pro#L113Just follow the examples, copynpasta, swapping out leveldb for secp256k1, (dunno if you need to add secp256k1 files to
SOURCES and
HEADERS, depends on how the interface to the library is implemented in your specific codebase). Begin edit-compile-debug cycle, hope it terminates successfully.
Cheers
Graham
Can you be more specific? I've tried working around with those files but i keep getting the same error.
Thanks
Hey @gjhiggins thanks for the reply.
How do you link to that directory?
I did download the option others posted here from Windows (pre-built) and tried to copy it pretty much everywhere @_@.
I tried to copy the content of the folder secp256k1 directly to
/home/zeus/Desktop/mxe/usr/i686-w64-mingw32.static and also the folder itself.
And I tried to copy the contents of the same folder to
/home/zeus/Desktop/mxe/usr/i686-w64-mingw32.static/bin (as this we add it to on the PATH= as per the tutorial) and the folder itself.
I also tried to merge the contents of
/home/zeus/Desktop/AltCoin/src/secp256k1 with the ones from Windows.
None of the options worked.
Am I missing something on my file
/home/zeus/Desktop/AltCoin/compile-win.sh?
#!/bin/bash
MXE_INCLUDE_PATH=~/Desktop/mxe/usr/i686-w64-mingw32.static/include
MXE_LIB_PATH=~/Desktop/mxe/usr/i686-w64-mingw32.static/lib
chmod 755 src/leveldb/build_detect_platform
chmod 755 src/secp256k1/autogen.sh
cd src/leveldb
make libleveldb.a libmemenv.a
cd ../..
i686-w64-mingw32.static-qmake-qt5 \
BOOST_LIB_SUFFIX=-mt \
BOOST_THREAD_LIB_SUFFIX=_win32-mt \
BOOST_INCLUDE_PATH=$MXE_INCLUDE_PATH/boost \
BOOST_LIB_PATH=$MXE_LIB_PATH \
OPENSSL_INCLUDE_PATH=$MXE_INCLUDE_PATH/openssl \
OPENSSL_LIB_PATH=$MXE_LIB_PATH \
BDB_INCLUDE_PATH=$MXE_INCLUDE_PATH \
BDB_LIB_PATH=$MXE_LIB_PATH \
MINIUPNPC_INCLUDE_PATH=$MXE_INCLUDE_PATH \
MINIUPNPC_LIB_PATH=$MXE_LIB_PATH \
QMAKE_LRELEASE=~/Desktop/mxe/usr/i686-w64-mingw32.static/qt5/bin/lrelease altcoi[Suspicious link removed]o
make -f Makefile.Release
its needs to be in you /mnt/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.4.0 folder that worked past my errors now im getting this
pi32 -lwinmm -lz -lpcre2-16 build/bitcoin-qt_res.o
build/key.o:key.cpp:(.text+0x181): undefined reference to `secp256k1_context_destroy'
build/key.o:key.cpp:(.text+0x2ee): undefined reference to `secp256k1_ec_privkey_import'
build/key.o:key.cpp:(.text+0x353): undefined reference to `secp256k1_ec_pubkey_create'
build/key.o:key.cpp:(.text+0x48f): undefined reference to `secp256k1_ec_privkey_import'
build/key.o:key.cpp:(.text+0x181b): undefined reference to `secp256k1_ec_pubkey_verify'
build/key.o:key.cpp:(.text+0x1890): undefined reference to `secp256k1_ec_pubkey_decompress'
build/key.o:key.cpp:(.text+0x1a83): undefined reference to `secp256k1_ec_pubkey_tweak_add'
build/key.o:key.cpp:(.text+0x2ad6): undefined reference to `secp256k1_ec_privkey_tweak_add'
build/key.o:key.cpp:(.text+0x32fa): undefined reference to `secp256k1_nonce_function_rfc6979'
build/key.o:key.cpp:(.text+0x3337): undefined reference to `secp256k1_ecdsa_sign'
build/key.o:key.cpp:(.text+0x39ac): undefined reference to `secp256k1_nonce_function_rfc6979'
build/key.o:key.cpp:(.text+0x39e3): undefined reference to `secp256k1_ecdsa_sign_compact'
build/key.o:key.cpp:(.text+0x3ea5): undefined reference to `secp256k1_ec_privkey_export'
build/key.o:key.cpp:(.text.startup+0x30): undefined reference to `secp256k1_context_create'
collect2: error: ld returned 1 exit status
CC src/libsecp256k1_la-secp256k1.lo
CCLD libsecp256k1.la
libtool: warning: undefined symbols not allowed in i686-w64-mingw32 shared libraries; building static only
/usr/bin/ar: `u' modifier ignored since `D' is the default (see `U')
CC src/tests-tests.o
CCLD tests
I try to compile the secp256k1 with ming and i get this
maybe should try to compile on windows like other have done? this coin has older version of the secp256k1 so i cannot use the binary that are on here it seems
didnt know if error was only refering to the test.o or the libsecp256k1.la
any help would be awesome great guide btw have successfully done other coins
Hey guys, if ya'll haven't found the solution to this yet, here's my code to cross compile Stipend from Ubuntu to Windows, let me know if this helps!