Author

Topic: bitcoin-qt build error (Read 2721 times)

full member
Activity: 215
Merit: 100
January 20, 2012, 10:16:18 PM
#6
I will try to compile everything from source code rather than using the dependencies packages. Once everything works, I will definitely post the instructions.
legendary
Activity: 1652
Merit: 2216
Chief Scientist
January 20, 2012, 09:24:42 PM
#5
We need more Windows developers, by the way; if you know a lot about developing in C++ on Windows and want to (for example) create a Visual Studio project or resurrect makefile.vc or fix the build instructions if they're not right that'd be spiffy.
full member
Activity: 215
Merit: 100
January 20, 2012, 08:07:18 PM
#4
me too i finally got it to build but it wont run.... i was told nobody has built it in windows that even the windows exe was built in linux using gitian so im working on building with gitian now

I have a feeling that it might be due mixing of mingw and msvc compilers.
full member
Activity: 209
Merit: 100
January 20, 2012, 07:19:17 PM
#3
me too i finally got it to build but it wont run.... i was told nobody has built it in windows that even the windows exe was built in linux using gitian so im working on building with gitian now
full member
Activity: 215
Merit: 100
January 20, 2012, 03:13:39 PM
#2
ok so i followed the directions on this page for building in windows

https://github.com/bitcoin/bitcoin/blob/master/doc/readme-qt.rst

the boost dependencies was missing the assign folder in the includes so i got it from boost

now im getting this error

Code:
./build\init.o: In function `Z23SetStartOnSystemStartupb':
C:\Users\Stcupp\Downloads\bitcoin-bitcoin-v0.5.1-126-g43cda5f\bitcoin-qt-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug/../bitcoin-bitcoin-43cda5f/src/init.cpp:578: undefined reference to `CoInitialize@4'
C:\Users\Stcupp\Downloads\bitcoin-bitcoin-v0.5.1-126-g43cda5f\bitcoin-qt-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug/../bitcoin-bitcoin-43cda5f/src/init.cpp:584: undefined reference to `CoCreateInstance@20'
C:\Users\Stcupp\Downloads\bitcoin-bitcoin-v0.5.1-126-g43cda5f\bitcoin-qt-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug/../bitcoin-bitcoin-43cda5f/src/init.cpp:605: undefined reference to `IID_IPersistFile'
C:\Users\Stcupp\Downloads\bitcoin-bitcoin-v0.5.1-126-g43cda5f\bitcoin-qt-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug/../bitcoin-bitcoin-43cda5f/src/init.cpp:615: undefined reference to `CoUninitialize@0'
C:\Users\Stcupp\Downloads\bitcoin-bitcoin-v0.5.1-126-g43cda5f\bitcoin-qt-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug/../bitcoin-bitcoin-43cda5f/src/init.cpp:620: undefined reference to `CoUninitialize@0'
collect2: ld returned 1 exit status
mingw32-make.exe[1]: *** [debug\bitcoin-qt.exe] Error 1
mingw32-make.exe: *** [debug] Error 2
19:28:32: The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
Error while building project bitcoin-qt (target: Desktop)
When executing build step 'Make'

does anyone know whats going wrong here?

After adding "ole32.lib" and "uuid.lib" to the list of libraries, these problems seems to go away. I am having hard time actually running the created executable.
full member
Activity: 209
Merit: 100
January 17, 2012, 09:29:45 PM
#1
ok so i followed the directions on this page for building in windows

https://github.com/bitcoin/bitcoin/blob/master/doc/readme-qt.rst

the boost dependencies was missing the assign folder in the includes so i got it from boost

now im getting this error

Code:
./build\init.o: In function `Z23SetStartOnSystemStartupb':
C:\Users\Stcupp\Downloads\bitcoin-bitcoin-v0.5.1-126-g43cda5f\bitcoin-qt-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug/../bitcoin-bitcoin-43cda5f/src/init.cpp:578: undefined reference to `CoInitialize@4'
C:\Users\Stcupp\Downloads\bitcoin-bitcoin-v0.5.1-126-g43cda5f\bitcoin-qt-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug/../bitcoin-bitcoin-43cda5f/src/init.cpp:584: undefined reference to `CoCreateInstance@20'
C:\Users\Stcupp\Downloads\bitcoin-bitcoin-v0.5.1-126-g43cda5f\bitcoin-qt-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug/../bitcoin-bitcoin-43cda5f/src/init.cpp:605: undefined reference to `IID_IPersistFile'
C:\Users\Stcupp\Downloads\bitcoin-bitcoin-v0.5.1-126-g43cda5f\bitcoin-qt-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug/../bitcoin-bitcoin-43cda5f/src/init.cpp:615: undefined reference to `CoUninitialize@0'
C:\Users\Stcupp\Downloads\bitcoin-bitcoin-v0.5.1-126-g43cda5f\bitcoin-qt-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug/../bitcoin-bitcoin-43cda5f/src/init.cpp:620: undefined reference to `CoUninitialize@0'
collect2: ld returned 1 exit status
mingw32-make.exe[1]: *** [debug\bitcoin-qt.exe] Error 1
mingw32-make.exe: *** [debug] Error 2
19:28:32: The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
Error while building project bitcoin-qt (target: Desktop)
When executing build step 'Make'

does anyone know whats going wrong here?
Jump to: