Pages:
Author

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

member
Activity: 66
Merit: 10
Thanks for this great guide and thread!

sr. member
Activity: 293
Merit: 251
Director - www.cubeform.io
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

pkg-config-lite worked fine for me, did you re-run autogen.sh after installing?


Got this error with the newest build
The share and bin folders from pkg-config and pkg-config-dev to either the mingw32 or mingw base directories did not work, but installing pkg-config-lite did for me.
hero member
Activity: 774
Merit: 500
Lazy Lurker Reads Alot
Thank you sir very nice and complete guide, very helpfull especially for such a old geezer like me who forget todo some things like install the needed packages and constant grumbles when he forgot anything again Cheesy
legendary
Activity: 910
Merit: 1000
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

pkg-config-lite worked fine for me, did you re-run autogen.sh after installing?

no i did not, but copy paste directly to mingw32 folder solved my problem
it works so i let it be now
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

pkg-config-lite worked fine for me, did you re-run autogen.sh after installing?



@nitro. Need an help.
Have compiled all as stated here for qtwebkits(icu-opensll and qt)

-Added to path:
C:\Python34;C:\Ruby21\bin;C:\Perl\site\bin;C:\Perl\bin;

-From CMD:
set PATH=%PATH%;C:\Qt\5.3.2\qtbase\bin\qmake   with "normal" 5.3.2 i write only set PATH=%PATH%;C:\Qt\5.3.2\bin, now i have to add \qtbase\bin\qmake to find .qmake.

-When i launch qmake,it will stop saying:
file ICUIN54.dll was not found on computer. (so,there something missing with icu i suppose)

That's sound strange cause i have already compiled via shell icu. Is something i miss? need to add to path something regarding icu files?

Thanks in advance.

Make sure icu is in PATH before building qt:
Code:
set PATH=%PATH%;C:\deps\icu\dist\lib
hero member
Activity: 644
Merit: 500
ever used webkit// webkitwidgets? Trying to include a secure browser in the QT but it keeps saying the file doesn't exist

Webkit is only supported on qt shared builds afaik. To compile shared qt libraries including webkit you can do as follows:
Install perl, pyhton and ruby (make sure they are in path)
http://www.activestate.com/activeperl/downloads
https://www.python.org/downloads
http://rubyinstaller.org/downloads

(msys) compile icu: http://download.icu-project.org/files/icu4c/54.1/icu4c-54_1-src.zip
Code:
cd /c/deps/icu/source/
./runConfigureICU MinGW --prefix=$PWD/../dist --enable-shared --disable-static
make && make install

(msys) compile both static and shared openssl: http://www.openssl.org/source/openssl-1.0.1j.tar.gz
Code:
cd /c/deps/
tar xvfz openssl-1.0.1j.tar.gz
cd openssl-1.0.1j
Configure shared no-dso mingw
make

(cmd) compile qt: http://download.qt-project.org/official_releases/qt/5.3/5.3.2/single/qt-everywhere-opensource-src-5.3.2.7z
Code:
set PATH=%PATH%;C:\deps\icu\dist\lib
set INCLUDE=C:\deps\openssl-1.0.1j\include;C:\deps\icu\dist\include
set LIB=C:\deps\openssl-1.0.1j;C:\deps\icu\dist\lib

configure.bat -release -opensource -confirm-license -shared -make libs -make tools -no-opengl -system-zlib -qt-pcre -qt-libpng -icu -no-freetype -no-angle -no-vcproj -openssl -no-dbus

mingw32-make

As an alternative I think you can install the prebuilt qt package (http://download.qt-project.org/official_releases/qt/5.3/5.3.2/qt-opensource-windows-x86-mingw482_opengl-5.3.2.exe) and compile everything else with the included mingw-builds toolchain.



strip src/bitcoin-cli.exe
strip src/bitcoind.exe
strip src/qt/bitcoin-qt.exe


i can get all except bitcoin-qt.exe (the error is something like no file found)

Why please?

You should have a look at configure output to see why bitcoin-qt is not being built

@nitro. Need an help.
Have compiled all as stated here for qtwebkits(icu-opensll and qt)

-Added to path:
C:\Python34;C:\Ruby21\bin;C:\Perl\site\bin;C:\Perl\bin;

-From CMD:
set PATH=%PATH%;C:\Qt\5.3.2\qtbase\bin\qmake   with "normal" 5.3.2 i write only set PATH=%PATH%;C:\Qt\5.3.2\bin, now i have to add \qtbase\bin\qmake to find .qmake.

-When i launch qmake,it will stop saying:
file ICUIN54.dll was not found on computer. (so,there something missing with icu i suppose)

That's sound strange cause i have already compiled via shell icu. Is something i miss? need to add to path something regarding icu files?

Thanks in advance.






legendary
Activity: 910
Merit: 1000
getting some errors with 10.99 master(windows), last time it was fine to compile(2 weeks ago..)

./configure: line 16350: PKG_PROG_PKG_CONFIG: command not found

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

solution, roll back:  
Remove custom pkg.m4 script.
master    (#5688)


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
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.

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

newbie
Activity: 2
Merit: 0
Пpивeт вceм!
Этo лyчший пpoeкт 2015-гo гoдa!!!!!!
Hapoд зapaбaтывaйтe кaк c тaк и бeз влoжeний!!!
He тepяйтe зpя вpeмя,УдaчиSmiley
https://www.youtube.com/watch?v=QK6RBvhf-78
full member
Activity: 131
Merit: 108
Thanks for the kind words cinnamon_carter Wink

Gitian builds are basically a cross compile for windows on ubuntu, you can see what is going on by having a look at contrib/gitian-descriptors and depends/packages:
https://github.com/bitcoin/bitcoin/tree/master/contrib/gitian-descriptors
https://github.com/bitcoin/bitcoin/tree/master/depends/packages
legendary
Activity: 1148
Merit: 1018
It's about time -- All merrit accepted !!!
I just want to tell ya dude ,

Nitrogenetics ------- 


You are a fucking legend

I have learned so much from your posts and taking things a step further and doing a lot of my own studying , testing and research you will forever be in the hall of fame to me and if I could kiss you over the web I would.


Thanks for all the work and upkeep to the thread. 


I wish someone had as comprehensive and one tenth as well written thread about gitian cross compiling as your thread is for win.x.


There are so many people who have learned from your post I don't think you have any idea.


I can tell by when I type bitcoin in google and one of the first things it tries to complete is 'building headless'   ------------


 
For anyone experiencing make freezing during parallel (-j) builds - I'd recommend using MSYS2 (http://sourceforge.net/projects/msys2/) as the shell because it doesn't have the bug.

I wasn't very impressed when I first tried it more than a year ago, but I had a look at the current MSYS2 version and it seems to be working really fine with no broken parallel builds. (Having pacman from Arch is a nice additional feature too). I think I will update the opening post soon.
full member
Activity: 131
Merit: 108
For anyone experiencing make freezing during parallel (-j) builds - I'd recommend using MSYS2 (http://sourceforge.net/projects/msys2/) as the shell because it doesn't have the bug.

I wasn't very impressed when I first tried it more than a year ago, but I had a look at the current MSYS2 version and it seems to be working really fine with no broken parallel builds. (Having pacman from Arch is a nice additional feature too). I think I will update the opening post soon.
full member
Activity: 131
Merit: 108
getting some errors with 10.99 master(windows), last time it was fine to compile(2 weeks ago..)

./configure: line 16350: PKG_PROG_PKG_CONFIG: command not found

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

solution, roll back: 
Remove custom pkg.m4 script.
master    (#5688)


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
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.
member
Activity: 100
Merit: 10

Link fixed, thanks for reporting.


Anyone knows how to compile QTWEBKIT in windows?
Some qt that have webbrowser integrated,got qtwebkit widget in .pro file,but first it need to be compiled in windows.

Thanks.

See: https://bitcointalksearch.org/topic/m.9836596



Absolutely, thanks for taking the time to do the writeup
full member
Activity: 131
Merit: 108

Link fixed, thanks for reporting.


Anyone knows how to compile QTWEBKIT in windows?
Some qt that have webbrowser integrated,got qtwebkit widget in .pro file,but first it need to be compiled in windows.

Thanks.

See: https://bitcointalksearch.org/topic/m.9836596


hero member
Activity: 644
Merit: 500
Anyone knows how to compile QTWEBKIT in windows?
Some qt that have webbrowser integrated,got qtwebkit widget in .pro file,but first it need to be compiled in windows.

Thanks.
member
Activity: 100
Merit: 10
legendary
Activity: 1148
Merit: 1018
It's about time -- All merrit accepted !!!
this was resolved , someone at random contacted me on twitter asking for help with this , m

i cloned the main mue branch & built it first lick

used qt 4.8.5 on my fork the wallet was put up


someone mentioned my build was not static


funny when i tested it on win vm's it worked w/o dll 's

apology to nitrogenetics for this post here off topic of building bitcoin but honestly if you follow his instructions to the letter they work !!


Huh weird. I guess I'll recompile everything.
Thanks!
I changed file MUE-qt.pro:
Here my file: https://yadi.sk/i/pEN6OO0ZeTvse
And I changed net.h, guiutil.cpp, serialize.h, util.h like here: https://github.com/novacoin-project/novacoin/commit/dcb8e6bf5d94b7e9a84253cccf20c231cd92ff45


legendary
Activity: 1400
Merit: 1000
Huh weird. I guess I'll recompile everything.
Thanks!
I changed file MUE-qt.pro:
Here my file: https://yadi.sk/i/pEN6OO0ZeTvse
And I changed net.h, guiutil.cpp, serialize.h, util.h like here: https://github.com/novacoin-project/novacoin/commit/dcb8e6bf5d94b7e9a84253cccf20c231cd92ff45

hero member
Activity: 597
Merit: 500
MystPhysXHuh

Huh weird. I guess I'll recompile everything.

Thanks!
legendary
Activity: 1400
Merit: 1000
MystPhysXHuh
Pages:
Jump to: