[fixed]compile error in SVN shader-pipeline branch

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
bvanevery
Posts: 27
Joined: Tue Jul 03, 2007 4:36 pm
Location: Winston-Salem, NC

[fixed]compile error in SVN shader-pipeline branch

Post by bvanevery »

I grabbed the SVN shader-pipeline branch to see what kind of OpenGL 3.x 4.x stuff is happening. Mostly it builds, but I get the following error. I'm using Lubuntu 12.10 Linux.
bvanevery@nomad:~/devel/shader-pipeline/source/Irrlicht$ make
g++ -Wall -pipe -fno-exceptions -fno-rtti -fstrict-aliasing -g -D_DEBUG -I../../include -Izlib -Ijpeglib -Ilibpng -I/usr/X11R6/include -DIRRLICHT_EXPORTS=1 -c -o COpenGLDriver.o COpenGLDriver.cpp
In file included from COpenGLDriver.cpp:11:0:
COpenGLTexture.h: In constructor ‘irr::video::COpenGLTexture::SStatesCache::SStatesCache()’:
COpenGLTexture.h:71:8: warning: ‘irr::video::COpenGLTexture::SStatesCache::IsCached’ will be initialized after [-Wreorder]
COpenGLTexture.h:69:6: warning: ‘irr::s8 irr::video::COpenGLTexture::SStatesCache::LODBias’ [-Wreorder]
COpenGLTexture.h:58:3: warning: when initialized here [-Wreorder]
In file included from COpenGLDriver.cpp:5:0:
COpenGLDriver.h: In constructor ‘irr::video::COpenGLDriver::COpenGLDriver(const irr::SIrrlichtCreationParameters&, irr::io::IFileSystem*, irr::CIrrDeviceLinux*)’:
COpenGLDriver.h:637:22: warning: ‘irr::video::COpenGLDriver::LastVertexDescriptor’ will be initialized after [-Wreorder]
COpenGLDriver.h:471:28: warning: ‘irr::video::COpenGLCallBridge* irr::video::COpenGLDriver::BridgeCalls’ [-Wreorder]
COpenGLDriver.cpp:620:1: warning: when initialized here [-Wreorder]
COpenGLDriver.cpp: In member function ‘virtual void irr::video::COpenGLDriver::drawVertexPrimitiveList(bool, irr::scene::IVertexBuffer*, bool, irr::scene::IIndexBuffer*, irr::u32, irr::scene::E_PRIMITIVE_TYPE)’:
COpenGLDriver.cpp:1665:7: error: expected unqualified-id before numeric constant
COpenGLDriver.cpp:1680:19: error: lvalue required as left operand of assignment
COpenGLDriver.cpp:1733:9: warning: enumeration value ‘EVAS_COUNT’ not handled in switch [-Wswitch]
make: *** [COpenGLDriver.o] Error 1
bvanevery@nomad:~/devel/shader-pipeline/source/Irrlicht$
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: compile error in SVN shader-pipeline branch

Post by Nadro »

Do you use the latest revision of this branch? Compiler has got problems with this lines:

Code: Select all

bool NormalState = false; // 1665
NormalState = true; // 1680
But I don't see problems here. Maybe SVN or encoding changed something. Please check upper lines if they are different than original. Warnings will be fixed after update branch to trunk (CuteAlien already fixed warnings in trunk).
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
bvanevery
Posts: 27
Joined: Tue Jul 03, 2007 4:36 pm
Location: Winston-Salem, NC

Re: compile error in SVN shader-pipeline branch

Post by bvanevery »

My working copy of SVN is at latest rev 4473. svn diff yields no differences. Are you sure you have no diffs from 4473? Otherwise, I'm on Lubuntu 12.10 Linux with gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2. What are you using? I've never installed an Irrlicht; do you have any paths for include files that I wouldn't have?
bvanevery@nomad:~/devel/shader-pipeline/source/Irrlicht$ svn info
Path: .
Working Copy Root Path: /home/bvanevery/devel/shader-pipeline
URL: https://irrlicht.svn.sourceforge.net/sv ... e/Irrlicht
Repository Root: https://irrlicht.svn.sourceforge.net/svnroot/irrlicht
Repository UUID: dfc29bdd-3216-0410-991c-e03cc46cb475
Revision: 4483
Node Kind: directory
Schedule: normal
Last Changed Author: nadro
Last Changed Rev: 4473
Last Changed Date: 2013-03-07 09:51:52 -0500 (Thu, 07 Mar 2013)
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: compile error in SVN shader-pipeline branch

Post by Nadro »

Fixed in the latest revision. I tested it with Ubuntu 12.10. Thanks for a report :)
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
bvanevery
Posts: 27
Joined: Tue Jul 03, 2007 4:36 pm
Location: Winston-Salem, NC

Re: compile error in SVN shader-pipeline branch

Post by bvanevery »

Confirmed as fixed!
Post Reply