aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-07-04 18:17:26 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-07-04 18:17:26 +0300
commitd880441f7e2631854803dd95458d11bef1a145a3 (patch)
treec8413a15a20c065362d6187ef6f39f08e75ee456
parent0c093423f1da576d8b92363cc1e2f6dded8e907a (diff)
downloadmonzero-gui-d880441f7e2631854803dd95458d11bef1a145a3.tar.gz
monzero-gui-d880441f7e2631854803dd95458d11bef1a145a3.tar.xz
monzero-gui-d880441f7e2631854803dd95458d11bef1a145a3.zip
MSYS2/Win64 build fixed
-rwxr-xr-xget_libwallet_api.sh4
-rw-r--r--monero-core.pro31
2 files changed, 32 insertions, 3 deletions
diff --git a/get_libwallet_api.sh b/get_libwallet_api.sh
index 7410365a..60f86d32 100755
--- a/get_libwallet_api.sh
+++ b/get_libwallet_api.sh
@@ -32,10 +32,10 @@ elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
cmake -D CMAKE_BUILD_TYPE=Release -D STATIC=ON -D CMAKE_INSTALL_PREFIX="$BITMONERO_DIR" ../..
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ]; then
# Do something under Windows NT platform
- cmake -D CMAKE_BUILD_TYPE=Release -D STATIC=ON -D CMAKE_INSTALL_PREFIX="$BITMONERO_DIR" -G "MinGW Makefiles" ../..
-
+ cmake -D CMAKE_BUILD_TYPE=Release -D STATIC=ON -D CMAKE_INSTALL_PREFIX="$BITMONERO_DIR" -G "MSYS Makefiles" ../..
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
# Do something under Windows NT platform
+ cmake -D CMAKE_BUILD_TYPE=Release -D STATIC=ON -D CMAKE_INSTALL_PREFIX="$BITMONERO_DIR" -G "MSYS Makefiles" ../..
fi
diff --git a/monero-core.pro b/monero-core.pro
index 8ce4a16a..b345a3d7 100644
--- a/monero-core.pro
+++ b/monero-core.pro
@@ -42,12 +42,41 @@ SOURCES = *.qml \
LIBS += -L$$WALLET_ROOT/lib \
-lwallet_merged \
+ -lwallet_merged2
+
+win32 {
+ #QMAKE_LFLAGS += -static
+ LIBS+= \
+ -Wl,-Bstatic \
+ -lboost_serialization-mt \
+ -lboost_thread-mt \
+ -lboost_system-mt \
+ -lboost_date_time-mt \
+ -lboost_filesystem-mt \
+ -lboost_regex-mt \
+ -lboost_chrono-mt \
+ -lboost_program_options-mt \
+ -lssl \
+ -lcrypto \
+ -Wl,-Bdynamic \
+ -lws2_32 \
+ -lwsock32 \
+ -lIphlpapi \
+ -lgdi32
+}
+
+unix {
+ LIBS+= \
-lboost_serialization \
-lboost_thread \
-lboost_system \
-lboost_date_time \
-lboost_filesystem \
- -lboost_regex
+ -lboost_regex \
+ -lboost_chrono \
+ -lboost_program_options
+
+}