MonetDB / MonetDBLite-C

MonetDB as a shared library with a C API
33 stars 14 forks source link

It doesn't compile on windows #7

Open thomasguo opened 6 years ago

thomasguo commented 6 years ago

Hi,

First of all thank you for the great work about MonetDBLite! I'd like to give it a try to embed MonetDB in my GUI application. I downloaded the MonetDBLite-C source code zip ball and tried to compile it on my laptop with the command: mingw32-make -j

But it failed with the following information: gcc -DLIBGDK -DLIBMAL -DLIBOPTIMIZER -DLIBSTREAM -Wno-attributes -Wno-format -DM ONETDBLITE_COMPILE -MMD -MF build/debug/deps/common/stream.d -Isrc/ -Isrc/common -Isrc/embedded -Isrc/gdk -Isrc/mal/mal -Isrc/mal/modules -Isrc/mal/optimizer -I src/mal/sqlbackend -Isrc/sql/include -Isrc/sql/common -Isrc/sql/server -Isrc/sql /storage -Isrc/sql/storage/bat -g -Wall -Wextra -Werror -c src/common/stream.c - o build/debug/common/stream.o src/common/stream.c:4228:1: fatal error: opening dependency file build/debug/dep s/common/stream.d: No such file or directory } ^ compilation terminated. Makefile:331: recipe for target 'build/debug/common/stream.o' failed mingw32-make: *** [build/debug/common/stream.o] Error 1

My dev enviroment is: Windows7 sp1 MinGW64 (V6.3.0 & V7.2.0)

Could you please help? BTW on my ubuntu box the source code compiles successfully.

glycerine commented 6 years ago

.d files are typically dependency files that extend the makefile and are generated when a target like make depend is run. If you have them generated correctly on your ubuntu build correctly, you could try copying them over to windows. Note that I'm not an author or contributor, but I would also like to see it working on windows.

hannes commented 6 years ago

you could try to disable dependency generation, remove the -MMD -MF $(subst $(OBJDIR),$(DEPSDIR),$(subst .o,.d,$@)) part from the Makefile