xmake-io / xrepo

🗂️ A cross-platform C/C++ package manager based on Xmake
https://xrepo.xmake.io
Apache License 2.0
354 stars 18 forks source link

Freetype not installing #3

Closed SeanRamey closed 3 years ago

SeanRamey commented 3 years ago

Xrepo will not install freetype. On discord, we determined that it was because xrepo can't find the BrotliDecoderDecompress symbol on my system's brotli library. The issue is that my system's brotli install seperates the library into 3 files: libbrotlicommon-static.a, libbrotlienc-static.a, and libbrotlidec-static.a. The file libbrotlidec-static.a is where the BrotliDecoderDecompress symbol is defined.

Expected behavior

Should install without issue.

Error output

[sean@sean-pc-arch ~]$ xrepo install freetype note: try installing these packages (pass -y to skip confirm)? in xmake-repo: -> freetype 2.10.4 please input: y (y/n) y => install freetype 2.10.4 .. failed if you want to get verbose errors, please see: -> /home/sean/.xmake/cache/packages/2103/f/freetype/2.10.4/installdir.failed/logs/install.txt error: install failed! error: execv(xmake require -j 9 --extra={system=false} freetype) failed(255)

If it is a xmake related compilation problem, please add the -v -D parameter and give the detailed compilation output information.

Related Environment

waruqi commented 3 years ago

you can run xmake f -c -vD and let me see the verbose errors

waruqi commented 3 years ago

This is because xmake/xrepo will first find the system brotli library, I will improve find_package("brotli") to support it.

can you run pkg-config --cflags --libs brotli and pkg-config --cflags --libs freetype ?

I need get the output info to improve to find these libraries.

SeanRamey commented 3 years ago

This is because xmake/xrepo will first find the system brotli library, I will improve find_package("brotli") to support it.

This particular issue is not really because it finds the system library. There is an issue finding a symbol because it's not looking for the right file in the system library.

SeanRamey commented 3 years ago

Here is the output of the xmake f -c -vD command: xmakeout.txt

waruqi commented 3 years ago

I have improved it, see https://github.com/xmake-io/xrepo/issues/4#issuecomment-794788058