Setup is as follows:
Windows 7 x64 SP1
Qt SDK 1.2 with Qt Creator 2.4.1 and included MinGW 4.4.0
contents of qtgui_deps_1.zip were extracted into the MinGW folder in D:\QtSDK\mingw
I have the current Git version of Bitcoin as a local repo, started Qt Creator by double-clicking on bitcoin-qt.pro and added the "USE_UPNP=-" flag to qmake. As it didn't work out of the box, I upgraded MinGW to 4.6.2 via mingw-get-inst-20111118.exe.
Now the build-log is as follows:
./build\bitcoin.o:bitcoin.cpp:(.text$_ZN5boost12interprocess6winapi23get_wmi_class_attributeERSbIwSt11char_traitsIwESaIwEEPKwS8_[boost::interprocess::winapi::get_wmi_class_attribute(std::basic_string, std::allocator >&, wchar_t const*, wchar_t const*)]+0x368): undefined reference to `_imp__VariantClear@4'
./build\util.o:util.cpp:(.text+0xfa1): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
./build\util.o:util.cpp:(.text+0xfc7): undefined reference to `boost::filesystem3::path_traits::convert(char const*, char const*, std::basic_string, std::allocator >&, std::codecvt const&)'
./build\util.o:util.cpp:(.text+0xfd7): undefined reference to `boost::filesystem3::detail::create_directory(boost::filesystem3::path const&, boost::system::error_code*)'
./build\util.o:util.cpp:(.text+0x2d15): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
./build\util.o:util.cpp:(.text+0x2d52): undefined reference to `boost::filesystem3::path::root_name() const'
./build\util.o:util.cpp:(.text+0x2d8f): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
./build\util.o:util.cpp:(.text+0x2dc0): undefined reference to `boost::filesystem3::path::operator/=(boost::filesystem3::path const&)'
./build\util.o:util.cpp:(.text+0x2e09): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
./build\util.o:util.cpp:(.text+0x2e5b): undefined reference to `boost::filesystem3::path_traits::convert(wchar_t const*, wchar_t const*, std::string&, std::codecvt const&)'
./build\util.o:util.cpp:(.text+0x2e7e): undefined reference to `boost::filesystem3::path_traits::convert(char const*, char const*, std::basic_string, std::allocator >&, std::codecvt const&)'
./build\util.o:util.cpp:(.text+0x2e94): undefined reference to `boost::filesystem3::path::root_directory() const'
./build\util.o:util.cpp:(.text+0x2ece): undefined reference to `boost::filesystem3::path_traits::convert(char const*, char const*, std::basic_string, std::allocator >&, std::codecvt const&)'
./build\util.o:util.cpp:(.text+0x3069): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
./build\util.o:util.cpp:(.text+0x30a6): undefined reference to `boost::filesystem3::path::root_name() const'
./build\util.o:util.cpp:(.text+0x30e3): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
./build\util.o:util.cpp:(.text+0x3114): undefined reference to `boost::filesystem3::path::operator/=(boost::filesystem3::path const&)'
./build\util.o:util.cpp:(.text+0x315d): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
./build\util.o:util.cpp:(.text+0x31af): undefined reference to `boost::filesystem3::path_traits::convert(wchar_t const*, wchar_t const*, std::string&, std::codecvt const&)'
./build\util.o:util.cpp:(.text+0x31d2): undefined reference to `boost::filesystem3::path_traits::convert(char const*, char const*, std::basic_string, std::allocator >&, std::codecvt const&)'
./build\util.o:util.cpp:(.text+0x31e8): undefined reference to `boost::filesystem3::path::root_directory() const'
./build\util.o:util.cpp:(.text+0x3222): undefined reference to `boost::filesystem3::path_traits::convert(char const*, char const*, std::basic_string, std::allocator >&, std::codecvt const&)'
./build\util.o:util.cpp:(.text+0x3eac): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
./build\util.o:util.cpp:(.text+0x3edd): undefined reference to `boost::filesystem3::detail::system_complete(boost::filesystem3::path const&, boost::system::error_code*)'
./build\util.o:util.cpp:(.text+0x3eee): undefined reference to `boost::filesystem3::detail::status(boost::filesystem3::path const&, boost::system::error_code*)'
./build\util.o:util.cpp:(.text+0x3f5b): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
./build\util.o:util.cpp:(.text+0x3fdc): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
./build\util.o:util.cpp:(.text+0x43b6): undefined reference to `boost::filesystem3::path_traits::convert(char const*, char const*, std::basic_string, std::allocator >&, std::codecvt const&)'
./build\util.o:util.cpp:(.text+0x43d8): undefined reference to `boost::filesystem3::path_traits::convert(char const*, char const*, std::basic_string, std::allocator >&, std::codecvt const&)'
./build\util.o:util.cpp:(.text+0x482f): undefined reference to `boost::filesystem3::path_traits::convert(wchar_t const*, wchar_t const*, std::string&, std::codecvt const&)'
./build\util.o:util.cpp:(.text+0x4889): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
./build\util.o:util.cpp:(.text+0x48ba): undefined reference to `boost::filesystem3::detail::system_complete(boost::filesystem3::path const&, boost::system::error_code*)'
./build\util.o:util.cpp:(.text+0x48d0): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
./build\util.o:util.cpp:(.text+0x49be): undefined reference to `boost::filesystem3::path_traits::convert(char const*, char const*, std::basic_string, std::allocator >&, std::codecvt const&)'
./build\util.o:util.cpp:(.text+0x49e1): undefined reference to `boost::filesystem3::path_traits::convert(wchar_t const*, wchar_t const*, std::string&, std::codecvt const&)'
./build\util.o:util.cpp:(.text.startup+0x38): undefined reference to `boost::system::generic_category()'
./build\util.o:util.cpp:(.text.startup+0x42): undefined reference to `boost::system::generic_category()'
./build\util.o:util.cpp:(.text.startup+0x4c): undefined reference to `boost::system::system_category()'
./build\main.o:main.cpp:(.text+0x1307): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
./build\main.o:main.cpp:(.text+0x1334): undefined reference to `boost::filesystem3::detail::space(boost::filesystem3::path const&, boost::system::error_code*)'
./build\main.o:main.cpp:(.text+0x1492): undefined reference to `boost::filesystem3::path_traits::convert(char const*, char const*, std::basic_string, std::allocator >&, std::codecvt const&)'
./build\main.o:main.cpp:(.text.startup+0x3c): undefined reference to `boost::system::generic_category()'
./build\main.o:main.cpp:(.text.startup+0x46): undefined reference to `boost::system::generic_category()'
./build\main.o:main.cpp:(.text.startup+0x50): undefined reference to `boost::system::system_category()'
./build\init.o:init.cpp:(.text+0x2e0): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
./build\init.o:init.cpp:(.text+0x306): undefined reference to `boost::filesystem3::path_traits::convert(char const*, char const*, std::basic_string, std::allocator >&, std::codecvt const&)'
./build\init.o:init.cpp:(.text+0x316): undefined reference to `boost::filesystem3::detail::status(boost::filesystem3::path const&, boost::system::error_code*)'
./build\init.o:init.cpp:(.text+0x6b6): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
./build\init.o:init.cpp:(.text+0x6db): undefined reference to `boost::filesystem3::detail::remove(boost::filesystem3::path const&, boost::system::error_code*)'
./build\init.o:init.cpp:(.text+0x894): undefined reference to `boost::filesystem3::path_traits::convert(char const*, char const*, std::basic_string, std::allocator >&, std::codecvt const&)'
./build\init.o:init.cpp:(.text.startup+0x36): undefined reference to `boost::system::generic_category()'
./build\init.o:init.cpp:(.text.startup+0x40): undefined reference to `boost::system::generic_category()'
./build\init.o:init.cpp:(.text.startup+0x4a): undefined reference to `boost::system::system_category()'
./build\db.o:db.cpp:(.text+0x4b35): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
./build\db.o:db.cpp:(.text+0x4b77): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
./build\db.o:db.cpp:(.text+0x4ba1): undefined reference to `boost::filesystem3::detail::status(boost::filesystem3::path const&, boost::system::error_code*)'
./build\db.o:db.cpp:(.text+0x4bca): undefined reference to `boost::filesystem3::detail::copy_file(boost::filesystem3::path const&, boost::filesystem3::path const&, boost::filesystem3::copy_option::enum_type, boost::system::error_code*)'
./build\db.o:db.cpp:(.text+0x4bcf): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
./build\db.o:db.cpp:(.text+0x4cff): undefined reference to `boost::filesystem3::path_traits::convert(char const*, char const*, std::basic_string, std::allocator >&, std::codecvt const&)'
./build\db.o:db.cpp:(.text+0x4d1f): undefined reference to `boost::filesystem3::path_traits::convert(wchar_t const*, wchar_t const*, std::string&, std::codecvt const&)'
./build\db.o:db.cpp:(.text+0x4d42): undefined reference to `boost::filesystem3::path_traits::convert(char const*, char const*, std::basic_string, std::allocator >&, std::codecvt const&)'
./build\db.o:db.cpp:(.text+0x4d58): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
./build\db.o:db.cpp:(.text+0x4d92): undefined reference to `boost::filesystem3::path::operator/=(boost::filesystem3::path const&)'
./build\db.o:db.cpp:(.text+0x4e36): undefined reference to `boost::filesystem3::path_traits::convert(char const*, char const*, std::basic_string, std::allocator >&, std::codecvt const&)'
./build\db.o:db.cpp:(.text+0x56c3): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
./build\db.o:db.cpp:(.text+0x56f1): undefined reference to `boost::filesystem3::path_traits::convert(char const*, char const*, std::basic_string, std::allocator >&, std::codecvt const&)'
./build\db.o:db.cpp:(.text+0x5701): undefined reference to `boost::filesystem3::detail::create_directory(boost::filesystem3::path const&, boost::system::error_code*)'
./build\db.o:db.cpp:(.text$_ZNK5boost11filesystem34path6stringEv[boost::filesystem3::path::string() const]+0x9): undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'
./build\db.o:db.cpp:(.text$_ZNK5boost11filesystem34path6stringEv[boost::filesystem3::path::string() const]+0x3f): undefined reference to `boost::filesystem3::path_traits::convert(wchar_t const*, wchar_t const*, std::string&, std::codecvt const&)'
./build\db.o:db.cpp:(.text.startup+0x38): undefined reference to `boost::system::generic_category()'
./build\db.o:db.cpp:(.text.startup+0x42): undefined reference to `boost::system::generic_category()'
./build\db.o:db.cpp:(.text.startup+0x4c): undefined reference to `boost::system::system_category()'
./build\bitcoinrpc.o:bitcoinrpc.cpp:(.text+0xc80): undefined reference to `boost::system::system_category()'
./build\bitcoinrpc.o:bitcoinrpc.cpp:(.text+0x4864): undefined reference to `boost::system::generic_category()'
./build\bitcoinrpc.o:bitcoinrpc.cpp:(.text+0x486e): undefined reference to `boost::system::generic_category()'
./build\bitcoinrpc.o:bitcoinrpc.cpp:(.text+0x4878): undefined reference to `boost::system::system_category()'
./build\bitcoinrpc.o:bitcoinrpc.cpp:(.text+0x48ac): undefined reference to `boost::system::system_category()'
./build\bitcoinrpc.o:bitcoinrpc.cpp:(.text+0x48b6): undefined reference to `boost::system::system_category()'
./build\bitcoinrpc.o:bitcoinrpc.cpp:(.text+0x48c0): undefined reference to `boost::system::system_category()'
./build\bitcoinrpc.o:bitcoinrpc.cpp:(.text+0x5919): undefined reference to `boost::system::system_category()'
./build\bitcoinrpc.o:bitcoinrpc.cpp:(.text+0x5988): more undefined references to `boost::system::system_category()' follow
I excluded some warnings in the beginning that were all like this:
In file included from src/util.h:27:0,
from src\qt\/walletmodel.h:6,
from src\qt\sendcoinsentry.cpp:6:
src/netbase.h:11:0: warning: "_WIN32_WINNT" redefined [enabled by default]
d:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/windef.h:20:0: note: this is the location of the previous definition
For me as a novice Qt user with basic programming skills this looks like some sort of problems with the Boost library. Any help would be great :). One last thing I noticed, the supplied libs in qtgui_deps_1.zip seem to be based on Boost 1.43, but 1.47 is mentioned in
https://github.com/bitcoin/bitcoin/blob/master/doc/build-msw.txt. Perhaps I need to compile the libs myself with 1.47? Next question would be how to do that ^^.
Dia