Closed SeanRamey closed 3 years ago
please run xmake f -c -vD
and let me see the verbose errors
wee need not add add_requires("brotli", {system = false})
, there is brolti dep in freetype.
we need only add add_requires("freetype", {system = true})
Your two questions about xrepo/xmake are actually caused by the same problem. Because brolti is a dependent library of freetype, although using xrepo install freetype
or add_requires("freetype", {system=false})
will force to install them and ignore the system library.
But its dependent library brolti will still be used first as a system library.
I think there are two solutions
I will improve the search for these two system libraries and add the missing .a library, but it will take some time.
You can also use add_requireconfs("freetype.broli", {system = false})
to rewrite the dependency configuration first, force to install brolti, and ignore the brolti system library
I have improved to find freetype/brotli system library in xmake-repo
see https://github.com/xmake-io/xmake-repo/pull/318
you can update repo and try it
xmake repo -u
xmake f -c -vD
xmake
Describe the bug
Xrepo will attempt to install freetype before installing brotli, therefore causing freetype to fail installation. This is the relevant line from the xmake.lua:
add_requires("libsdl","libpng", "glib", "freetype", "brotli", {system = false}) -- brotli needed for freetype, but may have issues using the system library, so explicitly install from xmake
Expected behavior
Xrepo should install package dependencies first.
Error output
Related Environment