Bitcoin Forum
November 04, 2024, 03:05:00 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 [7] 8 9 10 11 12 13 14 15 »  All
  Print  
Author Topic: [HOWTO] compile altcoin for windows on linux using mxe and mingw  (Read 49102 times)
gjhiggins
Legendary
*
Offline Offline

Activity: 2254
Merit: 1290



View Profile WWW
December 14, 2017, 11:36:24 AM
 #121

Can you help me with this error, thanks.

cd /mnt/coinm-source/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 -D_FORTIFY_SOURCE=2 -O2" libleveldb.a libmemenv.a && i686-w64-mi                                                                             ngw32.static-ranlib /mnt/coinm-source/src/leveldb/libleveldb.a && i686-w64-mingw                                                                             32.static-ranlib /mnt/coinm-source/src/leveldb/libmemenv.a
make[1]: Entering directory `/mnt/coinm-source/src/leveldb'
make[1]: *** No rule to make target `libleveldb.a'.  Stop.
make[1]: Leaving directory `/mnt/coinm-source/src/leveldb'
make: *** [/mnt/coinm-source/src/leveldb/libleveldb.a] Error 2

There are two shell script files that need to be executable in order for the compilation process to succeed. If the dev has omitted to make them executable, the above error is seen:

share/genbuild.sh and src/leveldb/build_detect_platform

Make them both executable and try again.

Cheers

Graham
gjhiggins
Legendary
*
Offline Offline

Activity: 2254
Merit: 1290



View Profile WWW
December 16, 2017, 01:44:10 PM
 #122

FWIW: I won't be responding to any more “Can you help me?” PMs.

This exercise is public for a reason, so that knowledge is distributed - and from my perspective, so that others besides me can take turns in passing it on.

Cheers

Graham
gjhiggins
Legendary
*
Offline Offline

Activity: 2254
Merit: 1290



View Profile WWW
December 16, 2017, 01:58:37 PM
 #123

make[1]: Nothing to be done for 'libleveldb.a'.
make[1]: *** No rule to make target 'libmemenv.a'.  Stop.

I'v experienced this on more than one occasion. Sometimes it can be trivially solved by running make libmemenv.a in src/leveldb and sometimes not. If not then the only recourse is to try and deduce a fix by cross-referencing against the contents of leveldb and the top-level (qmake/autotools) build file of a close clonecousin.

Cheers

Graham
Blackboltz
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
December 16, 2017, 02:19:43 PM
 #124

can you help me with this?

Code:
/home/blackboltz/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_system-mgw62-mt-s-1_57
/home/blackboltz/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_filesystem-mgw62-mt-s-1_57
/home/blackboltz/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_program_options-mgw62-mt-s-1_57
/home/blackboltz/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_chrono-mgw62-mt-s-1_57
collect2: error: ld returned 1 exit status
Makefile.Release:452: fallo en las instrucciones para el objetivo 'release/Cheesecoin-qt.exe'
make: *** [release/Cheesecoin-qt.exe] Error 1
gjhiggins
Legendary
*
Offline Offline

Activity: 2254
Merit: 1290



View Profile WWW
December 16, 2017, 02:46:56 PM
 #125

can you help me with this?


/home/blackboltz/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_system-mgw62-mt-s-1_57
/home/blackboltz/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_filesystem-mgw62-mt-s-1_57
/home/blackboltz/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_program_options-mgw62-mt-s-1_57
/home/blackboltz/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_chrono-mgw62-mt-s-1_57
collect2: error: ld returned 1 exit status
Makefile.Release:452: fallo en las instrucciones para el objetivo 'release/Cheesecoin-qt.exe'
make: *** [release/Cheesecoin-qt.exe] Error 1



Yeah, read upthread post : https://bitcointalk.org/index.php?topic=1080289.msg21247843#msg21247843 and, given that the basic nature of the question testifies to your innocence of the content of this thread, I strongly recommend you read all 7(!) pages.

Cheers

Graham
gjhiggins
Legendary
*
Offline Offline

Activity: 2254
Merit: 1290



View Profile WWW
December 20, 2017, 02:24:01 PM
 #126

make[1]: Entering directory '/mnt/coinm/src/leveldb'
make[1]: 'libleveldb.a' is up to date.
make[1]: 'libmemenv.a' is up to date.
make[1]: Leaving directory '/mnt/coinm/src/leveldb'
/bin/sh: 1: i686-w64-mingw32.static-ranlib: not found
Makefile.Release:454: recipe for target '/mnt/coinm/src/leveldb/libleveldb.a' failed
make: *** [/mnt/coinm/src/leveldb/libleveldb.a] Error 127

gjhiggins
Legendary
*
Offline Offline

Activity: 2254
Merit: 1290



View Profile WWW
December 28, 2017, 12:35:43 PM
 #127

How I can fix this problem. Help me please.
command: 'ranlib src/leveldb/libmemenv.a' not helped

https://duckduckgo.com/?q=%22Archive+has+no+index%3B+run+ranlib+to+add+one%22+site%3Abitcointalk.org&atb=v81-6__&ia=web

Cheers

Graham
gjhiggins
Legendary
*
Offline Offline

Activity: 2254
Merit: 1290



View Profile WWW
December 28, 2017, 05:09:17 PM
 #128

/mnt/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_thread-mgw49-mt-s-1_60 ...
make: *** [release/numus-qt.exe] Error 1

------------------------------------------------------------------------------------------
Could you tell me how to solve this problem?

Not specifically, I'm afraid --- because the problem is local to your setup. Fairly obviously, it's a problem with the path to the MXE boost libs. Try reinstalling/recompiling the MXE suite - I have no idea whether that will help but it's a starting poiint.

Cheers

Graham
gjhiggins
Legendary
*
Offline Offline

Activity: 2254
Merit: 1290



View Profile WWW
December 28, 2017, 05:27:53 PM
 #129


in your link they think that person dont generated libleveldb.a and libmemenv.a files, but I have the files...

/mnt/coinm# ls src/leveldb | grep lib
libleveldb.a
libmemenv.a

You might need to summon a little more persistence, then you might progress a little faster.

For people arriving later with the same problem ... from the list of search results I gave:

If you haven't got the RANLIB binding as described here:

https://bitcointalk.org/index.php?topic=912667.msg10037005#msg10037005

then try with that.

Otherwise:

https://bitcointalk.org/index.php?topic=912667.msg10037005#msg10037005

Other than that, you're on your own.

Cheers

Graham
gjhiggins
Legendary
*
Offline Offline

Activity: 2254
Merit: 1290



View Profile WWW
January 13, 2018, 08:50:35 PM
 #130

Have an idea how to fix this?
thank you!

./build/main.o:main.cpp:(.text+0x18cee): undefined reference to `leveldb::WriteBatch::WriteBatch()'

FFS, RTFM

https://duckduckgo.com/?q=undefined+reference+to+%60leveldb
animalroam
Legendary
*
Offline Offline

Activity: 1073
Merit: 1000


View Profile
January 14, 2018, 08:50:03 PM
 #131

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
gjhiggins
Legendary
*
Offline Offline

Activity: 2254
Merit: 1290



View Profile WWW
January 14, 2018, 09:08:14 PM
Last edit: January 16, 2018, 07:13:01 PM by gjhiggins
 #132

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
AmoreJaz
Legendary
*
Offline Offline

Activity: 3276
Merit: 1104


Leading Crypto Sports Betting & Casino Platform


View Profile
January 16, 2018, 07:32:53 AM
 #133

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

..Stake.com..   ▄████████████████████████████████████▄
   ██ ▄▄▄▄▄▄▄▄▄▄            ▄▄▄▄▄▄▄▄▄▄ ██  ▄████▄
   ██ ▀▀▀▀▀▀▀▀▀▀ ██████████ ▀▀▀▀▀▀▀▀▀▀ ██  ██████
   ██ ██████████ ██      ██ ██████████ ██   ▀██▀
   ██ ██      ██ ██████  ██ ██      ██ ██    ██
   ██ ██████  ██ █████  ███ ██████  ██ ████▄ ██
   ██ █████  ███ ████  ████ █████  ███ ████████
   ██ ████  ████ ██████████ ████  ████ ████▀
   ██ ██████████ ▄▄▄▄▄▄▄▄▄▄ ██████████ ██
   ██            ▀▀▀▀▀▀▀▀▀▀            ██ 
   ▀█████████▀ ▄████████████▄ ▀█████████▀
  ▄▄▄▄▄▄▄▄▄▄▄▄███  ██  ██  ███▄▄▄▄▄▄▄▄▄▄▄▄
 ██████████████████████████████████████████
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
█  ▄▀▄             █▀▀█▀▄▄
█  █▀█             █  ▐  ▐▌
█       ▄██▄       █  ▌  █
█     ▄██████▄     █  ▌ ▐▌
█    ██████████    █ ▐  █
█   ▐██████████▌   █ ▐ ▐▌
█    ▀▀██████▀▀    █ ▌ █
█     ▄▄▄██▄▄▄     █ ▌▐▌
█                  █▐ █
█                  █▐▐▌
█                  █▐█
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀█
▄▄█████████▄▄
▄██▀▀▀▀█████▀▀▀▀██▄
▄█▀       ▐█▌       ▀█▄
██         ▐█▌         ██
████▄     ▄█████▄     ▄████
████████▄███████████▄████████
███▀    █████████████    ▀███
██       ███████████       ██
▀█▄       █████████       ▄█▀
▀█▄    ▄██▀▀▀▀▀▀▀██▄  ▄▄▄█▀
▀███████         ███████▀
▀█████▄       ▄█████▀
▀▀▀███▄▄▄███▀▀▀
..PLAY NOW..
gjhiggins
Legendary
*
Offline Offline

Activity: 2254
Merit: 1290



View Profile WWW
January 16, 2018, 10:09:35 AM
 #134

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
GoldZeus
Newbie
*
Offline Offline

Activity: 75
Merit: 0


View Profile WWW
January 23, 2018, 12:26:30 AM
 #135

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.
FreakCoder
Full Member
***
Offline Offline

Activity: 750
Merit: 100


View Profile
January 23, 2018, 03:15:33 AM
 #136

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
GoldZeus
Newbie
*
Offline Offline

Activity: 75
Merit: 0


View Profile WWW
January 23, 2018, 03:58:51 AM
 #137

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
gjhiggins
Legendary
*
Offline Offline

Activity: 2254
Merit: 1290



View Profile WWW
January 23, 2018, 11:22:36 AM
 #138

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
GoldZeus
Newbie
*
Offline Offline

Activity: 75
Merit: 0


View Profile WWW
January 23, 2018, 01:14:15 PM
 #139

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
do0d
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
January 23, 2018, 02:25:17 PM
Last edit: January 23, 2018, 09:30:55 PM by do0d
 #140

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"
Pages: « 1 2 3 4 5 6 [7] 8 9 10 11 12 13 14 15 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!