Author

Topic: compile question under mingw (Read 403 times)

sr. member
Activity: 255
Merit: 251
June 15, 2015, 10:52:22 PM
#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
sr. member
Activity: 798
Merit: 253
June 15, 2015, 05: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
sr. member
Activity: 798
Merit: 253
June 15, 2015, 04: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
sr. member
Activity: 798
Merit: 253
June 15, 2015, 04: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?
Jump to: