Open dmtrKovalenko opened 3 years ago
In your github action, you're setting the pkg config path correctly with PKG_CONFIG_PATH += 'C:\vcpkg\packages\libpng_x86-windows\lib\pkgconfig'
Are you doing the same when invoking the configurator script?
Sorry my bad my eyes are not reading anymore after 18 hours debugging windows CI :) I`ll triple check the env var and put the updates
No, it's not still no result when having correct PNG_CONFIG_PATH. BTW here is the link right to the github action https://github.com/dmtrKovalenko/odiff/pull/16/checks?check_run_id=1717472847
@nojb if you use pkg-config on windows, perhaps you know off the top of your head what the issue might be?
@nojb if you use pkg-config on windows, perhaps you know off the top of your head what the issue might be?
Sorry, I never use dune-configurator
, so I don't have a lot of experience here. Just by looking at the screenshot I see that the output of pkg-config
does not include any -I
flag. Can this be because under Unix, the header is in some default include path, but that path may not be included by default by the mingw64
compilers? Just a guess, maybe completely off the mark.
Expected Behavior
Once
pkg-config --libs libpng
returns the value get it and return fromC.Pkg_config.get
Actual Behavior
C.Pkg_config.get
on windows always returnNone
Reproduction
With a simple dune configurator executable
And discover.ml code
Observe that conf.cflags and conf.libs are always empty
Specifications
dune
(output ofdune --version
): 2.7.1ocaml
(output ofocamlc --version
): 4.11.1