Title: compile question under mingw Post by: supercanada1 on June 15, 2015, 09:21:34 PM 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? Title: Re: compile question under mingw Post by: supercanada1 on June 15, 2015, 09:36:51 PM 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 Title: Re: compile question under mingw Post by: supercanada1 on June 15, 2015, 10:30:21 PM 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 Title: Re: compile question under mingw Post by: BTCDDev on June 16, 2015, 03:52:22 AM 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 |