Skip to content
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

Can't compile Cairo2 on Windows (Diskuv) #34

Open
F-Loyer opened this issue Feb 4, 2023 · 3 comments
Open

Can't compile Cairo2 on Windows (Diskuv) #34

F-Loyer opened this issue Feb 4, 2023 · 3 comments

Comments

@F-Loyer
Copy link

F-Loyer commented Feb 4, 2023

I am trying to compile lablgtk3 and it fails at cairo2.

It seems the include path doesn't contains freetype.

I have the error:

# compiling c program:
# [...]
#  | #else
#  | const char *s1 = "BEGIN-1-false-END";
#  | #endif
#  |
# run: cl -nologo -O2 -Gy- -MD    -I C:\gtk\include\cairo -I C:/Users/frede/AppData/Local/Programs/DISKUV~1/lib/ocaml -FoC:\Users\frede\AppData\Local\Temp\build_8016ba_dune\ocaml-configurator6f6e1a\c-test-2\test.obj -c C:\Users\frede\AppData\Local\Temp\build_8016ba_dune\ocaml-configurator6f6e1a\c-test-2\test.c
# -> process exited with code 2
# -> stdout:
#  | test.c
#  | C:\gtk\include\cairo\cairo-ft.h(46): fatal error C1083: Impossible d'ouvrir le fichier include : 'ft2build.h' : No such file or directory
# -> stderr:
# Error: failed to compile program

My cairo-features.h file has a #define CAIRO_HAS_FT_FONT 1 line, but discover.ml fails to find it.

@Chris00
Copy link
Owner

Chris00 commented Feb 5, 2023

Where is ft2build.h on your system?

@F-Loyer
Copy link
Author

F-Loyer commented Feb 5, 2023

It was in C:\Gtk\include\freetype2.

Fixed by adding the C:\Gtk\bin in the path (then the pkg-config is founded).

@Chris00
Copy link
Owner

Chris00 commented Feb 5, 2023

I've added that path to the discover script. Let me know how it goes.

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

No branches or pull requests

2 participants