cacalabs / libcaca

💩 Colour ASCII Art Library
Do What The F*ck You Want To Public License
539 stars 71 forks source link

default configure options cause non working binaries on msys2 #50

Open csdvrx opened 4 years ago

csdvrx commented 4 years ago

Apparently, the resulting binaries try to use an autodetected Windows console, since every example with caca_create_display() fails

The solution is to disable everything, and only keep ncurses:

./configure --prefix=/usr/local --enable-shared --disable-static --disable-kernel --disable-slang --enable-ncurses --disable-win32 --disable-conio --disable-x11 --disable-gl --disable-cocoa --enable-network --disable-vga --disable-csharp --disable-java --disable-imlib2 --disable-debug --disable-profiling --disable-plugins --disable-doc

For img2text and cacaview, files must be created as uncompressed bmp3, for example with imagemagick:

/mingw64/bin/convert snake.jpg -type Optimize -compress none BMP3:snake.bmp