Replies: 2 comments 12 replies
-
Good news: I know how to pass linker flags properly.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
It looks like the Zig build is similar to Meson |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As mentioned in #2652 (comment), creating a
build.zig
file to compile dlib would help reduce the number of bug reports and issues open due to people not being able to install dlib.I have already started and you can follow the progress here.
It's still very raw, but it can already compile dlib and this simple example:
All you need to do is add this at the end of the
build.zig
file:The whole steps look like
path/to/the/binary/zig build
If you added those lines to the
build.zig
file, you'll have animage
executable inzig-out/bin/
that will read an image from the first argument and save a PNG and a JPEG version.I've also seen that, on Windows, Zig can target MSVC: https://github.com/adamserafini/zaml/blob/main/builder.py#L21.
So, it should be possible to build the Python module on Windows targeting MSVC.
I will keep developing this when I have free time :)
I haven't managed to use the compiled
libdlib.a
with clang or gcc, apparently I don't know how to pass linker flags properly.Here's what I am doing, in case someone can spot the mistake:
Beta Was this translation helpful? Give feedback.
All reactions