Browse Source

windows build fixes

0.8
Wladimir J. van der Laan 14 years ago
parent
commit
8fe2308b34
  1. 15
      bitcoin-qt.pro
  2. 0
      src/bitcoinrpc.cpp
  3. 0
      src/bitcoinrpc.h
  4. 2
      src/init.cpp
  5. 9
      src/qt/bitcoin.cpp
  6. 26
      src/qt/forms/addressbookdialog.ui
  7. 3
      src/qt/guiutil.cpp
  8. 3
      src/qt/transactiondesc.cpp

15
bitcoin-qt.pro

@ -1,19 +1,20 @@
TEMPLATE = app TEMPLATE = app
TARGET = TARGET =
DEPENDPATH += .
INCLUDEPATH += src src/json src/cryptopp src/qt INCLUDEPATH += src src/json src/cryptopp src/qt
DEFINES += QT_GUI DEFINES += QT_GUI
# DEFINES += SSL
CONFIG += no_include_pwd
# for boost 1.37, add -mt to the boost libraries # for boost 1.37, add -mt to the boost libraries
unix:LIBS += -lssl -lcrypto -lboost_system -lboost_filesystem -lboost_program_options -lboost_thread -ldb_cxx unix:LIBS += -lssl -lcrypto -lboost_system -lboost_filesystem -lboost_program_options -lboost_thread -ldb_cxx
macx:DEFINES += __WXMAC_OSX__ MSG_NOSIGNAL=0 BOOST_FILESYSTEM_VERSION=3 macx:DEFINES += __WXMAC_OSX__ MSG_NOSIGNAL=0 BOOST_FILESYSTEM_VERSION=3
macx:LIBS += -lboost_thread-mt macx:LIBS += -lboost_thread-mt
windows:DEFINES += __WXMSW__
windows:LIBS += -lssl -lcrypto -lboost_system-mgw44-mt-1_43 -lboost_filesystem-mgw44-mt-1_43 -lboost_program_options-mgw44-mt-1_43 -lboost_thread-mgw44-mt-1_43 -ldb_cxx -lws2_32 -lgdi32
# disable quite some warnings because bitcoin core "sins" a lot # disable quite some warnings because bitcoin core "sins" a lot
QMAKE_CXXFLAGS_WARN_ON = -fdiagnostics-show-option -Wall -Wno-invalid-offsetof -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare -Wno-char-subscripts -Wno-unused-value -Wno-sequence-point -Wno-parentheses -Wno-unknown-pragmas -Wno-switch QMAKE_CXXFLAGS_WARN_ON = -fdiagnostics-show-option -Wall -Wno-invalid-offsetof -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare -Wno-char-subscripts -Wno-unused-value -Wno-sequence-point -Wno-parentheses -Wno-unknown-pragmas -Wno-switch
# TODO: WINDOWS defines, -DSSL
# Input # Input
DEPENDPATH += src/qt src src/cryptopp src json/include DEPENDPATH += src/qt src src/cryptopp src json/include
HEADERS += src/qt/bitcoingui.h \ HEADERS += src/qt/bitcoingui.h \
@ -60,7 +61,6 @@ HEADERS += src/qt/bitcoingui.h \
src/json/json_spirit_reader.h \ src/json/json_spirit_reader.h \
src/json/json_spirit_error_position.h \ src/json/json_spirit_error_position.h \
src/json/json_spirit.h \ src/json/json_spirit.h \
src/rpc.h \
src/qt/clientmodel.h \ src/qt/clientmodel.h \
src/qt/guiutil.h \ src/qt/guiutil.h \
src/qt/transactionrecord.h \ src/qt/transactionrecord.h \
@ -75,7 +75,8 @@ HEADERS += src/qt/bitcoingui.h \
src/keystore.h \ src/keystore.h \
src/qt/transactionfilterproxy.h \ src/qt/transactionfilterproxy.h \
src/qt/transactionview.h \ src/qt/transactionview.h \
src/qt/walletmodel.h src/qt/walletmodel.h \
src/bitcoinrpc.h
SOURCES += src/qt/bitcoin.cpp src/qt/bitcoingui.cpp \ SOURCES += src/qt/bitcoin.cpp src/qt/bitcoingui.cpp \
src/qt/transactiontablemodel.cpp \ src/qt/transactiontablemodel.cpp \
src/qt/addresstablemodel.cpp \ src/qt/addresstablemodel.cpp \
@ -91,7 +92,6 @@ SOURCES += src/qt/bitcoin.cpp src/qt/bitcoingui.cpp \
src/script.cpp \ src/script.cpp \
src/main.cpp \ src/main.cpp \
src/init.cpp \ src/init.cpp \
src/rpc.cpp \
src/net.cpp \ src/net.cpp \
src/irc.cpp \ src/irc.cpp \
src/db.cpp \ src/db.cpp \
@ -111,7 +111,8 @@ SOURCES += src/qt/bitcoin.cpp src/qt/bitcoingui.cpp \
src/keystore.cpp \ src/keystore.cpp \
src/qt/transactionfilterproxy.cpp \ src/qt/transactionfilterproxy.cpp \
src/qt/transactionview.cpp \ src/qt/transactionview.cpp \
src/qt/walletmodel.cpp src/qt/walletmodel.cpp \
src/bitcoinrpc.cpp
RESOURCES += \ RESOURCES += \
src/qt/bitcoin.qrc src/qt/bitcoin.qrc

0
src/rpc.cpp → src/bitcoinrpc.cpp

0
src/rpc.h → src/bitcoinrpc.h

2
src/init.cpp

@ -3,7 +3,7 @@
// file license.txt or http://www.opensource.org/licenses/mit-license.php. // file license.txt or http://www.opensource.org/licenses/mit-license.php.
#include "headers.h" #include "headers.h"
#include "db.h" #include "db.h"
#include "rpc.h" #include "bitcoinrpc.h"
#include "net.h" #include "net.h"
#include "init.h" #include "init.h"
#include "strlcpy.h" #include "strlcpy.h"

9
src/qt/bitcoin.cpp

@ -113,6 +113,9 @@ int main(int argc, char *argv[])
{ {
if(AppInit2(argc, argv)) if(AppInit2(argc, argv))
{ {
{
// Put this in a block, so that BitcoinGUI is cleaned up properly before
// calling shutdown.
BitcoinGUI window; BitcoinGUI window;
ClientModel clientModel(pwalletMain); ClientModel clientModel(pwalletMain);
WalletModel walletModel(pwalletMain); WalletModel walletModel(pwalletMain);
@ -122,12 +125,11 @@ int main(int argc, char *argv[])
window.show(); window.show();
int retval = app.exec(); app.exec();
guiref = 0; guiref = 0;
}
Shutdown(NULL); Shutdown(NULL);
return retval;
} }
else else
{ {
@ -138,4 +140,5 @@ int main(int argc, char *argv[])
} catch (...) { } catch (...) {
PrintException(NULL, "Runaway exception"); PrintException(NULL, "Runaway exception");
} }
return 0;
} }

26
src/qt/forms/addressbookdialog.ui

@ -100,19 +100,6 @@
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout">
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item> <item>
<widget class="QPushButton" name="newAddressButton"> <widget class="QPushButton" name="newAddressButton">
<property name="toolTip"> <property name="toolTip">
@ -155,6 +142,19 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item> <item>
<widget class="QDialogButtonBox" name="buttonBox"> <widget class="QDialogButtonBox" name="buttonBox">
<property name="sizePolicy"> <property name="sizePolicy">

3
src/qt/guiutil.cpp

@ -1,6 +1,7 @@
#include "guiutil.h" #include "guiutil.h"
#include "bitcoinaddressvalidator.h" #include "bitcoinaddressvalidator.h"
#include "util.h"
#include "headers.h"
#include <QString> #include <QString>
#include <QDateTime> #include <QDateTime>

3
src/qt/transactiondesc.cpp

@ -1,7 +1,8 @@
#include <transactiondesc.h> #include <transactiondesc.h>
#include "guiutil.h" #include "guiutil.h"
#include "main.h"
#include "headers.h"
#include "qtui.h" #include "qtui.h"
#include <QString> #include <QString>

Loading…
Cancel
Save