Error compiling dcraw_common.cpp

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

LordJonas
Not too shy to talk
Not too shy to talk
Posts: 32
Joined: Fri May 24, 2013 11:15

Error compiling dcraw_common.cpp

Postby LordJonas » Tue Jul 11, 2017 16:36

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 ?

User avatar
Ident
CEGUI Team
Posts: 1836
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Error compiling dcraw_common.cpp

Postby Ident » Tue Jul 11, 2017 16:45

What dependencies version is this / where did you get it from?
CrazyEddie: "I don't like GUIs"

LordJonas
Not too shy to talk
Not too shy to talk
Posts: 32
Joined: Fri May 24, 2013 11:15

Re: Error compiling dcraw_common.cpp

Postby LordJonas » Tue Jul 11, 2017 17:01

Hi.

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

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

User avatar
Ident
CEGUI Team
Posts: 1836
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Error compiling dcraw_common.cpp

Postby Ident » Tue Jul 11, 2017 17:31

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?)
CrazyEddie: "I don't like GUIs"

LordJonas
Not too shy to talk
Not too shy to talk
Posts: 32
Joined: Fri May 24, 2013 11:15

Re: Error compiling dcraw_common.cpp

Postby LordJonas » Tue Jul 11, 2017 17:46

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.

LordJonas
Not too shy to talk
Not too shy to talk
Posts: 32
Joined: Fri May 24, 2013 11:15

Re: Error compiling dcraw_common.cpp

Postby LordJonas » Tue Jul 11, 2017 19:14

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...

User avatar
Ident
CEGUI Team
Posts: 1836
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Error compiling dcraw_common.cpp

Postby Ident » Tue Jul 11, 2017 19:22

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.
CrazyEddie: "I don't like GUIs"

LordJonas
Not too shy to talk
Not too shy to talk
Posts: 32
Joined: Fri May 24, 2013 11:15

Re: Error compiling dcraw_common.cpp

Postby LordJonas » Tue Jul 11, 2017 21:18

I could be crazzy but i'll try to incorporate FreeImage 3.17.0 in the cegui dependencies and see how it goes...

User avatar
Ident
CEGUI Team
Posts: 1836
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Error compiling dcraw_common.cpp

Postby Ident » Wed Jul 12, 2017 07:37

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?
CrazyEddie: "I don't like GUIs"

LordJonas
Not too shy to talk
Not too shy to talk
Posts: 32
Joined: Fri May 24, 2013 11:15

Re: Error compiling dcraw_common.cpp

Postby LordJonas » Mon Jul 17, 2017 19:34

Good question...

Let's try that...


Return to “Help”

Who is online

Users browsing this forum: No registered users and 1 guest