Skyripper
Jr. Member
Offline
Activity: 51
Merit: 1
|
|
August 29, 2016, 07:55:29 AM |
|
Thank you. I will try it. Let me know if you have any problems, I might remember how to fix 'em. p.s. I'll be on vacation next week, so it might be a little while before I can get back to you. Hi, Spidersbox! Welcome back from your vacation! I followed these instructions and got stuck in the last step. I have an error: ./compile-litebar.sh: line 6: i686-w64-mingw32.static-qmake-qt5: command not found make: Makefile.Release: No such file or directory make: *** No rule to make target `Makefile.Release'. Stop. export PATH=/mnt/mxe/usr/bin:$PATH - does not help. Any idea? Thanks.
|
|
|
|
Spidersbox (OP)
Legendary
Offline
Activity: 1294
Merit: 1039
|
|
August 29, 2016, 08:26:17 PM Last edit: August 29, 2016, 08:36:19 PM by Spidersbox |
|
sorry for the delay - I went to work, and they actually made me work! Anyway - below is a copy of my compile-litebar.sh #!/bin/bash export PATH=/mnt/mxe/usr/bin:$PATH MXE_INCLUDE_PATH=/mnt/mxe/usr/i686-w64-mingw32.static/include MXE_LIB_PATH=/mnt/mxe/usr/i686-w64-mingw32.static/lib
i686-w64-mingw32.static-qmake-qt4 \ BOOST_LIB_SUFFIX=-mt \ BOOST_THREAD_LIB_SUFFIX=_win32-mt \ BOOST_INCLUDE_PATH=$MXE_INCLUDE_PATH/boost \ BOOST_LIB_PATH=$MXE_LIB_PATH \ OPENSSL_INCLUDE_PATH=$MXE_INCLUDE_PATH/openssl \ OPENSSL_LIB_PATH=$MXE_LIB_PATH \ BDB_INCLUDE_PATH=$MXE_INCLUDE_PATH \ BDB_LIB_PATH=$MXE_LIB_PATH \ MINIUPNPC_INCLUDE_PATH=$MXE_INCLUDE_PATH \ MINIUPNPC_LIB_PATH=$MXE_LIB_PATH \ QMAKE_LRELEASE=/mnt/mxe/usr/i686-w64-mingw32.static/qt/bin/lrelease litebar-qt.pro
make -f Makefile.Release
I setup my build environment over a year ago and things are a little fuzzy ... Please note that I use qt4 -not qt5 and I don't remember why ... ( I assume you installed QT) Verify that your PATH env var contains the correct location for mxe export PATH=/mnt/mxe/usr/bin:$PATH I've forgotten to do the export PATH a few times and got that error, which is why I put it in the compile script
|
|
|
|
Spidersbox (OP)
Legendary
Offline
Activity: 1294
Merit: 1039
|
|
August 29, 2016, 08:44:26 PM |
|
just a little extra info: My 'normal' build is in my home directory. when I want to make a windows wallet, I copy everything to the /mnt directory like in the instructions. (Actually I push my changes to github from my home/myname/litebar directory, then pull to the /mnt/litebar directory)
I tried doing it all from the /mnt directory, but the file permissions and file owner settings didn't work well with github.
|
|
|
|
Skyripper
Jr. Member
Offline
Activity: 51
Merit: 1
|
|
August 30, 2016, 08:54:57 AM |
|
Anyway - below is a copy of my compile-litebar.sh
It helped. But during the compilation I got an error: In file included from /mnt/mxe/usr/i686-w64-mingw32.static/include/db.h:30:0, from /mnt/mxe/usr/i686-w64-mingw32.static/include/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: /mnt/mxe/usr/i686-w64-mingw32.static/include/pthread.h:196:19: error: conflicting declaration 'typedef uintptr_t pthread_t' typedef uintptr_t pthread_t; ^ In file included from src/bignum.h:13:0, from src/main.h:10, from src/wallet.h:9, from src/init.h:9, from src/qt/bitcoin.cpp:11: src/util.h:555:16: note: previous declaration as 'typedef void* pthread_t' typedef HANDLE pthread_t; ^ make: *** [build/bitcoin.o] Error 1 Can you also share a copy of your litebar-qt.pro file? Thanks.
|
|
|
|
Spidersbox (OP)
Legendary
Offline
Activity: 1294
Merit: 1039
|
|
August 30, 2016, 04:12:58 PM Last edit: August 30, 2016, 04:27:15 PM by Spidersbox |
|
/mnt/mxe/usr/i686-w64-mingw32.static/include/pthread.h:196:19: error: conflicting declaration 'typedef uintptr_t pthread_t'
Can you also share a copy of your litebar-qt.pro file? Thanks.
Oh ya, I remember that - I made a note in my mnt directory. Litebar-error.txt ERROR typedef void* pthread_t
/mnt/mxe/usr/i686-w64-mingw32.static/include/pthread.h // typedef uintptr_t pthread_t; // remark it out for litebar
litebar already uses the variable pthread_t so you have to remark out the typedef in the header file - line 196 on my system. remember to un-remark it for other coins - you will know if you have to un-remark it out when you start getting errors like pthread_t is not declared
|
|
|
|
Spidersbox (OP)
Legendary
Offline
Activity: 1294
Merit: 1039
|
|
August 30, 2016, 04:22:33 PM |
|
/mnt/mxe/usr/i686-w64-mingw32.static/include/pthread.h:196:19: error: conflicting declaration 'typedef uintptr_t pthread_t'
Can you also share a copy of your litebar-qt.pro file? Thanks.
My qt.pro file is the same as what's on github, but just in case: TEMPLATE = app TARGET =litebar-qt VERSION = 0.6.3 INCLUDEPATH += src src/json src/qt DEFINES += QT_GUI BOOST_THREAD_USE_LIB BOOST_SPIRIT_THREADSAFE #BOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN __NO_SYSTEM_INCLUDES USE_IPV6 CONFIG += no_include_pwd CONFIG += thread
#QT += dbus #QT -= dbus #QT += core gui xml #greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
# for boost 1.37, add -mt to the boost libraries # use: qmake BOOST_LIB_SUFFIX=-mt # for boost thread win32 with _win32 sufix # use: BOOST_THREAD_LIB_SUFFIX=_win32-... # or when linking against a specific BerkelyDB version: BDB_LIB_SUFFIX=-4.8
OBJECTS_DIR = build MOC_DIR = build UI_DIR = build
# use: qmake "RELEASE=1" contains(RELEASE, 1) { # Mac: compile for maximum compatibility (10.5, 32-bit) macx:QMAKE_CXXFLAGS += -mmacosx-version-min=10.5 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk macx:QMAKE_CFLAGS += -mmacosx-version-min=10.5 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk macx:QMAKE_LFLAGS += -mmacosx-version-min=10.5 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk
!windows:!macx { # Linux: static link LIBS += -Wl,-Bstatic } }
!win32 { # for extra security against potential buffer overflows: enable GCCs Stack Smashing Protection QMAKE_CXXFLAGS *= -fstack-protector-all --param ssp-buffer-size=1 QMAKE_LFLAGS *= -fstack-protector-all --param ssp-buffer-size=1 # We need to exclude this for Windows cross compile with MinGW 4.2.x, as it will result in a non-working executable! # This can be enabled for Windows, when we switch to MinGW >= 4.4.x. } # for extra security on Windows: enable ASLR and DEP via GCC linker flags win32:QMAKE_LFLAGS *= -Wl,--dynamicbase -Wl,--nxcompat
# use: qmake "USE_QRCODE=1" # libqrencode (http://fukuchi.org/works/qrencode/index.en.html) must be installed for support contains(USE_QRCODE, 1) { message(Building with QRCode support) DEFINES += USE_QRCODE LIBS += -lqrencode }
# use: qmake "USE_UPNP=1" ( enabled by default; default) # or: qmake "USE_UPNP=0" (disabled by default) # or: qmake "USE_UPNP=-" (not supported) # miniupnpc (http://miniupnp.free.fr/files/) must be installed for support contains(USE_UPNP, -) { message(Building without UPNP support) } else { message(Building with UPNP support) count(USE_UPNP, 0) { USE_UPNP=1 } DEFINES += USE_UPNP=$$USE_UPNP STATICLIB INCLUDEPATH += $$MINIUPNPC_INCLUDE_PATH LIBS += $$join(MINIUPNPC_LIB_PATH,,-L,) -lminiupnpc win32:LIBS += -liphlpapi }
# use: qmake "USE_DBUS=1" contains(USE_DBUS, 1) { message(Building with DBUS (Freedesktop notifications) support) DEFINES += USE_DBUS QT += dbus }
# use: qmake "USE_IPV6=1" ( enabled by default; default) # or: qmake "USE_IPV6=0" (disabled by default) # or: qmake "USE_IPV6=-" (not supported) contains(USE_IPV6, -) { message(Building without IPv6 support) } else { count(USE_IPV6, 0) { USE_IPV6=1 } DEFINES += USE_IPV6=$$USE_IPV6 }
contains(BITCOIN_NEED_QT_PLUGINS, 1) { DEFINES += BITCOIN_NEED_QT_PLUGINS QTPLUGIN += qcncodecs qjpcodecs qtwcodecs qkrcodecs qtaccessiblewidgets }
# regenerate src/build.h !windows|contains(USE_BUILD_INFO, 1) { genbuild.depends = FORCE genbuild.commands = cd $$PWD; /bin/sh share/genbuild.sh $$OUT_PWD/build/build.h genbuild.target = $$OUT_PWD/build/build.h PRE_TARGETDEPS += $$OUT_PWD/build/build.h QMAKE_EXTRA_TARGETS += genbuild DEFINES += HAVE_BUILD_INFO }
QMAKE_CXXFLAGS += -msse2 QMAKE_CFLAGS += -msse2 QMAKE_CXXFLAGS_WARN_ON = -fdiagnostics-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wstack-protector
# Input DEPENDPATH += src src/json src/qt HEADERS += src/qt/bitcoingui.h \ src/qt/transactiontablemodel.h \ src/qt/addresstablemodel.h \ src/qt/optionsdialog.h \ src/qt/sendcoinsdialog.h \ src/qt/addressbookpage.h \ src/qt/signverifymessagedialog.h \ src/qt/aboutdialog.h \ src/qt/editaddressdialog.h \ src/qt/bitcoinaddressvalidator.h \ src/addrman.h \ src/base58.h \ src/bignum.h \ src/checkpoints.h \ src/compat.h \ src/sync.h \ src/util.h \ src/uint256.h \ src/serialize.h \ src/strlcpy.h \ src/main.h \ src/net.h \ src/key.h \ src/db.h \ src/walletdb.h \ src/script.h \ src/init.h \ src/irc.h \ src/mruset.h \ src/json/json_spirit_writer_template.h \ src/json/json_spirit_writer.h \ src/json/json_spirit_value.h \ src/json/json_spirit_utils.h \ src/json/json_spirit_stream_reader.h \ src/json/json_spirit_reader_template.h \ src/json/json_spirit_reader.h \ src/json/json_spirit_error_position.h \ src/json/json_spirit.h \ src/qt/clientmodel.h \ src/qt/guiutil.h \ src/qt/transactionrecord.h \ src/qt/guiconstants.h \ src/qt/optionsmodel.h \ src/qt/monitoreddatamapper.h \ src/qt/transactiondesc.h \ src/qt/transactiondescdialog.h \ src/qt/bitcoinamountfield.h \ src/wallet.h \ src/keystore.h \ src/qt/transactionfilterproxy.h \ src/qt/transactionview.h \ src/qt/walletmodel.h \ src/bitcoinrpc.h \ src/qt/overviewpage.h \ src/qt/csvmodelwriter.h \ src/crypter.h \ src/qt/sendcoinsentry.h \ src/qt/qvalidatedlineedit.h \ src/qt/bitcoinunits.h \ src/qt/qvaluecombobox.h \ src/qt/askpassphrasedialog.h \ src/protocol.h \ src/qt/notificator.h \ src/qt/qtipcserver.h \ src/allocators.h \ src/ui_interface.h \ src/scrypt.h \ src/qt/miningpage.h \ src/version.h \ src/qt/rpcconsole.h \ src/clientversion.h
SOURCES += src/qt/bitcoin.cpp src/qt/bitcoingui.cpp \ src/qt/transactiontablemodel.cpp \ src/qt/addresstablemodel.cpp \ src/qt/optionsdialog.cpp \ src/qt/sendcoinsdialog.cpp \ src/qt/addressbookpage.cpp \ src/qt/signverifymessagedialog.cpp \ src/qt/aboutdialog.cpp \ src/qt/editaddressdialog.cpp \ src/qt/bitcoinaddressvalidator.cpp \ src/version.cpp \ src/sync.cpp \ src/util.cpp \ src/netbase.cpp \ src/key.cpp \ src/script.cpp \ src/main.cpp \ src/init.cpp \ src/net.cpp \ src/irc.cpp \ src/checkpoints.cpp \ src/addrman.cpp \ src/db.cpp \ src/walletdb.cpp \ src/json/json_spirit_writer.cpp \ src/json/json_spirit_value.cpp \ src/json/json_spirit_reader.cpp \ src/qt/clientmodel.cpp \ src/qt/guiutil.cpp \ src/qt/transactionrecord.cpp \ src/qt/optionsmodel.cpp \ src/qt/monitoreddatamapper.cpp \ src/qt/transactiondesc.cpp \ src/qt/transactiondescdialog.cpp \ src/qt/bitcoinstrings.cpp \ src/qt/bitcoinamountfield.cpp \ src/wallet.cpp \ src/keystore.cpp \ src/qt/transactionfilterproxy.cpp \ src/qt/transactionview.cpp \ src/qt/walletmodel.cpp \ src/bitcoinrpc.cpp \ src/rpcdump.cpp \ src/rpcnet.cpp \ src/rpcrawtransaction.cpp \ src/qt/overviewpage.cpp \ src/qt/csvmodelwriter.cpp \ src/crypter.cpp \ src/qt/sendcoinsentry.cpp \ src/qt/qvalidatedlineedit.cpp \ src/qt/bitcoinunits.cpp \ src/qt/qvaluecombobox.cpp \ src/qt/askpassphrasedialog.cpp \ src/protocol.cpp \ src/qt/notificator.cpp \ src/qt/qtipcserver.cpp \ src/qt/rpcconsole.cpp \ src/scrypt.c \ src/qt/miningpage.cpp \ src/noui.cpp
RESOURCES += \ src/qt/bitcoin.qrc
FORMS += \ src/qt/forms/sendcoinsdialog.ui \ src/qt/forms/addressbookpage.ui \ src/qt/forms/signverifymessagedialog.ui \ src/qt/forms/aboutdialog.ui \ src/qt/forms/editaddressdialog.ui \ src/qt/forms/transactiondescdialog.ui \ src/qt/forms/overviewpage.ui \ src/qt/forms/sendcoinsentry.ui \ src/qt/forms/askpassphrasedialog.ui \ src/qt/forms/rpcconsole.ui \ src/qt/forms/miningpage.ui \ src/qt/forms/optionsdialog.ui
contains(USE_QRCODE, 1) { HEADERS += src/qt/qrcodedialog.h SOURCES += src/qt/qrcodedialog.cpp FORMS += src/qt/forms/qrcodedialog.ui }
contains(BITCOIN_QT_TEST, 1) { SOURCES += src/qt/test/test_main.cpp \ src/qt/test/uritests.cpp HEADERS += src/qt/test/uritests.h DEPENDPATH += src/qt/test QT += testlib TARGET = bitcoin-qt_test DEFINES += BITCOIN_QT_TEST }
CODECFORTR = UTF-8
# for lrelease/lupdate # also add new translations to src/qt/bitcoin.qrc under translations/ TRANSLATIONS = $$files(src/qt/locale/bitcoin_*.ts)
isEmpty(QMAKE_LRELEASE) { win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\\lrelease.exe else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease } isEmpty(QM_DIR):QM_DIR = $$PWD/src/qt/locale # automatically build translations, so they can be included in resource file TSQM.name = lrelease ${QMAKE_FILE_IN} TSQM.input = TRANSLATIONS TSQM.output = $$QM_DIR/${QMAKE_FILE_BASE}.qm TSQM.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_OUT} TSQM.CONFIG = no_link QMAKE_EXTRA_COMPILERS += TSQM
# "Other files" to show in Qt Creator OTHER_FILES += \ contrib/gitian-descriptors/* doc/*.rst doc/*.txt doc/README README.md res/bitcoin-qt.rc \ share/setup.nsi
# platform specific defaults, if not overridden on command line isEmpty(BOOST_LIB_SUFFIX) { macx:BOOST_LIB_SUFFIX = -mt windows:BOOST_LIB_SUFFIX = }
isEmpty(BOOST_THREAD_LIB_SUFFIX) { BOOST_THREAD_LIB_SUFFIX = $$BOOST_LIB_SUFFIX }
isEmpty(BDB_LIB_PATH) { macx:BDB_LIB_PATH = /opt/local/lib/db48 }
isEmpty(BDB_LIB_SUFFIX) { macx:BDB_LIB_SUFFIX = -4.8 }
isEmpty(BDB_INCLUDE_PATH) { macx:BDB_INCLUDE_PATH = /opt/local/include/db48 }
isEmpty(BOOST_LIB_PATH) { macx:BOOST_LIB_PATH = /opt/local/lib }
isEmpty(BOOST_INCLUDE_PATH) { macx:BOOST_INCLUDE_PATH = /opt/local/include }
windows:LIBS += -lws2_32 -lshlwapi -lmswsock windows:DEFINES += WIN32 windows:RC_FILE = src/qt/res/bitcoin-qt.rc
windows:!contains(MINGW_THREAD_BUGFIX, 0) { # At least qmake's win32-g++-cross profile is missing the -lmingwthrd # thread-safety flag. GCC has -mthreads to enable this, but it doesn't # work with static linking. -lmingwthrd must come BEFORE -lmingw, so # it is prepended to QMAKE_LIBS_QT_ENTRY. # It can be turned off with MINGW_THREAD_BUGFIX=0, just in case it causes # any problems on some untested qmake profile now or in the future. DEFINES += _MT QMAKE_LIBS_QT_ENTRY = -lmingwthrd $$QMAKE_LIBS_QT_ENTRY }
!windows:!mac { DEFINES += LINUX LIBS += -lrt }
macx:HEADERS += src/qt/macdockiconhandler.h macx:OBJECTIVE_SOURCES += src/qt/macdockiconhandler.mm macx:LIBS += -framework Foundation -framework ApplicationServices -framework AppKit macx:DEFINES += MAC_OSX MSG_NOSIGNAL=0 macx:ICON = src/qt/res/icons/bitcoin.icns macx:TARGET = "LiteBar-Qt" macx:QMAKE_CFLAGS_THREAD += -pthread macx:QMAKE_LFLAGS_THREAD += -pthread macx:QMAKE_CXXFLAGS_THREAD += -pthread
# Set libraries and includes at end, to use platform-defined defaults if not overridden INCLUDEPATH += $$BOOST_INCLUDE_PATH $$BDB_INCLUDE_PATH $$OPENSSL_INCLUDE_PATH $$QRENCODE_INCLUDE_PATH LIBS += $$join(BOOST_LIB_PATH,,-L,) $$join(BDB_LIB_PATH,,-L,) $$join(OPENSSL_LIB_PATH,,-L,) $$join(QRENCODE_LIB_PATH,,-L,) LIBS += -lssl -lcrypto -ldb_cxx$$BDB_LIB_SUFFIX # -lgdi32 has to happen after -lcrypto (see #681) windows:LIBS += -lws2_32 -lshlwapi -lmswsock -lole32 -loleaut32 -luuid -lgdi32 LIBS += -lboost_system$$BOOST_LIB_SUFFIX -lboost_filesystem$$BOOST_LIB_SUFFIX -lboost_program_options$$BOOST_LIB_SUFFIX -lboost_thread$$BOOST_THREAD_LIB_SUFFIX windows:LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX
contains(RELEASE, 1) { !windows:!macx { # Linux: turn dynamic linking back on for c/c++ runtime libraries LIBS += -Wl,-Bdynamic } }
system($$QMAKE_LRELEASE -silent $$_PRO_FILE_)
|
|
|
|
Skyripper
Jr. Member
Offline
Activity: 51
Merit: 1
|
|
August 30, 2016, 06:53:56 PM |
|
/mnt/mxe/usr/i686-w64-mingw32.static/include/pthread.h // typedef uintptr_t pthread_t; // remark it out for litebar And finally, I did it! Thank you very much, Spidersbox, you helped me a lot.
|
|
|
|
Spidersbox (OP)
Legendary
Offline
Activity: 1294
Merit: 1039
|
|
August 30, 2016, 07:23:14 PM |
|
/mnt/mxe/usr/i686-w64-mingw32.static/include/pthread.h // typedef uintptr_t pthread_t; // remark it out for litebar And finally, I did it! Thank you very much, Spidersbox, you helped me a lot. glad to help - it wasn't that long ago when I was pulling my hair out trying to figure it out. several hours of searching the web, and trial and error
|
|
|
|
Skyripper
Jr. Member
Offline
Activity: 51
Merit: 1
|
|
September 05, 2016, 06:35:27 PM |
|
glad to help - it wasn't that long ago when I was pulling my hair out trying to figure it out. several hours of searching the web, and trial and error Hi, Spidersbox! What about the litebar daemon for Windows, is there also a script for it compilation?
|
|
|
|
Spidersbox (OP)
Legendary
Offline
Activity: 1294
Merit: 1039
|
|
September 05, 2016, 07:26:07 PM |
|
glad to help - it wasn't that long ago when I was pulling my hair out trying to figure it out. several hours of searching the web, and trial and error Hi, Spidersbox! What about the litebar daemon for Windows, is there also a script for it compilation? I never tried making a litebard for windows, it's on my loooong list of things to look into, down around the bottom of the list If you figure it out, let me know too!
|
|
|
|
Skyripper
Jr. Member
Offline
Activity: 51
Merit: 1
|
|
September 05, 2016, 07:36:56 PM |
|
I never tried making a litebard for windows, it's on my loooong list of things to look into, down around the bottom of the list If you figure it out, let me know too! Deal! I will try.
|
|
|
|
DigitalCurrencyConsultant
|
|
September 10, 2016, 03:17:16 AM Last edit: May 02, 2017, 09:01:20 AM by DigitalCurrencyConsultant |
|
|
coingeckoon the moon yet?[/center] This space for rent.
|
|
|
Spidersbox (OP)
Legendary
Offline
Activity: 1294
Merit: 1039
|
|
September 10, 2016, 03:35:51 AM |
|
Yes it is. I have buy and sell orders just sitting there waiting
|
|
|
|
Spidersbox (OP)
Legendary
Offline
Activity: 1294
Merit: 1039
|
|
October 04, 2016, 03:27:40 AM |
|
wow, somebody drove the difficulty up past 55, with a reported 20 Gh/s Hope they transfer their litebars before they stop mining, 'cause the chain is going to stop dead for a while ...
|
|
|
|
|
Spidersbox (OP)
Legendary
Offline
Activity: 1294
Merit: 1039
|
|
October 09, 2016, 08:55:41 PM |
|
Not really sure why. Cryptsy's crash and burn probably had something to do with it, along with Litebar going a while without a dev. I think most people are just mining and holding Litebar. Me - I've been mining and buying Litebar while the prices are low.
|
|
|
|
amount99
|
|
October 09, 2016, 09:19:40 PM |
|
it should be in question??? limited supply price 1k
|
|
|
|
Spidersbox (OP)
Legendary
Offline
Activity: 1294
Merit: 1039
|
|
October 14, 2016, 02:01:37 AM |
|
Litebar now has a tipping slot for one month at Cryptopia.
|
|
|
|
|
starblocks
|
|
March 05, 2017, 01:16:43 PM |
|
Wow this is an old one!
|
|
|
|
|