{"action":"opened","issue":{"url":"https://api.github.com/repos/udacity/RoboND-DeepRL-Project/issues/4","repository_url":"https://api.github.com/repos/udacity/RoboND-DeepRL-Project","labels_url":"https://api.github.com/repos/udacity/RoboND-DeepRL-Project/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/udacity/RoboND-DeepRL-Project/issues/4/comments","events_url":"https://api.github.com/repos/udacity/RoboND-DeepRL-Project/issues/4/events","html_url":"https://github.com/udacity/RoboND-DeepRL-Project/issues/4","id":373204854,"node_id":"MDU6SXNzdWUzNzMyMDQ4NTQ=","number":4,"title":"\"cmake ..\" fails with missing declarations for \"Q_WS_MAC\", \"Q_WS_WQS\", \"Q_WS_X11\" and \"Q_WS_WIN\"","user":{"login":"safdark","id":1193219,"node_id":"MDQ6VXNlcjExOTMyMTk=","avatar_url":"https://avatars0.githubusercontent.com/u/1193219?v=4","gravatar_id":"","url":"https://api.github.com/users/safdark","html_url":"https://github.com/safdark","followers_url":"https://api.github.com/users/safdark/followers","following_url":"https://api.github.com/users/safdark/following{/other_user}","gists_url":"https://api.github.com/users/safdark/gists{/gist_id}","starred_url":"https://api.github.com/users/safdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/safdark/subscriptions","organizations_url":"https://api.github.com/users/safdark/orgs","repos_url":"https://api.github.com/users/safdark/repos","events_url":"https://api.github.com/users/safdark/events{/privacy}","received_events_url":"https://api.github.com/users/safdark/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-23T21:15:00Z","updated_at":"2018-10-23T21:15:00Z","closed_at":null,"author_association":"NONE","body":"Hi.\r\n\r\nI have a Ubuntu 18.04 box, with a NVidia GPU installed as well.\r\n\r\nI'm trying to setup the Jetson API Repository (from the \"Deep RL for Robotics\" chapter) but when I run the installation steps on the repository's README.md, I am getting errors with the cmd below (tagged with '<===')...\r\n\r\n```\r\n$ sudo apt-get install cmake\r\n$ git clone http://github.com/udacity/RoboND-DeepRL-Project\r\n$ cd RoboND-DeepRL-Project\r\n$ git submodule update --init\r\n$ mkdir build \r\n$ cd build \r\n$ cmake ../            <========== THIS STEP FAILS###### \r\n$ make\r\n```\r\nThe error log contains this information:\r\n```\r\nDetermining if the Q_WS_WIN exist failed with the following output:\r\nChange Dir: /data/code/RoboND-DeepRL-Project/build/CMakeFiles/CMakeTmp\r\n\r\nRun Build Command:\"/usr/bin/make\" \"cmTC_f9c7e/fast\"\r\n/usr/bin/make -f CMakeFiles/cmTC_f9c7e.dir/build.make CMakeFiles/cmTC_f9c7e.dir/build\r\nmake[1]: Entering directory '/data/code/RoboND-DeepRL-Project/build/CMakeFiles/CMakeTmp'\r\nBuilding CXX object CMakeFiles/cmTC_f9c7e.dir/CheckSymbolExists.cxx.o\r\n/usr/bin/c++   -I/usr/include/qt4  -std=c++11    -o CMakeFiles/cmTC_f9c7e.dir/CheckSymbolExists.cxx.o -c /data/code/RoboND-DeepRL-Project/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx\r\n/data/code/RoboND-DeepRL-Project/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: In function ‘int main(int, char**)’:\r\n/data/code/RoboND-DeepRL-Project/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: error: ‘Q_WS_WIN’ was not declared in this scope\r\n   return ((int*)(&Q_WS_WIN))[argc];\r\n                   ^~~~~~~~\r\n/data/code/RoboND-DeepRL-Project/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: note: suggested alternative: ‘Q_WS_X11’\r\n   return ((int*)(&Q_WS_WIN))[argc];\r\n                   ^~~~~~~~\r\n                   Q_WS_X11\r\nCMakeFiles/cmTC_f9c7e.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_f9c7e.dir/CheckSymbolExists.cxx.o' failed\r\nmake[1]: *** [CMakeFiles/cmTC_f9c7e.dir/CheckSymbolExists.cxx.o] Error 1\r\nmake[1]: Leaving directory '/data/code/RoboND-DeepRL-Project/build/CMakeFiles/CMakeTmp'\r\nMakefile:126: recipe for target 'cmTC_f9c7e/fast' failed\r\nmake: *** [cmTC_f9c7e/fast] Error 2\r\n\r\nFile /data/code/RoboND-DeepRL-Project/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:\r\n/* */\r\n#include <QtCore/qglobal.h>\r\n\r\nint main(int argc, char** argv)\r\n{\r\n  (void)argv;\r\n#ifndef Q_WS_WIN\r\n  return ((int*)(&Q_WS_WIN))[argc];\r\n#else\r\n  (void)argc;\r\n  return 0;\r\n#endif\r\n}\r\n\r\nDetermining if the Q_WS_QWS exist failed with the following output:\r\nChange Dir: /data/code/RoboND-DeepRL-Project/build/CMakeFiles/CMakeTmp\r\n\r\nRun Build Command:\"/usr/bin/make\" \"cmTC_84756/fast\"\r\n/usr/bin/make -f CMakeFiles/cmTC_84756.dir/build.make CMakeFiles/cmTC_84756.dir/build\r\nmake[1]: Entering directory '/data/code/RoboND-DeepRL-Project/build/CMakeFiles/CMakeTmp'\r\nBuilding CXX object CMakeFiles/cmTC_84756.dir/CheckSymbolExists.cxx.o\r\n/usr/bin/c++   -I/usr/include/qt4  -std=c++11    -o CMakeFiles/cmTC_84756.dir/CheckSymbolExists.cxx.o -c /data/code/RoboND-DeepRL-Project/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx\r\n/data/code/RoboND-DeepRL-Project/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: In function ‘int main(int, char**)’:\r\n/data/code/RoboND-DeepRL-Project/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: error: ‘Q_WS_QWS’ was not declared in this scope\r\n   return ((int*)(&Q_WS_QWS))[argc];\r\n                   ^~~~~~~~\r\n/data/code/RoboND-DeepRL-Project/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: note: suggested alternative: ‘Q_WS_X11’\r\n   return ((int*)(&Q_WS_QWS))[argc];\r\n                   ^~~~~~~~\r\n                   Q_WS_X11\r\nCMakeFiles/cmTC_84756.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_84756.dir/CheckSymbolExists.cxx.o' failed\r\nmake[1]: *** [CMakeFiles/cmTC_84756.dir/CheckSymbolExists.cxx.o] Error 1\r\nmake[1]: Leaving directory '/data/code/RoboND-DeepRL-Project/build/CMakeFiles/CMakeTmp'\r\nMakefile:126: recipe for target 'cmTC_84756/fast' failed\r\nmake: *** [cmTC_84756/fast] Error 2\r\n\r\nFile /data/code/RoboND-DeepRL-Project/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:\r\n/* */\r\n#include <QtCore/qglobal.h>\r\n\r\nint main(int argc, char** argv)\r\n{\r\n  (void)argv;\r\n#ifndef Q_WS_QWS\r\n  return ((int*)(&Q_WS_QWS))[argc];\r\n#else\r\n  (void)argc;\r\n  return 0;\r\n#endif\r\n}\r\n\r\nDetermining if the Q_WS_MAC exist failed with the following output:\r\nChange Dir: /data/code/RoboND-DeepRL-Project/build/CMakeFiles/CMakeTmp\r\n\r\nRun Build Command:\"/usr/bin/make\" \"cmTC_2a59e/fast\"\r\n/usr/bin/make -f CMakeFiles/cmTC_2a59e.dir/build.make CMakeFiles/cmTC_2a59e.dir/build\r\nmake[1]: Entering directory '/data/code/RoboND-DeepRL-Project/build/CMakeFiles/CMakeTmp'\r\nBuilding CXX object CMakeFiles/cmTC_2a59e.dir/CheckSymbolExists.cxx.o\r\n/usr/bin/c++   -I/usr/include/qt4  -std=c++11    -o CMakeFiles/cmTC_2a59e.dir/CheckSymbolExists.cxx.o -c /data/code/RoboND-DeepRL-Project/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx\r\n/data/code/RoboND-DeepRL-Project/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: In function ‘int main(int, char**)’:\r\n/data/code/RoboND-DeepRL-Project/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: error: ‘Q_WS_MAC’ was not declared in this scope\r\n   return ((int*)(&Q_WS_MAC))[argc];\r\n                   ^~~~~~~~\r\n/data/code/RoboND-DeepRL-Project/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: note: suggested alternative: ‘Q_WS_X11’\r\n   return ((int*)(&Q_WS_MAC))[argc];\r\n                   ^~~~~~~~\r\n                   Q_WS_X11\r\nCMakeFiles/cmTC_2a59e.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_2a59e.dir/CheckSymbolExists.cxx.o' failed\r\nmake[1]: *** [CMakeFiles/cmTC_2a59e.dir/CheckSymbolExists.cxx.o] Error 1\r\nmake[1]: Leaving directory '/data/code/RoboND-DeepRL-Project/build/CMakeFiles/CMakeTmp'\r\nMakefile:126: recipe for target 'cmTC_2a59e/fast' failed\r\nmake: *** [cmTC_2a59e/fast] Error 2\r\n\r\nFile /data/code/RoboND-DeepRL-Project/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:\r\n/* */\r\n#include <QtCore/qglobal.h>\r\n\r\nint main(int argc, char** argv)\r\n{\r\n  (void)argv;\r\n#ifndef Q_WS_MAC\r\n  return ((int*)(&Q_WS_MAC))[argc];\r\n#else\r\n  (void)argc;\r\n  return 0;\r\n#endif\r\n}\r\n```\r\nI can't proceed to the 'make' step without getting past these errors. Is there any way to fix/resolve these references?\r\n\r\nThanks in advance!"}}
{"actor":{"display_login":"safdark"}}