tomvita / EdiZon-SE

💡 A Fork from EdiZon that focus solely on extending memory training capabilities. Supports bookmark, range search, unknown value search and pointer chain search.
GNU General Public License v2.0
438 stars 23 forks source link

Can't compile #17

Open ghost opened 3 years ago

ghost commented 3 years ago

I followed the instructions and tried to compile it, but I got an error and could not compile it. If you have a solution, please let me know.

$ make
main.cpp
In file included from P:/Switch-Dev/Edizon-SE/include/guis/gui.hpp:10,
                 from P:/Switch-Dev/Edizon-SE/source/main.cpp:13:
P:/Switch-Dev/Edizon-SE/include/ui_elements/list_selector.hpp:21:16: error: 'touchPosition' has not been declared
   21 |   void onTouch(touchPosition &touch);
      |                ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/ui_elements/list_selector.hpp:22:18: error: 'touchPosition' has not been declared
   22 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                  ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/ui_elements/list_selector.hpp:22:47: error: 'touchPosition' has not been declared
   22 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                                               ^~~~~~~~~~~~~
In file included from P:/Switch-Dev/Edizon-SE/include/guis/gui.hpp:11,
                 from P:/Switch-Dev/Edizon-SE/source/main.cpp:13:
P:/Switch-Dev/Edizon-SE/include/ui_elements/message_box.hpp:25:16: error: 'touchPosition' has not been declared
   25 |   void onTouch(touchPosition &touch);
      |                ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/ui_elements/message_box.hpp:26:18: error: 'touchPosition' has not been declared
   26 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                  ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/ui_elements/message_box.hpp:26:47: error: 'touchPosition' has not been declared
   26 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                                               ^~~~~~~~~~~~~
In file included from P:/Switch-Dev/Edizon-SE/source/main.cpp:13:
P:/Switch-Dev/Edizon-SE/include/guis/gui.hpp:65:24: error: 'touchPosition' has not been declared
   65 |   virtual void onTouch(touchPosition &touch) = 0;
      |                        ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/guis/gui.hpp:66:26: error: 'touchPosition' has not been declared
   66 |   virtual void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish) = 0;
      |                          ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/guis/gui.hpp:66:55: error: 'touchPosition' has not been declared
   66 |   virtual void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish) = 0;
      |                                                       ^~~~~~~~~~~~~
In file included from P:/Switch-Dev/Edizon-SE/source/main.cpp:14:
P:/Switch-Dev/Edizon-SE/include/guis/gui_main.hpp:20:16: error: 'touchPosition' has not been declared
   20 |   void onTouch(touchPosition &touch);
      |                ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/guis/gui_main.hpp:21:18: error: 'touchPosition' has not been declared
   21 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                  ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/guis/gui_main.hpp:21:47: error: 'touchPosition' has not been declared
   21 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                                               ^~~~~~~~~~~~~
In file included from P:/Switch-Dev/Edizon-SE/include/guis/gui_editor.hpp:4,
                 from P:/Switch-Dev/Edizon-SE/source/main.cpp:15:
P:/Switch-Dev/Edizon-SE/include/widgets/widget.hpp:46:27: error: 'touchPosition' has not been declared
   46 |   static void handleTouch(touchPosition &touch, WidgetItems &widgets);
      |                           ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/widgets/widget.hpp:50:24: error: 'touchPosition' has not been declared
   50 |   virtual void onTouch(touchPosition &touch) = 0;
      |                        ^~~~~~~~~~~~~
In file included from P:/Switch-Dev/Edizon-SE/source/main.cpp:15:
P:/Switch-Dev/Edizon-SE/include/guis/gui_editor.hpp:26:16: error: 'touchPosition' has not been declared
   26 |   void onTouch(touchPosition &touch);
      |                ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/guis/gui_editor.hpp:27:18: error: 'touchPosition' has not been declared
   27 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                  ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/guis/gui_editor.hpp:27:47: error: 'touchPosition' has not been declared
   27 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                                               ^~~~~~~~~~~~~
In file included from P:/Switch-Dev/Edizon-SE/source/main.cpp:17:
P:/Switch-Dev/Edizon-SE/include/guis/gui_choose_mission.hpp:17:16: error: 'touchPosition' has not been declared
   17 |   void onTouch(touchPosition &touch);
      |                ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/guis/gui_choose_mission.hpp:18:18: error: 'touchPosition' has not been declared
   18 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                  ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/guis/gui_choose_mission.hpp:18:47: error: 'touchPosition' has not been declared
   18 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                                               ^~~~~~~~~~~~~
In file included from P:/Switch-Dev/Edizon-SE/source/main.cpp:18:
P:/Switch-Dev/Edizon-SE/include/guis/gui_more.hpp:17:16: error: 'touchPosition' has not been declared
   17 |   void onTouch(touchPosition &touch);
      |                ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/guis/gui_more.hpp:18:18: error: 'touchPosition' has not been declared
   18 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                  ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/guis/gui_more.hpp:18:47: error: 'touchPosition' has not been declared
   18 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                                               ^~~~~~~~~~~~~
In file included from P:/Switch-Dev/Edizon-SE/source/main.cpp:19:
P:/Switch-Dev/Edizon-SE/include/guis/gui_cheats.hpp:62:16: error: 'touchPosition' has not been declared
   62 |   void onTouch(touchPosition &touch);
      |                ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/guis/gui_cheats.hpp:63:18: error: 'touchPosition' has not been declared
   63 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                  ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/guis/gui_cheats.hpp:63:47: error: 'touchPosition' has not been declared
   63 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                                               ^~~~~~~~~~~~~
In file included from P:/Switch-Dev/Edizon-SE/source/main.cpp:20:
P:/Switch-Dev/Edizon-SE/include/guis/gui_sysmodule.hpp:24:16: error: 'touchPosition' has not been declared
   24 |   void onTouch(touchPosition &touch);
      |                ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/guis/gui_sysmodule.hpp:25:18: error: 'touchPosition' has not been declared
   25 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                  ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/guis/gui_sysmodule.hpp:25:47: error: 'touchPosition' has not been declared
   25 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                                               ^~~~~~~~~~~~~
In file included from P:/Switch-Dev/Edizon-SE/source/main.cpp:21:
P:/Switch-Dev/Edizon-SE/include/guis/gui_about.hpp:15:16: error: 'touchPosition' has not been declared
   15 |   void onTouch(touchPosition &touch);
      |                ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/guis/gui_about.hpp:16:18: error: 'touchPosition' has not been declared
   16 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                  ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/guis/gui_about.hpp:16:47: error: 'touchPosition' has not been declared
   16 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                                               ^~~~~~~~~~~~~
In file included from P:/Switch-Dev/Edizon-SE/source/main.cpp:22:
P:/Switch-Dev/Edizon-SE/include/guis/gui_cheatdb.hpp:15:16: error: 'touchPosition' has not been declared
   15 |   void onTouch(touchPosition &touch);
      |                ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/guis/gui_cheatdb.hpp:16:18: error: 'touchPosition' has not been declared
   16 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                  ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/guis/gui_cheatdb.hpp:16:47: error: 'touchPosition' has not been declared
   16 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                                               ^~~~~~~~~~~~~
In file included from P:/Switch-Dev/Edizon-SE/source/main.cpp:23:
P:/Switch-Dev/Edizon-SE/include/guis/gui_first_run.hpp:15:16: error: 'touchPosition' has not been declared
   15 |   void onTouch(touchPosition &touch);
      |                ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/guis/gui_first_run.hpp:16:18: error: 'touchPosition' has not been declared
   16 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                  ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/guis/gui_first_run.hpp:16:47: error: 'touchPosition' has not been declared
   16 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                                               ^~~~~~~~~~~~~
In file included from P:/Switch-Dev/Edizon-SE/source/main.cpp:24:
P:/Switch-Dev/Edizon-SE/include/guis/gui_memory_editor.hpp:17:16: error: 'touchPosition' has not been declared
   17 |   void onTouch(touchPosition &touch);
      |                ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/guis/gui_memory_editor.hpp:18:18: error: 'touchPosition' has not been declared
   18 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                  ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/guis/gui_memory_editor.hpp:18:47: error: 'touchPosition' has not been declared
   18 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                                               ^~~~~~~~~~~~~
In file included from P:/Switch-Dev/Edizon-SE/source/main.cpp:25:
P:/Switch-Dev/Edizon-SE/include/guis/gui_guide.hpp:19:16: error: 'touchPosition' has not been declared
   19 |   void onTouch(touchPosition &touch);
      |                ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/guis/gui_guide.hpp:20:18: error: 'touchPosition' has not been declared
   20 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                  ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/include/guis/gui_guide.hpp:20:47: error: 'touchPosition' has not been declared
   20 |   void onGesture(touchPosition startPosition, touchPosition endPosition, bool finish);
      |                                               ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp: In function 'void update()':
P:/Switch-Dev/Edizon-SE/source/main.cpp:105:18: error: 'KEY_LEFT' was not declared in this scope
  105 |     if (kheld & (KEY_LEFT | KEY_RIGHT | KEY_UP | KEY_DOWN))
      |                  ^~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp:105:29: error: 'KEY_RIGHT' was not declared in this scope
  105 |     if (kheld & (KEY_LEFT | KEY_RIGHT | KEY_UP | KEY_DOWN))
      |                             ^~~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp:105:41: error: 'KEY_UP' was not declared in this scope
  105 |     if (kheld & (KEY_LEFT | KEY_RIGHT | KEY_UP | KEY_DOWN))
      |                                         ^~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp:105:50: error: 'KEY_DOWN' was not declared in this scope
  105 |     if (kheld & (KEY_LEFT | KEY_RIGHT | KEY_UP | KEY_DOWN))
      |                                                  ^~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp: In function 'int main(int, char**)':
P:/Switch-Dev/Edizon-SE/source/main.cpp:334:5: error: 'hidScanInput' was not declared in this scope
  334 |     hidScanInput();
      |     ^~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp:335:25: error: 'CONTROLLER_PLAYER_1' was not declared in this scope
  335 |     kheld = hidKeysHeld(CONTROLLER_PLAYER_1)|hidKeysHeld(CONTROLLER_HANDHELD);
      |                         ^~~~~~~~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp:335:13: error: 'hidKeysHeld' was not declared in this scope
  335 |     kheld = hidKeysHeld(CONTROLLER_PLAYER_1)|hidKeysHeld(CONTROLLER_HANDHELD);
      |             ^~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp:335:58: error: 'CONTROLLER_HANDHELD' was not declared in this scope
  335 |     kheld = hidKeysHeld(CONTROLLER_PLAYER_1)|hidKeysHeld(CONTROLLER_HANDHELD);
      |                                                          ^~~~~~~~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp:336:13: error: 'hidKeysDown' was not declared in this scope
  336 |     kdown = hidKeysDown(CONTROLLER_PLAYER_1)|hidKeysDown(CONTROLLER_HANDHELD);
      |             ^~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp:389:35: warning: 'fallthrough' attribute ignored [-Wattributes]
  389 |           [[fallthrough]] default : break;
      |                                   ^
P:/Switch-Dev/Edizon-SE/source/main.cpp:413:37: error: 'CONTROLLER_P1_AUTO' was not declared in this scope
  413 |         else if (kdown || hidKeysUp(CONTROLLER_P1_AUTO))
      |                                     ^~~~~~~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp:413:27: error: 'hidKeysUp' was not declared in this scope
  413 |         else if (kdown || hidKeysUp(CONTROLLER_P1_AUTO))
      |                           ^~~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp:430:12: error: 'touchPosition' does not name a type
  430 |     static touchPosition touchPosStart, touchPosCurr, touchPosOld;
      |            ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp:434:18: error: 'hidTouchCount' was not declared in this scope; did you mean 'touchCount'?
  434 |     touchCount = hidTouchCount();
      |                  ^~~~~~~~~~~~~
      |                  touchCount
P:/Switch-Dev/Edizon-SE/source/main.cpp:437:21: error: 'touchPosCurr' was not declared in this scope
  437 |       hidTouchRead(&touchPosCurr, 0);
      |                     ^~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp:437:7: error: 'hidTouchRead' was not declared in this scope
  437 |       hidTouchRead(&touchPosCurr, 0);
      |       ^~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp:440:21: error: 'touchPosStart' was not declared in this scope
  440 |       hidTouchRead(&touchPosStart, 0);
      |                     ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp:440:7: error: 'hidTouchRead' was not declared in this scope
  440 |       hidTouchRead(&touchPosStart, 0);
      |       ^~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp:442:30: error: 'touchPosStart' was not declared in this scope
  442 |     if (abs(static_cast<s16>(touchPosStart.px - touchPosCurr.px)) < 10 && abs(static_cast<s16>(touchPosStart.py - touchPosCurr.py)) < 10)
      |                              ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp:442:49: error: 'touchPosCurr' was not declared in this scope
  442 |     if (abs(static_cast<s16>(touchPosStart.px - touchPosCurr.px)) < 10 && abs(static_cast<s16>(touchPosStart.py - touchPosCurr.py)) < 10)
      |                                                 ^~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp:469:42: error: 'touchPosStart' was not declared in this scope
  469 |         Gui::g_currMessageBox->onGesture(touchPosStart, touchPosCurr, true);
      |                                          ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp:469:57: error: 'touchPosCurr' was not declared in this scope
  469 |         Gui::g_currMessageBox->onGesture(touchPosStart, touchPosCurr, true);
      |                                                         ^~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp:471:44: error: 'touchPosStart' was not declared in this scope
  471 |         Gui::g_currListSelector->onGesture(touchPosStart, touchPosCurr, true);
      |                                            ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp:471:59: error: 'touchPosCurr' was not declared in this scope
  471 |         Gui::g_currListSelector->onGesture(touchPosStart, touchPosCurr, true);
      |                                                           ^~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp:473:28: error: 'touchPosStart' was not declared in this scope
  473 |         currGui->onGesture(touchPosStart, touchPosCurr, true);
      |                            ^~~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp:473:43: error: 'touchPosCurr' was not declared in this scope
  473 |         currGui->onGesture(touchPosStart, touchPosCurr, true);
      |                                           ^~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp:477:5: error: 'touchPosOld' was not declared in this scope; did you mean 'touchCountOld'?
  477 |     touchPosOld = touchPosCurr;
      |     ^~~~~~~~~~~
      |     touchCountOld
P:/Switch-Dev/Edizon-SE/source/main.cpp:477:19: error: 'touchPosCurr' was not declared in this scope
  477 |     touchPosOld = touchPosCurr;
      |                   ^~~~~~~~~~~~
P:/Switch-Dev/Edizon-SE/source/main.cpp:253:9: warning: unused variable 'haddr' [-Wunused-variable]
  253 |   void *haddr;
      |         ^~~~~
In file included from P:/Switch-Dev/Edizon-SE/source/main.cpp:19:
P:/Switch-Dev/Edizon-SE/include/guis/gui_cheats.hpp: At global scope:
P:/Switch-Dev/Edizon-SE/include/guis/gui_cheats.hpp:50:3: warning: 'm_searchValueFormat' defined but not used [-Wunused-variable]
   50 | } m_searchValueFormat = FORMAT_DEC;
      |   ^~~~~~~~~~~~~~~~~~~
make[1]: *** [/opt/devkitpro/devkitA64/base_rules:14: main.o] Error 1
make: *** [Makefile:174: build] Error 2
zmxxuan commented 2 months ago

解决了吗?我也遇到了这个问题

zmxxuan commented 2 months ago

Has it been solved? I'm also encountering this problem.