[Slackbuilds-users] Does anyone have trouble building DevIL ?

B Watson yalhcru at gmail.com
Tue Aug 14 03:04:51 UTC 2018


On 8/13/18, Ythogtha <yth at ythogtha.org> wrote:
> Here is what happens when I try to build DevIL 1.8.0 (I already have 1.7.8
> built and installed) :
> [ 40%] Building CXX object src-IL/CMakeFiles/IL.dir/src/il_dds-save.cpp.o
> /tmp/SBo/DevIL/DevIL/src-IL/src/il_dds-save.cpp: In function 'ILuint
> Compress(ILimage*, ILenum)':
> /tmp/SBo/DevIL/DevIL/src-IL/src/il_dds-save.cpp:711:32: error: invalid
> conversion from 'void*' to 'ILubyte* {aka unsigned char*}' [-fpermissive]
>       ByteData = ilConvertBuffer(Image->SizeOfData, Image->Format, IL_BGRA,
> Image->Type, IL_UNSIGNED_BYTE, NULL, Image->Data);
>
> Does anyone have the same issue ?

No, but...

> Any idea ?

It's telling you what to do in the very error message itself: add
-fpermissive to the compile command. Easy way would be to add it to
SLKCFLAGS just after the if/else block that sets it:

SLKCFLAGS="$SLKCFLAGS -fpermissive"

You on -current, or did you get this error on 14.2?


More information about the SlackBuilds-users mailing list