Pages:
Author

Topic: Building headless Bitcoin and Bitcoin-qt on Windows - page 14. (Read 419389 times)

sr. member
Activity: 444
Merit: 250
I prefer evolution to revolution.
Edit: I successfully compiled bitcoin/master today, and here is what I learned:

http://sourceforge.net/projects/pkgconfiglite/files/0.28-1/pkg-config-lite-0.28-1.tar.gz/download
Code:
configure --prefix=/usr && make && make install
I was unable to make autoreconf include m4 files from folders other than /usr/share/aclocal, so I configured it to be installed to /usr.

In the MSYS shell, /usr and / are the same, and the folder called /usr (and /) in that shell is actually C:\MinGW\msys\1.0.

I did some simple testing:
Code:
Dave@WindowsCompiler /
$ ls
bin  etc  home  lib  m.ico  msys.bat  msys.ico  postinstall  sbin  share

Dave@WindowsCompiler /
$ cd /usr

Dave@WindowsCompiler /usr
$ ls
bin  etc  home  lib  m.ico  msys.bat  msys.ico  postinstall  sbin  share

Given that, I used a solution from StackExchange:
Code:
ACLOCAL_PATH=/usr/share/aclocal ./autogen.sh
in the bitcoin directory and that avoided the PKG_... errors during the execution of ./configure.
legendary
Activity: 1526
Merit: 1002
Chipcoin Developer
Cheers cinnamon_carter, your guide on cryptocointalk helped me a lot recently Cheesy

I will try that tonight when I get home from work. Non static wallets work, but give me an exit error (I thought that was a known issue for "older" coins?)

I forgot to say I already used a lot of different versions to compile though

mingw46/mingw49
QT 4.8.6/QT4.8.6 (static compile)/QT4.8.4/QT4.8.4 (static compile)
Boost 157/boost 155/boost 153 / I even tried with 154 which sucks lol
Installed all deps about 2x myself
Found and downloaded FooCoin-deps (outdated)
Found and downloaded CloneCoin-deps(These give me the error I guess, they are compiled with mingw49 I think)

Really annoying that you cant compile static if your boost for instance is compiled with some other version of mingw then the rest of the deps. sighs

I also tried crosscompiling with gitian, I found out that is definetly out of my leaque without a decent gitian compile for dummies guide.

Crosscompile on Ubuntu with /mxe/.../user/...../qmake created a static wallet for me, but I cant open it at all

As you can see I tried about 90% of the available options. and that explains how much time I lost already with recompiling all this stuff over and over again  Cheesy


I will try a fresh install of deps again and try it with mingw46 and QT 4.8.5.

I also tried to compile bitcoinQT which gives me the same error when static build, So I guess it is something with my deps folder/mingw/qt lol

To be continued  Grin



EDIT: Just have to say this is pretty hard for a non-coder  Smiley But I will not give up! I dont want to be dependent on releases anymore, I want to compile the wallets myself Wink Linux is no problem but windows is a real pain in the ass


I found something other in the litecoin.pro which confuses me.
https://github.com/litecoin-project/litecoin/blob/master-0.8/bitcoin-qt.pro#L107-L115

Which line do I comment out? I tried commenting out both, and one at a time. Not commenting out line 115 gives the compile error as expected. Commenting out both lines compiles. Commenting out line 115 but not 108 compiles too... (sorry if this may sound confusing) I doubt this is my problem though, since I had the same error with running bitcoin-qt
full member
Activity: 147
Merit: 100
I'm having an issue compiling an alt qt. From what I can tell, this is an issue with building a static/shared dependency miniupnpc. For the life of me I can't get past this error though no matter what I try.

Things I've tried;
  • Compile shared and static miniupnpc with  mingw32-make makefile.mingw upnpc-shared/static
  • Tried disabling miniupnpc by qmake use_upnp=-
  • Tried grabbing an old version of miniupnpc and using that
  • Successfully built Bitcoind and Bitcoin-QT to make sure all deps were good

Here is the error.
Code:
./build\net.o:net.cpp:(.text+0x8673): undefined reference to `_imp__upnpDiscover
'
./build\net.o:net.cpp:(.text+0x86aa): undefined reference to `_imp__UPNP_GetVali
dIGD'
./build\net.o:net.cpp:(.text+0x86eb): undefined reference to `_imp__UPNP_GetExte
rnalIPAddress'
./build\net.o:net.cpp:(.text+0x8767): undefined reference to `_imp__freeUPNPDevl
ist'
./build\net.o:net.cpp:(.text+0x877a): undefined reference to `_imp__FreeUPNPUrls
'
./build\net.o:net.cpp:(.text+0x8867): undefined reference to `_imp__strupnperror
'
./build\net.o:net.cpp:(.text+0x88f3): undefined reference to `_imp__UPNP_AddPort
Mapping'
./build\net.o:net.cpp:(.text+0x897b): undefined reference to `_imp__UPNP_DeleteP
ortMapping'
./build\net.o:net.cpp:(.text+0x899a): undefined reference to `_imp__freeUPNPDevl
ist'
./build\net.o:net.cpp:(.text+0x89a9): undefined reference to `_imp__FreeUPNPUrls
'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bi
n/ld.exe: ./build\net.o: bad reloc address 0x20 in section `.data'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bi
n/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
Makefile.Release:311: recipe for target 'release\coin-qt.exe' failed
mingw32-make: *** [release\coin-qt.exe] Error 1

Any suggestions or guidance would be much appreciated.

Well my apologies. 5 minutes after posting this I figured it out. Based on this, I figured out that I needed to add this line to my Makefile.Release generated by qmake.

Code:
DEFINES       = -DMINIUPNP_STATICLIB
legendary
Activity: 1148
Merit: 1018
It's about time -- All merrit accepted !!!
If i may, let me make a few suggestions to build a windows qt for litecoin and litecoind

I find it much easier using mingw46, boost 1_55_0 , qt open source everywhere 4.8.5  and the recent qr builds along with the latest open ssl 1.0.2a

In fact just now i figured i would try it just to make sure it works and it compiled in about 7 minutes on the first lick.

I added to line 11 in the .pro file of litecoin since it is empty the line below.

CONFIG += static

and on line 51 here a -static at the end of the line

https://github.com/litecoin-project/litecoin/blob/master-0.8/bitcoin-qt.pro#L51

should look like this (line 88 in my coin Photon)

https://github.com/photonproject/photon/blob/master/Photon-qt.pro#L88

This is a little off topic, my apology to Nitrogenetics and all who are looking to build bitcoin but I realize many of the questions asked here in particular about older build tools are being asked to compile alt coins not necessarly the topic of this awesome thread--- the latest bitcoin build !

If you need some help or links to additional items you cannot find here on the forum on on stack exchange, shoot me a pm and I can direct you to some resources that outline Nitrogenetics 'older' now 'out of date' tutorials.....  cheers...

Note this built a static litecoin wallet for me, if you want a non static, even easier preparing your build system and you work from a qt command prompt and do not need to set path vs. for static build use windows prompt and set the path for the qt you are building with. Build the command line daemon from a msys shell with makefile.mingw....(adjusting paths before building as necessary) .  Also remember to compile leveldb before you try to build the wallet as instructed on the first page of this post....

Hope this helps you and others .... let's try to stay on topic here , I don't want to upset the  man who has through his various chages to this post over time taught me a lot !!  NITROGENETICS IS THE MAN


Hi

I have a problem compiling litecoin on windows 7 64bit

I downloaded the latest litecoin source
Changed the .pro as it should be for windows Wink

I first compiled non-static, which causes an error at shut down of the QT (Is there a fix for this btw?)

After a long and stressfull week (actually it is more then 1 week Lips sealed) fighting with installation files I finally compiled a static wallet.

I use QT 4.8.6 opensource everywhere version
mingw49
boost 1_55_0
and the rest of course

The compile itself is not giving me any errors what so ever. I see a nicely build ~21mb litecoin-qt.exe in my release folder. BUT! when I want to open the qt, it doenst even load the splash image of litecoin. Instead it instantly gives me this warning

Dutch windows Wink


I dont see a litecoin folder in roaming either  Huh So it appears it is not even trying to do something  Cheesy

Any advice ?

Cheers,

Banzai
full member
Activity: 147
Merit: 100
I'm having an issue compiling an alt qt. From what I can tell, this is an issue with building a static/shared dependency miniupnpc. For the life of me I can't get past this error though no matter what I try.

Things I've tried;
  • Compile shared and static miniupnpc with  mingw32-make makefile.mingw upnpc-shared/static
  • Tried disabling miniupnpc by qmake use_upnp=-
  • Tried grabbing an old version of miniupnpc and using that
  • Successfully built Bitcoind and Bitcoin-QT to make sure all deps were good

Here is the error.
Code:
./build\net.o:net.cpp:(.text+0x8673): undefined reference to `_imp__upnpDiscover
'
./build\net.o:net.cpp:(.text+0x86aa): undefined reference to `_imp__UPNP_GetVali
dIGD'
./build\net.o:net.cpp:(.text+0x86eb): undefined reference to `_imp__UPNP_GetExte
rnalIPAddress'
./build\net.o:net.cpp:(.text+0x8767): undefined reference to `_imp__freeUPNPDevl
ist'
./build\net.o:net.cpp:(.text+0x877a): undefined reference to `_imp__FreeUPNPUrls
'
./build\net.o:net.cpp:(.text+0x8867): undefined reference to `_imp__strupnperror
'
./build\net.o:net.cpp:(.text+0x88f3): undefined reference to `_imp__UPNP_AddPort
Mapping'
./build\net.o:net.cpp:(.text+0x897b): undefined reference to `_imp__UPNP_DeleteP
ortMapping'
./build\net.o:net.cpp:(.text+0x899a): undefined reference to `_imp__freeUPNPDevl
ist'
./build\net.o:net.cpp:(.text+0x89a9): undefined reference to `_imp__FreeUPNPUrls
'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bi
n/ld.exe: ./build\net.o: bad reloc address 0x20 in section `.data'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bi
n/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
Makefile.Release:311: recipe for target 'release\coin-qt.exe' failed
mingw32-make: *** [release\coin-qt.exe] Error 1

Any suggestions or guidance would be much appreciated.
legendary
Activity: 1526
Merit: 1002
Chipcoin Developer
Hi

I have a problem compiling litecoin on windows 7 64bit

I downloaded the latest litecoin source
Changed the .pro as it should be for windows Wink

I first compiled non-static, which causes an error at shut down of the QT (Is there a fix for this btw?)

After a long and stressfull week (actually it is more then 1 week Lips sealed) fighting with installation files I finally compiled a static wallet.

I use QT 4.8.6 opensource everywhere version
mingw49
boost 1_55_0
and the rest of course

The compile itself is not giving me any errors what so ever. I see a nicely build ~21mb litecoin-qt.exe in my release folder. BUT! when I want to open the qt, it doenst even load the splash image of litecoin. Instead it instantly gives me this warning

Dutch windows Wink


I dont see a litecoin folder in roaming either  Huh So it appears it is not even trying to do something  Cheesy

Any advice ?

Cheers,

Banzai
full member
Activity: 131
Merit: 108
i had pkg installed earlier as i did it with gpuminer. (copy paste bin/share folders)
now installed pkg again as you told above and now there is one error line less..
 but still this:

./configure: line 21247: syntax error near unexpected token `QTPLATFORM,'
./configure: line 21247: `        PKG_CHECK_MODULES(QTPLATFORM, Qt5PlatformSuppo
rt, QT_LIBS="$QTPLATFORM_LIBS $QT_LIBS")'

edit, solved
to mingw32 folder:
************************
** Install pkg-config **
************************
1. Visit http://www.gtk.org/download/win32.php
2. Search for a version of pkg-config that includes both the Tool and Dev downloads
3. Click and download both the Tool link and the Dev link
4. Open the pkg-config zip file and extract the bin folder to C:\mingw32
5. Open the pkg-config-dev zip file and extract the share folder to C:\mingw32
http://sourceforge.net/projects/pkgconfiglite/files/0.28-1/pkg-config-lite-0.28-1.tar.gz/download
Code:
configure --prefix=/usr && make && make install
I was unable to make autoreconf include m4 files from folders other than /usr/share/aclocal, so I configured it to be installed to /usr.

Either installing pkg-config-lite with
Code:
configure --prefix=/usr && make && make install
or copying pkg.m4 from source package to aclocal folder will work. Just make sure it gets installed to C:\MinGW\msys\1.0\share\aclocal\pkg.m4

As an additional option you can switch to msys2.

I'll try to do my best to get the op updated asap.
sr. member
Activity: 322
Merit: 250
Writing to dispel society's myths.
What's the minimum recommanded system for Bitcoin-qt on windows , I have an old computer and thinking to
made a cloud wallet from it Smiley  .

Respects ,
Xin Ming .
legendary
Activity: 910
Merit: 1000
Code:
checking for QtDBus... no
./configure: line 21329: syntax error near unexpected token `QTPLATFORM,'
./configure: line 21329: `        PKG_CHECK_MODULES(QTPLATFORM, Qt5PlatformSuppo
rt, QT_LIBS="$QTPLATFORM_LIBS $QT_LIBS")'

Pierre-Louis@Bellatrix /f/dev/Worldcoin_core/1rc3/bitcoin
$ pkg-config --version
0.28

I tried copying the files from pkg-config dev/tool, compiled/installed pkg-config-lite, reran autogen.sh, started another msys, rebooted even, but still configure gives me this error (0.10.1rc3).  Is it possible there's an environment variable missing (like qtplatform_libs or something)?

Running pkg-config gives me the right version number so I'm assuming it's installed correctly.  Any suggestions? Thanks. Smiley


Copying pkg.m4 to C:\MinGW\msys\1.0\share\aclocal (or whatever your msys install folder is) should fix it.

Also make sure the mingw, and toolchain bin paths are BOTH in your PATH variable(for me, C:\MinGW\bin and C:\MinGW\mingw32\bin), although im sure if you got this far already they likely are.

This is not necessary. In a properly configured environment you will have no C:\MinGW\mingw32\bin folder and C:\MinGW\bin will just contain mingw-get executable.

"It seems it would probably be a better option to install pkg-config:"
http://sourceforge.net/projects/pkgconfiglite/files/0.28-1/pkg-config-lite-0.28-1.tar.gz/download
configure --prefix=/mingw32 && make && make install

------
 or just..my easy solution, copy paste


i had pkg installed earlier as i did it with gpuminer. (copy paste bin/share folders)
now installed pkg again as you told above and now there is one error line less..
 but still this:

./configure: line 21247: syntax error near unexpected token `QTPLATFORM,'
./configure: line 21247: `        PKG_CHECK_MODULES(QTPLATFORM, Qt5PlatformSuppo
rt, QT_LIBS="$QTPLATFORM_LIBS $QT_LIBS")'

edit, solved
to mingw32 folder:
************************
** Install pkg-config **
************************
1. Visit http://www.gtk.org/download/win32.php
2. Search for a version of pkg-config that includes both the Tool and Dev downloads
3. Click and download both the Tool link and the Dev link
4. Open the pkg-config zip file and extract the bin folder to C:\mingw32
5. Open the pkg-config-dev zip file and extract the share folder to C:\mingw32
full member
Activity: 131
Merit: 108
Code:
checking for QtDBus... no
./configure: line 21329: syntax error near unexpected token `QTPLATFORM,'
./configure: line 21329: `        PKG_CHECK_MODULES(QTPLATFORM, Qt5PlatformSuppo
rt, QT_LIBS="$QTPLATFORM_LIBS $QT_LIBS")'

Pierre-Louis@Bellatrix /f/dev/Worldcoin_core/1rc3/bitcoin
$ pkg-config --version
0.28

I tried copying the files from pkg-config dev/tool, compiled/installed pkg-config-lite, reran autogen.sh, started another msys, rebooted even, but still configure gives me this error (0.10.1rc3).  Is it possible there's an environment variable missing (like qtplatform_libs or something)?

Running pkg-config gives me the right version number so I'm assuming it's installed correctly.  Any suggestions? Thanks. Smiley


Copying pkg.m4 to C:\MinGW\msys\1.0\share\aclocal (or whatever your msys install folder is) should fix it.

Also make sure the mingw, and toolchain bin paths are BOTH in your PATH variable(for me, C:\MinGW\bin and C:\MinGW\mingw32\bin), although im sure if you got this far already they likely are.

This is not necessary. In a properly configured environment you will have no C:\MinGW\mingw32\bin folder and C:\MinGW\bin will just contain mingw-get executable.
member
Activity: 79
Merit: 10
Code:
checking for QtDBus... no
./configure: line 21329: syntax error near unexpected token `QTPLATFORM,'
./configure: line 21329: `        PKG_CHECK_MODULES(QTPLATFORM, Qt5PlatformSuppo
rt, QT_LIBS="$QTPLATFORM_LIBS $QT_LIBS")'

Pierre-Louis@Bellatrix /f/dev/Worldcoin_core/1rc3/bitcoin
$ pkg-config --version
0.28

I tried copying the files from pkg-config dev/tool, compiled/installed pkg-config-lite, reran autogen.sh, started another msys, rebooted even, but still configure gives me this error (0.10.1rc3).  Is it possible there's an environment variable missing (like qtplatform_libs or something)?

Running pkg-config gives me the right version number so I'm assuming it's installed correctly.  Any suggestions? Thanks. Smiley


It is hard to think of what might be the case. I can tell you that I had pkg-config installed and giving me the right version as well and it was still not working. I then removed it and installed JUST pkg-config-lite in msys, reran autogen.sh, closed all open cmd/msys windows, and then it worked. Also make sure the mingw, and toolchain bin paths are BOTH in your PATH variable(for me, C:\MinGW\bin and C:\MinGW\mingw32\bin), although im sure if you got this far already they likely are.

I removed from mingw32, copied manually lite to msys, and configure worked (after a couple of tries, threading problem maybe). Thanks for the hint, it's compiling! Smiley
sr. member
Activity: 293
Merit: 251
Director - www.cubeform.io
Code:
checking for QtDBus... no
./configure: line 21329: syntax error near unexpected token `QTPLATFORM,'
./configure: line 21329: `        PKG_CHECK_MODULES(QTPLATFORM, Qt5PlatformSuppo
rt, QT_LIBS="$QTPLATFORM_LIBS $QT_LIBS")'

Pierre-Louis@Bellatrix /f/dev/Worldcoin_core/1rc3/bitcoin
$ pkg-config --version
0.28

I tried copying the files from pkg-config dev/tool, compiled/installed pkg-config-lite, reran autogen.sh, started another msys, rebooted even, but still configure gives me this error (0.10.1rc3).  Is it possible there's an environment variable missing (like qtplatform_libs or something)?

Running pkg-config gives me the right version number so I'm assuming it's installed correctly.  Any suggestions? Thanks. Smiley


It is hard to think of what might be the case. I can tell you that I had pkg-config installed and giving me the right version as well and it was still not working. I then removed it and installed JUST pkg-config-lite in msys, reran autogen.sh, closed all open cmd/msys windows, and then it worked. Also make sure the mingw, and toolchain bin paths are BOTH in your PATH variable(for me, C:\MinGW\bin and C:\MinGW\mingw32\bin), although im sure if you got this far already they likely are.
member
Activity: 79
Merit: 10
Code:
checking for QtDBus... no
./configure: line 21329: syntax error near unexpected token `QTPLATFORM,'
./configure: line 21329: `        PKG_CHECK_MODULES(QTPLATFORM, Qt5PlatformSuppo
rt, QT_LIBS="$QTPLATFORM_LIBS $QT_LIBS")'

Pierre-Louis@Bellatrix /f/dev/Worldcoin_core/1rc3/bitcoin
$ pkg-config --version
0.28

I tried copying the files from pkg-config dev/tool, compiled/installed pkg-config-lite, reran autogen.sh, started another msys, rebooted even, but still configure gives me this error (0.10.1rc3).  Is it possible there's an environment variable missing (like qtplatform_libs or something)?

Running pkg-config gives me the right version number so I'm assuming it's installed correctly.  Any suggestions? Thanks. Smiley
newbie
Activity: 14
Merit: 0
unfortunately i have never used the Bitcoin Qt does anyone know if it really works
sr. member
Activity: 333
Merit: 250

Are you building qt 5.3.0 opensource like this?? , you need both qtbase and qttools



set INCLUDE=C:\deps\libpng-1.6.16;C:\deps\openssl-1.0.2a\include
set LIB=C:\deps\libpng-1.6.16\.libs;C:\deps\openssl-1.0.2a

cd C:\Qt\5.3.0
configure.bat -release -opensource -confirm-license -static -make libs -no-sql-sqlite -no-opengl -system-zlib -qt-pcre -no-icu -no-gif -system-libpng -no-libjpeg -no-freetype -no-angle -no-vcproj -openssl-linked -no-dbus -no-audio-backend -no-wmf-backend -no-qml-debug

mingw32-make

set PATH=%PATH%;C:\Qt\5.3.0\bin

cd C:\Qt\qttools-opensource-src-5.3.0
qmake qttools.pro
mingw32-make


.............. if you are building bitcoin I never tried but would not recommend qt 5.3.0 , unless back on bitcoin client 9.1 or 9.2


when to compile qttools-opensource:
Code:
c:\qt\qttools-opensource-src-5.3.0>mingw32-make
cd src\ && ( if not exist Makefile c:\Qt\5.3.0\bin\qmake.exe C:\qt\qttools-opens
ource-src-5.3.0\src\src.pro -o Makefile ) && mingw32-make -f Makefile
mingw32-make[1]: Entering directory 'c:/qt/qttools-opensource-src-5.3.0/src'
cd linguist\ && ( if not exist Makefile c:\Qt\5.3.0\bin\qmake.exe C:\qt\qttools-
opensource-src-5.3.0\src\linguist\linguist.pro -o Makefile ) && mingw32-make -f
Makefile
mingw32-make[2]: Entering directory 'c:/qt/qttools-opensource-src-5.3.0/src/ling
uist'
cd lrelease\ && ( if not exist Makefile c:\Qt\5.3.0\bin\qmake.exe C:\qt\qttools-
opensource-src-5.3.0\src\linguist\lrelease\lrelease.pro -o Makefile ) && mingw32
-make -f Makefile
Project ERROR: Unknown module(s) in QT: xml
Makefile:40: recipe for target 'sub-lrelease-make_first' failed
mingw32-make[2]: *** [sub-lrelease-make_first] Error 3
mingw32-make[2]: Leaving directory 'c:/qt/qttools-opensource-src-5.3.0/src/lingu
ist'
Makefile:41: recipe for target 'sub-linguist-make_first' failed
mingw32-make[1]: *** [sub-linguist-make_first] Error 2
mingw32-make[1]: Leaving directory 'c:/qt/qttools-opensource-src-5.3.0/src'
Makefile:40: recipe for target 'sub-src-make_first' failed
mingw32-make: *** [sub-src-make_first] Error 2
how to fix it?
yes,building bitcoin.Perl64 already installed but compiling find some errors .
legendary
Activity: 1330
Merit: 1000
Blockchain Developer

.............. if you are building bitcoin I never tried but would not recommend qt 5.3.0 , unless back on bitcoin client 9.1 or 9.2

Why not?
legendary
Activity: 1148
Merit: 1018
It's about time -- All merrit accepted !!!

Are you building qt 5.3.0 opensource like this?? , you need both qtbase and qttools



set INCLUDE=C:\deps\libpng-1.6.16;C:\deps\openssl-1.0.2a\include
set LIB=C:\deps\libpng-1.6.16\.libs;C:\deps\openssl-1.0.2a

cd C:\Qt\5.3.0
configure.bat -release -opensource -confirm-license -static -make libs -no-sql-sqlite -no-opengl -system-zlib -qt-pcre -no-icu -no-gif -system-libpng -no-libjpeg -no-freetype -no-angle -no-vcproj -openssl-linked -no-dbus -no-audio-backend -no-wmf-backend -no-qml-debug

mingw32-make

set PATH=%PATH%;C:\Qt\5.3.0\bin

cd C:\Qt\qttools-opensource-src-5.3.0
qmake qttools.pro
mingw32-make


.............. if you are building bitcoin I never tried but would not recommend qt 5.3.0 , unless back on bitcoin client 9.1 or 9.2


when to compile qttools-opensource:
Code:
c:\qt\qttools-opensource-src-5.3.0>mingw32-make
cd src\ && ( if not exist Makefile c:\Qt\5.3.0\bin\qmake.exe C:\qt\qttools-opens
ource-src-5.3.0\src\src.pro -o Makefile ) && mingw32-make -f Makefile
mingw32-make[1]: Entering directory 'c:/qt/qttools-opensource-src-5.3.0/src'
cd linguist\ && ( if not exist Makefile c:\Qt\5.3.0\bin\qmake.exe C:\qt\qttools-
opensource-src-5.3.0\src\linguist\linguist.pro -o Makefile ) && mingw32-make -f
Makefile
mingw32-make[2]: Entering directory 'c:/qt/qttools-opensource-src-5.3.0/src/ling
uist'
cd lrelease\ && ( if not exist Makefile c:\Qt\5.3.0\bin\qmake.exe C:\qt\qttools-
opensource-src-5.3.0\src\linguist\lrelease\lrelease.pro -o Makefile ) && mingw32
-make -f Makefile
Project ERROR: Unknown module(s) in QT: xml
Makefile:40: recipe for target 'sub-lrelease-make_first' failed
mingw32-make[2]: *** [sub-lrelease-make_first] Error 3
mingw32-make[2]: Leaving directory 'c:/qt/qttools-opensource-src-5.3.0/src/lingu
ist'
Makefile:41: recipe for target 'sub-linguist-make_first' failed
mingw32-make[1]: *** [sub-linguist-make_first] Error 2
mingw32-make[1]: Leaving directory 'c:/qt/qttools-opensource-src-5.3.0/src'
Makefile:40: recipe for target 'sub-src-make_first' failed
mingw32-make: *** [sub-src-make_first] Error 2
how to fix it?
sr. member
Activity: 333
Merit: 250
when to compile qttools-opensource:
Code:
c:\qt\qttools-opensource-src-5.3.0>mingw32-make
cd src\ && ( if not exist Makefile c:\Qt\5.3.0\bin\qmake.exe C:\qt\qttools-opens
ource-src-5.3.0\src\src.pro -o Makefile ) && mingw32-make -f Makefile
mingw32-make[1]: Entering directory 'c:/qt/qttools-opensource-src-5.3.0/src'
cd linguist\ && ( if not exist Makefile c:\Qt\5.3.0\bin\qmake.exe C:\qt\qttools-
opensource-src-5.3.0\src\linguist\linguist.pro -o Makefile ) && mingw32-make -f
Makefile
mingw32-make[2]: Entering directory 'c:/qt/qttools-opensource-src-5.3.0/src/ling
uist'
cd lrelease\ && ( if not exist Makefile c:\Qt\5.3.0\bin\qmake.exe C:\qt\qttools-
opensource-src-5.3.0\src\linguist\lrelease\lrelease.pro -o Makefile ) && mingw32
-make -f Makefile
Project ERROR: Unknown module(s) in QT: xml
Makefile:40: recipe for target 'sub-lrelease-make_first' failed
mingw32-make[2]: *** [sub-lrelease-make_first] Error 3
mingw32-make[2]: Leaving directory 'c:/qt/qttools-opensource-src-5.3.0/src/lingu
ist'
Makefile:41: recipe for target 'sub-linguist-make_first' failed
mingw32-make[1]: *** [sub-linguist-make_first] Error 2
mingw32-make[1]: Leaving directory 'c:/qt/qttools-opensource-src-5.3.0/src'
Makefile:40: recipe for target 'sub-src-make_first' failed
mingw32-make: *** [sub-src-make_first] Error 2
how to fix it?
sr. member
Activity: 444
Merit: 250
I prefer evolution to revolution.

like i said

I've Try'd
Building libleveldb.a libmemenv.a from scratch over several times
try'd using libleveldb.a libmemenv.a from diff coin sources
try'd windows cmd & qt cmd
try'd multiple versions of mingw, msys, Qt
try'd editing bitcoin-qt.pro and makefile.mingw
added to PATH
added to folder's ie qt, mingw etc

Some of the items in the guide (you mean OP, right?) indicate to use Windows cmd, and some to use MinGW shell, but it doesn't mention using qt cmd.  I think qt cmd might be a Windows cmd with some extra environment variables, but the MinGW shell has a lot more than that.

... the lib problem which i'm now stuck with again. an the other error was for mingw32 make error for releasing bitcoin-qt.exe
I only saw your output of the mingw-make error.  The way you got around the lib problem might be related to the mingw-make problem.  Since I complied bitcoind and bitcoinQT together, I didn't have to rebuild leveldb, so my experience might be useless to you.  I am curious how mingw-make chooses what interpreter to use when it issues that command line with the CC in it.

Nitro has been updating OP, so there might be some bad advice elsewhere in the thread that tripped you up if you read through it all.  When I realized that, I skipped everything up to the last post he made in which he indicated that he was updating OP.
hero member
Activity: 1302
Merit: 504
If you keep getting this exact error, then this exact error is what you should address:
Quote
C:\bitcoin>mingw32-make -f Makefile.Release
cd C:/bitcoin/src/leveldb && CC=gcc CXX=g++ TARGET_OS=OS_WINDOWS_CROSSCOMPILE mi
ngw32-make OPT="-pipe -fno-keep-inline-dllexport -D_FORTIFY_SOURCE=2 -O2" liblev
eldb.a libmemenv.a && ranlib C:/bitcoin/src/leveldb/libleveldb.a && ranlib C:/bi
tcoin/src/leveldb/libmemenv.a
'CC' is not recognized as an internal or external command,
operable program or batch file.
Makefile.Release:301: recipe for target 'c:/bitcoin/src/leveldb/libleveldb.a' failed
mingw32-make: *** [c:/bitcoin/src/leveldb/libleveldb.a] Error 1

I think you're skipping some important (analysis) steps in solving it.  As I read this output, it's telling you that "CC" is not a recognized command.  As far as I know, the command line as entered will generate this error as long as CC isn't a recognized command because "cd [blah blah blah] && [X]" means to change the active directory and then (assuming the directory existed and was accessible and therefore the cd command succeeded) execute X, and in Windows, "CC" really isn't a recognized command.

The command line comes from the mingw32-make executable, which appears to run under the assumption that it is in a shell that allows command-line variable assignments without using "SET" (as in "SET CC=gcc"), and the shell you're running doesn't allow that.  If mingw32-make created a command line that used SET (as in "cd [blah blah blah] && SET CC=gcc...", then maybe it would get past that part, but if I'm right about what mingw32-make needs in the shell it invokes, you'll get other errors anyway.

My best guess is that mingw32-make will invoke a shell that is supposed to be a minGW shell, and something about your setup causes it to invoke a non-MinGW shell.

I am extremely rusty, so there's a lot of guesswork in what I wrote.  If anyone reads that and sees an error in my guesswork, I'd very much appreciate if you point it out to me.

The main point I wanted to stress is that every error provides specific details that we ought not just ignore.  In this case, the fact is that it interpreted your use of CC as "an internal or external command, operable program or batch file," and you definitely are not using it that way.  When you track down the exact problem, you learn a lot along the way and expand your ability to help others.


like i said

I've Try'd
Building libleveldb.a libmemenv.a from scratch over several times
try'd using libleveldb.a libmemenv.a from diff coin sources
try'd windows cmd & qt cmd
try'd multiple versions of mingw, msys, Qt
try'd editing bitcoin-qt.pro and makefile.mingw
added to PATH
added to folder's ie qt, mingw etc


I've followed the guide exactly how it is.

gonna do the setup i had earlier if i can remember what i installed as that got me past the lib problem which i'm now stuck with again. an the other error was for mingw32 make error for releasing bitcoin-qt.exe


THANKYOU FOR THE INPUT THO.

36hrs on it straight why i have not succeeded i don't know
Pages:
Jump to: