RetroPie / EmulationStation

A Fork of Emulation Station for RetroPie. Emulation Station is a flexible emulator front-end supporting keyboardless navigation and custom system themes.
Other
855 stars 344 forks source link

error: cannot initialize object parameter with an expression of type 'VideoGameListView' #204

Open bentley opened 7 years ago

bentley commented 7 years ago

This is v2.4.1 / clang-4.0.0 / OpenBSD 6.1 -current.

[2/31] /usr/ports/pobj/emulationstation-2.4.1/bin/c++   -DEIGEN_DONT_ALIGN -DUSE_OPENGL_DESKTOP -I/usr/X11R6/include/freetype2 -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/local/include/eigen3 -I/usr/local/include/vlc -I/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/external -I/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-core/src -I/usr/X11R6/include -I/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src -I/usr/local/include -std=c++11 -g -MD -MT es-app/CMakeFiles/emulationstation.dir/src/views/gamelist/VideoGameListView.cpp.o -MF es-app/CMakeFiles/emulationstation.dir/src/views/gamelist/VideoGameListView.cpp.o.d -o es-app/CMakeFiles/emulationstation.dir/src/views/gamelist/VideoGameListView.cpp.o -c /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp
FAILED: es-app/CMakeFiles/emulationstation.dir/src/views/gamelist/VideoGameListView.cpp.o 
/usr/ports/pobj/emulationstation-2.4.1/bin/c++   -DEIGEN_DONT_ALIGN -DUSE_OPENGL_DESKTOP -I/usr/X11R6/include/freetype2 -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/local/include/eigen3 -I/usr/local/include/vlc -I/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/external -I/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-core/src -I/usr/X11R6/include -I/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src -I/usr/local/include -std=c++11 -g -MD -MT es-app/CMakeFiles/emulationstation.dir/src/views/gamelist/VideoGameListView.cpp.o -MF es-app/CMakeFiles/emulationstation.dir/src/views/gamelist/VideoGameListView.cpp.o.d -o es-app/CMakeFiles/emulationstation.dir/src/views/gamelist/VideoGameListView.cpp.o -c /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:1:
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.h:3:
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/BasicGameListView.h:3:
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/ISimpleGameListView.h:17:15: warning: 'onFileChanged' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        virtual void onFileChanged(FileData* file, FileChangeType change);
                     ^
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/IGameListView.h:23:15: note: overridden virtual function is here
        virtual void onFileChanged(FileData* file, FileChangeType change) = 0;
                     ^
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:1:
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.h:3:
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/BasicGameListView.h:3:
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/ISimpleGameListView.h:20:15: warning: 'onThemeChanged' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        virtual void onThemeChanged(const std::shared_ptr<ThemeData>& theme);
                     ^
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/IGameListView.h:26:15: note: overridden virtual function is here
        virtual void onThemeChanged(const std::shared_ptr<ThemeData>& theme) = 0;
                     ^
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:1:
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.h:3:
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/BasicGameListView.h:3:
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/ISimpleGameListView.h:22:20: warning: 'getCursor' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        virtual FileData* getCursor() = 0;
                          ^
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/IGameListView.h:31:20: note: overridden virtual function is here
        virtual FileData* getCursor() = 0;
                          ^
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:1:
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.h:3:
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/BasicGameListView.h:3:
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/ISimpleGameListView.h:23:15: warning: 'setCursor' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        virtual void setCursor(FileData*) = 0;
                     ^
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/IGameListView.h:32:15: note: overridden virtual function is here
        virtual void setCursor(FileData*) = 0;
                     ^
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:1:
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.h:3:
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/BasicGameListView.h:3:
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/ISimpleGameListView.h:26:15: warning: 'launch' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        virtual void launch(FileData* game) = 0;
                     ^
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/IGameListView.h:38:15: note: overridden virtual function is here
        virtual void launch(FileData* game) = 0;
                     ^
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:1:
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.h:3:
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/BasicGameListView.h:4:
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/components/TextListComponent.h:34:32: error: dependent using declaration resolved to type without 'typename'
        using IList<TextListData, T>::Entry;
                                      ^
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/BasicGameListView.h:29:31: note: in instantiation of template class 'TextListComponent<FileData *>' requested here
        TextListComponent<FileData*> mList;
                                     ^
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-core/src/components/IList.h:55:9: note: target of using declaration
        struct Entry
               ^
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:1:
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.h:3:
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/BasicGameListView.h:4:
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/components/TextListComponent.h:85:15: warning: 'onScroll' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        virtual void onScroll(int amt) { if(mScrollSound) mScrollSound->play(); }
                     ^
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-core/src/components/IList.h:309:15: note: overridden virtual function is here
        virtual void onScroll(int amt) {}
                     ^
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:1:
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.h:3:
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/BasicGameListView.h:4:
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/components/TextListComponent.h:86:15: warning: 'onCursorChanged' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        virtual void onCursorChanged(const CursorState& state);
                     ^
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-core/src/components/IList.h:308:15: note: overridden virtual function is here
        virtual void onCursorChanged(const CursorState& state) {}
                     ^
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:1:
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.h:3:
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/BasicGameListView.h:12:15: warning: 'onFileChanged' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        virtual void onFileChanged(FileData* file, FileChangeType change);
                     ^
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/ISimpleGameListView.h:17:15: note: overridden virtual function is here
        virtual void onFileChanged(FileData* file, FileChangeType change);
                     ^
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:1:
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.h:3:
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/BasicGameListView.h:14:15: warning: 'onThemeChanged' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        virtual void onThemeChanged(const std::shared_ptr<ThemeData>& theme);
                     ^
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/ISimpleGameListView.h:20:15: note: overridden virtual function is here
        virtual void onThemeChanged(const std::shared_ptr<ThemeData>& theme);
                     ^
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:1:
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.h:5:
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/components/RatingComponent.h:22:7: warning: 'render' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        void render(const Eigen::Affine3f& parentTrans);
             ^
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-core/src/GuiComponent.h:37:15: note: overridden virtual function is here
        virtual void render(const Eigen::Affine3f& parentTrans);
                     ^
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:1:
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.h:7:
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-core/src/components/VideoComponent.h:68:15: warning: 'update' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        virtual void update(int deltaTime);
                     ^
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-core/src/GuiComponent.h:29:15: note: overridden virtual function is here
        virtual void update(int deltaTime);
                     ^
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:11:
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-core/src/components/VideoVlcComponent.h:42:7: warning: 'setResize' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        void setResize(float width, float height);
             ^
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-core/src/components/VideoComponent.h:74:15: note: overridden virtual function is here
        virtual void setResize(float width, float height) = 0;
                     ^
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:11:
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-core/src/components/VideoVlcComponent.h:47:7: warning: 'setMaxSize' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        void setMaxSize(float width, float height);
             ^
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-core/src/components/VideoComponent.h:80:15: note: overridden virtual function is here
        virtual void setMaxSize(float width, float height) = 0;
                     ^
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:11:
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-core/src/components/VideoVlcComponent.h:54:15: warning: 'startVideo' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        virtual void startVideo();
                     ^
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-core/src/components/VideoComponent.h:85:15: note: overridden virtual function is here
        virtual void startVideo() = 0;
                     ^
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:11:
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-core/src/components/VideoVlcComponent.h:56:15: warning: 'stopVideo' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        virtual void stopVideo();
                     ^
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-core/src/components/VideoComponent.h:87:15: note: overridden virtual function is here
        virtual void stopVideo() { };
                     ^
In file included from /usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:11:
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-core/src/components/VideoVlcComponent.h:58:15: warning: 'handleLooping' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        virtual void handleLooping();
                     ^
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-core/src/components/VideoComponent.h:89:15: note: overridden virtual function is here
        virtual void handleLooping();
                     ^
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:49:2: error: cannot initialize object parameter of type 'GuiComponent' with an expression of type 'VideoGameListView'
        addChild(&mMarquee);
        ^~~~~~~~
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:57:2: error: cannot initialize object parameter of type 'GuiComponent' with an expression of type 'VideoGameListView'
        addChild(&mImage);
        ^~~~~~~~
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:64:2: error: cannot initialize object parameter of type 'GuiComponent' with an expression of type 'VideoGameListView'
        addChild(mVideo);
        ^~~~~~~~
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:68:2: error: cannot initialize object parameter of type 'GuiComponent' with an expression of type 'VideoGameListView'
        addChild(&mLblRating);
        ^~~~~~~~
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:69:2: error: cannot initialize object parameter of type 'GuiComponent' with an expression of type 'VideoGameListView'
        addChild(&mRating);
        ^~~~~~~~
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:71:2: error: cannot initialize object parameter of type 'GuiComponent' with an expression of type 'VideoGameListView'
        addChild(&mLblReleaseDate);
        ^~~~~~~~
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:72:2: error: cannot initialize object parameter of type 'GuiComponent' with an expression of type 'VideoGameListView'
        addChild(&mReleaseDate);
        ^~~~~~~~
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:74:2: error: cannot initialize object parameter of type 'GuiComponent' with an expression of type 'VideoGameListView'
        addChild(&mLblDeveloper);
        ^~~~~~~~
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:75:2: error: cannot initialize object parameter of type 'GuiComponent' with an expression of type 'VideoGameListView'
        addChild(&mDeveloper);
        ^~~~~~~~
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:77:2: error: cannot initialize object parameter of type 'GuiComponent' with an expression of type 'VideoGameListView'
        addChild(&mLblPublisher);
        ^~~~~~~~
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:78:2: error: cannot initialize object parameter of type 'GuiComponent' with an expression of type 'VideoGameListView'
        addChild(&mPublisher);
        ^~~~~~~~
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:80:2: error: cannot initialize object parameter of type 'GuiComponent' with an expression of type 'VideoGameListView'
        addChild(&mLblGenre);
        ^~~~~~~~
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:81:2: error: cannot initialize object parameter of type 'GuiComponent' with an expression of type 'VideoGameListView'
        addChild(&mGenre);
        ^~~~~~~~
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:83:2: error: cannot initialize object parameter of type 'GuiComponent' with an expression of type 'VideoGameListView'
        addChild(&mLblPlayers);
        ^~~~~~~~
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:84:2: error: cannot initialize object parameter of type 'GuiComponent' with an expression of type 'VideoGameListView'
        addChild(&mPlayers);
        ^~~~~~~~
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:86:2: error: cannot initialize object parameter of type 'GuiComponent' with an expression of type 'VideoGameListView'
        addChild(&mLblLastPlayed);
        ^~~~~~~~
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:88:2: error: cannot initialize object parameter of type 'GuiComponent' with an expression of type 'VideoGameListView'
        addChild(&mLastPlayed);
        ^~~~~~~~
/usr/ports/pobj/emulationstation-2.4.1/EmulationStation-2.4.1/es-app/src/views/gamelist/VideoGameListView.cpp:90:2: error: cannot initialize object parameter of type 'GuiComponent' with an expression of type 'VideoGameListView'
        addChild(&mLblPlayCount);
        ^~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
16 warnings and 20 errors generated.
ninja: build stopped: subcommand failed.
jrassa commented 7 years ago

Just curious, but why are you trying to build with clang vs. gcc?

bentley commented 7 years ago

Clang is the system compiler on OpenBSD amd64, arm64, and i386.