Pages:
Author

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

sr. member
Activity: 364
Merit: 250
error log with boost 55:

Quote
c:\Qt\4.8.4\bin\uic.exe src\qt\forms\sendcoinsdialog.ui -o build\ui_sendcoinsdia
log.h
c:\Qt\4.8.4\bin\uic.exe src\qt\forms\addressbookpage.ui -o build\ui_addressbookp
age.h
c:\Qt\4.8.4\bin\uic.exe src\qt\forms\signverifymessagedialog.ui -o build\ui_sign
verifymessagedialog.h
c:\Qt\4.8.4\bin\uic.exe src\qt\forms\aboutdialog.ui -o build\ui_aboutdialog.h
c:\Qt\4.8.4\bin\uic.exe src\qt\forms\editaddressdialog.ui -o build\ui_editaddres
sdialog.h
c:\Qt\4.8.4\bin\uic.exe src\qt\forms\transactiondescdialog.ui -o build\ui_transa
ctiondescdialog.h
c:\Qt\4.8.4\bin\uic.exe src\qt\forms\overviewpage.ui -o build\ui_overviewpage.h
c:\Qt\4.8.4\bin\uic.exe src\qt\forms\sendcoinsentry.ui -o build\ui_sendcoinsentr
y.h
c:\Qt\4.8.4\bin\uic.exe src\qt\forms\askpassphrasedialog.ui -o build\ui_askpassp
hrasedialog.h
c:\Qt\4.8.4\bin\uic.exe src\qt\forms\rpcconsole.ui -o build\ui_rpcconsole.h
c:\Qt\4.8.4\bin\uic.exe src\qt\forms\miningpage.ui -o build\ui_miningpage.h
c:\Qt\4.8.4\bin\uic.exe src\qt\forms\optionsdialog.ui -o build\ui_optionsdialog.
h
g++ -c -pipe -O2 -frtti -fexceptions -mthreads -fdiagnostics-show-option -Wall -
Wextra -Wformat -Wformat-security -Wno-unused-parameter -DUNICODE -DQT_LARGEFILE
_SUPPORT -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DBOOST_THREA
D_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN -D__NO_SYSTEM_INCLUDES -DWIN32 -D_MT -DQT
_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT
_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -
I"c:\Qt\4.8.4\include\QtCore" -I"c:\Qt\4.8.4\include\QtGui" -I"c:\Qt\4.8.4\inclu
de" -I"src" -I"src\json" -I"src\qt" -I"c:\deps\boost_1_55_0\boost_1_55_0" -I"c:\
deps\db\build_unix" -I"c:\deps\ssl\include" -I"c:\Qt\4.8.4\include\ActiveQt" -I"
build" -I"build" -I"c:\Qt\4.8.4\mkspecs\win32-g++" -o release\bitcoin.o src\qt\b
itcoin.cpp
In file included from src/netbase.h:12:0,
                 from src/util.h:31,
                 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:
src/compat.h:29:15: error: conflicting declaration 'typedef u_int SOCKET'
c:\mingw32\bin\../lib/gcc/x86_64-w64-mingw32/4.6.2/../../../../x86_64-w64-mingw3
2/include/psdk_inc/_socket_types.h:13:18: error: 'SOCKET' has a previous declara
tion as 'typedef INT_PTR SOCKET'
In file included from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/error
s.hpp:37:0,
                 from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/excep
tions.hpp:20,
                 from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/share
d_memory_object.hpp:17,
                 from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/ipc/m
essage_queue.hpp:17,
                 from src\qt\bitcoin.cpp:23:
c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detail/win32_api.hpp:903:11
6: warning: declaration of 'void* boost::interprocess::winapi::CreateMutexA(boos
t::interprocess::winapi::interprocess_security_attributes*, int, const char*)' w
ith C language linkage [enabled by default]
c:\deps\boost_1_55_0\boost_1_55_0/boost/thread/win32/thread_primitives.hpp:144:5
5: warning: conflicts with previous declaration 'void* boost::detail::win32::Cre
ateMutexA(boost::detail::win32::_SECURITY_ATTRIBUTES*, int, const char*)' [enabl
ed by default]
c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detail/win32_api.hpp:908:12
7: warning: declaration of 'void* boost::interprocess::winapi::CreateSemaphoreA(
boost::interprocess::winapi::interprocess_security_attributes*, long int, long i
nt, const char*)' with C language linkage [enabled by default]
c:\deps\boost_1_55_0\boost_1_55_0/boost/thread/win32/thread_primitives.hpp:145:5
5: warning: conflicts with previous declaration 'void* boost::detail::win32::Cre
ateSemaphoreA(boost::detail::win32::_SECURITY_ATTRIBUTES*, long int, long int, c
onst char*)' [enabled by default]
In file included from c:\mingw32\bin\../lib/gcc/x86_64-w64-mingw32/4.6.2/../../.
./../x86_64-w64-mingw32/include/process.h:12:0,
                 from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detai
l/os_thread_functions.hpp:34,
                 from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detai
l/intermodule_singleton_common.hpp:22,
                 from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detai
l/windows_intermodule_singleton.hpp:26,
                 from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detai
l/tmp_dir_helpers.hpp:22,
                 from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/share
d_memory_object.hpp:22,
                 from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/ipc/m
essage_queue.hpp:17,
                 from src\qt\bitcoin.cpp:23:
c:\mingw32\bin\../lib/gcc/x86_64-w64-mingw32/4.6.2/../../../../x86_64-w64-mingw3
2/include/sys/types.h:68:16: error: conflicting declaration 'typedef _pid_t pid_
t'
src/util.h:16:13: error: 'pid_t' has a previous declaration as 'typedef int pid_
t'
In file included from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detai
l/windows_intermodule_singleton.hpp:26:0,
                 from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detai
l/tmp_dir_helpers.hpp:22,
                 from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/share
d_memory_object.hpp:22,
                 from c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/ipc/m
essage_queue.hpp:17,
                 from src\qt\bitcoin.cpp:23:
c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detail/intermodule_singleto
n_common.hpp: In static member function 'static ThreadSafeGlobalMap& boost::inte
rprocess::ipcdetail::intermodule_singleton_common::get_map(
) [with ThreadSafeGlobalMap = boost::interprocess::ipcdetail::intermodule_single
ton_helpers::windows_semaphore_based_map]':
c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detail/intermodule_singleto
n_common.hpp:126:49:   instantiated from 'static void boost::interprocess::ipcde
tail::intermodule_singleton_common::initialize_singleton_lo
gic(void*&, volatile uint32_t&, void* (*)(ThreadSafeGlobalMap&), bool) [with Thr
eadSafeGlobalMap = boost::interprocess::ipcdetail::intermodule_singleton_helpers
::windows_semaphore_based_map, uint32_t = unsigned int, boost::interprocess::ipc
detail::intermodule_singleton_common::singleton_constructor
_t = void*(boost::interprocess::ipcdetail::intermodule_singleton_helpers::window
s_semaphore_based_map&)]'
c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detail/intermodule_singleto
n_common.hpp:336:7:   instantiated from 'static void boost::interprocess::ipcdet
ail::intermodule_singleton_impl::aten
try_work() [with C = boost::interprocess::ipcdetail::windows_bootstamp, bool Laz
yInit = true, bool Phoenix = true, ThreadSafeGlobalMap = boost::interprocess::ip
cdetail::intermodule_singleton_helpers::windows_semaphore_based_map]'
c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detail/intermodule_singleto
n_common.hpp:326:13:   instantiated from 'static C& boost::interprocess::ipcdeta
il::intermodule_singleton_impl::get()
 [with C = boost::interprocess::ipcdetail::windows_bootstamp, bool LazyInit = tr
ue, bool Phoenix = true, ThreadSafeGlobalMap = boost::interprocess::ipcdetail::i
ntermodule_singleton_helpers::windows_semaphore_based_map]'
c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detail/tmp_dir_helpers.hpp:
45:97:   instantiated from here
c:\deps\boost_1_55_0\boost_1_55_0/boost/interprocess/detail/intermodule_singleto
n_common.hpp:205:93: warning: dereferencing type-punned pointer will break stric
t-aliasing rules [-Wstrict-aliasing]
c:\deps\boost_1_55_0\boost_1_55_0/boost/system/error_code.hpp: At global scope:
c:\deps\boost_1_55_0\boost_1_55_0/boost/system/error_code.hpp:222:36: warning: '
boost::system::posix_category' defined but not used [-Wunused-variable]
c:\deps\boost_1_55_0\boost_1_55_0/boost/system/error_code.hpp:223:36: warning: '
boost::system::errno_ecat' defined but not used [-Wunused-variable]
c:\deps\boost_1_55_0\boost_1_55_0/boost/system/error_code.hpp:224:36: warning: '
boost::system::native_ecat' defined but not used [-Wunused-variable]
mingw32-make: *** [release/bitcoin.o] Error 1
sr. member
Activity: 364
Merit: 250
I have a bunch of issues with "Previous declarations". It seems to be an issue with boost and mingw colliding. Here is error log after I enter make -f makefile.release:


You are using boost 1.49?

I have tried 55, 54, 53, and 49.

I would definitely use boost 1.55, but I am not an expert. What coin are you trying to compile?  Is it bitcoin from the thread or not?


Any coin. Bitcoin 0.8.6, Dogecoin, etc. Personally I am trying to do KaChingCoin, but none of them are working.

Another developer told me boost 1.55 has issues, so I tried others.
legendary
Activity: 1330
Merit: 1000
Blockchain Developer
I have a bunch of issues with "Previous declarations". It seems to be an issue with boost and mingw colliding. Here is error log after I enter make -f makefile.release:


You are using boost 1.49?

I have tried 55, 54, 53, and 49.

I would definitely use boost 1.55, but I am not an expert. What coin are you trying to compile?  Is it bitcoin from the thread or not?
sr. member
Activity: 364
Merit: 250
I have a bunch of issues with "Previous declarations". It seems to be an issue with boost and mingw colliding. Here is error log after I enter make -f makefile.release:


You are using boost 1.49?

I have tried 55, 54, 53, and 49.
legendary
Activity: 1330
Merit: 1000
Blockchain Developer
I have a bunch of issues with "Previous declarations". It seems to be an issue with boost and mingw colliding. Here is error log after I enter make -f makefile.release:


You are using boost 1.49?
sr. member
Activity: 364
Merit: 250
I have a bunch of issues with "Previous declarations". It seems to be an issue with boost and mingw colliding. Here is error log after I enter make -f makefile.release:

Quote
g++ -c -pipe -O2 -frtti -fexceptions -mthreads -fdiagnostics-show-option -Wall -
Wextra -Wformat -Wformat-security -Wno-unused-parameter -DUNICODE -DQT_LARGEFILE
_SUPPORT -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DBOOST_THREA
D_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN -D__NO_SYSTEM_INCLUDES -DWIN32 -D_MT -DQT
_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT
_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -
I"c:\Qt\4.8.4\include\QtCore" -I"c:\Qt\4.8.4\include\QtGui" -I"c:\Qt\4.8.4\inclu
de" -I"src" -I"src\json" -I"src\qt" -I"c:\deps\boost_1_49_0\boost_1_49_0" -I"c:\
deps\db\build_unix" -I"c:\deps\ssl\include" -I"c:\Qt\4.8.4\include\ActiveQt" -I"
build" -I"build" -I"c:\Qt\4.8.4\mkspecs\win32-g++" -o build\bitcoin.o src\qt\bit
coin.cpp
In file included from c:\deps\boost_1_49_0\boost_1_49_0/boost/thread/shared_mute
x.hpp:14:0,
                 from c:\deps\boost_1_49_0\boost_1_49_0/boost/thread/detail/thre
ad_group.hpp:9,
                 from c:\deps\boost_1_49_0\boost_1_49_0/boost/thread/thread.hpp:
24,
                 from c:\deps\boost_1_49_0\boost_1_49_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:
c:\deps\boost_1_49_0\boost_1_49_0/boost/thread/win32/shared_mutex.hpp: In constr
uctor 'boost::shared_mutex::shared_mutex()':
c:\deps\boost_1_49_0\boost_1_49_0/boost/thread/win32/shared_mutex.hpp:95:33: war
ning: missing initializer for member 'boost::shared_mutex::state_data::shared_wa
iting' [-Wmissing-field-initializers]
c:\deps\boost_1_49_0\boost_1_49_0/boost/thread/win32/shared_mutex.hpp:95:33: war
ning: missing initializer for member 'boost::shared_mutex::state_data::exclusive
' [-Wmissing-field-initializers]
c:\deps\boost_1_49_0\boost_1_49_0/boost/thread/win32/shared_mutex.hpp:95:33: war
ning: missing initializer for member 'boost::shared_mutex::state_data::upgrade'
[-Wmissing-field-initializers]
c:\deps\boost_1_49_0\boost_1_49_0/boost/thread/win32/shared_mutex.hpp:95:33: war
ning: missing initializer for member 'boost::shared_mutex::state_data::exclusive
_waiting' [-Wmissing-field-initializers]
c:\deps\boost_1_49_0\boost_1_49_0/boost/thread/win32/shared_mutex.hpp:95:33: war
ning: missing initializer for member 'boost::shared_mutex::state_data::exclusive
_waiting_blocked' [-Wmissing-field-initializers]
In file included from src/netbase.h:12:0,
                 from src/util.h:31,
                 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:
src/compat.h: At global scope:
src/compat.h:29:15: error: conflicting declaration 'typedef u_int SOCKET'
c:\mingw32\bin\../lib/gcc/x86_64-w64-mingw32/4.6.2/../../../../x86_64-w64-mingw3
2/include/psdk_inc/_socket_types.h:13:18: error: 'SOCKET' has a previous declara
tion as 'typedef INT_PTR SOCKET'
In file included from c:\deps\boost_1_49_0\boost_1_49_0/boost/interprocess/error
s.hpp:37:0,
                 from c:\deps\boost_1_49_0\boost_1_49_0/boost/interprocess/excep
tions.hpp:20,
                 from c:\deps\boost_1_49_0\boost_1_49_0/boost/interprocess/share
d_memory_object.hpp:17,
                 from c:\deps\boost_1_49_0\boost_1_49_0/boost/interprocess/ipc/m
essage_queue.hpp:17,
                 from src\qt\bitcoin.cpp:23:
c:\deps\boost_1_49_0\boost_1_49_0/boost/interprocess/detail/win32_api.hpp:811:11
6: warning: declaration of 'void* boost::interprocess::winapi::CreateMutexA(boos
t::interprocess::winapi::interprocess_security_attributes*, int, const char*)' w
ith C language linkage [enabled by default]
c:\deps\boost_1_49_0\boost_1_49_0/boost/thread/win32/thread_primitives.hpp:119:5
5: warning: conflicts with previous declaration 'void* boost::detail::win32::Cre
ateMutexA(boost::detail::win32::_SECURITY_ATTRIBUTES*, int, const char*)' [enabl
ed by default]
c:\deps\boost_1_49_0\boost_1_49_0/boost/interprocess/detail/win32_api.hpp:816:12
7: warning: declaration of 'void* boost::interprocess::winapi::CreateSemaphoreA(
boost::interprocess::winapi::interprocess_security_attributes*, long int, long i
nt, const char*)' with C language linkage [enabled by default]
c:\deps\boost_1_49_0\boost_1_49_0/boost/thread/win32/thread_primitives.hpp:120:5
5: warning: conflicts with previous declaration 'void* boost::detail::win32::Cre
ateSemaphoreA(boost::detail::win32::_SECURITY_ATTRIBUTES*, long int, long int, c
onst char*)' [enabled by default]
In file included from c:\deps\boost_1_49_0\boost_1_49_0/boost/thread/shared_mute
x.hpp:14:0,
                 from c:\deps\boost_1_49_0\boost_1_49_0/boost/thread/detail/thre
ad_group.hpp:9,
                 from c:\deps\boost_1_49_0\boost_1_49_0/boost/thread/thread.hpp:
24,
                 from c:\deps\boost_1_49_0\boost_1_49_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:
c:\deps\boost_1_49_0\boost_1_49_0/boost/thread/win32/shared_mutex.hpp: In member
 function 'T boost::shared_mutex::interlocked_compare_exchange(T*, T, T) [with T
 = boost::shared_mutex::state_data]':
c:\deps\boost_1_49_0\boost_1_49_0/boost/thread/win32/shared_mutex.hpp:121:103:
 instantiated from here
c:\deps\boost_1_49_0\boost_1_49_0/boost/thread/win32/shared_mutex.hpp:50:99: war
ning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstri
ct-aliasing]
c:\deps\boost_1_49_0\boost_1_49_0/boost/thread/win32/shared_mutex.hpp:50:99: war
ning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstri
ct-aliasing]
c:\deps\boost_1_49_0\boost_1_49_0/boost/thread/win32/shared_mutex.hpp:51:52: war
ning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstri
ct-aliasing]
c:\deps\boost_1_49_0\boost_1_49_0/boost/thread/win32/shared_mutex.hpp:51:52: war
ning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstri
ct-aliasing]
c:\deps\boost_1_49_0\boost_1_49_0/boost/system/error_code.hpp: At global scope:
c:\deps\boost_1_49_0\boost_1_49_0/boost/system/error_code.hpp:214:36: warning: '
boost::system::posix_category' defined but not used [-Wunused-variable]
c:\deps\boost_1_49_0\boost_1_49_0/boost/system/error_code.hpp:215:36: warning: '
boost::system::errno_ecat' defined but not used [-Wunused-variable]
c:\deps\boost_1_49_0\boost_1_49_0/boost/system/error_code.hpp:216:36: warning: '
boost::system::native_ecat' defined but not used [-Wunused-variable]
mingw32-make: *** [build/bitcoin.o] Error 1
sr. member
Activity: 364
Merit: 250
keep my eyes!
sr. member
Activity: 336
Merit: 250
What DLL files? What cryptocurrencies?
.

Unfortunately my laptop went flying when i tripped over a cable with lp in hand.. Hd broke since it was on.. Did have spare one from other broken down laptop. So no real harm except that i lost some coins and all the work i had done on building wallets... =) So i cant say for 100% certainty anymore.
But looking at other pc. The libs it needed ere :
Code:
libgcc_s_dw2-1
libstdc++--6
libwinpthread-1

and i addd the Qtcore4, the QtGui4 and QtNetwork4 with it, since i was doing that anyways.....

So not 100% what it needd to run (v.0.4.3 coin) but definately the libwinpthread-1 (makes sense sine that was one of the hickups i had buildig wallet. (fighting between ptread declaration in util and declaration in mingw_pthread)
All in all i was just curious to what happens with the static /dynamic libs when building.... more of a lesson in c++ i guess then actually in building wallets =)

@@@ nugget
It compiles "normally", but when I run it the windows blue ring spins for a second and then... Nothing. Whatsoever. I've included the dll's from my qt 4.8.5 bin folder and Mingw bin folder, are these the right ones to use? Any other ideas???
Im definitely not a pro here.. glorified amateur at best =) If your starting on the pc you build it on, should work....since all the dll files that made it are already in place somewhere...If you switched it to other pc. then maybe its dll's.  Did you also build the daemon by any chance? kind had the same thing with my homemade project. (after i transferred it to another pc)  Windows never gave any messages. But with the daemon it started nagging about the dll files it was missing. So quick search on build pc. copied the files and it started working.. After the daemon gave ok, i switched to qt and it worked.
Also got a brain spinner... Not sure if itll do much.. but maybe try starting the qt via command window? (cmd usually states things that are wrong better then windos desktop)
full member
Activity: 326
Merit: 100
I've been tearing my hair out with this...

So painful!

It compiles "normally", but when I run it the windows blue ring spins for a second and then... Nothing. Whatsoever. I've included the dll's from my qt 4.8.5 bin folder and Mingw bin folder, are these the right ones to use? Any other ideas???

legendary
Activity: 1330
Merit: 1000
Blockchain Developer
Was able to update tekcoin to run with qt5 thanks to the guide on this thread.  Thanks nitro!
newbie
Activity: 25
Merit: 0
Also i have a question for the pro's here.
Building differnt types of wallets this past week. Moving some of them to other pc's for testing.  Some require some *.lib files to be copied along with it. Others (like bitcoin) Don't. I'm pretty sure from what i've learned this is cause of -static /dynamic (read up a little on it)

But then again. Made sure all wallets i made were basicly static. And some still require additional *dll files to be copied with m.
My question... : How come? Is this cause of the bitcoin : libpng-1.6.10/.libs/libpng.a that are inserted somehow? or is there something else i missed/ overlooked?

It's not a real problem. I'm just curious and learning.. ... so i wonder. (dont know a whole lot more c+ then what ive learned here from building wallets)

What DLL files? What cryptocurrencies?
sr. member
Activity: 336
Merit: 250
Also i have a question for the pro's here.
Building differnt types of wallets this past week. Moving some of them to other pc's for testing.  Some require some *.lib files to be copied along with it. Others (like bitcoin) Don't. I'm pretty sure from what i've learned this is cause of -static /dynamic (read up a little on it)

But then again. Made sure all wallets i made were basicly static. And some still require additional *dll files to be copied with m.
My question... : How come? Is this cause of the bitcoin : libpng-1.6.10/.libs/libpng.a that are inserted somehow? or is there something else i missed/ overlooked?

It's not a real problem. I'm just curious and learning.. ... so i wonder. (dont know a whole lot more c+ then what ive learned here from building wallets)
sr. member
Activity: 336
Merit: 250
ld.exe: cannot find -ldb_cxx

I had loads of trouble with building wallets.... First thing i wanna share Smiley  Copy paste, works in bot cmd & shell (click on top left icon and  :



After that : follow your errors down the rabithole..... (one of my nemisis's)
Code:
In file included from headers.h:97:0,
                 from auxpow.cpp:4:
util.h:674:16: error: conflicting declaration 'typedef void* pthread_t'
 typedef HANDLE pthread_t;
                ^
c:/mingw32/i686-w64-mingw32/include/pthread.h:196:19: error: 'pthread_t' has a p
revious declaration as 'typedef uintptr_t pthread_t'
 typedef uintptr_t pthread_t;
                   ^

Means :In headers.h line 97 and auxpow.cpp line 4, it calls up util.h.
And in util.h line 674 there is declaration of pthread_t  This declaration is also defined in : ming/blabla/bla/phtread.h  line 196 and thus causing a problem.
So reading the error's will allow you to locate the problem // or if you copy paste for others here to help you locate it.
sr. member
Activity: 364
Merit: 250
Quote from: KaChingCoinDev
I  think that is a Berkeley DB issue

How to resolve the issue

Make sure in .pro file that Berkeley DB is mapped correctly
sr. member
Activity: 364
Merit: 250
ld.exe: cannot find -ldb_cxx

I  think that is a Berkeley DB issue
newbie
Activity: 25
Merit: 0
Ok.  I'm officially stuck again.   Daemon compiled. Tested and working! yay! (ty) Now the Qt.
Working with 0.6.3 coin ( i know i really shouldnt =) But ive started and made it this far... Also best way to learn i think. So hope ull bear with me for little while longer....   Also studied up on litecoin-qt.pro posted here  :  https://bitcointalksearch.org/topic/m.5568805

So im pretty sure my problem is not there. whenever i try to build qt. (using 4.8.5) it stops at the *.o files.
Code:
g32 -lQtCore -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32
./build\bitcoingui.o: file not recognized: File format not recognized
collect2.exe: error: ld returned 1 exit status

Tried many different things. Including just plain copying the required o-file from a similar build. And then it accepts it. And goes to the next error :
Code:
g32 -lQtCore -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32
./build\optionsdialog.o: file not recognized: File format not recognized
collect2.exe: error: ld returned 1 exit status

Untill i run out of *.o files to copy.... (and plain copying is ofc not a solution, but helps me as means to an end to narrowing down the problem)

So is my build corrupted somehow? (daemon works) Is my Qt incompatible? Is there any way to get Qt/mingw32-make to tell me in more detail exactly what error's it encountered? Any info on how to proceed, or in witch direction to look would be much appreciated.

first off, what's up with ./build\optionsdialog.o?  i've never compiled anything in windows, so i dunno if it's supposed to look like that or not.  but shouldn't it be .\build\optionsdialog.o?

./build\whatever in a normal windows environment wouldn't work (ed: well, ./xxx would work, but it wouldn't work for a directory change, as in ./xxx\xxx)

fixed the damn slashes

I think that is a result of Linux style path naming of MSYS and Windows style recursion in the makefile (I guess). Nothing to worry about, Windows will generally accept both styles.
zvs
legendary
Activity: 1680
Merit: 1000
https://web.archive.org/web/*/nogleg.com
Ok.  I'm officially stuck again.   Daemon compiled. Tested and working! yay! (ty) Now the Qt.
Working with 0.6.3 coin ( i know i really shouldnt =) But ive started and made it this far... Also best way to learn i think. So hope ull bear with me for little while longer....   Also studied up on litecoin-qt.pro posted here  :  https://bitcointalksearch.org/topic/m.5568805

So im pretty sure my problem is not there. whenever i try to build qt. (using 4.8.5) it stops at the *.o files.
Code:
g32 -lQtCore -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32
./build\bitcoingui.o: file not recognized: File format not recognized
collect2.exe: error: ld returned 1 exit status

Tried many different things. Including just plain copying the required o-file from a similar build. And then it accepts it. And goes to the next error :
Code:
g32 -lQtCore -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32
./build\optionsdialog.o: file not recognized: File format not recognized
collect2.exe: error: ld returned 1 exit status

Untill i run out of *.o files to copy.... (and plain copying is ofc not a solution, but helps me as means to an end to narrowing down the problem)

So is my build corrupted somehow? (daemon works) Is my Qt incompatible? Is there any way to get Qt/mingw32-make to tell me in more detail exactly what error's it encountered? Any info on how to proceed, or in witch direction to look would be much appreciated.

first off, what's up with ./build\optionsdialog.o?  i've never compiled anything in windows, so i dunno if it's supposed to look like that or not.  but shouldn't it be .\build\optionsdialog.o?

./build\whatever in a normal windows environment wouldn't work (ed: well, ./xxx would work, but it wouldn't work for a directory change, as in ./xxx\xxx)

fixed the damn slashes
sr. member
Activity: 336
Merit: 250
Edit :Succes!!! Qt succesfully compiled.

So im pretty sure my problem is not there. whenever i try to build qt. (using 4.8.5) it stops at the *.o files.
Code:
g32 -lQtCore -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32
./build\bitcoingui.o: file not recognized: File format not recognized
collect2.exe: error: ld returned 1 exit status
Tried many different things. Including just plain copying the required o-file from a similar build. And then it accepts it. And goes to the next error :

Ty Zvs for resonding. It didnt have anything to do with / \ directly but it got me looking in the right direction. And as stupid as it is, I made a mayor error! Apperantly I committed to github after building qt on linux..... so the build folder was already there but not the right context, probably why the mixup with the compiler with : forward / backward \

Code:
obj/Palm_of_Hand \ 
set PATH=%PATH%;My:\ Face%
Sources += Smash.cpp
System.out.println " Doh!"


So is my build corrupted somehow? Yes it kinda was. (Linux build on windows) After that i ran into a minor hiccup. #include not found. This was a Qt-version issue. Switching to other version it went along without any errors.

So with much help from here ive managed to compile : Btc 0.9.1Daemon& Qt, Btc /Btc 0.8.6 Daemon& Qt / Namecoin 0.3.4 Daemon& QT (using the "easywinbuilder") / Asiacoin Daemon &Qt / And copyclone 0.6.3/ for me trickiest of all. So, thanks all for all your help, big one for Nitro. Im taking a little break from winbuilding with a newfound humbleness... =)
sr. member
Activity: 336
Merit: 250
Code:
                              ^
In file included from headers.h:97:0,
                 from auxpow.cpp:4:
util.h:674:16: error: conflicting declaration 'typedef void* pthread_t'
 typedef HANDLE pthread_t;
                ^
 

See: https://github.com/laanwj/bitcoin/commit/61d85071405b99c3734606eed31ea8f615c0c77a

And i was so close too. init.h i had copied from other working coin. Just the init.cpp part i missed.. lack of knowlegde...
Either way like it or not, you are officially my new :


Wink

Now on to the next part.......have a 1 on 1 brawl with Qt-creator
full member
Activity: 131
Merit: 108
Code:
                              ^
In file included from headers.h:97:0,
                 from auxpow.cpp:4:
util.h:674:16: error: conflicting declaration 'typedef void* pthread_t'
 typedef HANDLE pthread_t;
                ^
 

See: https://github.com/laanwj/bitcoin/commit/61d85071405b99c3734606eed31ea8f615c0c77a
Pages:
Jump to: