Bitcoin Forum
November 14, 2024, 09:44:15 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: compile question under mingw  (Read 401 times)
supercanada1 (OP)
Sr. Member
****
Offline Offline

Activity: 798
Merit: 253


View Profile
June 15, 2015, 09:21:34 PM
 #1

I try to compile a coin wallet under windows,
https://github.com/E-gold-team/e-goldcoin

I tried to compile it by several ways, it always shows some error, I did not change anything, I use msys shell, by command:

$qmake litecoinx-qt.pro RELEASE=1 USE_UPNP=1 -config release QMAKE_LFLAGS+=
"-static-libgcc -static-libstdc++" BOOST_INCLUDE_PATH=C:/MinGW/msys/1.0/local/include
BOOST_LIB_PATH=C:/MinGW/msys/1.0/local/lib BOOST_LIB_SUFFIX=-mgw46-mt-s-1_54

$make -f Makefile.Release

is there any compiling problem?
supercanada1 (OP)
Sr. Member
****
Offline Offline

Activity: 798
Merit: 253


View Profile
June 15, 2015, 09:36:51 PM
 #2

it shows:
c:/mingw/bin/../lib/gcc/ming32/4.6.2/../../../../mingw32/bin/ld.exe: cannot find -lboost_thread_win32-mgw46-mt-s-1_54 collect2: ld 1
supercanada1 (OP)
Sr. Member
****
Offline Offline

Activity: 798
Merit: 253


View Profile
June 15, 2015, 10:30:21 PM
 #3

for the commands, whether I need to run one of them or I need to run all of them?
for example, only run Berkeley DB commands or only run openssl ?


OpenSSL
-------
MSYS shell:
un-tar sources with MSYS 'tar xfz' to avoid issue with symlinks (OpenSSL ticket 2377)
change 'MAKE' env. variable from 'C:\MinGW32\bin\mingw32-make.exe' to '/c/MinGW32/bin/mingw32-make.exe'

cd /c/openssl-1.0.1b-mgw
./config
make

Berkeley DB
-----------
MSYS shell:
cd /c/db-4.8.30.NC-mgw/build_unix
sh ../dist/configure --enable-mingw --enable-cxx
make

Boost
-----
DOS prompt:
downloaded boost jam 3.1.18
cd \boost-1.47.0-mgw
bjam toolset=gcc --build-type=complete stage

MiniUPnPc
---------
UPnP support is optional, make with USE_UPNP= to disable it.

MSYS shell:
cd /c/miniupnpc-1.6-mgw
make -f Makefile.mingw
mkdir miniupnpc
cp *.h miniupnpc/

BlackCoin
-------
DOS prompt:
cd \e-goldcoin\src
mingw32-make -f makefile.mingw
strip egdd.exe
BTCDDev
Sr. Member
****
Offline Offline

Activity: 255
Merit: 251


View Profile
June 16, 2015, 03:52:22 AM
 #4

Boost
-----
DOS prompt:
downloaded boost jam 3.1.18
cd \boost-1.47.0-mgw
bjam toolset=gcc --build-type=complete stage

it shows:
c:/mingw/bin/../lib/gcc/ming32/4.6.2/../../../../mingw32/bin/ld.exe: cannot find -lboost_thread_win32-mgw46-mt-s-1_54 collect2: ld 1

Those are two different versions of boost. Make sure you put the correct version and prefix (i.e. _win32-mgwxx-mt-whatever) in the makefile.

Matthew

BitcoinDark: RPHWc5CwP9YMMbvXQ4oXz5rQHb3pKkhaxc
Top Donations: juicybirds 420BTCD ensorcell 84BTCD Stuntruffle: 40BTCD
Top April Donations: juicybirds 420BTCD; ensorcell: 42BTCD
Pages: [1]
  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!