Post
Topic
Board Development & Technical Discussion
Re: Building headless Bitcoin and Bitcoin-qt on Windows
by
nitrogenetics
on 28/04/2015, 20:08:47 UTC
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.