can anybody tell me how to build gapminer_dcct_mod.zip with mingw ?
I get some linking errors, a makefile that works would be nice... or well any help is appreciated
You'll probably need to compile all missing libraries for Windows.
But you maybe could install some of those libraries within the mingw environment, but I didn't tried that.
For example, a makefile to compile gapminer_dcct with all libraries linked statically would look like this:
SRC = ./src
BIN = ./bin
CC = g++
CXXFLAGS = -O3 -c -lm -pthread \
--param max-inline-insns-single=1000 \
-Wno-write-strings \
-I/c/deps64/boost_1_55_0 \
-I/c/deps64/gmp-6.0.0 \
-I/c/deps64/mpfr-3.1.2/src \
-I/c/deps64/openssl-1.0.1h/include \
-I/c/deps64/jansson-2.7/src \
-I/c/deps64/curl-7.24.0/include -DWINDOWS -DCURL_STATICLIB -lcurl
LDFLAGS = -static -lcrypto -lmpfr -lgmp -pthread -O3 \
-lssl -lcrypto -lws2_32 -lz -lws2_32 -lgmp -lmpfr -ljansson -lm \
/c/deps64/boost_1_55_0/stage/lib/libboost_system-mgw49-mt-s-1_55.a \
-L/c/deps64/gmp-6.0.0/.libs \
-L/c/deps64/mpfr-3.1.2/src/.libs \
-L/c/deps64/curl-7.24.0/lib/.libs/ \
-L/c/deps64/jansson-2.7/src/.libs \
-L/c/deps64/openssl-1.0.1h/ -lcurl -lws2_32 -lz
.PHONY: clean test all install
# default target
all: link
$(CC) $(ALL_OBJ) $(LDFLAGS) -o $(BIN)/gapminer
install: all
cp $(BIN)/gapminer /usr/bin/
ALL_SRC = $(shell find $(SRC) -type f -name '*.cpp')
ALL_OBJ = $(ALL_SRC:%.cpp=%.o)
%.o: %.cpp
$(CC) $(CXXFLAGS) $^ -o $@
compile: $(ALL_OBJ) $(ALL_OBJ)
prepare:
@mkdir -p bin
link: prepare compile
clean:
rm -rf $(BIN)
rm -f $(ALL_OBJ) $(ALL_OBJ)
All dependent libraries are built within the directory C:\deps64
The libraries are given eighter by the -L switch or the direct path to the static compiled library file.
Another tutorial which might help you:
https://bitcointalk.org/index.php?topic=149479.0If you discover any weird problems, I suggest building a compiler environment on a fresh windows installation, for example using virtualbox.