CCExtractor / ccextractor

CCExtractor - Official version maintained by the core team
https://www.ccextractor.org
GNU General Public License v2.0
718 stars 426 forks source link

[BUG] Build fails on Arch linux #1646

Open superbonaci opened 3 weeks ago

superbonaci commented 3 weeks ago

On arch linux:

$ ./build
Running pre-build script...
Obtaining Git commit
Storing variables in file
Commit: cbd8e27fe340d503149c2d1dee06c0790e19d416
Date: 2024-10-17
Stored all in compile_info_real.h
Done.
Trying to compile...
Checking for cargo...
rustc >= MSRV(1.54.0)
Building rust files...
    Finished `release` profile [optimized] target(s) in 0.08s
Building ccextractor
Compiled with errors
../src/lib_ccx/ocr.c: In function 'ocr_rect':
../src/lib_ccx/ocr.c:922:9: error: implicit declaration of function 'mapclut_paletee' [-Wimplicit-function-declaration]
  922 |         mapclut_paletee(palette, alpha, (uint32_t *)rect->data1, rect->nb_colors);
      |         ^~~~~~~~~~~~~~~
steel-bucket commented 3 weeks ago

Adding #include "ccx_encoders_spupng.h" at the top of the file /src/lib_ccx/ocr.c makes it compile for Arch Linux. But I have no Idea why it compiles for debian without the aforementioned Change, as I have tried in both. Here's what I know, the error doesn't come from CMake At first I thought it did as paru's version is different and newer than apt's version(3.30.5-1 as compared to 3.28.3-1), but changing it doesn't fix it.