Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

It doesn't compile on windows #7

Open
thomasguo opened this issue May 2, 2018 · 2 comments
Open

It doesn't compile on windows #7

thomasguo opened this issue May 2, 2018 · 2 comments

Comments

@thomasguo
Copy link

thomasguo commented May 2, 2018

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 thomasguo changed the title Cannot compile on windows It doesn't compile on windows May 2, 2018
@glycerine
Copy link

glycerine commented May 7, 2018

.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
Copy link
Contributor

hannes commented Jun 26, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants