Skip to content

FTBFS on Fedora 22: ‘JPEG_GREYSCALE’ was not declared #1360

@eyalroz

Description

@eyalroz

After supposedly having obtained all of the required libraries, I started the build. At some point I get this:

[ 25%] Building CXX object src/backend/cuda/CMakeFiles/afcuda.dir/__/__/api/c/imageio2.cpp.o
/ufs/eyalroz/src/arrayfire-full-3.3.1/src/api/c/imageio.cpp: In function ‘af_err af_load_image(void**, const char*, bool)’:
/ufs/eyalroz/src/arrayfire-full-3.3.1/src/api/c/imageio.cpp:152:57: error: ‘JPEG_GREYSCALE’ was not declared in this scope
         if(fif == FIF_JPEG && !isColor) flags = flags | JPEG_GREYSCALE;

I'm not sure which library this regards, but I do have

FREEIMAGE_DYNAMIC_LIBRARY:FILEPATH=/usr/lib64/libfreeimage.so
FREEIMAGE_INCLUDE_PATH:PATH=/usr/include
FREEIMAGE_STATIC_LIBRARY:FILEPATH=FREEIMAGE_STATIC_LIBRARY-NOTFOUND

(copied those from my CMakeCache.txt), so I should be OK; if not, I should have been notified of something missing.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions