directfb2 / DirectFB2

Core DirectFB library
GNU Lesser General Public License v2.1
136 stars 16 forks source link

Compilation fails because fluxcomp is not working #21

Closed ddf5555 closed 2 years ago

ddf5555 commented 2 years ago

I have compiled fluxcomp from https://github.com/deniskropp/flux and it's not working after 'ninja - C build', log:

[45/185 ] Generating src / core / flux_source_CoreDFB with a custom command FAILED : src / core / CoreDFB.c src / core / CoreDFB.h usr / local / bin / fluxcomp --call - mode --dispatch -

IMG_20220302_170913

I use Ubuntu 18.04, where can I get patches you mentioned in other post on github to get fluxcomp working with directfb2?

caramelli commented 2 years ago

The latest code available at https://github.com/deniskropp/flux should be used. For more details, see https://github.com/directfb2/DirectFB2/issues/9

ddf5555 commented 2 years ago

Tomorrow I will try again, but inside VM with clean installation of ubuntu 20 lts. Can I get fluxcomp 1.4.5? For the first glance it looks obvious that parsed command line argument is invalid, called from build script but I can't find out why. I don't think it's dispatch error because I looked at source code and compared error message with help of usage.

caramelli commented 2 years ago

Having a fluxcomp 1.4.5 would probably be the right solution to avoid this kind of issue...

For now:

git clone https://github.com/deniskropp/flux.git ./autogen.sh ./configure make install

But yes, the idea would be to change FLUXCOMP_MICRO_VERSION from 4 to 5 in the configure.in file, and having a package for distro might be nice.

ddf5555 commented 2 years ago

I fixed compilation of the fluxcomp with recent version of autoconf. Make fork and I will make pull req. Important patches are in the offing. Directfb2 compilation would work with old distribution, but I will try later.

ddf5555 commented 2 years ago

I compiled directfb2 on the ubuntu 18.04 If anyone have problem with compilation make sure you have installed following packages: Automake autoconf m4 libtool pkg-config ninja Install meson from pip, use python-3.7: pip3 install --user meson

Run meson, or add ~/.local/bin to your $PATH: ~/.local/bin/meson build/

To compile fluxcomp remove autogen.sh, rename configure.in to configure.ac, run: autoreconf -fi && ./configure && make -j$(nproc) && sudo make install