Pages:
Author

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

sr. member
Activity: 473
Merit: 250
"Proof-of-Asset Protocol"
"You should build leveldb and comment out genleveldb command in your .pro file before compiling."


comment out genleveldb command - CONFIRMED

build leveldb - How to confirm?
just ran again...
Code:

XXX@PC /C/bitcoin-0.8.6/src/leveldb
$ TARGET_OS=NATIVE_WINDOWS make libleveldb.a libmemenv.a
make: `libleveldb.a' is up to date.
make: `libmemenv.a' is up to date.




FILE: bitcoin-qt.pro
Code:

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TEMPLATE = app
TARGET = bitcoin-qt
macx:TARGET = "bitcoin-Qt"
VERSION = 0.8.6.1
INCLUDEPATH += src src/json src/qt
QT += core gui network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
DEFINES += QT_GUI BOOST_THREAD_USE_LIB BOOST_SPIRIT_THREADSAFE
CONFIG += no_include_pwd
CONFIG += thread
CONFIG += static

# 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

# Dependency library locations can be customized with:
#    BOOST_INCLUDE_PATH, BOOST_LIB_PATH, BDB_INCLUDE_PATH,
#    BDB_LIB_PATH, OPENSSL_INCLUDE_PATH and OPENSSL_LIB_PATH respectively
BOOST_LIB_SUFFIX=-mgw48-mt-s-1_55
BOOST_INCLUDE_PATH=C:/deps/boost_1_55_0
BOOST_LIB_PATH=C:/deps/boost_1_55_0/stage/lib
BDB_INCLUDE_PATH=C:/deps/db-4.8.30.NC/build_unix
BDB_LIB_PATH=C:/deps/db-4.8.30.NC/build_unix
OPENSSL_INCLUDE_PATH=C:/deps/openssl-1.0.1e/include
OPENSSL_LIB_PATH=C:/deps/openssl-1.0.1e
MINIUPNPC_INCLUDE_PATH=C:/deps/
MINIUPNPC_LIB_PATH=C:/deps/miniupnpc

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_OBJECTIVE_CFLAGS += -mmacosx-version-min=10.5 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk

    !win32:!macx {
        # Linux: static link and extra security (see: https://wiki.debian.org/Hardening)
        LIBS += -Wl,-Bstatic -Wl,-z,relro -Wl,-z,now
    }
}

!win32 {
    # for extra security against potential buffer overflows: enable GCCs Stack Smashing Protection
    QMAKE_CXXFLAGS *= -fstack-protector-all
    QMAKE_LFLAGS *= -fstack-protector-all
    # Exclude on 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 (see: https://wiki.debian.org/Hardening): this flag is GCC compiler-specific
QMAKE_CXXFLAGS *= -D_FORTIFY_SOURCE=2
# for extra security on Windows: enable ASLR and DEP via GCC linker flags
win32:QMAKE_LFLAGS *= -Wl,--dynamicbase -Wl,--nxcompat
# on Windows: enable GCC large address aware linker flag
win32:QMAKE_LFLAGS *= -Wl,--large-address-aware -static
# i686-w64-mingw32
win32:QMAKE_LFLAGS *= -static-libgcc -static-libstdc++

# 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
}

INCLUDEPATH += src/leveldb/include src/leveldb/helpers
LIBS += $$PWD/src/leveldb/libleveldb.a $$PWD/src/leveldb/libmemenv.a
!win32 {
    # we use QMAKE_CXXFLAGS_RELEASE even without RELEASE=1 because we use RELEASE to indicate linking preferences not -O preferences



    # genleveldb.commands = cd $$PWD/src/leveldb && CC=$$QMAKE_CC CXX=$$QMAKE_CXX $(MAKE) OPT=\"$$QMAKE_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE\" libleveldb.a libmemenv.a


} else {
    # make an educated guess about what the ranlib command is called
    isEmpty(QMAKE_RANLIB) {
        QMAKE_RANLIB = $$replace(QMAKE_STRIP, strip, ranlib)
    }
    LIBS += -lshlwapi
    genleveldb.commands = cd $$PWD/src/leveldb && CC=$$QMAKE_CC CXX=$$QMAKE_CXX TARGET_OS=OS_WINDOWS_CROSSCOMPILE $(MAKE) OPT=\"$$QMAKE_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE\" libleveldb.a libmemenv.a && $$QMAKE_RANLIB $$PWD/src/leveldb/libleveldb.a && $$QMAKE_RANLIB $$PWD/src/leveldb/libmemenv.a
}
genleveldb.target = $$PWD/src/leveldb/libleveldb.a
genleveldb.depends = FORCE
PRE_TARGETDEPS += $$PWD/src/leveldb/libleveldb.a
QMAKE_EXTRA_TARGETS += genleveldb
# Gross ugly hack that depends on qmake internals, unfortunately there is no other way to do it.
QMAKE_CLEAN += $$PWD/src/leveldb/libleveldb.a; cd $$PWD/src/leveldb ; $(MAKE) clean

# regenerate src/build.h
!win32|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_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/coincontroldialog.h \
    src/qt/coincontroltreewidget.h \
    src/qt/addressbookpage.h \
    src/qt/signverifymessagedialog.h \
    src/qt/aboutdialog.h \
    src/qt/editaddressdialog.h \
    src/qt/bitcoinaddressvalidator.h \
    src/alert.h \
    src/addrman.h \
    src/base58.h \
    src/bignum.h \
    src/checkpoints.h \
    src/coincontrol.h \
    src/compat.h \
    src/sync.h \
    src/util.h \
    src/hash.h \
    src/uint256.h \
    src/serialize.h \
    src/main.h \
    src/net.h \
    src/key.h \
    src/db.h \
    src/walletdb.h \
    src/script.h \
    src/init.h \
    src/bloom.h \
    src/mruset.h \
    src/checkqueue.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/qt/walletview.h \
    src/qt/walletstack.h \
    src/qt/walletframe.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/paymentserver.h \
    src/allocators.h \
    src/ui_interface.h \
    src/qt/rpcconsole.h \
    src/scrypt.h \
    src/version.h \
    src/netbase.h \
    src/clientversion.h \
    src/txdb.h \
    src/leveldb.h \
    src/threadsafety.h \
    src/checkpointsync.h \
    src/limitedmap.h \
    src/qt/macnotificationhandler.h \
    src/qt/splashscreen.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/coincontroldialog.cpp \
    src/qt/coincontroltreewidget.cpp \
    src/qt/addressbookpage.cpp \
    src/qt/signverifymessagedialog.cpp \
    src/qt/aboutdialog.cpp \
    src/qt/editaddressdialog.cpp \
    src/qt/bitcoinaddressvalidator.cpp \
    src/alert.cpp \
    src/version.cpp \
    src/sync.cpp \
    src/util.cpp \
    src/hash.cpp \
    src/netbase.cpp \
    src/key.cpp \
    src/script.cpp \
    src/main.cpp \
    src/init.cpp \
    src/net.cpp \
    src/bloom.cpp \
    src/checkpoints.cpp \
    src/addrman.cpp \
    src/db.cpp \
    src/walletdb.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/qt/walletview.cpp \
    src/qt/walletstack.cpp \
    src/qt/walletframe.cpp \
    src/bitcoinrpc.cpp \
    src/rpcdump.cpp \
    src/rpcnet.cpp \
    src/rpcmining.cpp \
    src/rpcwallet.cpp \
    src/rpcblockchain.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/paymentserver.cpp \
    src/qt/rpcconsole.cpp \
    src/scrypt.cpp \
    src/noui.cpp \
    src/leveldb.cpp \
    src/checkpointsync.cpp \
    src/txdb.cpp \
    src/qt/splashscreen.cpp

RESOURCES += src/qt/bitcoin.qrc

FORMS += src/qt/forms/sendcoinsdialog.ui \
    src/qt/forms/coincontroldialog.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/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
  macx: CONFIG -= app_bundle
}

contains(USE_SSE2, 1) {
DEFINES += USE_SSE2
gccsse2.input  = SOURCES_SSE2
gccsse2.output = $$PWD/build/${QMAKE_FILE_BASE}.o
gccsse2.commands = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o ${QMAKE_FILE_OUT} ${QMAKE_FILE_NAME} -msse2 -mstackrealign
QMAKE_EXTRA_COMPILERS += gccsse2
SOURCES_SSE2 += src/scrypt-sse2.cpp
}

# Todo: Remove this line when switching to Qt5, as that option was removed
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 += README.md \
    doc/*.rst \
    doc/*.txt \
    doc/*.md \
    src/qt/res/bitcoin-qt.rc \
    src/test/*.cpp \
    src/test/*.h \
    src/qt/test/*.cpp \
    src/qt/test/*.h

# platform specific defaults, if not overridden on command line
isEmpty(BOOST_LIB_SUFFIX) {
    macx:BOOST_LIB_SUFFIX = -mt
    win32:BOOST_LIB_SUFFIX = -mgw44-mt-s-1_50
}

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
}

win32:DEFINES += WIN32
win32:RC_FILE = src/qt/res/bitcoin-qt.rc

win32:!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
}

!win32:!macx {
    DEFINES += LINUX
    LIBS += -lrt
    # _FILE_OFFSET_BITS=64 lets 32-bit fopen transparently support large files.
    DEFINES += _FILE_OFFSET_BITS=64
}

macx:HEADERS += src/qt/macdockiconhandler.h src/qt/macnotificationhandler.h
macx:OBJECTIVE_SOURCES += src/qt/macdockiconhandler.mm src/qt/macnotificationhandler.mm
macx:LIBS += -framework Foundation -framework ApplicationServices -framework AppKit -framework CoreServices
macx:DEFINES += MAC_OSX MSG_NOSIGNAL=0
macx:ICON = src/qt/res/icons/bitcoin.icns
macx:QMAKE_CFLAGS_THREAD += -pthread
macx:QMAKE_LFLAGS_THREAD += -pthread
macx:QMAKE_CXXFLAGS_THREAD += -pthread
macx:QMAKE_INFO_PLIST = share/qt/Info.plist

# 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)
win32: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
win32:LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX
macx:LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX

contains(RELEASE, 1) {
    !win32:!macx {
        # Linux: turn dynamic linking back on for c/c++ runtime libraries
        LIBS += -Wl,-Bdynamic
    }
}

system($$QMAKE_LRELEASE -silent $$TRANSLATIONS)


Earlier Error was fixed C:\deps\boost_1_55_0\libs\thread\src\win32\tss_pe.cpp
change
extern "C" const IMAGE_TLS_DIRECTORY32 _tls_used __attribute__ ((section(".rdata$T"))) =

To
#extern "C" const IMAGE_TLS_DIRECTORY32 _tls_used __attribute__ ((section(".rdata$T"))) =

As reported: http://stackoverflow.com/questions/21951721/compiling-dogecoind-exe-mingw32-error


qmake bitcoin-qt.pro (OUTPUT)
Code:
C:\bitcoin-0.8.6>qmake bitcoin-qt.pro
Project MESSAGE: Building with UPNP support
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Project MESSAGE: Building with UPNP support
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Project MESSAGE: Building with UPNP support
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Warning: ignoring element
Warning: ignoring element
Warning: ignoring element
full member
Activity: 131
Merit: 108
now i have a new error

What source is your coin based on? I gave a try at litecoin 0.6.3 branch (https://github.com/litecoin-project/litecoin/tree/ltc-0.6.3) and it at least compiles fine after patching.

.pro file attached for reference
Code:
TEMPLATE = app
TARGET =
VERSION = 0.6.3
INCLUDEPATH += src src/json src/qt
DEFINES += QT_GUI BOOST_THREAD_USE_LIB BOOST_SPIRIT_THREADSAFE
CONFIG += no_include_pwd
CONFIG += static

# 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

# Dependency library locations can be customized with:
#    BOOST_INCLUDE_PATH, BOOST_LIB_PATH, BDB_INCLUDE_PATH,
#    BDB_LIB_PATH, OPENSSL_INCLUDE_PATH and OPENSSL_LIB_PATH respectively
BOOST_LIB_SUFFIX=-mgw48-mt-s-1_55
BOOST_INCLUDE_PATH=C:/deps/boost_1_55_0
BOOST_LIB_PATH=C:/deps/boost_1_55_0/stage/lib
BDB_INCLUDE_PATH=C:/deps/db-4.8.30.NC/build_unix
BDB_LIB_PATH=C:/deps/db-4.8.30.NC/build_unix
OPENSSL_INCLUDE_PATH=C:/deps/openssl-1.0.1e/include
OPENSSL_LIB_PATH=C:/deps/openssl-1.0.1e
MINIUPNPC_INCLUDE_PATH=C:/deps/
MINIUPNPC_LIB_PATH=C:/deps/miniupnpc

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

    !win32:!macx {
        # Linux: static link
        LIBS += -Wl,-Bstatic
    }
}
# for extra security (see: https://wiki.debian.org/Hardening): this flag is GCC compiler-specific
QMAKE_CXXFLAGS *= -D_FORTIFY_SOURCE=2
# for extra security on Windows: enable ASLR and DEP via GCC linker flags
win32:QMAKE_LFLAGS *= -Wl,--dynamicbase -Wl,--nxcompat
# on Windows: enable GCC large address aware linker flag
win32:QMAKE_LFLAGS *= -Wl,--large-address-aware
# i686-w64-mingw32
win32:QMAKE_LFLAGS *= -static

# 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 "FIRST_CLASS_MESSAGING=1"
contains(FIRST_CLASS_MESSAGING, 1) {
    message(Building with first-class messaging)
    DEFINES += FIRST_CLASS_MESSAGING
}

contains(BITCOIN_NEED_QT_PLUGINS, 1) {
    DEFINES += BITCOIN_NEED_QT_PLUGINS
    QTPLUGIN += qcncodecs qjpcodecs qtwcodecs qkrcodecs qtaccessiblewidgets
}

!win32 {
    # for extra security against potential buffer overflows
    QMAKE_CXXFLAGS += -fstack-protector
    QMAKE_LFLAGS += -fstack-protector
    # do not enable this on windows, as it will result in a non-working executable!
}

# regenerate src/build.h
!win32|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_WARN_ON = -fdiagnostics-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter

# 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/messagepage.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/qt/rpcconsole.h \
    src/qt/verifymessagedialog.h \
    src/scrypt.h \
    src/qt/miningpage.h \
    src/version.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/messagepage.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/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/qt/verifymessagedialog.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/messagepage.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/verifymessagedialog.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
    win32:BOOST_LIB_SUFFIX = -mgw44-mt-1_43
}

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
}

win32:LIBS += -lws2_32 -lshlwapi -lmswsock
win32:DEFINES += WIN32
win32:RC_FILE = src/qt/res/bitcoin-qt.rc

win32:!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
}

!win32:!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 = "Litecoin-Qt"

# 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)
win32:LIBS += -lole32 -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

contains(RELEASE, 1) {
    !win32:!macx {
        # Linux: turn dynamic linking back on for c/c++ runtime libraries
        LIBS += -Wl,-Bdynamic
    }
}

system($$QMAKE_LRELEASE -silent $$_PRO_FILE_)






C:\bitcoin-0.8.6>mingw32-make -f Makefile.Release
cd C:/bitcoin-0.8.6/src/leveldb && CC=gcc CXX=g++ TARGET_OS=OS_WINDOWS_CROSSCOMP
ILE mingw32-make OPT="-pipe -fno-keep-inline-dllexport -D_FORTIFY_SOURCE=2 -O2"
libleveldb.a libmemenv.a && ranlib C:/bitcoin-0.8.6/src/leveldb/libleveldb.a &&
ranlib C:/bitcoin-0.8.6/src/leveldb/libmemenv.a
'CC' is not recognized as an internal or external command,
operable program or batch file.
Makefile.Release:319: recipe for target 'C:/bitcoin-0.8.6/src/leveldb/libleveldb
.a' failed
mingw32-make: *** [C:/bitcoin-0.8.6/src/leveldb/libleveldb.a] Error 1

You should build leveldb and comment out genleveldb command in your .pro file before compiling.
sr. member
Activity: 473
Merit: 250
"Proof-of-Asset Protocol"
mingw32-make -f makefile.mingw

Here is cleanup error:-
Code:
... txdb.cpp
g++ -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -Wl,--dynamicbase -Wl,--nxcompat -Wl,--large-address-aware -static -o bitcoind.exe -L"C:/bitcoin-0.8.6/src/leveldb" -L"c:/deps/boost_1_55_0/stage/lib" -L"c:/deps/db-4.8.30.NC/build_unix" -L"c:/deps/openssl-1.0.1e" leveldb/libleveldb.a obj/alert.o obj/version.o obj/checkpoints.o obj/netbase.o obj/addrman.o obj/crypter.o obj/key.o obj/db.o obj/init.o obj/keystore.o obj/main.o obj/net.o obj/protocol.o obj/bitcoinrpc.o obj/rpcdump.o obj/rpcnet.o obj/rpcmining.o obj/rpcwallet.o obj/rpcblockchain.o obj/rpcrawtransaction.o obj/script.o obj/scrypt.o obj/sync.o obj/util.o obj/wallet.o obj/walletdb.o obj/hash.o obj/bloom.o obj/noui.o obj/leveldb.o obj/checkpointsync.o obj/txdb.o -l leveldb -l memenv -l boost_system-mgw48-mt-s-1_55 -l boost_filesystem-mgw48-mt-s-1_55 -l boost_program_options-mgw48-mt-s-1_55 -l boost_thread-mgw48-mt-s-1_55 -l boost_chrono-mgw48-mt-s-1_55 -l db_cxx -l ssl -l crypto -l mingwthrd -l kernel32 -l user32 -l gdi32 -l comdlg32 -l winspool -l winmm -l shell32 -l comctl32 -l ole32 -l oleaut32 -l uuid -l rpcrt4 -l advapi32 -l ws2_32 -l mswsock -l shlwapi
makefile.mingw:138: recipe for target 'bitcoind.exe' failed
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bi
n/ld.exe: reopening bitcoind.exe: Permission denied
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bi
n/ld.exe: final link failed: Permission denied
collect2.exe: error: ld returned 1 exit status
mingw32-make: *** [bitcoind.exe] Error 1


On that last long line I see it making .exe?  Then the batch file looks for bitcoind.exe?  So one or the other (or both) are wrong?

Ron


Thanks Ron

Running the last lines of Guide...
set PATH=%PATH%;C:\Qt\5.2.1\bin
cd C:\bitcoin-0.8.6\
qmake bitcoin-qt.pro
mingw32-make -f Makefile.Release  (ERRORS DURING THIS)


C:\bitcoin-0.8.6>mingw32-make -f Makefile.Release
cd C:/bitcoin-0.8.6/src/leveldb && CC=gcc CXX=g++ TARGET_OS=OS_WINDOWS_CROSSCOMP
ILE mingw32-make OPT="-pipe -fno-keep-inline-dllexport -D_FORTIFY_SOURCE=2 -O2"
libleveldb.a libmemenv.a && ranlib C:/bitcoin-0.8.6/src/leveldb/libleveldb.a &&
ranlib C:/bitcoin-0.8.6/src/leveldb/libmemenv.a
'CC' is not recognized as an internal or external command,
operable program or batch file.
Makefile.Release:319: recipe for target 'C:/bitcoin-0.8.6/src/leveldb/libleveldb
.a' failed
mingw32-make: *** [C:/bitcoin-0.8.6/src/leveldb/libleveldb.a] Error 1







INV SET  VALUES:-

C:\bitcoin-0.8.6>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\XXX\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=PC
ComSpec=C:\Windows\SysWOW64\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\XXX
INCLUDE=C:\deps\libpng-1.6.8;C:\deps\openssl-1.0.1e\include
LIB=C:\deps\libpng-1.6.8\.libs;C:\deps\openssl-1.0.1e
LOCALAPPDATA=C:\Users\XXX\AppData\Local
LOGONSERVER=\\PC
NUMBER_OF_PROCESSORS=6
OS=Windows_NT
Path=C:\mingw32\bin;C:\Python33\;C:\Perl64\site\bin;C:\Perl64\bin;C:\Windows\sys
tem32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\
v1.0\;C:\Qt\5.2.1\bin;C:\Qt\5.2.1\bin;C:\Qt\5.2.1\bin;C:\Qt\5.2.1\bin;C:\Qt\5.2.
1\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 45 Stepping 7, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=2d07
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
QTDIR=C:\Qt\5.2.1
QTSRC=C:\Qt\5.2.1\
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\XXX\AppData\Local\Temp
TMP=C:\Users\XXX\AppData\Local\Temp
toolset=msvc
USERDOMAIN=PC
USERNAME=XXX
USERPROFILE=C:\Users\XXX
windir=C:\Windows
sr. member
Activity: 260
Merit: 251
mingw32-make -f makefile.mingw

Here is cleanup error:-
Code:
... txdb.cpp
g++ -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -Wl,--dynamicbase -Wl,--nxcompat -Wl,--large-address-aware -static -o vcoind.exe -L"C:/bitcoin-0.8.6/src/leveldb" -L"c:/deps/boost_1_55_0/stage/lib" -L"c:/deps/db-4.8.30.NC/build_unix" -L"c:/deps/openssl-1.0.1e" leveldb/libleveldb.a obj/alert.o obj/version.o obj/checkpoints.o obj/netbase.o obj/addrman.o obj/crypter.o obj/key.o obj/db.o obj/init.o obj/keystore.o obj/main.o obj/net.o obj/protocol.o obj/bitcoinrpc.o obj/rpcdump.o obj/rpcnet.o obj/rpcmining.o obj/rpcwallet.o obj/rpcblockchain.o obj/rpcrawtransaction.o obj/script.o obj/scrypt.o obj/sync.o obj/util.o obj/wallet.o obj/walletdb.o obj/hash.o obj/bloom.o obj/noui.o obj/leveldb.o obj/checkpointsync.o obj/txdb.o -l leveldb -l memenv -l boost_system-mgw48-mt-s-1_55 -l boost_filesystem-mgw48-mt-s-1_55 -l boost_program_options-mgw48-mt-s-1_55 -l boost_thread-mgw48-mt-s-1_55 -l boost_chrono-mgw48-mt-s-1_55 -l db_cxx -l ssl -l crypto -l mingwthrd -l kernel32 -l user32 -l gdi32 -l comdlg32 -l winspool -l winmm -l shell32 -l comctl32 -l ole32 -l oleaut32 -l uuid -l rpcrt4 -l advapi32 -l ws2_32 -l mswsock -l shlwapi
makefile.mingw:138: recipe for target 'bitcoind.exe' failed
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bi
n/ld.exe: reopening bitcoind.exe: Permission denied
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bi
n/ld.exe: final link failed: Permission denied
collect2.exe: error: ld returned 1 exit status
mingw32-make: *** [bitcoind.exe] Error 1


On that last long line I see it making vcoind.exe?  Then the batch file looks for bitcoind.exe?  So one or the other (or both) are wrong?

Ron
sr. member
Activity: 473
Merit: 250
"Proof-of-Asset Protocol"
mingw32-make -f makefile.mingw

Here is cleanup error:-
Code:
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/alert.o alert.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/version.o version.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/checkpoints.o checkpoints.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/netbase.o netbase.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/addrman.o addrman.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/crypter.o crypter.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/key.o key.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/db.o db.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/init.o init.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/keystore.o keystore.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/main.o main.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/net.o net.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/protocol.o protocol.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/bitcoinrpc.o bitcoinrpc.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/rpcdump.o rpcdump.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/rpcnet.o rpcnet.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/rpcmining.o rpcmining.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/rpcwallet.o rpcwallet.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/rpcblockchain.o rpcblockchain.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/rpcrawtransaction.o rpcrawtransaction.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/script.o script.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/scrypt.o scrypt.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/sync.o sync.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/util.o util.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/wallet.o wallet.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/walletdb.o walletdb.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/hash.o hash.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/bloom.o bloom.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/noui.o noui.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/leveldb.o leveldb.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/checkpointsync.o checkpointsync.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/txdb.o txdb.cpp
g++ -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -Wl,--dynamicbase -Wl,--nxcompat -Wl,--large-address-aware -static -o bitcoind.exe -L"C:/bitcoin-0.8.6/src/leveldb" -L"c:/deps/boost_1_55_0/stage/lib" -L"c:/deps/db-4.8.30.NC/build_unix" -L"c:/deps/openssl-1.0.1e" leveldb/libleveldb.a obj/alert.o obj/version.o obj/checkpoints.o obj/netbase.o obj/addrman.o obj/crypter.o obj/key.o obj/db.o obj/init.o obj/keystore.o obj/main.o obj/net.o obj/protocol.o obj/bitcoinrpc.o obj/rpcdump.o obj/rpcnet.o obj/rpcmining.o obj/rpcwallet.o obj/rpcblockchain.o obj/rpcrawtransaction.o obj/script.o obj/scrypt.o obj/sync.o obj/util.o obj/wallet.o obj/walletdb.o obj/hash.o obj/bloom.o obj/noui.o obj/leveldb.o obj/checkpointsync.o obj/txdb.o -l leveldb -l memenv -l boost_system-mgw48-mt-s-1_55 -l boost_filesystem-mgw48-mt-s-1_55 -l boost_program_options-mgw48-mt-s-1_55 -l boost_thread-mgw48-mt-s-1_55 -l boost_chrono-mgw48-mt-s-1_55 -l db_cxx -l ssl -l crypto -l mingwthrd -l kernel32 -l user32 -l gdi32 -l comdlg32 -l winspool -l winmm -l shell32 -l comctl32 -l ole32 -l oleaut32 -l uuid -l rpcrt4 -l advapi32 -l ws2_32 -l mswsock -l shlwapi
makefile.mingw:138: recipe for target 'bitcoind.exe' failed
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bi
n/ld.exe: reopening bitcoind.exe: Permission denied
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bi
n/ld.exe: final link failed: Permission denied
collect2.exe: error: ld returned 1 exit status
mingw32-make: *** [bitcoind.exe] Error 1
newbie
Activity: 42
Merit: 0
yeah...but i think i'm about to give up making this work.   i was following the devtome guide, got everything running fine on ubuntu, wallet works and everything, but i can't get it to work with windows.  i've tried pretty much every option and have clean installed like 3 times.  i don't even want to make a windows wallet anymore.  i think my problem is the source code that it links me to and that i cloned from github, when i look at the -qt.pro, the version is: VERSION = 0.6.3

i think this is what is killing me, am i wrong?  do i have to re-do the whole fucking coin from square 1 cloning a more current coin?

On 0.6.3 you should link against qt 4.8 and apply these patches:
https://github.com/laanwj/bitcoin/commit/61d85071405b99c3734606eed31ea8f615c0c77a
https://github.com/bitcoin/bitcoin/commit/6c6255edb54bed780f0879c906dccf6cfa98b4db

I did this, and still having the same problem.  But it did go a hell of a lot further than it went previously.

I ran
Code:
qmake mycoin-qt.pro
mingw32-make -f Makefile.Release
qmake went through well, but the entire time there were a lot of warnings, but it went through.  i don't know if that's normal.

mingw32-make -f Makefile.Release went way further than before, but still...same problem.
Code:
In file included from src/bignum.h:13:0,
                    from src/main.h:9,
                    from src/wallet.h:9,
                    from src/init.h:9,
                    from src\qt\bitcoin.cpp:11:
src/util.h:22:28: fatal error: boost/thread.hpp: No such file or directory
#include
                                      ^
compilation terminated.
Makefile.Release:8341: recipe for target 'build/bitcoin.o' failed
mingw32-make: *** [build/bitcoin.o] Error 1

I see a folder thread in my boost folder, but it is in boost_1_55_0/libs/

Should I rename the folder to just boost?  Or would that make a difference?  I have a path set to it in the main .pro file and also in the environmental variables settings.  I don't know what to do Sad

edit: yes when i run
Code:
qmake mycoin-qt.pro

i get a whole lot of
Code:
Warning: ignoring element
but it does complete.  is this causing a problem as well ?

edit2: well changing the name of the boost folder did get me past that error (and yes i did change all path names as well to account for this), but now i have a new error:
Code:
c:\Users\XXX>mingw32-make -f Make
file.Release
g++ -c -pipe -fno-keep-inline-dllexport -O2 -frtti -fdiagnostics-show-option -Wa
ll -Wextra -Wformat -Wformat-security -Wno-unused-parameter -fexceptions -mthrea
ds -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV
6 -DUSE_UPNP=1 -DSTATICLIB -DWIN32 -D_MT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI
_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I"src" -I"src\json" -I"src\qt" -I"..\..\..\
..\..\deps" -I"..\..\..\..\..\deps\boost" -I"..\..\..\..\..\deps\db-4.8.30.NC\bu
ild_unix" -I"..\..\..\..\..\deps\openssl-1.0.1e\include" -I"..\..\..\..\..\Qt\5.
2.1\qtbase-opensource-src-5.2.1\include" -I"..\..\..\..\..\Qt\5.2.1\qtbase-opens
ource-src-5.2.1\include\QtWidgets" -I"..\..\..\..\..\Qt\5.2.1\qtbase-opensource-
src-5.2.1\include\QtGui" -I"..\..\..\..\..\Qt\5.2.1\qtbase-opensource-src-5.2.1\
include\QtCore" -I"build" -I"build" -I"..\..\..\..\..\Qt\5.2.1\qtbase-opensource
-src-5.2.1\mkspecs\win32-g++" -o build\bitcoin.o src\qt\bitcoin.cpp
In file included from ..\..\..\..\..\deps\boost/boost/bind/bind.hpp:29:0,
                 from ..\..\..\..\..\deps\boost/boost/bind.hpp:22,
                 from ..\..\..\..\..\deps\boost/boost/thread/detail/thread.hpp:2
9,
                 from ..\..\..\..\..\deps\boost/boost/thread/thread_only.hpp:22,

                 from ..\..\..\..\..\deps\boost/boost/thread/thread.hpp:12,
                 from ..\..\..\..\..\deps\boost/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:
..\..\..\..\..\deps\boost/boost/bind/arg.hpp: In constructor 'boost::arg::arg
(const T&)':
..\..\..\..\..\deps\boost/boost/bind/arg.hpp:37:22: warning: typedef 'T_must_be_
placeholder' locally defined but not used [-Wunused-local-typedefs]
         typedef char T_must_be_placeholder[ I == is_placeholder::value? 1: -
1 ];
                      ^
In file included from ..\..\..\..\..\deps\boost/boost/tuple/tuple.hpp:33:0,
                 from ..\..\..\..\..\deps\boost/boost/thread/detail/async_func.h
pp:37,
                 from ..\..\..\..\..\deps\boost/boost/thread/future.hpp:22,
                 from ..\..\..\..\..\deps\boost/boost/thread.hpp:24,
                 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:
..\..\..\..\..\deps\boost/boost/tuple/detail/tuple_basic.hpp: In function 'typen
ame boost::tuples::access_traitss::cons >::type>::const_type boost::tuples::get(const boost::tuples::con
s&)':
..\..\..\..\..\deps\boost/boost/tuple/detail/tuple_basic.hpp:228:45: warning: ty
pedef 'cons_element' locally defined but not used [-Wunused-local-typedefs]
   typedef BOOST_DEDUCED_TYPENAME impl::type cons_element;
                                             ^
In file included from src/bignum.h:13:0,
                 from src/main.h:9,
                 from src/wallet.h:9,
                 from src/init.h:9,
                 from src\qt\bitcoin.cpp:11:
..\..\..\..\..\Qt\5.2.1\qtbase-opensource-src-5.2.1\include/QtCore/../../src/cor
elib/kernel/qeventloop.h: At global scope:
src/util.h:39:29: error: expected ',' or '...' before 'for'
 #define loop                for (;;)
                             ^
..\..\..\..\..\Qt\5.2.1\qtbase-opensource-src-5.2.1\include/QtCore/../../src/cor
elib/kernel/qeventloop.h:96:43: note: in expansion of macro 'loop'
     explicit QEventLoopLocker(QEventLoop *loop);
                                           ^
src/util.h:39:34: error: expected ')' before ';' token
 #define loop                for (;;)
                                  ^
..\..\..\..\..\Qt\5.2.1\qtbase-opensource-src-5.2.1\include/QtCore/../../src/cor
elib/kernel/qeventloop.h:96:43: note: in expansion of macro 'loop'
     explicit QEventLoopLocker(QEventLoop *loop);
                                           ^
src/util.h:39:36: error: expected unqualified-id before ')' token
 #define loop                for (;;)
                                    ^
..\..\..\..\..\Qt\5.2.1\qtbase-opensource-src-5.2.1\include/QtCore/../../src/cor
elib/kernel/qeventloop.h:96:43: note: in expansion of macro 'loop'
     explicit QEventLoopLocker(QEventLoop *loop);
                                           ^
In file included from ..\..\..\..\..\deps\boost/boost/interprocess/errors.hpp:37
:0,
                 from ..\..\..\..\..\deps\boost/boost/interprocess/exceptions.hp
p:20,
                 from ..\..\..\..\..\deps\boost/boost/interprocess/shared_memory
_object.hpp:17,
                 from ..\..\..\..\..\deps\boost/boost/interprocess/ipc/message_q
ueue.hpp:17,
                 from src\qt\bitcoin.cpp:23:
..\..\..\..\..\deps\boost/boost/interprocess/detail/win32_api.hpp:903:116: warni
ng: declaration of 'void* boost::interprocess::winapi::CreateMutexA(boost::inter
process::winapi::interprocess_security_attributes*, int, const char*)' with C la
nguage linkage [enabled by default]
 extern "C" __declspec(dllimport) void * __stdcall CreateMutexA(interprocess_sec
urity_attributes*, int, const char *);

                                    ^
In file included from ..\..\..\..\..\deps\boost/boost/thread/win32/thread_data.h
pp:11:0,
                 from ..\..\..\..\..\deps\boost/boost/thread/thread_only.hpp:15,

                 from ..\..\..\..\..\deps\boost/boost/thread/thread.hpp:12,
                 from ..\..\..\..\..\deps\boost/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:
..\..\..\..\..\deps\boost/boost/thread/win32/thread_primitives.hpp:144:55: warni
ng: conflicts with previous declaration 'void* boost::detail::win32::CreateMutex
A(boost::detail::win32::_SECURITY_ATTRIBUTES*, int, const char*)' [enabled by de
fault]
                 __declspec(dllimport) void* __stdcall CreateMutexA(_SECURITY_AT
TRIBUTES*,int,char const*);
                                                       ^
In file included from ..\..\..\..\..\deps\boost/boost/interprocess/errors.hpp:37
:0,
                 from ..\..\..\..\..\deps\boost/boost/interprocess/exceptions.hp
p:20,
                 from ..\..\..\..\..\deps\boost/boost/interprocess/shared_memory
_object.hpp:17,
                 from ..\..\..\..\..\deps\boost/boost/interprocess/ipc/message_q
ueue.hpp:17,
                 from src\qt\bitcoin.cpp:23:
..\..\..\..\..\deps\boost/boost/interprocess/detail/win32_api.hpp:908:127: warni
ng: declaration of 'void* boost::interprocess::winapi::CreateSemaphoreA(boost::i
nterprocess::winapi::interprocess_security_attributes*, long int, long int, cons
t char*)' with C language linkage [enabled by default]
 extern "C" __declspec(dllimport) void * __stdcall CreateSemaphoreA(interprocess
_security_attributes*, long, long, const char *);

                                               ^
In file included from ..\..\..\..\..\deps\boost/boost/thread/win32/thread_data.h
pp:11:0,
                 from ..\..\..\..\..\deps\boost/boost/thread/thread_only.hpp:15,

                 from ..\..\..\..\..\deps\boost/boost/thread/thread.hpp:12,
                 from ..\..\..\..\..\deps\boost/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:
..\..\..\..\..\deps\boost/boost/thread/win32/thread_primitives.hpp:145:55: warni
ng: conflicts with previous declaration 'void* boost::detail::win32::CreateSemap
horeA(boost::detail::win32::_SECURITY_ATTRIBUTES*, long int, long int, const cha
r*)' [enabled by default]
                 __declspec(dllimport) void* __stdcall CreateSemaphoreA(_SECURIT
Y_ATTRIBUTES*,long,long,char const*);
                                                       ^
src\qt\bitcoin.cpp: In function 'int qMain(int, char**)':
src\qt\bitcoin.cpp:150:5: error: 'setCodecForTr' is not a member of 'QTextCodec'

     QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
     ^
src\qt\bitcoin.cpp:151:5: error: 'setCodecForCStrings' is not a member of 'QText
Codec'
     QTextCodec::setCodecForCStrings(QTextCodec::codecForTr());
     ^
src\qt\bitcoin.cpp:151:37: error: 'codecForTr' is not a member of 'QTextCodec'
     QTextCodec::setCodecForCStrings(QTextCodec::codecForTr());
                                     ^
In file included from ..\..\..\..\..\deps\boost/boost/thread/shared_mutex.hpp:18
:0,
                 from ..\..\..\..\..\deps\boost/boost/thread/detail/thread_group
.hpp:9,
                 from ..\..\..\..\..\deps\boost/boost/thread/thread.hpp:13,
                 from ..\..\..\..\..\deps\boost/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:
..\..\..\..\..\deps\boost/boost/thread/win32/shared_mutex.hpp: In instantiation
of 'T boost::shared_mutex::interlocked_compare_exchange(T*, T, T) [with T = boos
t::shared_mutex::state_data]':
..\..\..\..\..\deps\boost/boost/thread/win32/shared_mutex.hpp:124:103:   require
d from here
..\..\..\..\..\deps\boost/boost/thread/win32/shared_mutex.hpp:52:99: warning: de
referencing type-punned pointer will break strict-aliasing rules [-Wstrict-alias
ing]
                                                               *reinterpret_cast
(&comparand));

                   ^
..\..\..\..\..\deps\boost/boost/thread/win32/shared_mutex.hpp:52:99: warning: de
referencing type-punned pointer will break strict-aliasing rules [-Wstrict-alias
ing]
..\..\..\..\..\deps\boost/boost/thread/win32/shared_mutex.hpp:53:52: warning: de
referencing type-punned pointer will break strict-aliasing rules [-Wstrict-alias
ing]
             return *reinterpret_cast(&res);
                                                    ^
..\..\..\..\..\deps\boost/boost/thread/win32/shared_mutex.hpp:53:52: warning: de
referencing type-punned pointer will break strict-aliasing rules [-Wstrict-alias
ing]
In file included from ..\..\..\..\..\deps\boost/boost/interprocess/detail/window
s_intermodule_singleton.hpp:26:0,
                 from ..\..\..\..\..\deps\boost/boost/interprocess/detail/tmp_di
r_helpers.hpp:22,
                 from ..\..\..\..\..\deps\boost/boost/interprocess/shared_memory
_object.hpp:22,
                 from ..\..\..\..\..\deps\boost/boost/interprocess/ipc/message_q
ueue.hpp:17,
                 from src\qt\bitcoin.cpp:23:
..\..\..\..\..\deps\boost/boost/interprocess/detail/intermodule_singleton_common
.hpp: In instantiation of 'static ThreadSafeGlobalMap& boost::interprocess::ipcd
etail::intermodule_singleton_common::get_map() [with Thread
SafeGlobalMap = boost::interprocess::ipcdetail::intermodule_singleton_helpers::w
indows_semaphore_based_map]':
..\..\..\..\..\deps\boost/boost/interprocess/detail/intermodule_singleton_common
.hpp:126:48:   required from 'static void boost::interprocess::ipcdetail::interm
odule_singleton_common::initialize_singleton_logic(void*&,
volatile uint32_t&, void* (*)(ThreadSafeGlobalMap&), bool) [with ThreadSafeGloba
lMap = boost::interprocess::ipcdetail::intermodule_singleton_helpers::windows_se
maphore_based_map; uint32_t = unsigned int; boost::interprocess::ipcdetail::inte
rmodule_singleton_common::singleton_constructor_t = void*(b
oost::interprocess::ipcdetail::intermodule_singleton_helpers::windows_semaphore_
based_map&)]'
..\..\..\..\..\deps\boost/boost/interprocess/detail/intermodule_singleton_common
.hpp:337:103:   required from 'static void boost::interprocess::ipcdetail::inter
module_singleton_impl::atentry_work()
 [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]'
..\..\..\..\..\deps\boost/boost/interprocess/detail/intermodule_singleton_common
.hpp:326:26:   required from 'static C& boost::interprocess::ipcdetail::intermod
ule_singleton_impl::get() [with C = b
oost::interprocess::ipcdetail::windows_bootstamp; bool LazyInit = true; bool Pho
enix = true; ThreadSafeGlobalMap = boost::interprocess::ipcdetail::intermodule_s
ingleton_helpers::windows_semaphore_based_map]'
..\..\..\..\..\deps\boost/boost/interprocess/detail/tmp_dir_helpers.hpp:45:97:
 required from here
..\..\..\..\..\deps\boost/boost/interprocess/detail/intermodule_singleton_common
.hpp:205:93: warning: dereferencing type-punned pointer will break strict-aliasi
ng rules [-Wstrict-aliasing]
       return *static_cast(static_cast(&mem_holde
r.map_mem[0]));

             ^
In file included from ..\..\..\..\..\deps\boost/boost/system/system_error.hpp:14
:0,
                 from ..\..\..\..\..\deps\boost/boost/thread/exceptions.hpp:22,
                 from ..\..\..\..\..\deps\boost/boost/thread/win32/thread_primit
ives.hpp:16,
                 from ..\..\..\..\..\deps\boost/boost/thread/win32/thread_data.h
pp:11,
                 from ..\..\..\..\..\deps\boost/boost/thread/thread_only.hpp:15,

                 from ..\..\..\..\..\deps\boost/boost/thread/thread.hpp:12,
                 from ..\..\..\..\..\deps\boost/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:
..\..\..\..\..\deps\boost/boost/system/error_code.hpp: At global scope:
..\..\..\..\..\deps\boost/boost/system/error_code.hpp:222:36: warning: 'boost::s
ystem::posix_category' defined but not used [-Wunused-variable]
     static const error_category &  posix_category = generic_category();
                                    ^
..\..\..\..\..\deps\boost/boost/system/error_code.hpp:223:36: warning: 'boost::s
ystem::errno_ecat' defined but not used [-Wunused-variable]
     static const error_category &  errno_ecat     = generic_category();
                                    ^
..\..\..\..\..\deps\boost/boost/system/error_code.hpp:224:36: warning: 'boost::s
ystem::native_ecat' defined but not used [-Wunused-variable]
     static const error_category &  native_ecat    = system_category();
                                    ^
Makefile.Release:10542: recipe for target 'build/bitcoin.o' failed
mingw32-make: *** [build/bitcoin.o] Error 1

c:\Users\XXX>
sr. member
Activity: 473
Merit: 250
"Proof-of-Asset Protocol"
'nwhile'

Make sure patching is applied correctly.

[
Thanks


Thanks nitrogenetics

Got that fixed.... but this is where I am getting stuck all the time...


...continue C:\bitcoin-0.8.6\src/leveldb.h:94: undefined reference to `leveldb::Status::ToSt
ring() const'
obj/txdb.o: In function `ZN13CLevelDBBatch5WriteIc7uint256EEvRKT_RKT0_':
C:\bitcoin-0.8.6\src/leveldb.h:42: undefined reference to `leveldb::WriteBatch::
Put(leveldb::Slice const&, leveldb::Slice const&)'
obj/txdb.o: In function `ZN8CLevelDB4ReadISt4pairIcSsEcEEbRKT_RT0_':
C:\bitcoin-0.8.6\src/leveldb.h:94: undefined reference to `leveldb::Status::ToSt
ring() const'
obj/txdb.o: In function `ZN8CLevelDB4ReadIc7CBigNumEEbRKT_RT0_':
C:\bitcoin-0.8.6\src/leveldb.h:94: undefined reference to `leveldb::Status::ToSt
ring() const'
obj/txdb.o: In function `ZN13CLevelDBBatch5WriteISt4pairIc7uint256E15CDiskBlockI
ndexEEvRKT_RKT0_':
C:\bitcoin-0.8.6\src/leveldb.h:42: undefined reference to `leveldb::WriteBatch::
Put(leveldb::Slice const&, leveldb::Slice const&)'
obj/txdb.o: In function `ZN13CLevelDBBatch5WriteISt4pairIc7uint256E6CCoinsEEvRKT
_RKT0_':
C:\bitcoin-0.8.6\src/leveldb.h:42: undefined reference to `leveldb::WriteBatch::
Put(leveldb::Slice const&, leveldb::Slice const&)'
collect2.exe: error: ld returned 1 exit status
makefile.mingw:138: recipe for target 'XXXcoind.exe' failed
mingw32-make: *** [XXXcoind.exe] Error 1



Also, not sure if it matters, but gcc -v output (last post) does not exactly match Guide like " COLLECT_GCC=c:\mingw32\bin\gcc.exe"

All commands run till "mingw32-make -f makefile.mingw" above.


Here is detail output:-
Code:
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-par
ameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADS
AFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/l
eveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4
.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/txdb.o txdb.cpp
g++ -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parame
ter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE
 -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/leve
ldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.
30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -Wl,--dynamicbase -Wl,--nxc
ompat -Wl,--large-address-aware -static -o bitcoind.exe -L"C:/bitcoin-0.8.6/src/le
veldb" -L"c:/deps/boost_1_55_0/stage/lib" -L"c:/deps/db-4.8.30.NC/build_unix" -L
"c:/deps/openssl-1.0.1e" leveldb/libleveldb.a obj/alert.o obj/version.o obj/chec
kpoints.o obj/netbase.o obj/addrman.o obj/crypter.o obj/key.o obj/db.o obj/init.
o obj/keystore.o obj/main.o obj/net.o obj/protocol.o obj/bitcoinrpc.o obj/rpcdum
p.o obj/rpcnet.o obj/rpcmining.o obj/rpcwallet.o obj/rpcblockchain.o obj/rpcrawt
ransaction.o obj/script.o obj/scrypt.o obj/sync.o obj/util.o obj/wallet.o obj/wa
lletdb.o obj/hash.o obj/bloom.o obj/noui.o obj/leveldb.o obj/checkpointsync.o ob
j/txdb.o -l leveldb -l memenv -l boost_system-mgw48-mt-s-1_55 -l boost_filesyste
m-mgw48-mt-s-1_55 -l boost_program_options-mgw48-mt-s-1_55 -l boost_thread-mgw48
-mt-s-1_55 -l boost_chrono-mgw48-mt-s-1_55 -l db_cxx -l ssl -l crypto -l mingwth
rd -l kernel32 -l user32 -l gdi32 -l comdlg32 -l winspool -l winmm -l shell32 -l
 comctl32 -l ole32 -l oleaut32 -l uuid -l rpcrt4 -l advapi32 -l ws2_32 -l mswsoc
k -l shlwapi
obj/main.o: In function `CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
WriteBatch()'
obj/main.o: In function `~CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
obj/leveldb.o: In function `ZN8CLevelDBC2ERKN5boost10filesystem4pathEjbb':
C:\bitcoin-0.8.6\src/leveldb.cpp:37: undefined reference to `leveldb::Options::O
ptions()'
obj/leveldb.o: In function `GetOptions':
C:\bitcoin-0.8.6\src/leveldb.cpp:28: undefined reference to `leveldb::Options::O
ptions()'
C:\bitcoin-0.8.6\src/leveldb.cpp:29: undefined reference to `leveldb::NewLRUCach
e(unsigned int)'
C:\bitcoin-0.8.6\src/leveldb.cpp:31: undefined reference to `leveldb::NewBloomFi
lterPolicy(int)'
obj/leveldb.o: In function `ZN8CLevelDBC2ERKN5boost10filesystem4pathEjbb':
C:\bitcoin-0.8.6\src/leveldb.cpp:51: undefined reference to `leveldb::DestroyDB(
std::string const&, leveldb::Options const&)'
C:\bitcoin-0.8.6\src/leveldb.cpp:56: undefined reference to `leveldb::DB::Open(l
eveldb::Options const&, std::string const&, leveldb::DB**)'
C:\bitcoin-0.8.6\src/leveldb.cpp:46: undefined reference to `leveldb::Env::Defau
lt()'
C:\bitcoin-0.8.6\src/leveldb.cpp:46: undefined reference to `leveldb::NewMemEnv(
leveldb::Env*)'
C:\bitcoin-0.8.6\src/leveldb.cpp:58: undefined reference to `leveldb::Status::To
String() const'
obj/leveldb.o: In function `ZN8CLevelDB10WriteBatchER13CLevelDBBatchb':
C:\bitcoin-0.8.6\src/leveldb.cpp:76: undefined reference to `leveldb::Status::To
String() const'
obj/checkpointsync.o: In function `CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
WriteBatch()'
obj/checkpointsync.o: In function `~CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
obj/checkpointsync.o: In function `CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
WriteBatch()'
obj/checkpointsync.o: In function `~CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
obj/txdb.o: In function `Exists >':
C:\bitcoin-0.8.6\src/leveldb.h:123: undefined reference to `leveldb::Status::ToS
tring() const'
obj/txdb.o: In function `CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
WriteBatch()'
obj/txdb.o: In function `Write':
C:\bitcoin-0.8.6\src/leveldb.h:42: undefined reference to `leveldb::WriteBatch::
Put(leveldb::Slice const&, leveldb::Slice const&)'
obj/txdb.o: In function `~CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
obj/txdb.o: In function `CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
WriteBatch()'
obj/txdb.o: In function `Erase':
C:\bitcoin-0.8.6\src/leveldb.h:51: undefined reference to `leveldb::WriteBatch::
Delete(leveldb::Slice const&)'
obj/txdb.o: In function `~CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
obj/txdb.o: In function `CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
WriteBatch()'
obj/txdb.o: In function `Write':
C:\bitcoin-0.8.6\src/leveldb.h:42: undefined reference to `leveldb::WriteBatch::
Put(leveldb::Slice const&, leveldb::Slice const&)'
obj/txdb.o: In function `~CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
obj/txdb.o: In function `Exists':
C:\bitcoin-0.8.6\src/leveldb.h:123: undefined reference to `leveldb::Status::ToS
tring() const'
obj/txdb.o: In function `Read':
C:\bitcoin-0.8.6\src/leveldb.h:94: undefined reference to `leveldb::Status::ToSt
ring() const'
obj/txdb.o: In function `CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
WriteBatch()'
obj/txdb.o: In function `~CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
obj/txdb.o: In function `Read, uint256>':
C:\bitcoin-0.8.6\src/leveldb.h:94: undefined reference to `leveldb::Status::ToSt
ring() const'
obj/txdb.o: In function `CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
WriteBatch()'
obj/txdb.o: In function `Write, uint256>':
C:\bitcoin-0.8.6\src/leveldb.h:42: undefined reference to `leveldb::WriteBatch::
Put(leveldb::Slice const&, leveldb::Slice const&)'
obj/txdb.o: In function `~CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
obj/txdb.o: In function `CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
WriteBatch()'
obj/txdb.o: In function `Write, std::basic_string
>':
C:\bitcoin-0.8.6\src/leveldb.h:42: undefined reference to `leveldb::WriteBatch::
Put(leveldb::Slice const&, leveldb::Slice const&)'
obj/txdb.o: In function `~CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
obj/txdb.o: In function `CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
WriteBatch()'
obj/txdb.o: In function `Write >, char>'
:
C:\bitcoin-0.8.6\src/leveldb.h:42: undefined reference to `leveldb::WriteBatch::
Put(leveldb::Slice const&, leveldb::Slice const&)'
obj/txdb.o: In function `~CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
obj/txdb.o: In function `CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
WriteBatch()'
obj/txdb.o: In function `Write':
C:\bitcoin-0.8.6\src/leveldb.h:42: undefined reference to `leveldb::WriteBatch::
Put(leveldb::Slice const&, leveldb::Slice const&)'
obj/txdb.o: In function `~CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
obj/txdb.o: In function `Read, std::basic_string >
':
C:\bitcoin-0.8.6\src/leveldb.h:94: undefined reference to `leveldb::Status::ToSt
ring() const'
obj/txdb.o: In function `Read, CDiskTxPos>':
C:\bitcoin-0.8.6\src/leveldb.h:94: undefined reference to `leveldb::Status::ToSt
ring() const'
obj/txdb.o: In function `CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
WriteBatch()'
obj/txdb.o: In function `~CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
obj/txdb.o: In function `CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
WriteBatch()'
obj/txdb.o: In function `Write, CDiskTxPos>':
C:\bitcoin-0.8.6\src/leveldb.h:42: undefined reference to `leveldb::WriteBatch::
Put(leveldb::Slice const&, leveldb::Slice const&)'
obj/txdb.o: In function `~CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
obj/txdb.o: In function `Read, CBlockFileInfo>':
C:\bitcoin-0.8.6\src/leveldb.h:94: undefined reference to `leveldb::Status::ToSt
ring() const'
obj/txdb.o: In function `Read, CCoins>':
C:\bitcoin-0.8.6\src/leveldb.h:94: undefined reference to `leveldb::Status::ToSt
ring() const'
obj/txdb.o: In function `CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
WriteBatch()'
obj/txdb.o: In function `Write, CBlockFileInfo>':
C:\bitcoin-0.8.6\src/leveldb.h:42: undefined reference to `leveldb::WriteBatch::
Put(leveldb::Slice const&, leveldb::Slice const&)'
obj/txdb.o: In function `~CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
obj/txdb.o: In function `Erase >':
C:\bitcoin-0.8.6\src/leveldb.h:51: undefined reference to `leveldb::WriteBatch::
Delete(leveldb::Slice const&)'
obj/txdb.o: In function `CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
WriteBatch()'
obj/txdb.o: In function `~CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
obj/txdb.o: In function `CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
WriteBatch()'
obj/txdb.o: In function `~CLevelDBBatch':
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
C:\bitcoin-0.8.6\src/leveldb.h:23: undefined reference to `leveldb::WriteBatch::
~WriteBatch()'
obj/txdb.o: In function `ZN8CLevelDB4ReadIc7uint256EEbRKT_RT0_':
C:\bitcoin-0.8.6\src/leveldb.h:94: undefined reference to `leveldb::Status::ToSt
ring() const'
obj/txdb.o: In function `ZN13CLevelDBBatch5WriteIc7uint256EEvRKT_RKT0_':
C:\bitcoin-0.8.6\src/leveldb.h:42: undefined reference to `leveldb::WriteBatch::
Put(leveldb::Slice const&, leveldb::Slice const&)'
obj/txdb.o: In function `ZN8CLevelDB4ReadISt4pairIcSsEcEEbRKT_RT0_':
C:\bitcoin-0.8.6\src/leveldb.h:94: undefined reference to `leveldb::Status::ToSt
ring() const'
obj/txdb.o: In function `ZN8CLevelDB4ReadIc7CBigNumEEbRKT_RT0_':
C:\bitcoin-0.8.6\src/leveldb.h:94: undefined reference to `leveldb::Status::ToSt
ring() const'
obj/txdb.o: In function `ZN13CLevelDBBatch5WriteISt4pairIc7uint256E15CDiskBlockI
ndexEEvRKT_RKT0_':
C:\bitcoin-0.8.6\src/leveldb.h:42: undefined reference to `leveldb::WriteBatch::
Put(leveldb::Slice const&, leveldb::Slice const&)'
obj/txdb.o: In function `ZN13CLevelDBBatch5WriteISt4pairIc7uint256E6CCoinsEEvRKT
_RKT0_':
C:\bitcoin-0.8.6\src/leveldb.h:42: undefined reference to `leveldb::WriteBatch::
Put(leveldb::Slice const&, leveldb::Slice const&)'
collect2.exe: error: ld returned 1 exit status
makefile.mingw:138: recipe for target 'bitcoind.exe' failed
mingw32-make: *** [bitcoind.exe] Error 1
full member
Activity: 131
Merit: 108
'nwhile'

Make sure patching is applied correctly.

when trying to compile libpng-1.6.8 I get the following error while configuring:
same with 1.6.9
Code:
checking for zlibVersion in -lz... no
checking for z_zlibVersion in -lz... no
configure: error: zlib not installed

How can I fix that?
I couldn´t find anything about it.

Thanks

Is your build environment set up correctly? Zlib is included in mingw-builds toolchain.
sr. member
Activity: 473
Merit: 250
"Proof-of-Asset Protocol"
Using Qt 5.2 (last step in the guide)

C:\bitcoin-0.8.6>mingw32-make -f Makefile.Release
cd C:/bitcoin-0.8.6/src/leveldb && CC=gcc CXX=g++ TARGET_OS=OS_WINDOWS_CROSSCOMP
ILE mingw32-make OPT="-pipe -fno-keep-inline-dllexport -D_FORTIFY_SOURCE=2 -O2"
libleveldb.a libmemenv.a && ranlib C:/bitcoin-0.8.6/src/leveldb/libleveldb.a &&
ranlib C:/bitcoin-0.8.6/src/leveldb/libmemenv.a
'CC' is not recognized as an internal or external command,
operable program or batch file.
Makefile.Release:319: recipe for target 'C:/bitcoin-0.8.6/src/leveldb/libleveldb
.a' failed
mingw32-make: *** [C:/bitcoin-0.8.6/src/leveldb/libleveldb.a] Error 1




Thanks

Did you build bitcoind? If not you should build leveldb and comment out genleveldb command in your .pro file before compiling.

bitcoind fails (followed the guide AS IS)


C:\bitcoin-0.8.6>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\XXX\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=PC
ComSpec=C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\XXX
LOCALAPPDATA=C:\Users\XXX\AppData\Local
LOGONSERVER=\\PC
NUMBER_OF_PROCESSORS=6
OS=Windows_NT
Path=C:\mingw32\bin;C:\Python33\;C:\Perl64\site\bin;C:\Perl64\bin;C:\Windows\sys
tem32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\
v1.0\;C:\Qt\5.2.1\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 45 Stepping 7, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=2d07
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
QTDIR=C:\Qt\5.2.1
QTSRC=C:\Qt\5.2.1\
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\XXX\AppData\Local\Temp
TMP=C:\Users\XXX\AppData\Local\Temp
USERDOMAIN=PC
USERNAME=XXX
USERPROFILE=C:\Users\XXX
windir=C:\Windows






C:\bitcoin-0.8.6>gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=c:/mingw32/bin/../libexec/gcc/i686-w64-mingw32/4.8.2/lto-wra
pper.exe
Target: i686-w64-mingw32
Configured with: ../../../src/gcc-4.8.2/configure --host=i686-w64-mingw32 --buil
d=i686-w64-mingw32 --target=i686-w64-mingw32 --prefix=/mingw32 --with-sysroot=/c
/mingw482/i686-482-posix-dwarf-rt_v3-r2/mingw32 --with-gxx-include-dir=/mingw32/
i686-w64-mingw32/include/c++ --enable-shared --enable-static --disable-multilib
--enable-languages=ada,c,c++,fortran,objc,obj-c++,lto --enable-libstdcxx-time=ye
s --enable-threads=posix --enable-libgomp --enable-lto --enable-graphite --enabl
e-checking=release --enable-fully-dynamic-string --enable-version-specific-runti
me-libs --disable-sjlj-exceptions --with-dwarf2 --disable-isl-version-check --di
sable-cloog-version-check --disable-libstdcxx-pch --disable-libstdcxx-debug --en
able-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-
werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=i686 --with-tun
e=generic --with-libiconv --with-system-zlib --with-gmp=/c/mingw482/prerequisite
s/i686-w64-mingw32-static --with-mpfr=/c/mingw482/prerequisites/i686-w64-mingw32
-static --with-mpc=/c/mingw482/prerequisites/i686-w64-mingw32-static --with-isl=
/c/mingw482/prerequisites/i686-w64-mingw32-static --with-cloog=/c/mingw482/prere
quisites/i686-w64-mingw32-static --enable-cloog-backend=isl --with-pkgversion='i
686-posix-dwarf, Built by MinGW-W64 project' --with-bugurl=http://sourceforge.ne
t/projects/mingw-w64 CFLAGS='-O2 -pipe -I/c/mingw482/i686-482-posix-dwarf-rt_v3-
r2/mingw32/opt/include -I/c/mingw482/prerequisites/i686-zlib-static/include -I/c
/mingw482/prerequisites/i686-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -I/
c/mingw482/i686-482-posix-dwarf-rt_v3-r2/mingw32/opt/include -I/c/mingw482/prere
quisites/i686-zlib-static/include -I/c/mingw482/prerequisites/i686-w64-mingw32-s
tatic/include' CPPFLAGS= LDFLAGS='-pipe -L/c/mingw482/i686-482-posix-dwarf-rt_v3
-r2/mingw32/opt/lib -L/c/mingw482/prerequisites/i686-zlib-static/lib -L/c/mingw4
82/prerequisites/i686-w64-mingw32-static/lib -Wl,--large-address-aware'
Thread model: posix
gcc version 4.8.2 (i686-posix-dwarf, Built by MinGW-W64 project)







C:\bitcoin-0.8.6\src>mingw32-make -f makefile.mingw

g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-par
ameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADS
AFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/l
eveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4
.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/main.o main.cpp
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-par
ameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADS
AFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/l
eveldb/helpers -I"C:/bitcoin-0.8.6/src" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4
.8.30.NC/build_unix" -I"c:/deps/openssl-1.0.1e/include" -o obj/net.o net.cpp
net.cpp: In function 'void ThreadOpenConnections()':
net.cpp:1288:34: error: expected ';' before '=' token
         for (int64 nwhile (true) = 0;; nwhile (true)++)
                                  ^
net.cpp:1288:34: error: expected primary-expression before '=' token
net.cpp:1288:38: error: expected primary-expression before ';' token
         for (int64 nwhile (true) = 0;; nwhile (true)++)
                                      ^
net.cpp:1288:38: error: expected ')' before ';' token
net.cpp:1288:40: error: name lookup of 'nwhile' changed for ISO 'for' scoping [-
fpermissive]
         for (int64 nwhile (true) = 0;; nwhile (true)++)
                                        ^
net.cpp:1288:40: note: (if you use '-fpermissive' G++ will accept your code)
net.cpp:1288:52: error: 'nwhile' cannot be used as a function
         for (int64 nwhile (true) = 0;; nwhile (true)++)
                                                    ^
net.cpp:1288:55: error: expected ';' before ')' token
         for (int64 nwhile (true) = 0;; nwhile (true)++)
                                                       ^
net.cpp:1902:1: error: expected '}' at end of input
 }
 ^
net.cpp:1902:1: error: expected '}' at end of input
makefile.mingw:135: recipe for target 'obj/net.o' failed
mingw32-make: *** [obj/net.o] Error 1


Do I need to change it back to LOOP to run it now?
newbie
Activity: 42
Merit: 0
yeah...but i think i'm about to give up making this work.   i was following the devtome guide, got everything running fine on ubuntu, wallet works and everything, but i can't get it to work with windows.  i've tried pretty much every option and have clean installed like 3 times.  i don't even want to make a windows wallet anymore.  i think my problem is the source code that it links me to and that i cloned from github, when i look at the -qt.pro, the version is: VERSION = 0.6.3

i think this is what is killing me, am i wrong?  do i have to re-do the whole fucking coin from square 1 cloning a more current coin?

On 0.6.3 you should link against qt 4.8 and apply these patches:
https://github.com/laanwj/bitcoin/commit/61d85071405b99c3734606eed31ea8f615c0c77a
https://github.com/bitcoin/bitcoin/commit/6c6255edb54bed780f0879c906dccf6cfa98b4db


thank you i will try when i get home!
newbie
Activity: 19
Merit: 0
when trying to compile libpng-1.6.8 I get the following error while configuring:
same with 1.6.9
Code:
checking for zlibVersion in -lz... no
checking for z_zlibVersion in -lz... no
configure: error: zlib not installed

How can I fix that?
I couldn´t find anything about it.

Thanks
full member
Activity: 131
Merit: 108
Using Qt 5.2 (last step in the guide)

C:\bitcoin-0.8.6>mingw32-make -f Makefile.Release
cd C:/bitcoin-0.8.6/src/leveldb && CC=gcc CXX=g++ TARGET_OS=OS_WINDOWS_CROSSCOMP
ILE mingw32-make OPT="-pipe -fno-keep-inline-dllexport -D_FORTIFY_SOURCE=2 -O2"
libleveldb.a libmemenv.a && ranlib C:/bitcoin-0.8.6/src/leveldb/libleveldb.a &&
ranlib C:/bitcoin-0.8.6/src/leveldb/libmemenv.a
'CC' is not recognized as an internal or external command,
operable program or batch file.
Makefile.Release:319: recipe for target 'C:/bitcoin-0.8.6/src/leveldb/libleveldb
.a' failed
mingw32-make: *** [C:/bitcoin-0.8.6/src/leveldb/libleveldb.a] Error 1



Thanks

Did you build bitcoind? If not you should build leveldb and comment out genleveldb command in your .pro file before compiling.
full member
Activity: 131
Merit: 108
yeah...but i think i'm about to give up making this work.   i was following the devtome guide, got everything running fine on ubuntu, wallet works and everything, but i can't get it to work with windows.  i've tried pretty much every option and have clean installed like 3 times.  i don't even want to make a windows wallet anymore.  i think my problem is the source code that it links me to and that i cloned from github, when i look at the -qt.pro, the version is: VERSION = 0.6.3

i think this is what is killing me, am i wrong?  do i have to re-do the whole fucking coin from square 1 cloning a more current coin?

On 0.6.3 you should link against qt 4.8 and apply these patches:
https://github.com/laanwj/bitcoin/commit/61d85071405b99c3734606eed31ea8f615c0c77a
https://github.com/bitcoin/bitcoin/commit/6c6255edb54bed780f0879c906dccf6cfa98b4db
sr. member
Activity: 473
Merit: 250
"Proof-of-Asset Protocol"
Using Qt 5.2 (last step in the guide)

C:\bitcoin-0.8.6>mingw32-make -f Makefile.Release
cd C:/bitcoin-0.8.6/src/leveldb && CC=gcc CXX=g++ TARGET_OS=OS_WINDOWS_CROSSCOMP
ILE mingw32-make OPT="-pipe -fno-keep-inline-dllexport -D_FORTIFY_SOURCE=2 -O2"
libleveldb.a libmemenv.a && ranlib C:/bitcoin-0.8.6/src/leveldb/libleveldb.a &&
ranlib C:/bitcoin-0.8.6/src/leveldb/libmemenv.a
'CC' is not recognized as an internal or external command,
operable program or batch file.
Makefile.Release:319: recipe for target 'C:/bitcoin-0.8.6/src/leveldb/libleveldb
.a' failed
mingw32-make: *** [C:/bitcoin-0.8.6/src/leveldb/libleveldb.a] Error 1



Thanks
newbie
Activity: 42
Merit: 0
yeah...but i think i'm about to give up making this work.   i was following the devtome guide, got everything running fine on ubuntu, wallet works and everything, but i can't get it to work with windows.  i've tried pretty much every option and have clean installed like 3 times.  i don't even want to make a windows wallet anymore.  i think my problem is the source code that it links me to and that i cloned from github, when i look at the -qt.pro, the version is: VERSION = 0.6.3

i think this is what is killing me, am i wrong?  do i have to re-do the whole fucking coin from square 1 cloning a more current coin?
full member
Activity: 131
Merit: 108
Using -j option when making qt will speed up things a lot. I would try -j4 on your i5. Hdd could also be a limiting factor.
newbie
Activity: 42
Merit: 0
when i get this far
Code:
set INCLUDE=C:\deps\libpng-1.6.8;C:\deps\openssl-1.0.1e\include
set LIB=C:\deps\libpng-1.6.8\.libs;C:\deps\openssl-1.0.1e

cd C:\Qt\5.2.1
configure.bat -release -opensource -confirm-license -static -make libs -no-sql-sqlite -no-opengl -system-zlib -qt-pcre -no-icu -no-gif -system-libpng -no-libjpeg -no-freetype -no-angle -no-vcproj -openssl -no-dbus -no-audio-backend -no-wmf-backend -no-qml-debug

mingw32-make

is it supposed to take over 20 minutes to compile?  i have an i5-2500 and it's been chugging at this for over 20 mins. keeps opening up new terminals and closing them as well which is very annoying.

edit: i think something is wrong, or i don't know.  it's still going.  it's been over 40 minutes.  i'm just gonna see what happens.

edit2: it just finished.  jesus, that took about 50 minutes.  lol.
newbie
Activity: 35
Merit: 0
I compiled successfully bitcoin-qt.exe, when I run bitcoin-qt.exe on win7 32-bit system, pop-up error message box: The program stops running; When I run on 64-bit systems, there is no interface program runs in task Manager can see the process, after a while the process did not, please help me! Huh Huh
sr. member
Activity: 308
Merit: 250
Thank you nitrogenetics.

I built bitcoin-qt successfully base on your guide and it's syncing.

Now I will try another. 

how did you get it to sync? mine always says no block source available. A little guidance is appreciated!
full member
Activity: 182
Merit: 100
Thank you nitrogenetics.

I built bitcoin-qt successfully base on your guide and it's syncing.

Now I will try another. 
Pages:
Jump to: