Read Me
[Installing jlibcpp]
:Makefile defines
ENABLE_DEBUG = <no, yes>
ENABLE_GRAPHICS = <sdl2, sfml2, x11, gtk3, allegro5>
ENABLE_MEDIA = <gif, ilist, v4l2, alsa, libvlc, libav, libxine>
:Compiling
$ export PKG_CONFIG_PATH=<pkg-path>
$ sudo make all install
[Compilling tests]
For each module of jlibcpp, change to tests directory and type:
"make"
[Compiling applications]
## Makefile -- with pkgconfig -- begin ##
CFLAGS = `pkg-config --cflags jlibcpp`
LIBS = `pkg-config --libs jlibcpp`
all:
g++ <app.cpp> -o <app> $(CFLAGS) $(LIBS)
## Makefile -- with pkgconfig -- end ##
: Dependencies
:GERAL
uuid-dev libssl-dev
:GUI
libcairo2-dev libjpeg9-dev libheif-dev libwebp-dev
:MEDIA
libsdl2-dev, libsfml2-dev, libX11-dev, libgtk3-dev, liballegro5-dev,
libasound2-dev libx11-xcb-dev
:Problems
1. with ENABLE_MEDIA=libvlc the jmedia not working corretly with lua
R: disable or remove the lua plugin "/usr/lib/vlc/plugins/lua/liblua_plugin.so"
2. jsystem::Beep() not working
R: enable pcspkr module as following:
sudo modprobe pcspkr
echo -e "\a"
3. the module sox no compile and print a message asking for -fpic
R: recompile libsox with the option "--enable-shared"