Page 1 of 1

[BUG]SamplesFrameworkBase has pure virtual function error

Posted: Wed Aug 07, 2013 18:01
by bvanevery
I'm building CEGUI 0.8.2 on Linux. 98% of it builds but this bug kills the build and prevents "make install". It looks like a trivial error in pure virtual function specification? I have not chased through the .h files to determine the exact problem. The Mercurial repository also has this problem.

Code: Select all

[ 98%] Building CXX object samples_framework/CMakeFiles/CEGUISampleFramework-0.8.dir/src/SamplesFrameworkBase.cpp.o
In file included from /home/bvanevery/devel/cegui-0.8.2/samples_framework/src/SamplesFrameworkBase.cpp:62:0:
/home/bvanevery/devel/cegui-0.8.2/samples_framework/include/CEGuiDirectFBBaseApplication.h:63:23: error: ‘CEGuiSample’ has not been declared
/home/bvanevery/devel/cegui-0.8.2/samples_framework/src/SamplesFrameworkBase.cpp: In member function ‘virtual bool SamplesFrameworkBase::runApplication()’:
/home/bvanevery/devel/cegui-0.8.2/samples_framework/src/SamplesFrameworkBase.cpp:263:58: error: cannot allocate an object of abstract type ‘CEGuiDirectFBBaseApplication’
In file included from /home/bvanevery/devel/cegui-0.8.2/samples_framework/src/SamplesFrameworkBase.cpp:62:0:
/home/bvanevery/devel/cegui-0.8.2/samples_framework/include/CEGuiDirectFBBaseApplication.h:41:7: note:   because the following virtual functions are pure within ‘CEGuiDirectFBBaseApplication’:
In file included from /home/bvanevery/devel/cegui-0.8.2/samples_framework/include/CEGuiOgreBaseApplication.h:31:0,
                 from /home/bvanevery/devel/cegui-0.8.2/samples_framework/src/SamplesFrameworkBase.cpp:50:
/home/bvanevery/devel/cegui-0.8.2/samples_framework/include/CEGuiBaseApplication.h:134:18: note:    virtual void CEGuiBaseApplication::run()
/home/bvanevery/devel/cegui-0.8.2/samples_framework/include/CEGuiBaseApplication.h:136:18: note:    virtual void CEGuiBaseApplication::destroyWindow()
make[2]: *** [samples_framework/CMakeFiles/CEGUISampleFramework-0.8.dir/src/SamplesFrameworkBase.cpp.o] Error 1

Re: [BUG]SamplesFrameworkBase has pure virtual function erro

Posted: Sun Sep 22, 2013 06:33
by Ident
Are you using DirectFB?

It is kinda broken right now in CEGUI and we dont know how we will proceed about DirectFB yet... If you dont use DirectFB just deactivate it in CMake explicitly. Otherwise a fix should be easy but i cant test it because i dont use DirectFB and got no Linux work environment set up atm.

Re: [BUG]SamplesFrameworkBase has pure virtual function erro

Posted: Sun Sep 22, 2013 15:25
by zweihndr
Yes it's DirectFB. I got the same error last night. Fix:

Code: Select all

cmake -DCEGUI_BUILD_RENDERER_DIRECTFB=OFF -DCEGUI_SAMPLES_USE_DIRECTFB=OFF