Author

Topic: Compiling Coin Wallet On Windows (Read 794 times)

full member
Activity: 326
Merit: 100
March 31, 2014, 05:12:17 AM
#1
I'm attempting to compile a coin wallet on windows after looking at it and thinking "can't be too bad", I'm now ripping out my hair trying to determine what is wrong with it. qmake runs fine, but when I run the make -f Makefile.Release, it only gets through 10 seconds of compiling.

Code:
Setting up a MinGW/Qt only environment...
-- QTDIR set to C:\Qt\4.8.5
-- PATH set to C:\Qt\4.8.5\bin
-- Adding C:\MinGW\bin to PATH
-- Adding C:\WINDOWS\System32 to PATH
-- QMAKESPEC set to win32-g++

C:\Qt\4.8.5>cd ..

C:\Qt>cd ..

C:\>cd deps/gammacoin-master

C:\deps\gammacoin-master>make -f Makefile.Release
g++ -c -pipe -O2 -frtti -fexceptions -mthreads -fdiagnostics-show-option -Wall -
Wextra -Wformat -Wformat-security -Wno-unused-parameter -DUNICODE -DQT_GUI -DBOO
ST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6 -DNO_SYSTEM_INCLUDES -DWI
N32 -D_MT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_H
AVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT
_NEEDS_QMAIN -I"..\..\Qt\4.8.5\include\QtCore" -I"..\..\Qt\4.8.5\include\QtGui"
-I"..\..\Qt\4.8.5\include" -I"src" -I"src\json" -I"src\qt" -I"..\boost_1_53_0" -
I"..\db\build_unix" -I"..\openssl-1.0.1e\include" -I"..\..\Qt\4.8.5\include\Acti
veQt" -I"build" -I"build" -I"..\..\Qt\4.8.5\mkspecs\win32-g++" -o build\bitcoin.
o src\qt\bitcoin.cpp
In file included from ..\boost_1_53_0/boost/thread/shared_mutex.hpp:18:0,
                 from ..\boost_1_53_0/boost/thread/detail/thread_group.hpp:9,
                 from ..\boost_1_53_0/boost/thread/thread.hpp:26,
                 from ..\boost_1_53_0/boost/thread.hpp:13,
                 from src/util.h:22,
                 from src/bignum.h:13,
                 from src/main.h:9,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:
..\boost_1_53_0/boost/thread/win32/shared_mutex.hpp: In constructor 'boost::shar
ed_mutex::shared_mutex()':
..\boost_1_53_0/boost/thread/win32/shared_mutex.hpp:98:33: warning: missing init
ializer for member 'boost::shared_mutex::state_data::shared_waiting' [-Wmissing-
field-initializers]
..\boost_1_53_0/boost/thread/win32/shared_mutex.hpp:98:33: warning: missing init
ializer for member 'boost::shared_mutex::state_data::exclusive' [-Wmissing-field
-initializers]
..\boost_1_53_0/boost/thread/win32/shared_mutex.hpp:98:33: warning: missing init
ializer for member 'boost::shared_mutex::state_data::upgrade' [-Wmissing-field-i
nitializers]
..\boost_1_53_0/boost/thread/win32/shared_mutex.hpp:98:33: warning: missing init
ializer for member 'boost::shared_mutex::state_data::exclusive_waiting' [-Wmissi
ng-field-initializers]
..\boost_1_53_0/boost/thread/win32/shared_mutex.hpp:98:33: warning: missing init
ializer for member 'boost::shared_mutex::state_data::exclusive_waiting_blocked'
[-Wmissing-field-initializers]
In file included from ..\db\build_unix/db.h:30:0,
                 from ..\db\build_unix/db_cxx.h:64,
                 from src/db.h:15,
                 from src/main.h:13,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/pthread.h: At global s
cope:
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/pthread.h:585:24: erro
r: conflicting declaration 'typedef struct ptw32_handle_t pthread_t'
src/util.h:555:16: error: 'pthread_t' has a previous declaration as 'typedef voi
d* pthread_t'
In file included from ..\boost_1_53_0/boost/interprocess/errors.hpp:37:0,
                 from ..\boost_1_53_0/boost/interprocess/exceptions.hpp:20,
                 from ..\boost_1_53_0/boost/interprocess/shared_memory_object.hp
p:17,
                 from ..\boost_1_53_0/boost/interprocess/ipc/message_queue.hpp:1
7,
                 from src\qt\bitcoin.cpp:23:
..\boost_1_53_0/boost/interprocess/detail/win32_api.hpp:861:116: warning: declar
ation of 'void* boost::interprocess::winapi::CreateMutexA(boost::interprocess::w
inapi::interprocess_security_attributes*, int, const char*)' with C language lin
kage [enabled by default]
..\boost_1_53_0/boost/thread/win32/thread_primitives.hpp:119:55: warning: confli
cts with previous declaration 'void* boost::detail::win32::CreateMutexA(boost::d
etail::win32::_SECURITY_ATTRIBUTES*, int, const char*)' [enabled by default]
..\boost_1_53_0/boost/interprocess/detail/win32_api.hpp:866:127: warning: declar
ation of 'void* boost::interprocess::winapi::CreateSemaphoreA(boost::interproces
s::winapi::interprocess_security_attributes*, long int, long int, const char*)'
with C language linkage [enabled by default]
..\boost_1_53_0/boost/thread/win32/thread_primitives.hpp:120:55: warning: confli
cts with previous declaration 'void* boost::detail::win32::CreateSemaphoreA(boos
t::detail::win32::_SECURITY_ATTRIBUTES*, long int, long int, const char*)' [enab
led by default]
In file included from ..\boost_1_53_0/boost/thread/shared_mutex.hpp:18:0,
                 from ..\boost_1_53_0/boost/thread/detail/thread_group.hpp:9,
                 from ..\boost_1_53_0/boost/thread/thread.hpp:26,
                 from ..\boost_1_53_0/boost/thread.hpp:13,
                 from src/util.h:22,
                 from src/bignum.h:13,
                 from src/main.h:9,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:
..\boost_1_53_0/boost/thread/win32/shared_mutex.hpp: In member function 'T boost
::shared_mutex::interlocked_compare_exchange(T*, T, T) [with T = boost::shared_m
utex::state_data]':
..\boost_1_53_0/boost/thread/win32/shared_mutex.hpp:124:103:   instantiated from
 here
..\boost_1_53_0/boost/thread/win32/shared_mutex.hpp:52:99: warning: dereferencin
g type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
..\boost_1_53_0/boost/thread/win32/shared_mutex.hpp:52:99: warning: dereferencin
g type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
..\boost_1_53_0/boost/thread/win32/shared_mutex.hpp:53:52: warning: dereferencin
g type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
..\boost_1_53_0/boost/thread/win32/shared_mutex.hpp:53:52: warning: dereferencin
g type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
In file included from ..\boost_1_53_0/boost/interprocess/detail/windows_intermod
ule_singleton.hpp:26:0,
                 from ..\boost_1_53_0/boost/interprocess/detail/tmp_dir_helpers.
hpp:22,
                 from ..\boost_1_53_0/boost/interprocess/shared_memory_object.hp
p:22,
                 from ..\boost_1_53_0/boost/interprocess/ipc/message_queue.hpp:1
7,
                 from src\qt\bitcoin.cpp:23:
..\boost_1_53_0/boost/interprocess/detail/intermodule_singleton_common.hpp: In s
tatic member function 'static ThreadSafeGlobalMap& boost::interprocess::ipcdetai
l::intermodule_singleton_common::get_map() [with ThreadSafe
GlobalMap = boost::interprocess::ipcdetail::intermodule_singleton_helpers::windo
ws_semaphore_based_map]':
..\boost_1_53_0/boost/interprocess/detail/intermodule_singleton_common.hpp:125:4
9:   instantiated from 'static void boost::interprocess::ipcdetail::intermodule_
singleton_common::initialize_singleton_logic(void*&, volati
le uint32_t&, void* (*)(ThreadSafeGlobalMap&), bool) [with ThreadSafeGlobalMap =
 boost::interprocess::ipcdetail::intermodule_singleton_helpers::windows_semaphor
e_based_map, uint32_t = unsigned int, boost::interprocess::ipcdetail::intermodul
e_singleton_common::singleton_constructor_t = void*(boost::
interprocess::ipcdetail::intermodule_singleton_helpers::windows_semaphore_based_
map&)]'
..\boost_1_53_0/boost/interprocess/detail/intermodule_singleton_common.hpp:333:7
:   instantiated from 'static void boost::interprocess::ipcdetail::intermodule_s
ingleton_impl::atentry_work() [with C
 = boost::interprocess::ipcdetail::windows_bootstamp, bool LazyInit = true, bool
 Phoenix = true, ThreadSafeGlobalMap = boost::interprocess::ipcdetail::intermodu
le_singleton_helpers::windows_semaphore_based_map]'
..\boost_1_53_0/boost/interprocess/detail/intermodule_singleton_common.hpp:323:1
3:   instantiated from 'static C& boost::interprocess::ipcdetail::intermodule_si
ngleton_impl::get() [with C = boost::
interprocess::ipcdetail::windows_bootstamp, bool LazyInit = true, bool Phoenix =
 true, ThreadSafeGlobalMap = boost::interprocess::ipcdetail::intermodule_singlet
on_helpers::windows_semaphore_based_map]'
..\boost_1_53_0/boost/interprocess/detail/tmp_dir_helpers.hpp:45:97:   instantia
ted from here
..\boost_1_53_0/boost/interprocess/detail/intermodule_singleton_common.hpp:203:9
3: warning: dereferencing type-punned pointer will break strict-aliasing rules [
-Wstrict-aliasing]
..\boost_1_53_0/boost/system/error_code.hpp: At global scope:
..\boost_1_53_0/boost/system/error_code.hpp:214:36: warning: 'boost::system::pos
ix_category' defined but not used [-Wunused-variable]
..\boost_1_53_0/boost/system/error_code.hpp:215:36: warning: 'boost::system::err
no_ecat' defined but not used [-Wunused-variable]
..\boost_1_53_0/boost/system/error_code.hpp:216:36: warning: 'boost::system::nat
ive_ecat' defined but not used [-Wunused-variable]
mingw32-make: *** [build/bitcoin.o] Error 1

Is the error that I get. I've tried everything I can think of, but this is just getting horrificly annoying.


Thanks for any help you may have,


nuggetbram
Jump to: