-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make file not working? #9
Comments
The makefile is working here on Arch Linux with GNU Make 4.2.1. Which version of make do you have? |
I am using windows 10, there is a make.exe that was included in the package of dmd32... |
Yeah, the DigitalMars Make will probably not work. Luckily you can compile capnpc-dlang manually, it is implemented in a single file. The file is compiler/src/main/cpp/capnpc-dlang.c++. You need to link it to libcapnp and libkj from the Cap'n Proto C++ implementation. Look at what the makefile is doing if you need inspiration. |
I tried installing mingw-msys and some of its dependencies, however this is what I get Package capnp was not found in the pkg-config search path. I don't know c++, which compiler do I need to compile that file? is DMC enough or should I just install a c++ compiler? I came from php, and don't know much about makefile. I guess I need more studying before I can use this library... |
Your msys+mingw should work fine. Just install C++ Cap'n Proto first. Note that the built D application will not depend on the C++ Cap'n Proto. |
This is the error that I get, even if I put the capnp/schema.capnp.h to the same folder, as capnpc-dlang.c++ it doesn't see the file...
|
You can give the compiler another include directory by passing -I c:\path\to\capnp\header\files to g++. The path you give it must contain the capnp directory. |
After passing -I header_path, I now get so many errors, but all of it are undefined references,
|
Those symbols are a part of kj and capnp which are passed to the compiler as "-lkj -lcapnp". Does it say anything about not finding those libraries? |
Here are the commands, that I write, if I add -lkj and -lcapnp this is the error, but when I remove them, I get the ones above, all of it are undefined references, but it didn't say anything about not finding them...
|
Use -L to set the path to the libkj.a and libcapnp.a libraries. |
I cloned this repo, and used make, but make is spewing errors, is it broken? or is the tutorial incomplete?
Error on line 3: expecting target : dependecies
I'm really new to this, I just found capnproto-dlang while looking for alternatives to json..
The text was updated successfully, but these errors were encountered: