[BUG]SamplesFrameworkBase has pure virtual function error

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

bvanevery
Just popping in
Just popping in
Posts: 8
Joined: Wed Aug 07, 2013 17:14

[BUG]SamplesFrameworkBase has pure virtual function error

Postby bvanevery » Wed Aug 07, 2013 18:01

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

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

Re: [BUG]SamplesFrameworkBase has pure virtual function erro

Postby Ident » Sun Sep 22, 2013 06:33

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

zweihndr
Just popping in
Just popping in
Posts: 2
Joined: Sun Sep 22, 2013 05:16

Re: [BUG]SamplesFrameworkBase has pure virtual function erro

Postby zweihndr » Sun Sep 22, 2013 15:25

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


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 4 guests