hzeller / timg

A terminal image and video viewer.
GNU General Public License v2.0
1.91k stars 73 forks source link

build error in termux #134

Closed aicynide closed 4 months ago

aicynide commented 4 months ago
FAILED: src/CMakeFiles/timg.dir/timg.cc.o 

/home/builder/.termux-build/_cache/android-r26b-api-24-v3/bin/clang++ --target=aarch64-none-linux-android --gcc-toolchain=/home/builder/.termux-build/_cache/android-r26b-api-24-v3 --sysroot=/home/builder/.termux-build/_cache/android-r26b-api-24-v3/sysroot -DHAVE_AVDEVICE -DWITH_TIMG_GRPAPHICSMAGICK -DWITH_TIMG_JPEG -DWITH_TIMG_POPPLER -DWITH_TIMG_RSVG -DWITH_TIMG_SIXEL -DWITH_TIMG_VIDEO -I/home/builder/.termux-build/timg/build/src -isystem /data/data/com.termux/files/usr/include/gdk-pixbuf-2.0 -isystem /data/data/com.termux/files/usr/include/libpng16 -isystem /data/data/com.termux/files/usr/include/glib-2.0 -isystem /data/data/com.termux/files/usr/lib/glib-2.0/include -isystem /data/data/com.termux/files/usr/include/GraphicsMagick -isystem /data/data/com.termux/files/usr/include/librsvg-2.0 -isystem /data/data/com.termux/files/usr/include/cairo -isystem /data/data/com.termux/files/usr/include/freetype2 -isystem /data/data/com.termux/files/usr/include/pixman-1 -isystem /data/data/com.termux/files/usr/include/poppler/glib -isystem /data/data/com.termux/files/usr/include/poppler -W -Wall -Wextra -Wno-unused-parameter -O3 -fstack-protector-strong -Oz --target=aarch64-linux-android24 -I/data/data/com.termux/files/usr/include -O3 -DNDEBUG -fPIE -pthread -MD -MT src/CMakeFiles/timg.dir/timg.cc.o -MF src/CMakeFiles/timg.dir/timg.cc.o.d -o src/CMakeFiles/timg.dir/timg.cc.o -c /home/builder/.termux-build/timg/src/src/timg.cc 

/home/builder/.termux-build/timg/src/src/timg.cc:170:40: error: use of undeclared identifier 'rindex' 

const char *after_slash_progname = rindex(progname, '/'); 

^

Here is the Github Actions log https://github.com/termux/termux-packages/actions/runs/8794057158/job/24132889662

hzeller commented 4 months ago

Should be fixed now, can you try again from head ?

aicynide commented 4 months ago

Yes successfully built https://github.com/termux/termux-packages/actions/runs/8799130233 To install v1.6.0 (i mean real v.1.6.0 since timg source code tarball was never updated for 2 years old so its actually v.1.4.2 in latest termux package, you can check $ timg --version ) install this https://nightly.link/termux/termux-packages/actions/runs/8799130233/debs-arm-3c4e5994ca60d624d5141d927248bddeaa2fa435.zip you will need to pre-install libdeflate btw