Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build on Ubuntu 21.10 - JCS-EXT-BGRA undeclared #261

Closed
kerruba-milkman opened this issue Jun 22, 2022 · 2 comments
Closed

Failed to build on Ubuntu 21.10 - JCS-EXT-BGRA undeclared #261

kerruba-milkman opened this issue Jun 22, 2022 · 2 comments
Labels

Comments

@kerruba-milkman
Copy link

kerruba-milkman commented Jun 22, 2022

This issue is a....

[x] Bug
[ ] Other kind of issue (Please describe in detail)

Current Behavior

Unable to build latest commit on master on ubuntu 21.10 due to an error during compilation:

make[1]: Entering directory '<...>/i3lock-color/build'
  CC       i3lock-blur.o
  CC       i3lock-blur_simd.o
  CC       i3lock-dpi.o
  CC       i3lock-jpg.o
../../i3lock-color/jpg.c: In function ‘read_JPEG_file’:
../../i3lock-color/jpg.c:70:29: error: ‘JCS_EXT_BGRA’ undeclared (first use in this function)
   70 |     cinfo.out_color_space = JCS_EXT_BGRA;
      |                             ^~~~~~~~~~~~
../../i3lock-color/jpg.c:70:29: note: each undeclared identifier is reported only once for each function it appears in

Expected Behavior

Build succeed without any issue

Reproduction Instructions

  • I've updated the repository to the latest commit
  • I've installed all the dependencies as described in the documentation
  • I've followed the further instructions for building on Debian - Debian Build Failed #211 (comment)

NOTE: By commenting the line, the application is able to build correctly

Environment

Output of i3lock --version:

i3lock: version 2.13.c.4-34-gd846e7c (2022-03-18) © 2010 Michael Stapelberg, © 2015 Cassandra Fox, © 2021 Raymond Li

Output of lsb_release:

> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 21.10
Release:        21.10
Codename:       impish

Where'd you get i3lock-color from?

[ ] AUR package (which one?)
[x] Built from source yourself
[ ] Other (Please describe in detail)
@kerruba-milkman
Copy link
Author

As I've already added to the comment, commenting the line unlock the build.
Could it be that some dependency is missing? libjpeg-turbo has to be included?

@Raymo111
Copy link
Owner

Have you tried installing the libjpeg-turbo package? Does it work after you do that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants