MonetDBLite-C icon indicating copy to clipboard operation
MonetDBLite-C copied to clipboard

It doesn't compile on windows

Open thomasguo opened this issue 6 years ago • 2 comments

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.

thomasguo avatar May 02 '18 23:05 thomasguo

.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.

glycerine avatar May 07 '18 20:05 glycerine

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

hannes avatar Jun 26 '18 14:06 hannes