Pages:
Author

Topic: [HOWTO] compile altcoin for windows on linux using mxe and mingw - page 8. (Read 49127 times)

full member
Activity: 165
Merit: 100
Change
Code:
#!/bin/bash
MXE_INCLUDE_PATH=/mnt/mxe/usr/i686-w64-mingw32.static/include
MXE_LIB_PATH=/mnt/mxe/usr/i686-w64-mingw32.static/lib

i686-w64-mingw32.static-qmake-qt5 \
Code:
#!/bin/bash
MXE_INCLUDE_PATH=/mnt/mxe/usr/i686-w64-mingw32.static/include
MXE_LIB_PATH=/mnt/mxe/usr/i686-w64-mingw32.static/lib

/mnt/mxe/usr/i686-w64-mingw32.static/qt5/bin/qmake \

Push +Merit  Smiley
newbie
Activity: 19
Merit: 0
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?

Code:
#!/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

Code:
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


Code:

  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
newbie
Activity: 28
Merit: 0

Heck!  Grin Too late.  Cheesy I've almost finished setting up the environment in Windows))

Btw, thank you! Probably useful later.
Good look. It's very hard to do.
newbie
Activity: 1
Merit: 0
is there a guide to make a coin from QT4 to QT5?
member
Activity: 294
Merit: 11
Lord Shiva
Is it working with Bitcoin Core 0.8?
Its worked with Litecoin 0.8.7.4
I think it will work

Heck!  Grin Too late.  Cheesy I've almost finished setting up the environment in Windows))

Btw, thank you! Probably useful later.
newbie
Activity: 28
Merit: 0
Is it working with Bitcoin Core 0.8?
Its worked with Litecoin 0.8.7.4
I think it will work
member
Activity: 294
Merit: 11
Lord Shiva
Is it working with Bitcoin Core 0.8?
newbie
Activity: 1
Merit: 0
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#L113

Just 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
legendary
Activity: 2254
Merit: 1290
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#L113

Just 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
member
Activity: 115
Merit: 10
I am getting a permissions error when trying to build make MXE_TARGETS="i686-w64-mingw32.static" qttools.

make[1]: *** [build-only-libmysqlclient_i686-w64-mingw32.static] Error 1

Any ideas?
member
Activity: 84
Merit: 10
Thanks for the great tutorial.  So far I've been able to get through a few problems, but I'm stuck now with a Berkley DB linking problem.  I've recompiled it and tried a couple different versions.  I also removed all the Berkley DB files to see if I get a different error and it is the same, but everything looks correct when I check paths/names.  I'm not sure what I am doing wrong, but I'm getting these errors (small snippet since they are all the same undefined reference error):

Code:
./build/init.o:init.cpp:(.text$_ZN3CDB4ReadINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13CBlockLocatorEEbRKT_RT0_[__ZN3CDB4ReadINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13CBlockLocatorEEbRKT_RT0_]+0x172): undefined reference to `Dbt::Dbt(void*, unsigned int)'
./build/init.o:init.cpp:(.text$_ZN3CDB4ReadINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13CBlockLocatorEEbRKT_RT0_[__ZN3CDB4ReadINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13CBlockLocatorEEbRKT_RT0_]+0x192): undefined reference to `Dbt::Dbt()'
./build/init.o:init.cpp:(.text$_ZN3CDB4ReadINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13CBlockLocatorEEbRKT_RT0_[__ZN3CDB4ReadINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13CBlockLocatorEEbRKT_RT0_]+0x498): undefined reference to `Dbt::~Dbt()'
./build/init.o:init.cpp:(.text$_ZN3CDB4ReadINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13CBlockLocatorEEbRKT_RT0_[__ZN3CDB4ReadINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13CBlockLocatorEEbRKT_RT0_]+0x4ad): undefined reference to `Dbt::~Dbt()'
./build/init.o:init.cpp:(.text$_ZN3CDB4ReadINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13CBlockLocatorEEbRKT_RT0_[__ZN3CDB4ReadINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13CBlockLocatorEEbRKT_RT0_]+0x614): undefined reference to `Dbt::~Dbt()'
./build/init.o:init.cpp:(.text$_ZN3CDB4ReadINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13CBlockLocatorEEbRKT_RT0_[__ZN3CDB4ReadINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13CBlockLocatorEEbRKT_RT0_]+0x629): undefined reference to `Dbt::~Dbt()'
./build/db.o:db.cpp:(.text+0x38d): undefined reference to `DbEnv::DbEnv(unsigned int)'
./build/db.o:db.cpp:(.text+0x17c6): undefined reference to `DbEnv::close(unsigned int)'
./build/db.o:db.cpp:(.text+0x17f8): undefined reference to `DbEnv::DbEnv(unsigned int)'
./build/db.o:db.cpp:(.text+0x1818): undefined reference to `DbEnv::remove(char const*, unsigned int)'
./build/db.o:db.cpp:(.text+0x182a): undefined reference to `DbEnv::~DbEnv()'
./build/db.o:db.cpp:(.text+0x1844): undefined reference to `DbEnv::strerror(int)'
./build/db.o:db.cpp:(.text+0x187b): undefined reference to `DbEnv::~DbEnv()'
./build/db.o:db.cpp:(.text+0x1933): undefined reference to `DbEnv::~DbEnv()'
./build/db.o:db.cpp:(.text+0x19e7): undefined reference to `DbEnv::~DbEnv()'
./build/db.o:db.cpp:(.text+0x1e05): undefined reference to `DbEnv::set_lg_dir(char const*)'
./build/db.o:db.cpp:(.text+0x1e69): undefined reference to `DbEnv::set_cachesize(unsigned int, unsigned int, int)'
./build/db.o:db.cpp:(.text+0x1e7e): undefined reference to `DbEnv::set_lg_bsize(unsigned int)'
./build/db.o:db.cpp:(.text+0x1e93): undefined reference to `DbEnv::set_lg_max(unsigned int)'
./build/db.o:db.cpp:(.text+0x1ea8): undefined reference to `DbEnv::set_lk_max_locks(unsigned int)'
./build/db.o:db.cpp:(.text+0x1ebd): undefined reference to `DbEnv::set_lk_max_objects(unsigned int)'

Figured it out.  Solution for anyone else:
In my .pro file I was using:
BDB_INCLUDE_PATH=${MXE_LIB_PATH}
BDB_LIB_PATH=${MXE_LIB_PATH}
Because the install was putting the files there.  I'm not sure why that didn't work, but when I switched them to this it started working:
BDB_INCLUDE_PATH="/mnt/db-5.3.28/build_mxe"
BDB_LIB_PATH="/mnt/db-5.3.28/build_mxe"
newbie
Activity: 75
Merit: 0
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?

Code:
#!/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
legendary
Activity: 2254
Merit: 1290
Not sure if it will help, but found this when searching for it myself. I ran into a different issue though.

Code:
cd src/secp256k1/ && ./configure && make
sudo make install
sudo ldconfig
Thank you for your fast reply, I already tried to configure and do the make install before and it didn't change anything. I tested it all again, including the ldconfig (just to make sure), but this option didn't solve the issue :/

I'm still getting the same error:
Code:
/home/zeus/Desktop/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lsecp256k1
collect2: error: ld returned 1 exit status

That's because the quoted instructions are for building Linux binaries of the secp256k1 library. Hint: if you're not using the compiler in /home/zeus/Desktop/mxe/usr/bin/i686-w64-mingw32.static-*, you ain't likely to be creating Windows-linkable binanies.

I haven't yet encountered a need to cross-compile secp256k1 libs but when I do, I'll be doing it inside the MXE cross-compilation environment. Others have adopted the tactic of simply compiling up the secp256k1 lib on Windows separately (or copying a Windows binary from somewhere else) and linking directly to those Windows libs.

Cheers

Graham
newbie
Activity: 75
Merit: 0
Hello,
Thanks for this great tutorial, it has been very useful to be able to start building the wallet for an altcoin.

I'm currently having this issue:
Code:
/home/zeus/Desktop/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lsecp256k1
collect2: error: ld returned 1 exit status

I saw that someone else had this issue here but he never got a response.
Can someone help me with this Cheesy? I guess it's my last step to be able to build the Windows wallet from Ubuntu.

Not sure if it will help, but found this when searching for it myself. I ran into a different issue though.

Code:
cd src/secp256k1/ && ./configure && make
sudo make install
sudo ldconfig

Thank you for your fast reply, I already tried to configure and do the make install before and it didn't change anything. I tested it all again, including the ldconfig (just to make sure), but this option didn't solve the issue :/

I'm still getting the same error:
Code:
/home/zeus/Desktop/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lsecp256k1
collect2: error: ld returned 1 exit status
full member
Activity: 750
Merit: 100
Hello,
Thanks for this great tutorial, it has been very useful to be able to start building the wallet for an altcoin.

I'm currently having this issue:
Code:
/home/zeus/Desktop/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lsecp256k1
collect2: error: ld returned 1 exit status

I saw that someone else had this issue here but he never got a response.
Can someone help me with this Cheesy? I guess it's my last step to be able to build the Windows wallet from Ubuntu.

Not sure if it will help, but found this when searching for it myself. I ran into a different issue though.

Code:
cd src/secp256k1/ && ./configure && make
sudo make install
sudo ldconfig
newbie
Activity: 75
Merit: 0
Hello,
Thanks for this great tutorial, it has been very useful to be able to start building the wallet for an altcoin.

I'm currently having this issue:
Code:
/home/zeus/Desktop/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lsecp256k1
collect2: error: ld returned 1 exit status

I saw that someone else had this issue here but he never got a response.
Can someone help me with this Cheesy? I guess it's my last step to be able to build the Windows wallet from Ubuntu.
legendary
Activity: 2254
Merit: 1290
i can compile for linux without a snag and all goes well if i do it the normal way ... but after following this "tut" 2 times with full reinstall i find that i get the very same issue each time
Well, yeah it won't change by itself, a real bummer I know but ...

Quote
root@amorejaz:/mnt/blackcoin# ./compile-blk.sh
sh: 1: /mnt/mxe/usr/i686-w64-mingw32.static/qt5/binlrelease.exe: not found
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_ar.qm'


You're missing a trailing slash there ... there's no slash separator between the directory path and the executable file in /mnt/mxe/usr/i686-w64-mingw32.static/qt5/binlrelease.exe, the RCC errors are a direct consequence.

Quote
src/db.h:18:20: fatal error: db_cxx.h: No such file or directory

Then BDB_INCLUDE_PATH either was bound incorrectly or not at all (see references to BDB_* in bitcoin-qt.pro)

Cheers

Graham
legendary
Activity: 3122
Merit: 1102
Leading Crypto Sports Betting & Casino Platform
i just had to check this out... i have wanted to for a while now but never found the time...
holidays 'done" check
extra week vacation after holidays' check
doing nothing at home for a week after the vacation' SUPER CHECK"
yep now its time! ...
 i installed ubuntu 2 times and followed this to the letter...
i can compile for linux without a snag and all goes well if i do it the normal way ... but after following this "tut" 2 times with full reinstall i find that i get the very same issue each time...
anyone care to call me stupid" please be my guest"
even a bit of help would be nice also...  here it is

and thanks in advance

root@amorejaz:/mnt/blackcoin# ./compile-blk.sh
Project MESSAGE: Building with UPNP support
sh: 1: /mnt/mxe/usr/i686-w64-mingw32.static/qt5/binlrelease.exe: not found
Project MESSAGE: Building with UPNP support
sh: 1: /mnt/mxe/usr/i686-w64-mingw32.static/qt5/binlrelease.exe: not found
Project MESSAGE: Building with UPNP support
sh: 1: /mnt/mxe/usr/i686-w64-mingw32.static/qt5/binlrelease.exe: not found
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_ar.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_ca_ES.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_cs.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_da.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_de.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_el_GR.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_en.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_eo.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_es_CL.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_es_DO.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_es.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_fa.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_fi.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_fr_CA.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_fr.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_gl.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_he.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_hr.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_hu.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_it.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_ja.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_ka.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_ko_KR.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_lt.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_nb.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_nl.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_pam.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_pl.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_pt_BR.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_pt_PT.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_ro_RO.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_ru.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_sk.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_sl_SI.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_sv.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_tr.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_uk.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_zh_CN.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_zh_TW.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_ar.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_ca_ES.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_cs.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_da.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_de.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_el_GR.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_en.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_eo.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_es_CL.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_es_DO.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_es.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_fa.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_fi.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_fr_CA.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_fr.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_gl.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_he.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_hr.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_hu.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_it.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_ja.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_ka.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_ko_KR.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_lt.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_nb.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_nl.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_pam.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_pl.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_pt_BR.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_pt_PT.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_ro_RO.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_ru.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_sk.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_sl_SI.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_sv.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_tr.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_uk.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_zh_CN.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_zh_TW.qm'
./compile-blk.sh: line 31: blackcoin-qt.pro: command not found
cd /mnt/blackcoin/src/leveldb && CC=i686-w64-mingw32.static-gcc CXX=i686-w64-mingw32.static-g++ TARGET_OS=OS_WINDOWS_CROSSCOMPILE make OPT="-fno-keep-inline-dllexport -pipe -O2" libleveldb.a libmemenv.a && i686-w64-mingw32.static-ranlib /mnt/blackcoin/src/leveldb/libleveldb.a && i686-w64-mingw32.static-ranlib /mnt/blackcoin/src/leveldb/libmemenv.a
make[1]: Entering directory '/mnt/blackcoin/src/leveldb'
make[1]: 'libleveldb.a' is up to date.
make[1]: 'libmemenv.a' is up to date.
make[1]: Leaving directory '/mnt/blackcoin/src/leveldb'
i686-w64-mingw32.static-g++ -c -fno-keep-inline-dllexport -pipe -O2 -std=gnu++11 -fdiagnostics-show-option -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wstack-protector -fexceptions -mthreads -DUNICODE -D_UNICODE -DENABLE_WALLET -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DQT_DISABLE_DEPRECATED_BEFORE=0 -DUSE_UPNP=1 -DMINIUPNP_STATICLIB -DSTATICLIB -DWIN32 -D_MT -DBOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -Isrc -Isrc/json -Isrc/qt -Isrc/leveldb/include -Isrc/leveldb/helpers -I../mxe/usr/i686-w64-mingw32.static/qt5/include -I../mxe/usr/i686-w64-mingw32.static/qt5/include/QtWidgets -I../mxe/usr/i686-w64-mingw32.static/qt5/include/QtGui -I../mxe/usr/i686-w64-mingw32.static/qt5/include/QtNetwork -I../mxe/usr/i686-w64-mingw32.static/qt5/include/QtCore -Ibuild -Ibuild -I../mxe/usr/i686-w64-mingw32.static/qt5/mkspecs/win32-g++  -o build/bitcoin.o src/qt/bitcoin.cpp
In file included from src/walletdb.h:8:0,
                 from src/wallet.h:8,
                 from src/init.h:8,
                 from src/qt/bitcoin.cpp:13:
src/db.h:18:20: fatal error: db_cxx.h: No such file or directory
compilation terminated.
Makefile.Release:5471: recipe for target 'build/bitcoin.o' failed
make: *** [build/bitcoin.o] Error 1


i run all my compiles with root so please try not to worry about be breaking the system ...thanks
legendary
Activity: 2254
Merit: 1290
Has anyone figured this out? It seems to recognize but complain about permissions when not run with sudo (which makes sense), but when ran with sudo with the correct path, it is still producing that error.

When I echo path, this is the output:
Code:
echo $PATH
/mnt/mxe/usr/bin:/ ... /bin

Just guessing here because I can't reproduce the problem but perhaps default security has been tightened up, maybe sudo -E might help:

https://www.sudo.ws/man/1.8.21/sudo.man.html

Cheers

Graham
legendary
Activity: 1073
Merit: 1000
Hello everyone.

I've been compiling wallets for different Linux distros and for the Raspberry Pi and I thought I might give the Windows wallet a shot.

I followed the instructions on the first post exactly and everything worked perfectly until the compile.

I used Blackcoin as the example suggested.

The errors are as follows:

Code:
compile@compile-HP-Compaq-dc7700-Convertible-Minitower:/mnt/blackcoin$ sudo ./compile-blk.sh
./compile-blk.sh: 1: ./compile-blk.sh: #!/bin/bash: not found
./compile-blk.sh: 4: ./compile-blk.sh: i686-w64-mingw32.static-qmake-qt5: not found
make: Makefile.Release: No such file or directory
make: *** No rule to make target `Makefile.Release'.  Stop.
compile@compile-HP-Compaq-dc7700-Convertible-Minitower:/mnt/blackcoin$

Now here is the strange part. I put the path in correctly, and it shows up fine when I display environmental list in the terminal.

Any help would be appreciated.

Thanks. Smiley

Code:
compile@compile-HP-Compaq-dc7700-Convertible-Minitower:/mnt/blackcoin$ sudo ./compile-blk.sh
./compile-blk.sh: 1: ./compile-blk.sh: #!/bin/bash: not found
./compile-blk.sh: 4: ./compile-blk.sh: i686-w64-mingw32.static-qmake-qt5: not found
make: Makefile.Release: No such file or directory
make: *** No rule to make target `Makefile.Release'.  Stop.
compile@compile-HP-Compaq-dc7700-Convertible-Minitower:/mnt/blackcoin$


I have same error

Has anyone figured this out? It seems to recognize but complain about permissions when not run with sudo (which makes sense), but when ran with sudo with the correct path, it is still producing that error.

When I echo path, this is the output:
Code:
echo $PATH
/mnt/mxe/usr/bin:/mnt/mxe/usr/bin:/mnt/mxe/usr/bin:/mnt/mxe/usr/bin:/mnt/mxe/usr/bin:/home/ubuntu/bin:/home/ubuntu/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
Pages:
Jump to: