apk build error: bzlib.h: No such file or directory
See original GitHub issueos: openSUSE tumlbeweed linux p4a version: git master android ndk version: r17c
I tried to build apk with p4a:
p4a apk --private /home/z/pproj/paradox_ssh/ --version=1.7 --bootstrap=sdl2 --local-recipes=./recipes --requirements=python3,kivy-async,openssl,sqlite3,pil,requests,sdl2,plyer --whitelist=./whitelist.txt --permission=CALL_PHONE --permission=INTERNET --orientation=portrait --package=org.spbelect.paradox2 --name="paradox2" --release
The build failed with an error:
/home/u1/.local/share/python-for-android/build/other_builds/freetype/armeabi-v7a__ndk_target_19/freetype/src/bzip2/ftbzip2.c:52:19: fatal error: bzlib.h: No such file or directory #include <bzlib.h> ^ compilation terminated.
full p4a stdout: https://gist.github.com/Fak3/5fca7ea090ddcc78be30571c8f4f91d8
I do have bzlib headers installed:
> rpm -ql libbz2-devel
/usr/include/bzlib.h
/usr/lib64/libbz2.so
/usr/lib64/pkgconfig/bzip2.pc
/usr/share/doc/packages/libbz2-devel
/usr/share/doc/packages/libbz2-devel/CHANGES
/usr/share/licenses/libbz2-devel
/usr/share/licenses/libbz2-devel/LICENSE
But somehow recipe cannot find the headers
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
Thanks! It worked
I think that I found what happen here:
The thing is that, for debian os and derivatives, there is a
bug
because the pkg-config is not distributed alongside thebzip2-devel
libbz2-dev
(libbz2-devel
for openSuse) package, so when we build freetype we don’t get bzip2 support , not your case withopenSuse
, which it finds the pkg-config and tries to use that (Checking your freetype’s configure.log against mine, I noticed that your compilation is using bzip2 and it clearly fails, but my bzip2 library is never found because of the missing pkg-config file)See also: https://gist.github.com/Fak3/5684594ac9b3c8a72eff15f8b55e08ff#file-config-log-L896
Could you try if the solution posted at #1857 works for you?