EmulationStation icon indicating copy to clipboard operation
EmulationStation copied to clipboard

it doesn't compile but i installed the dependencies

Open LucasHillebrand opened this issue 3 years ago • 3 comments

the problem is in make: from /home/lucas/Dokumente/tmp/emulation station/EmulationStation/es-app/src/views/ViewController.cpp:6: /home/lucas/Dokumente/tmp/emulation station/EmulationStation/es-app/src/views/gamelist/ISimpleGameListView.h:37:14: error: ‘stack’ in namespace ‘std’ does not name a template type 37 | std::stack<FileData*> mCursorStack; | ^~~~~ /home/lucas/Dokumente/tmp/emulation station/EmulationStation/es-app/src/views/gamelist/ISimpleGameListView.h:1:1: note: ‘std::stack’ is defined in header ‘’; did you forget to ‘#include ’? +++ |+#include 1 | #pragma once In file included from /home/lucas/Dokumente/tmp/emulation station/EmulationStation/es-app/src/views/gamelist/BasicGameListView.h:3, from /home/lucas/Dokumente/tmp/emulation station/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:1: /home/lucas/Dokumente/tmp/emulation station/EmulationStation/es-app/src/views/gamelist/ISimpleGameListView.h:37:14: error: ‘stack’ in namespace ‘std’ does not name a template type 37 | std::stack<FileData*> mCursorStack; | ^~~~~ /home/lucas/Dokumente/tmp/emulation station/EmulationStation/es-app/src/views/gamelist/ISimpleGameListView.h:7:1: note: ‘std::stack’ is defined in header ‘’; did you forget to ‘#include ’? 6 | #include "components/ImageComponent.h" +++ |+#include 7 | /home/lucas/Dokumente/tmp/emulation station/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp: In member function ‘virtual void BasicGameListView::setCursor(FileData*)’: /home/lucas/Dokumente/tmp/emulation station/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:63:20: error: ‘mCursorStack’ was not declared in this scope; did you mean ‘CursorState’? 63 | if(mCursorStack.empty() || mCursorStack.top() != cursor->getParent()) | ^~~~~~~~~~~~ | CursorState /home/lucas/Dokumente/tmp/emulation station/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:65:30: error: ‘stack’ is not a member of ‘std’ 65 | std::stack<FileData*> tmp; | ^~~~~ /home/lucas/Dokumente/tmp/emulation station/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:8:1: note: ‘std::stack’ is defined in header ‘’; did you forget to ‘#include ’? 7 | #include "Settings.h" +++ |+#include 8 | /home/lucas/Dokumente/tmp/emulation station/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:65:44: error: expected primary-expression before ‘’ token 65 | std::stack<FileData> tmp; | ^ /home/lucas/Dokumente/tmp/emulation station/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:65:45: error: expected primary-expression before ‘>’ token 65 | std::stack<FileData*> tmp; | ^ /home/lucas/Dokumente/tmp/emulation station/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:65:47: error: ‘tmp’ was not declared in this scope; did you mean ‘tm’? 65 | std::stack<FileData*> tmp; | ^~~ | tm /home/lucas/Dokumente/tmp/emulation station/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:74:45: error: ‘stack’ is not a member of ‘std’ 74 | mCursorStack = std::stack<FileData*>(); | ^~~~~ /home/lucas/Dokumente/tmp/emulation station/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:74:45: note: ‘std::stack’ is defined in header ‘’; did you forget to ‘#include ’? /home/lucas/Dokumente/tmp/emulation station/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:74:59: error: expected primary-expression before ‘’ token 74 | mCursorStack = std::stack<FileData>(); | ^ /home/lucas/Dokumente/tmp/emulation station/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:74:60: error: expected primary-expression before ‘>’ token 74 | mCursorStack = std::stack<FileData*>(); | ^ /home/lucas/Dokumente/tmp/emulation station/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:74:62: error: expected primary-expression before ‘)’ token 74 | mCursorStack = std::stack<FileData*>(); | ^ make[2]: *** [es-app/CMakeFiles/emulationstation.dir/build.make:454: es-app/CMakeFiles/emulationstation.dir/src/views/gamelist/ISimpleGameListView.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [es-app/CMakeFiles/emulationstation.dir/build.make:468: es-app/CMakeFiles/emulationstation.dir/src/views/gamelist/GridGameListView.cpp.o] Error 1 make[2]: *** [es-app/CMakeFiles/emulationstation.dir/build.make:426: es-app/CMakeFiles/emulationstation.dir/src/views/gamelist/DetailedGameListView.cpp.o] Error 1 make[2]: *** [es-app/CMakeFiles/emulationstation.dir/build.make:412: es-app/CMakeFiles/emulationstation.dir/src/views/gamelist/BasicGameListView.cpp.o] Error 1 make[2]: *** [es-app/CMakeFiles/emulationstation.dir/build.make:496: es-app/CMakeFiles/emulationstation.dir/src/views/ViewController.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:248: es-app/CMakeFiles/emulationstation.dir/all] Error 2

LucasHillebrand avatar Aug 20 '22 21:08 LucasHillebrand

I'm getting this exact same error on Ubuntu 22.04. Seems like there isn't anything that I can do on my end.

UltraFiresign avatar Feb 20 '23 21:02 UltraFiresign

I'm getting the same error, no fix found yet.

rar3r avatar May 18 '23 15:05 rar3r

Exact same error on debian 12

74%] Building CXX object es-app/CMakeFiles/emulationstation.dir/src/views/gamelist/BasicGameListView.cpp.o In file included from /home/carlos/Desktop/emulationStation/EmulationStation/es-app/src/views/gamelist/BasicGameListView.h:3, from /home/carlos/Desktop/emulationStation/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:1: /home/carlos/Desktop/emulationStation/EmulationStation/es-app/src/views/gamelist/ISimpleGameListView.h:37:14: error: ‘stack’ in namespace ‘std’ does not name a template type 37 | std::stack<FileData*> mCursorStack; | ^~~~~ /home/carlos/Desktop/emulationStation/EmulationStation/es-app/src/views/gamelist/ISimpleGameListView.h:7:1: note: ‘std::stack’ is defined in header ‘’; did you forget to ‘#include ’? 6 | #include "components/ImageComponent.h" +++ |+#include 7 | /home/carlos/Desktop/emulationStation/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp: In member function ‘virtual void BasicGameListView::setCursor(FileData*)’: /home/carlos/Desktop/emulationStation/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:63:20: error: ‘mCursorStack’ was not declared in this scope; did you mean ‘CursorState’? 63 | if(mCursorStack.empty() || mCursorStack.top() != cursor->getParent()) | ^~~~~~~~~~~~ | CursorState /home/carlos/Desktop/emulationStation/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:65:30: error: ‘stack’ is not a member of ‘std’ 65 | std::stack<FileData*> tmp; | ^~~~~ /home/carlos/Desktop/emulationStation/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:8:1: note: ‘std::stack’ is defined in header ‘’; did you forget to ‘#include ’? 7 | #include "Settings.h" +++ |+#include 8 | /home/carlos/Desktop/emulationStation/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:65:44: error: expected primary-expression before ‘’ token 65 | std::stack<FileData> tmp; | ^ /home/carlos/Desktop/emulationStation/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:65:45: error: expected primary-expression before ‘>’ token 65 | std::stack<FileData*> tmp; | ^ /home/carlos/Desktop/emulationStation/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:65:47: error: ‘tmp’ was not declared in this scope; did you mean ‘tm’? 65 | std::stack<FileData*> tmp; | ^~~ | tm /home/carlos/Desktop/emulationStation/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:74:45: error: ‘stack’ is not a member of ‘std’ 74 | mCursorStack = std::stack<FileData*>(); | ^~~~~ /home/carlos/Desktop/emulationStation/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:74:45: note: ‘std::stack’ is defined in header ‘’; did you forget to ‘#include ’? /home/carlos/Desktop/emulationStation/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:74:59: error: expected primary-expression before ‘’ token 74 | mCursorStack = std::stack<FileData>(); | ^ /home/carlos/Desktop/emulationStation/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:74:60: error: expected primary-expression before ‘>’ token 74 | mCursorStack = std::stack<FileData*>(); | ^ /home/carlos/Desktop/emulationStation/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:74:60: error: expected primary-expression before ‘>’ token 74 | mCursorStack = std::stack<FileData*>(); | ^ /home/carlos/Desktop/emulationStation/EmulationStation/es-app/src/views/gamelist/BasicGameListView.cpp:74:62: error: expected primary-expression before ‘)’ token 74 | mCursorStack = std::stack<FileData*>(); | ^ make[2]: *** [es-app/CMakeFiles/emulationstation.dir/build.make:412: es-app/CMakeFiles/emulationstation.dir/src/views/gamelist/BasicGameListView.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:248: es-app/CMakeFiles/emulationstation.dir/all] Error 2

CLS150989 avatar Sep 24 '23 02:09 CLS150989