Pieter Wuille
|
|
April 29, 2013, 02:53:29 PM |
|
Feel free to submit a pull request to replace build-msw.txt with this!
|
I do Bitcoin stuff.
|
|
|
AlexMerced
|
|
April 29, 2013, 03:02:51 PM |
|
thanks, I'll play with that, I want to get gitian builder setup in my VMbox but I'm not sure how to install it from the source (I assume you compile, but as you can see I'm learning about compiling at the moment making it hard for me to install gitian)
gitian is pretty easy. it sets up the vm, installs all the packages needed for compilation, and compiles it. It's all done inside a vm with scripts (included with bitcoin), so it's actually easier than compiling using your own tools. agreed, my issue is more getting gitian setup, the link I find is source code from github but what to do with it after I download it I'm kind of at a loss
|
|
|
|
grue
Legendary
Offline
Activity: 2058
Merit: 1452
|
|
April 30, 2013, 03:36:31 PM |
|
thanks, I'll play with that, I want to get gitian builder setup in my VMbox but I'm not sure how to install it from the source (I assume you compile, but as you can see I'm learning about compiling at the moment making it hard for me to install gitian)
gitian is pretty easy. it sets up the vm, installs all the packages needed for compilation, and compiles it. It's all done inside a vm with scripts (included with bitcoin), so it's actually easier than compiling using your own tools. agreed, my issue is more getting gitian setup, the link I find is source code from github but what to do with it after I download it I'm kind of at a loss 1. open up terminal in ubuntu 2. sudo apt-get install git apache2 apt-cacher-ng python-vm-builder ruby qemu-kvm 3. git clone https://github.com/devrandom/gitian-builder.git4. cd gitian-builder 5. bin/make-base-vm 6. bin/make-base-vm --arch i386 7. follow the instructions in the script i linked earlier.
|
|
|
|
AlexMerced
|
|
April 30, 2013, 04:07:52 PM |
|
thanks, I'll play with that, I want to get gitian builder setup in my VMbox but I'm not sure how to install it from the source (I assume you compile, but as you can see I'm learning about compiling at the moment making it hard for me to install gitian)
gitian is pretty easy. it sets up the vm, installs all the packages needed for compilation, and compiles it. It's all done inside a vm with scripts (included with bitcoin), so it's actually easier than compiling using your own tools. agreed, my issue is more getting gitian setup, the link I find is source code from github but what to do with it after I download it I'm kind of at a loss 1. open up terminal in ubuntu 2. sudo apt-get install git apache2 apt-cacher-ng python-vm-builder ruby qemu-kvm 3. git clone https://github.com/devrandom/gitian-builder.git4. cd gitian-builder 5. bin/make-base-vm 6. bin/make-base-vm --arch i386 7. follow the instructions in the script i linked earlier. Super thanks that what I needed, a step by step, much appreciated
|
|
|
|
wiggi
|
|
May 01, 2013, 05:40:49 PM |
|
There's a strange little quirk when Bitcoin-qt is built on Windows (7, 64bit, new VirtualBox installation) with Qt4.8.4.
If Qt4.8.4 is uninstalled (or on a different PC) the update spinner in the lower right corner (update_spinner.mng) is no longer displayed. It's back after (re)installing Qt4.8.4.
All the DLLs in the Qt subfolders don't make a difference. (if copied to bitcoin-qt folder) Same for libmng.dll (not even included in Qt\4.8.4\src\3rdparty\libmng). Qt4.8.4 installer unpacks files mostly in the Qt\4.8.4 folder, except a few links. Does it secretly install codecs, and which?
|
|
|
|
AlexMerced
|
|
May 03, 2013, 01:29:18 AM |
|
thanks, I'll play with that, I want to get gitian builder setup in my VMbox but I'm not sure how to install it from the source (I assume you compile, but as you can see I'm learning about compiling at the moment making it hard for me to install gitian)
gitian is pretty easy. it sets up the vm, installs all the packages needed for compilation, and compiles it. It's all done inside a vm with scripts (included with bitcoin), so it's actually easier than compiling using your own tools. agreed, my issue is more getting gitian setup, the link I find is source code from github but what to do with it after I download it I'm kind of at a loss 1. open up terminal in ubuntu 2. sudo apt-get install git apache2 apt-cacher-ng python-vm-builder ruby qemu-kvm 3. git clone https://github.com/devrandom/gitian-builder.git4. cd gitian-builder 5. bin/make-base-vm 6. bin/make-base-vm --arch i386 7. follow the instructions in the script i linked earlier. I followed these instruction, not sure where to find the software after it's installed, where did gitian go, I tried putt gitian-builder into the run box but it didn't work.
|
|
|
|
|
Petr1fied
|
|
May 09, 2013, 09:37:13 PM |
|
OK I'm totally stumped. Building the daemon works fine but I can't for the life of me get the wallet to compile with Litecoin no matter what I try. Upon using this command: qmake "USE_UPNP=-" bitcoin-qt.pro I get the following output: Project MESSAGE: Building without UPNP support The directory name is invalid. Could not find qmake configuration fileProject MESSAGE: Building with UPNP suppo rtRemoved plural forms as the target language has less forms. If this sounds wrong, possibly the target language is not set or recognized. Project MESSAGE: Building without UPNP support The directory name is invalid. Could not find qmake configuration fileProject MESSAGE: Building with UPNP suppo rtRemoved plural forms as the target language has less forms. If this sounds wrong, possibly the target language is not set or recognized. Project MESSAGE: Building without UPNP support The directory name is invalid. Could not find qmake configuration fileProject MESSAGE: Building with UPNP suppo rtRemoved plural forms as the target language has less forms. If this sounds wrong, possibly the target language is not set or recognized. If I then attempt to use the makefile that was generated with this command: mingw32-make -f Makefile.Release
I get this output: 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 -DUSE_IPV6 -D WIN32 -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 -D QT_NEEDS_QMAIN -I"..\Qt\4.8.4\include\QtCore" -I"..\Qt\4.8.4\include\QtGui" -I". .\Qt\4.8.4\include" -I"src" -I"src\json" -I"src\qt" -I"..\deps\boost_1_53_0" -I" ..\deps\db-4.8.30.NC\build_unix" -I"..\deps\openssl-1.0.1e\include" -I"..\Qt\4.8 .4\include\ActiveQt" -I"build" -I"build" -I"..\Qt\4.8.4\mkspecs\win32-g++" -o bu ild\bitcoin.o src\qt\bitcoin.cpp In file included from ..\deps\boost_1_53_0/boost/thread/shared_mutex.hpp:18:0, from ..\deps\boost_1_53_0/boost/thread/detail/thread_group.hpp: 9, from ..\deps\boost_1_53_0/boost/thread/thread.hpp:26, from ..\deps\boost_1_53_0/boost/thread.hpp:13, from src/util.h:22, from src/bignum.h:13, from src/main.h:10, from src/wallet.h:9, from src/init.h:9, from src\qt\bitcoin.cpp:11: ..\deps\boost_1_53_0/boost/thread/win32/shared_mutex.hpp: In constructor 'boost: :shared_mutex::shared_mutex()': ..\deps\boost_1_53_0/boost/thread/win32/shared_mutex.hpp:98:33: warning: missing initializer for member 'boost::shared_mutex::state_data::shared_waiting' [-Wmis sing-field-initializers] ..\deps\boost_1_53_0/boost/thread/win32/shared_mutex.hpp:98:33: warning: missing initializer for member 'boost::shared_mutex::state_data::exclusive' [-Wmissing- field-initializers] ..\deps\boost_1_53_0/boost/thread/win32/shared_mutex.hpp:98:33: warning: missing initializer for member 'boost::shared_mutex::state_data::upgrade' [-Wmissing-fi eld-initializers] ..\deps\boost_1_53_0/boost/thread/win32/shared_mutex.hpp:98:33: warning: missing initializer for member 'boost::shared_mutex::state_data::exclusive_waiting' [-W missing-field-initializers] ..\deps\boost_1_53_0/boost/thread/win32/shared_mutex.hpp:98:33: warning: missing initializer for member 'boost::shared_mutex::state_data::exclusive_waiting_bloc ked' [-Wmissing-field-initializers] In file included from ..\deps\db-4.8.30.NC\build_unix/db.h:30:0, from ..\deps\db-4.8.30.NC\build_unix/db_cxx.h:64, from src/db.h:15, from src/main.h:14, 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 ..\deps\boost_1_53_0/boost/interprocess/errors.hpp:37:0, from ..\deps\boost_1_53_0/boost/interprocess/exceptions.hpp:20,
from ..\deps\boost_1_53_0/boost/interprocess/shared_memory_obje ct.hpp:17, from ..\deps\boost_1_53_0/boost/interprocess/ipc/message_queue. hpp:17, from src\qt\bitcoin.cpp:23: ..\deps\boost_1_53_0/boost/interprocess/detail/win32_api.hpp:861:116: warning: d eclaration of 'void* boost::interprocess::winapi::CreateMutexA(boost::interproce ss::winapi::interprocess_security_attributes*, int, const char*)' with C languag e linkage [enabled by default] ..\deps\boost_1_53_0/boost/thread/win32/thread_primitives.hpp:119:55: warning: c onflicts with previous declaration 'void* boost::detail::win32::CreateMutexA(boo st::detail::win32::_SECURITY_ATTRIBUTES*, int, const char*)' [enabled by default ] ..\deps\boost_1_53_0/boost/interprocess/detail/win32_api.hpp:866:127: warning: d eclaration of 'void* boost::interprocess::winapi::CreateSemaphoreA(boost::interp rocess::winapi::interprocess_security_attributes*, long int, long int, const cha r*)' with C language linkage [enabled by default] ..\deps\boost_1_53_0/boost/thread/win32/thread_primitives.hpp:120:55: warning: c onflicts with previous declaration 'void* boost::detail::win32::CreateSemaphoreA (boost::detail::win32::_SECURITY_ATTRIBUTES*, long int, long int, const char*)' [enabled by default] In file included from ..\deps\boost_1_53_0/boost/thread/shared_mutex.hpp:18:0, from ..\deps\boost_1_53_0/boost/thread/detail/thread_group.hpp: 9, from ..\deps\boost_1_53_0/boost/thread/thread.hpp:26, from ..\deps\boost_1_53_0/boost/thread.hpp:13, from src/util.h:22, from src/bignum.h:13, from src/main.h:10, from src/wallet.h:9, from src/init.h:9, from src\qt\bitcoin.cpp:11: ..\deps\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::sha red_mutex::state_data]': ..\deps\boost_1_53_0/boost/thread/win32/shared_mutex.hpp:124:103: instantiated from here ..\deps\boost_1_53_0/boost/thread/win32/shared_mutex.hpp:52:99: warning: derefer encing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] ..\deps\boost_1_53_0/boost/thread/win32/shared_mutex.hpp:52:99: warning: derefer encing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] ..\deps\boost_1_53_0/boost/thread/win32/shared_mutex.hpp:53:52: warning: derefer encing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] ..\deps\boost_1_53_0/boost/thread/win32/shared_mutex.hpp:53:52: warning: derefer encing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] In file included from ..\deps\boost_1_53_0/boost/interprocess/detail/windows_int ermodule_singleton.hpp:26:0, from ..\deps\boost_1_53_0/boost/interprocess/detail/tmp_dir_hel pers.hpp:22, from ..\deps\boost_1_53_0/boost/interprocess/shared_memory_obje ct.hpp:22, from ..\deps\boost_1_53_0/boost/interprocess/ipc/message_queue. hpp:17, from src\qt\bitcoin.cpp:23: ..\deps\boost_1_53_0/boost/interprocess/detail/intermodule_singleton_common.hpp: In static member function 'static ThreadSafeGlobalMap& boost::interprocess::ipc detail::intermodule_singleton_common<ThreadSafeGlobalMap>::get_map() [with Threa dSafeGlobalMap = boost::interprocess::ipcdetail::intermodule_singleton_helpers:: windows_semaphore_based_map]': ..\deps\boost_1_53_0/boost/interprocess/detail/intermodule_singleton_common.hpp: 125:49: instantiated from 'static void boost::interprocess::ipcdetail::intermo dule_singleton_common<ThreadSafeGlobalMap>::initialize_singleton_logic(void*&, v olatile uint32_t&, void* (*)(ThreadSafeGlobalMap&), bool) [with ThreadSafeGlobal Map = boost::interprocess::ipcdetail::intermodule_singleton_helpers::windows_sem aphore_based_map, uint32_t = unsigned int, boost::interprocess::ipcdetail::inter module_singleton_common<ThreadSafeGlobalMap>::singleton_constructor_t = void*(bo ost::interprocess::ipcdetail::intermodule_singleton_helpers::windows_semaphore_b ased_map&)]' ..\deps\boost_1_53_0/boost/interprocess/detail/intermodule_singleton_common.hpp: 333:7: instantiated from 'static void boost::interprocess::ipcdetail::intermod ule_singleton_impl<C, LazyInit, Phoenix, ThreadSafeGlobalMap>::atentry_work() [w ith C = boost::interprocess::ipcdetail::windows_bootstamp, bool LazyInit = true, bool Phoenix = true, ThreadSafeGlobalMap = boost::interprocess::ipcdetail::inte rmodule_singleton_helpers::windows_semaphore_based_map]' ..\deps\boost_1_53_0/boost/interprocess/detail/intermodule_singleton_common.hpp: 323:13: instantiated from 'static C& boost::interprocess::ipcdetail::intermodu le_singleton_impl<C, LazyInit, Phoenix, ThreadSafeGlobalMap>::get() [with C = bo ost::interprocess::ipcdetail::windows_bootstamp, bool LazyInit = true, bool Phoe nix = true, ThreadSafeGlobalMap = boost::interprocess::ipcdetail::intermodule_si ngleton_helpers::windows_semaphore_based_map]' ..\deps\boost_1_53_0/boost/interprocess/detail/tmp_dir_helpers.hpp:45:97: inst antiated from here ..\deps\boost_1_53_0/boost/interprocess/detail/intermodule_singleton_common.hpp: 203:93: warning: dereferencing type-punned pointer will break strict-aliasing ru les [-Wstrict-aliasing] ..\deps\boost_1_53_0/boost/system/error_code.hpp: At global scope: ..\deps\boost_1_53_0/boost/system/error_code.hpp:214:36: warning: 'boost::system ::posix_category' defined but not used [-Wunused-variable] ..\deps\boost_1_53_0/boost/system/error_code.hpp:215:36: warning: 'boost::system ::errno_ecat' defined but not used [-Wunused-variable] ..\deps\boost_1_53_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 Anyone have any ideas.
|
|
|
|
grue
Legendary
Offline
Activity: 2058
Merit: 1452
|
|
May 09, 2013, 10:17:16 PM |
|
I followed these instruction, not sure where to find the software after it's installed, where did gitian go, I tried putt gitian-builder into the run box but it didn't work.
if the build succeeds, the files are in bitcoin-release
|
|
|
|
truckythin
|
|
May 14, 2013, 09:42:12 AM |
|
hi nitro, Thanks for great tutorial and it help me alot. When trying to build latest bitcoind, i got some error at step 3.3 when run mingw32-make -f makefile.mingw it run in couple minutes and throw this error c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe: cannot fin d -lboost_system-mgw46-mt-sd-1_53 c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe: cannot fin d -lboost_filesystem-mgw46-mt-sd-1_53 c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe: cannot fin d -lboost_program_options-mgw46-mt-sd-1_53 c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe: cannot fin d -lboost_thread-mgw46-mt-sd-1_53 c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe: cannot fin d -lboost_chrono-mgw46-mt-sd-1_53 collect2.exe: error: ld returned 1 exit status makefile.mingw:127: recipe for target 'bitcoind.exe' failed mingw32-make: *** [bitcoind.exe] Error 1 Any suggestions?
|
|
|
|
truckythin
|
|
May 14, 2013, 10:02:05 AM |
|
fixed myself by change the BOOST_SUFFIX?=-mgw47-mt-sd-1_53
thanks anyway
|
|
|
|
old c coder
|
|
May 14, 2013, 12:55:54 PM |
|
OK I'm totally stumped. Building the daemon works fine but I can't for the life of me get the wallet to compile with Litecoin no matter what I try. Upon using this command: qmake "USE_UPNP=-" bitcoin-qt.pro I get the following output: Project MESSAGE: Building without UPNP support The directory name is invalid. Could not find qmake configuration fileProject MESSAGE: Building with UPNP suppo rtRemoved plural forms as the target language has less forms. If this sounds wrong, possibly the target language is not set or recognized. Project MESSAGE: Building without UPNP support The directory name is invalid. Could not find qmake configuration fileProject MESSAGE: Building with UPNP suppo rtRemoved plural forms as the target language has less forms. If this sounds wrong, possibly the target language is not set or recognized. Project MESSAGE: Building without UPNP support The directory name is invalid. Could not find qmake configuration fileProject MESSAGE: Building with UPNP suppo rtRemoved plural forms as the target language has less forms. If this sounds wrong, possibly the target language is not set or recognized. If I then attempt to use the makefile that was generated with this command: ... Anyone have any ideas. Hello Perhaps you meant "... the wallet to compile with bitcoin-qt..." not litecoin? Anyway, I believe I installed Qt 4.8.4 correctly, according to step 4 from nitrogenetics from March 05, 2013, 06:26:41 PM post And I get a very similar set of messages to yours! It seems that qmake is sensitive to the formatting of the layout in bitcoin-qt.pro since I reformatted it a little and was able to get other error messages. And I did run qtvars.bat to set up qt environment variables, ran configure, chose open source all seemed OK. Assistant, designer and demo run OK on my win XT Pro SP2 system. Ron I can’t say I was ever lost, but I was bewildered once for three days. Daniel Boone (1734-1820)
|
LTC: LUYiMVsrFQewUSPDasSKGzhyTPAkiTeSov BTC: 1DPvP6WoZzaNQ9Nxzd64hjYad1kyQzTTbx YAC: Y3ZggXDvnRJaRwtVGyGJwt6DMLN3EPQpQf The day is coming when a single carrot, freshly observed, will set off a revolution. Paul Cezanne
|
|
|
truckythin
|
|
May 14, 2013, 02:33:52 PM |
|
trying to compile the litecoin as a practice, got this error util.h:555:16: error: 'pthread_t' has a previous declaration as 'typedef void* p thread_t' any help would be appreciated. Thanks
|
|
|
|
Petr1fied
|
|
May 14, 2013, 03:26:34 PM |
|
trying to compile the litecoin as a practice, got this error util.h:555:16: error: 'pthread_t' has a previous declaration as 'typedef void* p thread_t' any help would be appreciated. Thanks In src/makefile.mingw find this: DEFS=-DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6 Add this to the line:
|
|
|
|
truckythin
|
|
May 14, 2013, 05:17:28 PM |
|
thanks peter, that's work for me now. successful compile the deamon, but still getting some errors when compiling the qt part "undefine d reference to `shutdown@8'"
do you have any idea with this? Thanks for any help
|
|
|
|
Petr1fied
|
|
May 14, 2013, 05:28:32 PM |
|
No idea with the qt. I can't figure out why I can't compile it myself.
|
|
|
|
truckythin
|
|
May 14, 2013, 05:57:07 PM |
|
No idea with the qt. I can't figure out why I can't compile it myself. Peter, thanks anyway
|
|
|
|
megablue
|
|
May 14, 2013, 10:53:11 PM |
|
I did everything exactly as the guide said, it did compile... however the qt client just run for a few seconds (without any interface shown) and disappear silently from the process list. Any idea what went wrong?
|
LTC: LQx367oQtbwsc7Ygf9S1B6E1d9LuGk7v11
|
|
|
truckythin
|
|
May 15, 2013, 08:15:24 AM |
|
I did everything exactly as the guide said, it did compile... however the qt client just run for a few seconds (without any interface shown) and disappear silently from the process list. Any idea what went wrong?
i got same issue
|
|
|
|
old c coder
|
|
May 15, 2013, 01:01:33 PM |
|
I did everything exactly as the guide said, it did compile... however the qt client just run for a few seconds (without any interface shown) and disappear silently from the process list. Any idea what went wrong?
maybe you have another version of bitcoind running? Or it thinks you do, via the .lock file, etc. Ron
|
LTC: LUYiMVsrFQewUSPDasSKGzhyTPAkiTeSov BTC: 1DPvP6WoZzaNQ9Nxzd64hjYad1kyQzTTbx YAC: Y3ZggXDvnRJaRwtVGyGJwt6DMLN3EPQpQf The day is coming when a single carrot, freshly observed, will set off a revolution. Paul Cezanne
|
|
|
|