termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
13.18k stars 3.02k forks source link

How to build libcaca with imlib2 support? #4280

Closed H4ck3r404 closed 5 years ago

H4ck3r404 commented 5 years ago

I have problem with libcaca. It does not support files other that .bmp even after I installed x11-repo and imlib2. I've tried to reinstall libcaca after installing imlib2 but it doesn't work. I've also read this article: https://github.com/termux/termux-packages/issues/4062 which says that there is a way to build libcaca with imlib2. Is there still a way to do this and if it is how to do it?

ghost commented 5 years ago

It should be enough to do

./configure --prefix=$PREFIX
make
make install

from libcaca source code directory.

H4ck3r404 commented 5 years ago

I tried it in libcaca directory from github but it doesn't work. I've run bootstrap and then commands above but it changed nothing. Do I need to install imlib2 and libcaca manualy from .deb or something?

ghost commented 5 years ago

I tried it in libcaca directory from github but it doesn't work.

Do I need to install imlib2 and libcaca manualy from .deb or something?

build from source != install

H4ck3r404 commented 5 years ago

I had imlib2 installed from x11-repo all the time. And for which command should i use --enable-imlib2 parameters? (I never builded anything from source.) That's the log of installing libcaca from: http://fossies.org/linux/privat/libcaca-0.99.beta19.tar.gz (I had same errors using git version.)

$ wget http://fossies.org/linux/privat/libcaca-0.99.beta19.tar.gz URL transformed to HTTPS due to an HSTS policy --2019-09-11 14:50:41-- https://fossies.org/linux/privat/libcaca-0.99.beta19.tar .gz Resolving fossies.org... 144.76.163.196 Connecting to fossies.org|144.76.163.196|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1203495 (1.1M) [application/x-gzip] Saving to: ‘libcaca-0.99.beta19.tar.gz’

libcaca-0.99.beta19. 100%[===================>] 1.15M 2.34MB/s in 0.5s

2019-09-11 14:50:42 (2.34 MB/s) - ‘libcaca-0.99.beta19.tar.gz’ saved [1203495/120 3495]

$ tar xvzf libcaca-0.99.beta19.tar.gz libcaca-0.99.beta19/ libcaca-0.99.beta19/README libcaca-0.99.beta19/.auto/ libcaca-0.99.beta19/.auto/missing libcaca-0.99.beta19/.auto/test-driver libcaca-0.99.beta19/.auto/py-compile libcaca-0.99.beta19/.auto/config.sub libcaca-0.99.beta19/.auto/config.guess libcaca-0.99.beta19/.auto/compile libcaca-0.99.beta19/.auto/install-sh libcaca-0.99.beta19/.auto/depcomp libcaca-0.99.beta19/.auto/ltmain.sh libcaca-0.99.beta19/ChangeLog libcaca-0.99.beta19/config.h.in libcaca-0.99.beta19/kernel/ libcaca-0.99.beta19/kernel/kernel.c libcaca-0.99.beta19/kernel/Makefile.in libcaca-0.99.beta19/kernel/kernel.h libcaca-0.99.beta19/kernel/multiboot.h libcaca-0.99.beta19/kernel/bootsect.S libcaca-0.99.beta19/kernel/Makefile.am libcaca-0.99.beta19/tools/ libcaca-0.99.beta19/tools/sortchars.c libcaca-0.99.beta19/tools/Makefile.in libcaca-0.99.beta19/tools/optipal.c libcaca-0.99.beta19/tools/makefont.c libcaca-0.99.beta19/tools/Makefile.am libcaca-0.99.beta19/COPYING.LGPL libcaca-0.99.beta19/python/ libcaca-0.99.beta19/python/Makefile.in libcaca-0.99.beta19/python/caca/ libcaca-0.99.beta19/python/caca/common.py libcaca-0.99.beta19/python/caca/canvas.py libcaca-0.99.beta19/python/caca/dither.py libcaca-0.99.beta19/python/caca/init.py libcaca-0.99.beta19/python/caca/display.py libcaca-0.99.beta19/python/caca/font.py libcaca-0.99.beta19/python/setup.py libcaca-0.99.beta19/python/examples/ libcaca-0.99.beta19/python/examples/figfont.py libcaca-0.99.beta19/python/examples/frames.py libcaca-0.99.beta19/python/examples/drawing.py libcaca-0.99.beta19/python/examples/text.py libcaca-0.99.beta19/python/examples/driver.py libcaca-0.99.beta19/python/examples/gol.py libcaca-0.99.beta19/python/examples/img2txt.py libcaca-0.99.beta19/python/examples/blit.py libcaca-0.99.beta19/python/examples/cacainfo.py libcaca-0.99.beta19/python/examples/colors.py libcaca-0.99.beta19/python/examples/event.py libcaca-0.99.beta19/python/Makefile.am libcaca-0.99.beta19/src/ libcaca-0.99.beta19/src/aafire.c libcaca-0.99.beta19/src/cacademo.c libcaca-0.99.beta19/src/cacadraw.c libcaca-0.99.beta19/src/Makefile.in libcaca-0.99.beta19/src/cacafire.vcxproj libcaca-0.99.beta19/src/cacaview.vcxproj libcaca-0.99.beta19/src/cacaplay.c libcaca-0.99.beta19/src/cacaserver.c libcaca-0.99.beta19/src/cacademo.vcxproj libcaca-0.99.beta19/src/img2txt.c libcaca-0.99.beta19/src/cacaview.c libcaca-0.99.beta19/src/caca.txt libcaca-0.99.beta19/src/cacaclock.c libcaca-0.99.beta19/src/common-image.h libcaca-0.99.beta19/src/texture.h libcaca-0.99.beta19/src/Makefile.am libcaca-0.99.beta19/src/common-image.c libcaca-0.99.beta19/bootstrap libcaca-0.99.beta19/test/ libcaca-0.99.beta19/test/dirty.cpp libcaca-0.99.beta19/test/driver.cpp libcaca-0.99.beta19/test/Makefile.in libcaca-0.99.beta19/test/bench.c libcaca-0.99.beta19/test/check-copyright libcaca-0.99.beta19/test/caca-test.cpp libcaca-0.99.beta19/test/export.cpp libcaca-0.99.beta19/test/check-doxygen libcaca-0.99.beta19/test/check-win32 libcaca-0.99.beta19/test/canvas.cpp libcaca-0.99.beta19/test/check-source libcaca-0.99.beta19/test/simple.c libcaca-0.99.beta19/test/Makefile.am libcaca-0.99.beta19/Makefile.in libcaca-0.99.beta19/caca-config.in libcaca-0.99.beta19/COPYING.ISC libcaca-0.99.beta19/configure.ac libcaca-0.99.beta19/libcaca.spec libcaca-0.99.beta19/caca/ libcaca-0.99.beta19/caca/monobold12.data libcaca-0.99.beta19/caca/file.c libcaca-0.99.beta19/caca/triangle.c libcaca-0.99.beta19/caca/legacy.c libcaca-0.99.beta19/caca/canvas.c libcaca-0.99.beta19/caca/Makefile.in libcaca-0.99.beta19/caca/libcaca.vcxproj libcaca-0.99.beta19/caca/dirty.c libcaca-0.99.beta19/caca/driver/ libcaca-0.99.beta19/caca/driver/cocoa.m libcaca-0.99.beta19/caca/driver/slang.c libcaca-0.99.beta19/caca/driver/null.c libcaca-0.99.beta19/caca/driver/win32.c libcaca-0.99.beta19/caca/driver/ncurses.c libcaca-0.99.beta19/caca/driver/x11.c libcaca-0.99.beta19/caca/driver/conio.c libcaca-0.99.beta19/caca/driver/raw.c libcaca-0.99.beta19/caca/driver/vga.c libcaca-0.99.beta19/caca/driver/gl.c libcaca-0.99.beta19/caca/string.c libcaca-0.99.beta19/caca/caca_types.h libcaca-0.99.beta19/caca/figfont.c libcaca-0.99.beta19/caca/graphics.c libcaca-0.99.beta19/caca/transform.c libcaca-0.99.beta19/caca/caca_conio.h libcaca-0.99.beta19/caca/attr.c libcaca-0.99.beta19/caca/frame.c libcaca-0.99.beta19/caca/conic.c libcaca-0.99.beta19/caca/libcaca.def libcaca-0.99.beta19/caca/mono9.data libcaca-0.99.beta19/caca/caca_stubs.h libcaca-0.99.beta19/caca/caca_internals.h libcaca-0.99.beta19/caca/caca.h libcaca-0.99.beta19/caca/prof.c libcaca-0.99.beta19/caca/caca_prof.h libcaca-0.99.beta19/caca/font.c libcaca-0.99.beta19/caca/charset.c libcaca-0.99.beta19/caca/box.c libcaca-0.99.beta19/caca/caca.c libcaca-0.99.beta19/caca/codec/ libcaca-0.99.beta19/caca/codec/export.c libcaca-0.99.beta19/caca/codec/import.c libcaca-0.99.beta19/caca/codec/text.c libcaca-0.99.beta19/caca/codec/codec.h libcaca-0.99.beta19/caca/getopt.c libcaca-0.99.beta19/caca/caca.pc.in libcaca-0.99.beta19/caca/caca0.c libcaca-0.99.beta19/caca/caca0.h libcaca-0.99.beta19/caca/event.c libcaca-0.99.beta19/caca/caca_conio.c libcaca-0.99.beta19/caca/caca_debug.h libcaca-0.99.beta19/caca/dither.c libcaca-0.99.beta19/caca/line.c libcaca-0.99.beta19/caca/time.c libcaca-0.99.beta19/caca/Makefile.am libcaca-0.99.beta19/COPYING libcaca-0.99.beta19/aclocal.m4 libcaca-0.99.beta19/configure libcaca-0.99.beta19/win32/ libcaca-0.99.beta19/win32/Makefile.in libcaca-0.99.beta19/win32/config.h libcaca-0.99.beta19/win32/Makefile.am libcaca-0.99.beta19/NOTES libcaca-0.99.beta19/examples/ libcaca-0.99.beta19/examples/export.c libcaca-0.99.beta19/examples/trifiller.c libcaca-0.99.beta19/examples/hsv.c libcaca-0.99.beta19/examples/unicode.c libcaca-0.99.beta19/examples/canvas.c libcaca-0.99.beta19/examples/Makefile.in libcaca-0.99.beta19/examples/colors.c libcaca-0.99.beta19/examples/swallow.c libcaca-0.99.beta19/examples/gamma.c libcaca-0.99.beta19/examples/driver.c libcaca-0.99.beta19/examples/truecolor.c libcaca-0.99.beta19/examples/blit.c libcaca-0.99.beta19/examples/figfont.c libcaca-0.99.beta19/examples/conio-snake.cpp libcaca-0.99.beta19/examples/import.c libcaca-0.99.beta19/examples/transform.c libcaca-0.99.beta19/examples/font2tga.c libcaca-0.99.beta19/examples/text.c libcaca-0.99.beta19/examples/mouse.c libcaca-0.99.beta19/examples/dithering.c libcaca-0.99.beta19/examples/font.c libcaca-0.99.beta19/examples/fullwidth.c libcaca-0.99.beta19/examples/input.c libcaca-0.99.beta19/examples/conio.c libcaca-0.99.beta19/examples/spritedit.c libcaca-0.99.beta19/examples/event.c libcaca-0.99.beta19/examples/demo0.c libcaca-0.99.beta19/examples/frames.c libcaca-0.99.beta19/examples/demo.c libcaca-0.99.beta19/examples/Makefile.am libcaca-0.99.beta19/libcaca.sln libcaca-0.99.beta19/build-dos libcaca-0.99.beta19/COPYING.GPL libcaca-0.99.beta19/build-win64 libcaca-0.99.beta19/build-win32 libcaca-0.99.beta19/caca-sharp/ libcaca-0.99.beta19/caca-sharp/Attr.cs libcaca-0.99.beta19/caca-sharp/AssemblyInfo.cs libcaca-0.99.beta19/caca-sharp/Caca.cs libcaca-0.99.beta19/caca-sharp/Makefile.in libcaca-0.99.beta19/caca-sharp/test.cs libcaca-0.99.beta19/caca-sharp/test-csharp.csproj libcaca-0.99.beta19/caca-sharp/caca-sharp.snk libcaca-0.99.beta19/caca-sharp/Canvas.cs libcaca-0.99.beta19/caca-sharp/caca-sharp.dll.config.in libcaca-0.99.beta19/caca-sharp/Dither.cs libcaca-0.99.beta19/caca-sharp/Font.cs libcaca-0.99.beta19/caca-sharp/Display.cs libcaca-0.99.beta19/caca-sharp/Makefile.am libcaca-0.99.beta19/caca-sharp/Event.cs libcaca-0.99.beta19/caca-sharp/caca-sharp.csproj libcaca-0.99.beta19/caca-sharp/caca-sharp.pc.in libcaca-0.99.beta19/cxx/ libcaca-0.99.beta19/cxx/caca++.cpp libcaca-0.99.beta19/cxx/libcaca++.def libcaca-0.99.beta19/cxx/libcaca++.vcxproj libcaca-0.99.beta19/cxx/Makefile.in libcaca-0.99.beta19/cxx/cxxtest.cpp libcaca-0.99.beta19/cxx/test-cxx.vcxproj libcaca-0.99.beta19/cxx/caca++.pc.in libcaca-0.99.beta19/cxx/caca++.h libcaca-0.99.beta19/cxx/Makefile.am libcaca-0.99.beta19/NEWS libcaca-0.99.beta19/java/ libcaca-0.99.beta19/java/org_zoy_caca_Attribute.c libcaca-0.99.beta19/java/README libcaca-0.99.beta19/java/org_zoy_caca_Canvas.c libcaca-0.99.beta19/java/Makefile.in libcaca-0.99.beta19/java/org_zoy_caca_Dither.c libcaca-0.99.beta19/java/org_zoy_caca_Caca.c libcaca-0.99.beta19/java/org/ libcaca-0.99.beta19/java/org/zoy/ libcaca-0.99.beta19/java/org/zoy/caca/ libcaca-0.99.beta19/java/org/zoy/caca/Dither.java libcaca-0.99.beta19/java/org/zoy/caca/Display.java libcaca-0.99.beta19/java/org/zoy/caca/Color.java libcaca-0.99.beta19/java/org/zoy/caca/CacaException.java libcaca-0.99.beta19/java/org/zoy/caca/NativeObject.java libcaca-0.99.beta19/java/org/zoy/caca/CacaObject.java libcaca-0.99.beta19/java/org/zoy/caca/Attribute.java libcaca-0.99.beta19/java/org/zoy/caca/Event.java libcaca-0.99.beta19/java/org/zoy/caca/Font.java libcaca-0.99.beta19/java/org/zoy/caca/Caca.java libcaca-0.99.beta19/java/org/zoy/caca/TimeoutException.java libcaca-0.99.beta19/java/org/zoy/caca/Canvas.java libcaca-0.99.beta19/java/org_zoy_caca_Event.c libcaca-0.99.beta19/java/caca_java_common.h libcaca-0.99.beta19/java/examples/ libcaca-0.99.beta19/java/examples/Driver.java libcaca-0.99.beta19/java/examples/TrueColor.java libcaca-0.99.beta19/java/org_zoy_caca_Font.c libcaca-0.99.beta19/java/Makefile.am libcaca-0.99.beta19/java/org_zoy_caca_Display.c libcaca-0.99.beta19/java/caca_java_common.c libcaca-0.99.beta19/THANKS libcaca-0.99.beta19/build-kernel libcaca-0.99.beta19/doc/ libcaca-0.99.beta19/doc/cacaplay.1 libcaca-0.99.beta19/doc/style.dox libcaca-0.99.beta19/doc/Makefile.in libcaca-0.99.beta19/doc/canvas.dox libcaca-0.99.beta19/doc/doxygen.cfg.in libcaca-0.99.beta19/doc/migrating.dox libcaca-0.99.beta19/doc/caca-config.1 libcaca-0.99.beta19/doc/img2txt.1 libcaca-0.99.beta19/doc/libcaca.dox libcaca-0.99.beta19/doc/doxygen.css libcaca-0.99.beta19/doc/cacaview.1 libcaca-0.99.beta19/doc/tutorial.dox libcaca-0.99.beta19/doc/header.html libcaca-0.99.beta19/doc/cacaserver.1 libcaca-0.99.beta19/doc/font.dox libcaca-0.99.beta19/doc/footer.html libcaca-0.99.beta19/doc/cacafire.1 libcaca-0.99.beta19/doc/user.dox libcaca-0.99.beta19/doc/Makefile.am libcaca-0.99.beta19/AUTHORS libcaca-0.99.beta19/Makefile.am libcaca-0.99.beta19/ruby/ libcaca-0.99.beta19/ruby/README libcaca-0.99.beta19/ruby/t/ libcaca-0.99.beta19/ruby/t/tc_dither.rb libcaca-0.99.beta19/ruby/t/tc_frame.rb libcaca-0.99.beta19/ruby/t/tc_canvas.rb libcaca-0.99.beta19/ruby/t/tc_font.rb libcaca-0.99.beta19/ruby/test libcaca-0.99.beta19/ruby/Makefile.in libcaca-0.99.beta19/ruby/caca-canvas.c libcaca-0.99.beta19/ruby/common.h libcaca-0.99.beta19/ruby/caca-dither.h libcaca-0.99.beta19/ruby/caca-dither.c libcaca-0.99.beta19/ruby/caca-canvas.h libcaca-0.99.beta19/ruby/caca-display.c libcaca-0.99.beta19/ruby/caca-font.h libcaca-0.99.beta19/ruby/caca-display.h libcaca-0.99.beta19/ruby/ruby.dox libcaca-0.99.beta19/ruby/caca.c libcaca-0.99.beta19/ruby/caca-event.c libcaca-0.99.beta19/ruby/caca-font.c libcaca-0.99.beta19/ruby/lib/ libcaca-0.99.beta19/ruby/lib/caca.rb libcaca-0.99.beta19/ruby/Makefile.am libcaca-0.99.beta19/ruby/ruby-caca.dox libcaca-0.99.beta19/ruby/caca-event.h $ rm libcaca-0.99.beta19.tar.gz $ cd libcaca-0.99.beta19.tar.gz bash: cd: libcaca-0.99.beta19.tar.gz: No such file or directory $ cd libcaca-0.99.beta19 $ ./configure --prefix=$PREFIX checking build system type... aarch64-unknown-linux-gnu checking host system type... aarch64-unknown-linux-gnu checking target system type... aarch64-unknown-linux-gnu checking for a BSD-compatible install... /data/data/com.termux/files/usr/bin/inst all -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /data/data/com.termux/files/usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether UID '10287' is supported by ustar format... yes checking whether GID '10287' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C++ preprocessor... g++ -E checking dependency style of ... none checking dependency style of gcc... gcc3 checking how to print strings... printf checking for a sed that does not truncate output... /data/data/com.termux/files/u sr/bin/sed checking for grep that handles long lines and -e... /data/data/com.termux/files/u sr/bin/grep checking for egrep... /data/data/com.termux/files/usr/bin/grep -E checking for fgrep... /data/data/com.termux/files/usr/bin/grep -F checking for ld used by gcc... /data/data/com.termux/files/usr/bin/aarch64-linux- android-ld checking if the linker (/data/data/com.termux/files/usr/bin/aarch64-linux-android -ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /data/data/com.termux/file s/usr/bin/nm -B checking the name lister (/data/data/com.termux/files/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 32768 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... no checking how to convert aarch64-unknown-linux-gnu file names to aarch64-unknown-l inux-gnu format... func_convert_file_noop checking how to convert aarch64-unknown-linux-gnu file names to toolchain format. .. func_convert_file_noop checking for /data/data/com.termux/files/usr/bin/aarch64-linux-android-ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... dlltool checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /data/data/com.termux/files/usr/bin/nm -B output from g cc object... ok checking for sysroot... no checking for mt... no checking if : is a manifest tool... no checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... yes checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/data/data/com.termux/files/usr/bin/aarch64-linu x-android-ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /data/data/com.termux/files/usr/bin/aarch64-linux- android-ld checking if the linker (/data/data/com.termux/files/usr/bin/aarch64-linux-android -ld) is GNU ld... yes checking whether the g++ linker (/data/data/com.termux/files/usr/bin/aarch64-linu x-android-ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/data/data/com.termux/files/usr/bin/aarch64-linu x-android-ld) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for an ANSI C-conforming const... yes checking for inline... inline checking return type of signal handlers... void checking for pkg-config... /data/data/com.termux/files/usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for suffix of libraries... .so.0 checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking endian.h usability... yes checking endian.h presence... yes checking for endian.h... yes checking for unistd.h... (cached) yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking winsock2.h usability... no checking winsock2.h presence... no checking for winsock2.h... no checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking for dlfcn.h... (cached) yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking for signal... yes checking for ioctl... yes checking for snprintf... yes checking for sprintf_s... no checking for vsnprintf... yes checking for vsnprintf_s... no checking for getenv... yes checking for putenv... yes checking for strcasecmp... yes checking for htons... yes checking for usleep... yes checking for gettimeofday... yes checking for atexit... yes checking for getopt_long... yes checking for Sleep... no checking for fsin/fcos... no checking for fldln2/fxch/fyl2x... no checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking for gzopen in -lz... yes checking for sin in -lm... yes checking conio.h usability... no checking conio.h presence... no checking for conio.h... no checking windows.h usability... no checking windows.h presence... no checking for windows.h... no checking slang.h usability... no checking slang.h presence... no checking for slang.h... no checking slang/slang.h usability... no checking slang/slang.h presence... no checking for slang/slang.h... no checking for X... no checking for XOpenDisplay in -lX11... yes checking X11/XKBlib.h usability... no checking X11/XKBlib.h presence... no checking for X11/XKBlib.h... no checking GL/gl.h usability... no checking GL/gl.h presence... no checking for GL/gl.h... no checking OpenGL/gl.h usability... no checking OpenGL/gl.h presence... no checking for OpenGL/gl.h... no checking for FTGL... no checking Cocoa/Cocoa.h usability... no checking Cocoa/Cocoa.h presence... no checking for Cocoa/Cocoa.h... no checking ncursesw/ncurses.h usability... yes checking ncursesw/ncurses.h presence... yes checking for ncursesw/ncurses.h... yes checking for initscr in -lncursesw... yes checking for resizeterm... yes checking for resize_term... yes checking valid output drivers... x11 ncurses checking working ... yes checking for csc... no checking for gmcs... no checking for gacutil... no checking for javac... no checking for javah... no checking for jar... no checking for a Python interpreter with version >= 2.2... python checking for python... /data/data/com.termux/files/usr/bin/python checking for python version... 3.7 checking for python platform... linux checking for python script directory... ${prefix}/lib/python3.7/site-packages checking for python extension module directory... ${exec_prefix}/lib/python3.7/si te-packages checking for ruby... /data/data/com.termux/files/usr/bin/ruby checking ruby.h usability... yes checking ruby.h presence... yes checking for ruby.h... yes checking available language bindings... C++ Ruby checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking for IMLIB2... yes checking for PANGOFT2... yes checking for doxygen... no checking for CPPUNIT... no checking for zzuf... no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating kernel/Makefile config.status: creating caca/Makefile config.status: creating src/Makefile config.status: creating examples/Makefile config.status: creating test/Makefile config.status: creating tools/Makefile config.status: creating java/Makefile config.status: creating caca-sharp/Makefile config.status: creating cxx/Makefile config.status: creating python/Makefile config.status: creating ruby/Makefile config.status: creating doc/Makefile config.status: creating win32/Makefile config.status: creating caca/caca.pc config.status: creating caca-sharp/caca-sharp.dll.config config.status: creating cxx/caca++.pc config.status: creating doc/doxygen.cfg config.status: creating caca-config config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands $ make make all-recursive make[1]: Entering directory '/data/data/com.termux/files/home/libcaca-0.99.beta19 ' Making all in kernel make[2]: Entering directory '/data/data/com.termux/files/home/libcaca-0.99.beta19 /kernel' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/data/data/com.termux/files/home/libcaca-0.99.beta19/ kernel' Making all in caca make[2]: Entering directory '/data/data/com.termux/files/home/libcaca-0.99.beta19 /caca' CC libcaca_la-caca.lo clang-8: warning: optimization flag '-fno-strength-reduce' is not supported [-Wig nored-optimization-argument] CC libcaca_la-caca_conio.lo clang-8: warning: optimization flag '-fno-strength-reduce' is not supported [-Wig nored-optimization-argument] CC libcaca_la-caca0.lo clang-8: warning: optimization flag '-fno-strength-reduce' is not supported [-Wig nored-optimization-argument] CC libcaca_la-canvas.lo clang-8: warning: optimization flag '-fno-strength-reduce' is not supported [-Wig nored-optimization-argument] CC libcaca_la-dirty.lo clang-8: warning: optimization flag '-fno-strength-reduce' is not supported [-Wig nored-optimization-argument] CC libcaca_la-string.lo clang-8: warning: optimization flag '-fno-strength-reduce' is not supported [-Wig nored-optimization-argument] CC libcaca_la-legacy.lo clang-8: warning: optimization flag '-fno-strength-reduce' is not supported [-Wig nored-optimization-argument] CC libcaca_la-transform.lo clang-8: warning: optimization flag '-fno-strength-reduce' is not supported [-Wig nored-optimization-argument] CC libcaca_la-charset.lo clang-8: warning: optimization flag '-fno-strength-reduce' is not supported [-Wig nored-optimization-argument] CC libcaca_la-attr.lo clang-8: warning: optimization flag '-fno-strength-reduce' is not supported [-Wig nored-optimization-argument] CC libcaca_la-line.lo clang-8: warning: optimization flag '-fno-strength-reduce' is not supported [-Wig nored-optimization-argument] CC libcaca_la-box.lo clang-8: warning: optimization flag '-fno-strength-reduce' is not supported [-Wig nored-optimization-argument] CC libcaca_la-conic.lo clang-8: warning: optimization flag '-fno-strength-reduce' is not supported [-Wig nored-optimization-argument] CC libcaca_la-triangle.lo clang-8: warning: optimization flag '-fno-strength-reduce' is not supported [-Wig nored-optimization-argument] CC libcaca_la-frame.lo clang-8: warning: optimization flag '-fno-strength-reduce' is not supported [-Wig nored-optimization-argument] CC libcaca_la-dither.lo clang-8: warning: optimization flag '-fno-strength-reduce' is not supported [-Wig nored-optimization-argument] dither.c:1117:24: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] dist = abs(rgba[0] (2dchmax-1) - newr) ^ dither.c:1117:24: note: remove the call to 'abs' since unsigned values cannot be negative dist = abs(rgba[0] (2dchmax-1) - newr) ^~~ dither.c:1118:24: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value]

ghost commented 5 years ago

include <X11/X.h>'

pkg install xorgproto libx11

And for which command should i use --enable-imlib2 parameters

./configure --prefix=$PREFIX --enable-imlib2

H4ck3r404 commented 5 years ago

Now it works. Thanks :) (And sorry for trouble.)