Page 1 of 1

Error compiling dcraw_common.cpp

Posted: Tue Jul 11, 2017 16:36
by LordJonas
Hi.

After some time whitout working with CEGUI i'm back.

For some strange reason when i compile the cegui-dependencies i get this errors :

C:\Projectos\cegui-dependencies\src\FreeImage-3.15.0\Source\LibRawLite\internal\dcraw_common.cpp||In member function 'void LibRaw::vng_interpolate()':
C:\Projectos\cegui-dependencies\src\FreeImage-3.15.0\Source\LibRawLite\internal\dcraw_common.cpp|4025|error: narrowing conversion of '128' from 'int' to 'signed char' inside { } [-Wnarrowing]|
C:\Projectos\cegui-dependencies\src\FreeImage-3.15.0\Source\LibRawLite\internal\dcraw_common.cpp|4025|error: narrowing conversion of '136' from 'int' to 'signed char' inside { } [-Wnarrowing]|
C:\Projectos\cegui-dependencies\src\FreeImage-3.15.0\Source\LibRawLite\internal\dcraw_common.cpp|4025|error: narrowing conversion of '128' from 'int' to 'signed char' inside { } [-Wnarrowing]|
C:\Projectos\cegui-dependencies\src\FreeImage-3.15.0\Source\LibRawLite\internal\dcraw_common.cpp|4025|error: narrowing conversion of '136' from 'int' to 'signed char' inside { } [-Wnarrowing]|
C:\Projectos\cegui-dependencies\src\FreeImage-3.15.0\Source\LibRawLite\internal\dcraw_common.cpp|4025|error: narrowing conversion of '128' from 'int' to 'signed char' inside { } [-Wnarrowing]|
C:\Projectos\cegui-dependencies\src\FreeImage-3.15.0\Source\LibRawLite\internal\dcraw_common.cpp|4025|error: narrowing conversion of '136' from 'int' to 'signed char' inside { } [-Wnarrowing]|
C:\Projectos\cegui-dependencies\src\FreeImage-3.15.0\Source\LibRawLite\internal\dcraw_common.cpp||In member function 'void LibRaw::adobe_coeff(const char*, const char*)':|
C:\Projectos\cegui-dependencies\src\FreeImage-3.15.0\Source\LibRawLite\internal\dcraw_common.cpp|7057|error: narrowing conversion of '65535' from 'int' to 'short int' inside { } [-Wnarrowing]|
src\FreeImage-3.15.0\CEGUI-BUILD\CMakeFiles\FreeImage.dir\build.make|7562|recipe for target 'src/FreeImage-3.15.0/CEGUI-BUILD/CMakeFiles/FreeImage.dir/__/Source/LibRawLite/internal/dcraw_common.cpp.obj' failed|
CMakeFiles\Makefile2|1261|recipe for target 'src/FreeImage-3.15.0/CEGUI-BUILD/CMakeFiles/FreeImage.dir/all' failed|
C:\Projectos\cegui-dependencies\build\Makefile|82|recipe for target 'all' failed|


This is my working environment:

Windows 10 Pro 64 bits
Code::Blocks 16.01
MinGW64 v6.30 architecture i686 Threads posix Exception sjlj revision 2
Cegui-Dependencies v0.8
Cegui v0.87
CMake 3.8.0

Any sugestion ?

Re: Error compiling dcraw_common.cpp

Posted: Tue Jul 11, 2017 16:45
by Ident
What dependencies version is this / where did you get it from?

Re: Error compiling dcraw_common.cpp

Posted: Tue Jul 11, 2017 17:01
by LordJonas
Hi.

The dependencies package come from the link in the official page:

https://bitbucket.org/cegui/cegui-dependencies/get/v0-8.zip

Re: Error compiling dcraw_common.cpp

Posted: Tue Jul 11, 2017 17:31
by Ident
Did you change the compiler settings? It seems like this is a warning counting as error, and the warning comes from FreeImage. Not much we, as CEGUI, can do about either of that, unless the project setting comes from our CMake (does it?)

Re: Error compiling dcraw_common.cpp

Posted: Tue Jul 11, 2017 17:46
by LordJonas
Yes, the project settings were generated by CMake indeed...

I had tried with different compiler versions and as far i can tell only TDM-GCC x86-x64 v5.1 does not produce this error.

Re: Error compiling dcraw_common.cpp

Posted: Tue Jul 11, 2017 19:14
by LordJonas
After some deep investigation in the web i found that mingw is compatible with FreeImage 3.15.0 until version 5.4. From version 6 this situation changes and you get those errors...

Re: Error compiling dcraw_common.cpp

Posted: Tue Jul 11, 2017 19:22
by Ident
That's unfortunate. Be aware however that you can always use Silly or Devil instead of FreeImage. I personally use Silly, which is the loader CrazyEddie made by himself.

Re: Error compiling dcraw_common.cpp

Posted: Tue Jul 11, 2017 21:18
by LordJonas
I could be crazzy but i'll try to incorporate FreeImage 3.17.0 in the cegui dependencies and see how it goes...

Re: Error compiling dcraw_common.cpp

Posted: Wed Jul 12, 2017 07:37
by Ident
Ah I misread your previous post. So you say it should work fine with 3.15.0 ? Well, What happens if you ignore the warning and just go on?

Re: Error compiling dcraw_common.cpp

Posted: Mon Jul 17, 2017 19:34
by LordJonas
Good question...

Let's try that...