muttleyxd / arma3-unix-launcher

Launcher for Linux and Mac ArmA 3
MIT License
210 stars 44 forks source link

error: ‘ARMA3’ has not been declared #241

Closed rolaca11 closed 1 year ago

rolaca11 commented 1 year ago

Error:

While building the dayz launcher, I get the following output from make (this isn't a clean build, but the error message is the same in either case):

[ 76%] Built target curlpp
[ 76%] Built target common
[ 76%] Built target steam-integration
[ 76%] Built target arma3-unix-launcher-library
[ 76%] Built target dayz-linux-launcher-library
[ 76%] Built target pugixml
[ 76%] Automatic MOC and UIC for target dayz-linux-launcher
[ 76%] Built target dayz-linux-launcher_autogen
Consolidate compiler generated dependencies of target dayz-linux-launcher
[ 76%] Building CXX object src/dayz-linux-launcher/CMakeFiles/dayz-linux-launcher.dir/main.cpp.o
/home/ropi/Downloads/arma3-unix-launcher/src/dayz-linux-launcher/main.cpp: In function ‘int main(int, char**)’:
/home/ropi/Downloads/arma3-unix-launcher/src/dayz-linux-launcher/main.cpp:151:73: error: ‘ARMA3’ has not been declared
  151 |                             workshop_path = steam.GetWorkshopPath(path, ARMA3::Definitions::app_id);
      |                                                                         ^~~~~
make[2]: *** [src/dayz-linux-launcher/CMakeFiles/dayz-linux-launcher.dir/build.make:166: src/dayz-linux-launcher/CMakeFiles/dayz-linux-launcher.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:463: src/dayz-linux-launcher/CMakeFiles/dayz-linux-launcher.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Way to reproduce:

Follow the instructions on Build process for DayZ

Environment:

OS: Pop!_OS 22.04 CMake: cmake version 3.22.1 GCC: gcc version 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04) QT: I don't have qt5-default installed, but as people here suggested, I installed these packages: apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools

rolaca11 commented 1 year ago

that was fast, thanks