Problem in compilation

28 views
Skip to first unread message

Iuri

unread,
Aug 2, 2012, 11:41:16 PM8/2/12
to fluoresce...@googlegroups.com
Look the output after make release command.

Building CXX object src/fluorescence/CMakeFiles/fluorescence.dir/ui/gumpmenu.cpp.o
/home/iuri/fluorescence/src/fluorescence/ui/uofontprovider.cpp: In member function 'virtual int fluo::ui::UoFontProvider::get_character_index(CL_GraphicContext&, const CL_String&, const CL_Point&)':
/home/iuri/fluorescence/src/fluorescence/ui/uofontprovider.cpp:115:78: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
cc1plus: all warnings being treated as errors
make[4]: *** [src/fluorescence/CMakeFiles/fluorescence.dir/ui/uofontprovider.cpp.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/home/iuri/fluorescence/build'
make[3]: *** [src/fluorescence/CMakeFiles/fluorescence.dir/all] Error 2
make[3]: Leaving directory `/home/iuri/fluorescence/build'
make[2]: *** [src/fluorescence/CMakeFiles/fluorescence.dir/rule] Error 2
make[2]: Leaving directory `/home/iuri/fluorescence/build'
make[1]: *** [fluorescence] Error 2
make[1]: Leaving directory `/home/iuri/fluorescence/build'
make: *** [release] Error 2
[iuri@lucifer fluorescence]$ gcc --version
gcc (GCC) 4.7.0 20120507 (Red Hat 4.7.0-5)
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

spin

unread,
Aug 3, 2012, 2:49:30 AM8/3/12
to fluoresce...@googlegroups.com
Looks like they change the signed/unsigned comparison stuff in every new
version... :/

Try and change the line to
if (point.x >= curX && point.x < (int)(curX + curChar->getTotalWidth())) {

I think that should fix the problem. Can't test it though, I only have
gcc 4.6.3 installed.

Iuri

unread,
Aug 7, 2012, 10:31:07 PM8/7/12
to fluoresce...@googlegroups.com
This change works well. Now I am trying to compile with make debug and I got another error. But it works with (int) cast too (I don't know if i made it well, i don't have great skill with programation and never made nothing real in programation).

Here is the errors if you want to change the code.

[ 11%] Building CXX object src/fluorescence/CMakeFiles/fluorescence.dir/world/statics.cpp.o
/home/iuri/fluorescence/src/fluorescence/world/manager.cpp: In member function ‘void fluo::world::Manager::update(unsigned int)’:
/home/iuri/fluorescence/src/fluorescence/world/manager.cpp:199:66: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
/home/iuri/fluorescence/src/fluorescence/world/manager.cpp:200:70: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
/home/iuri/fluorescence/src/fluorescence/world/manager.cpp:211:67: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
/home/iuri/fluorescence/src/fluorescence/world/manager.cpp:212:70: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]

cc1plus: all warnings being treated as errors
make[4]: ** [src/fluorescence/CMakeFiles/fluorescence.dir/world/manager.cpp.o] Erro 1

[  6%] Building CXX object src/fluorescence/CMakeFiles/fluorescence.dir/ui/particles/timelinestatic.cpp.o
/home/iuri/fluorescence/src/fluorescence/ui/render/worldrenderer.cpp: In member function ‘void fluo::ui::render::WorldRenderer::renderPreviousTexture(CL_GraphicContext&, float, float)’:
/home/iuri/fluorescence/src/fluorescence/ui/render/worldrenderer.cpp:140:105: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
/home/iuri/fluorescence/src/fluorescence/ui/render/worldrenderer.cpp:140:137: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]

cc1plus: all warnings being treated as errors
make[4]: ** [src/fluorescence/CMakeFiles/fluorescence.dir/ui/render/worldrenderer.cpp.o] Erro 1

spin

unread,
Aug 8, 2012, 2:28:26 AM8/8/12
to fluoresce...@googlegroups.com
I fixed the errors in my local git, will come public soon.

Thank you for your continued support and valuable feedback!

Iuri

unread,
Aug 11, 2012, 11:56:47 PM8/11/12
to fluoresce...@googlegroups.com
Hi,
now I have latest version rev7ee64483c3ae of fluorescence and I get this error:
[  3%] Building CXX object src/fluorescence/CMakeFiles/fluorescence.dir/ui/components/sysloglabel.cpp.o
/home/iuri/fluorescence/src/fluorescence/ui/xmlloader.cpp: In member function 'fluo::ui::GumpComponent* fluo::ui::XmlLoader::parseWarModeButton(pugi::xml_node&, pugi::xml_node&, CL_GUIComponent*, fluo::ui::GumpMenu*)':
/home/iuri/fluorescence/src/fluorescence/ui/xmlloader.cpp:1160:16: error: converting 'false' to pointer type 'fluo::ui::GumpComponent*' [-Werror=conversion-null]

cc1plus: all warnings being treated as errors
make[4]: *** [src/fluorescence/CMakeFiles/fluorescence.dir/ui/xmlloader.cpp.o] Error 1

make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/home/iuri/fluorescence/build'
make[3]: *** [src/fluorescence/CMakeFiles/fluorescence.dir/all] Error 2
make[3]: Leaving directory `/home/iuri/fluorescence/build'
make[2]: *** [src/fluorescence/CMakeFiles/fluorescence.dir/rule] Error 2
make[2]: Leaving directory `/home/iuri/fluorescence/build'
make[1]: *** [fluorescence] Error 2
make[1]: Leaving directory `/home/iuri/fluorescence/build'
make: *** [release] Error 2



spin

unread,
Aug 12, 2012, 3:11:03 AM8/12/12
to fluoresce...@googlegroups.com
Im suprised that gcc 4.6 did not catch that error.
Just pushed a new version that fixes this.

On 08/12/2012 05:56 AM, Iuri wrote:
> Hi,
> now I have latest version rev7ee64483c3ae
> <http://code.google.com/p/fluorescence/source/detail?r=7ee64483c3ae8e7b9dc6f789e7f05fff9f9f1ac3>

Iuri

unread,
Aug 12, 2012, 10:25:39 AM8/12/12
to fluoresce...@googlegroups.com
A new one:

[ 12%] Building CXX object src/fluorescence/CMakeFiles/fluorescence.dir/ui/commands/command.cpp.o
/home/iuri/fluorescence/src/fluorescence/ui/xmlloader.cpp: In member function 'fluo::ui::GumpComponent* fluo::ui::XmlLoader::parseChildren(pugi::xml_node&, CL_GUIComponent*, fluo::ui::GumpMenu*)':
/home/iuri/fluorescence/src/fluorescence/ui/xmlloader.cpp:304:12: error: 'lastComponent' may be used uninitialized in this function [-Werror=maybe-uninitialized]

cc1plus: all warnings being treated as errors
make[4]: *** [src/fluorescence/CMakeFiles/fluorescence.dir/ui/xmlloader.cpp.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/home/iuri/fluorescence/build'
make[3]: *** [src/fluorescence/CMakeFiles/fluorescence.dir/all] Error 2
make[3]: Leaving directory `/home/iuri/fluorescence/build'
make[2]: *** [src/fluorescence/CMakeFiles/fluorescence.dir/rule] Error 2
make[2]: Leaving directory `/home/iuri/fluorescence/build'
make[1]: *** [fluorescence] Error 2
make[1]: Leaving directory `/home/iuri/fluorescence/build'
make: *** [release] Error 2

spin

unread,
Aug 13, 2012, 2:40:07 PM8/13/12
to fluoresce...@googlegroups.com
Just pushed the fix to the google code project
Reply all
Reply to author
Forward
0 new messages