{"action":"created","issue":{"url":"https://api.github.com/repos/urho3d/Urho3D/issues/1499","repository_url":"https://api.github.com/repos/urho3d/Urho3D","labels_url":"https://api.github.com/repos/urho3d/Urho3D/issues/1499/labels{/name}","comments_url":"https://api.github.com/repos/urho3d/Urho3D/issues/1499/comments","events_url":"https://api.github.com/repos/urho3d/Urho3D/issues/1499/events","html_url":"https://github.com/urho3d/Urho3D/pull/1499","id":168474319,"number":1499,"title":"CMake fixes for compiling on Ubuntu 16.04","user":{"login":"feltech","id":7827094,"avatar_url":"https://avatars.githubusercontent.com/u/7827094?v=3","gravatar_id":"","url":"https://api.github.com/users/feltech","html_url":"https://github.com/feltech","followers_url":"https://api.github.com/users/feltech/followers","following_url":"https://api.github.com/users/feltech/following{/other_user}","gists_url":"https://api.github.com/users/feltech/gists{/gist_id}","starred_url":"https://api.github.com/users/feltech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feltech/subscriptions","organizations_url":"https://api.github.com/users/feltech/orgs","repos_url":"https://api.github.com/users/feltech/repos","events_url":"https://api.github.com/users/feltech/events{/privacy}","received_events_url":"https://api.github.com/users/feltech/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-30T16:06:56Z","updated_at":"2016-07-31T19:49:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/urho3d/Urho3D/pulls/1499","html_url":"https://github.com/urho3d/Urho3D/pull/1499","diff_url":"https://github.com/urho3d/Urho3D/pull/1499.diff","patch_url":"https://github.com/urho3d/Urho3D/pull/1499.patch"},"body":"* rapidjson and STB CMake `install_header_files` call using `USE_FILE_SYMLINK` causes \"Too many levels of symbolic links\" error.\r\n* Ensure necessary folder required for tolua++ to build.\r\n* Link `gcc_s` and `gcc` to work around GCC 5.4 issue with STB in shared libraries (known issue https://github.com/nothings/stb/issues/280).\r\n\r\nThis is as much a bug report as pull request - there may be better ways to solve these issues.  Especially the symbolic links issue - the fix doesn't address the underlying cause, just disables symlinks."},"comment":{"url":"https://api.github.com/repos/urho3d/Urho3D/issues/comments/236452544","html_url":"https://github.com/urho3d/Urho3D/pull/1499#issuecomment-236452544","issue_url":"https://api.github.com/repos/urho3d/Urho3D/issues/1499","id":236452544,"user":{"login":"feltech","id":7827094,"avatar_url":"https://avatars.githubusercontent.com/u/7827094?v=3","gravatar_id":"","url":"https://api.github.com/users/feltech","html_url":"https://github.com/feltech","followers_url":"https://api.github.com/users/feltech/followers","following_url":"https://api.github.com/users/feltech/following{/other_user}","gists_url":"https://api.github.com/users/feltech/gists{/gist_id}","starred_url":"https://api.github.com/users/feltech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feltech/subscriptions","organizations_url":"https://api.github.com/users/feltech/orgs","repos_url":"https://api.github.com/users/feltech/repos","events_url":"https://api.github.com/users/feltech/events{/privacy}","received_events_url":"https://api.github.com/users/feltech/received_events","type":"User","site_admin":false},"created_at":"2016-07-31T19:49:23Z","updated_at":"2016-07-31T19:49:23Z","body":"OK, upon re-enabling `USE_FILE_SYMLINK` in `Urho3D/Source/ThirdParty/rapidjson/CMakeLists.txt`, doing a `make clean` and building again gives\r\n```\r\n<snip>\r\n[ 64%] Building CXX object Source/Urho3D/CMakeFiles/Urho3D.dir/Resource/JSONFile.cpp.o\r\ncd /home/dave/Dropbox/Workspace/Urho3D/Source/Urho3D && /usr/bin/c++   -DGLEW_NO_GLU -DGLEW_STATIC -DHAVE_SINCOSF -DHAVE_STDINT_H -DURHO3D_CXX11 -DURHO3D_IS_BUILDING -DURHO3D_LOGGING -DURHO3D_LUA -DURHO3D_LUA_RAW_SCRIPT_LOADER -DURHO3D_NAVIGATION -DURHO3D_PHYSICS -DURHO3D_THREADING -DUrho3D_EXPORTS -I/home/dave/Dropbox/Workspace/Urho3D/Source/Urho3D -I/home/dave/Dropbox/Workspace/Urho3D/include/Urho3D/ThirdParty -I/home/dave/Dropbox/Workspace/Urho3D/include/Urho3D/ThirdParty/Bullet -I/home/dave/Dropbox/Workspace/Urho3D/include/Urho3D/ThirdParty/Detour -I/home/dave/Dropbox/Workspace/Urho3D/include/Urho3D/ThirdParty/LuaJIT  -std=gnu++11 -Wno-invalid-offsetof -march=native -ffast-math -pthread -fdiagnostics-color=auto -include \"/home/dave/Dropbox/Workspace/Urho3D/Source/Urho3D/Precompiled.h\" -fvisibility=hidden -fvisibility-inlines-hidden -O2 -g -DNDEBUG -fPIC   -o CMakeFiles/Urho3D.dir/Resource/JSONFile.cpp.o -c /home/dave/Dropbox/Workspace/Urho3D/Source/Urho3D/Resource/JSONFile.cpp\r\n/home/dave/Dropbox/Workspace/Urho3D/Source/Urho3D/Resource/JSONFile.cpp:34:32: fatal error: /home/dave/Dropbox/Workspace/Urho3D/include/Urho3D/ThirdParty/rapidjson/document.h: Too many levels of symbolic links\r\n #include <rapidjson/document.h>\r\n                                ^\r\ncompilation terminated.\r\nSource/Urho3D/CMakeFiles/Urho3D.dir/build.make:710: recipe for target 'Source/Urho3D/CMakeFiles/Urho3D.dir/Resource/JSONFile.cpp.o' failed\r\nmake[2]: *** [Source/Urho3D/CMakeFiles/Urho3D.dir/Resource/JSONFile.cpp.o] Error 1\r\n<snip>\r\n```\r\nLet me know if you would like to see more build output, but I figured this is the relevant bit.\r\n\r\nIf I go into the generated include folder, then\r\n```\r\ndave@dave-desktop:~/Dropbox/Workspace/Urho3D/include/Urho3D/ThirdParty/rapidjson$ ls -la\r\ntotal 72\r\ndrwxrwxrwx 3 dave dave 4096 Jul 31 20:36 .\r\ndrwxrwxrwx 3 dave dave 4096 Nov 12  2015 ..\r\nlrwxrwxrwx 1 dave dave   94 Jul 31 20:36 allocators.h -> /home/dave/Dropbox/Workspace/Urho3D/Source/ThirdParty/rapidjson/include/rapidjson/allocators.h\r\nlrwxrwxrwx 1 dave dave   92 Jul 31 20:36 document.h -> /home/dave/Dropbox/Workspace/Urho3D/Source/ThirdParty/rapidjson/include/rapidjson/document.h\r\nlrwxrwxrwx 1 dave dave   97 Jul 31 20:36 encodedstream.h -> /home/dave/Dropbox/Workspace/Urho3D/Source/ThirdParty/rapidjson/include/rapidjson/encodedstream.h\r\nlrwxrwxrwx 1 dave dave   93 Jul 31 20:36 encodings.h -> /home/dave/Dropbox/Workspace/Urho3D/Source/ThirdParty/rapidjson/include/rapidjson/encodings.h\r\nlrwxrwxrwx 1 dave dave   98 Jul 31 20:36 filereadstream.h -> /home/dave/Dropbox/Workspace/Urho3D/Source/ThirdParty/rapidjson/include/rapidjson/filereadstream.h\r\nlrwxrwxrwx 1 dave dave   94 Jul 31 20:36 filestream.h -> /home/dave/Dropbox/Workspace/Urho3D/Source/ThirdParty/rapidjson/include/rapidjson/filestream.h\r\nlrwxrwxrwx 1 dave dave   99 Jul 31 20:36 filewritestream.h -> /home/dave/Dropbox/Workspace/Urho3D/Source/ThirdParty/rapidjson/include/rapidjson/filewritestream.h\r\ndrwxrwxrwx 2 dave dave 4096 Jul 31 20:36 internal\r\nlrwxrwxrwx 1 dave dave   96 Jul 31 20:36 prettywriter.h -> /home/dave/Dropbox/Workspace/Urho3D/Source/ThirdParty/rapidjson/include/rapidjson/prettywriter.h\r\nlrwxrwxrwx 1 dave dave   93 Jul 31 20:36 rapidjson.h -> /home/dave/Dropbox/Workspace/Urho3D/Source/ThirdParty/rapidjson/include/rapidjson/rapidjson.h\r\nlrwxrwxrwx 1 dave dave   90 Jul 31 20:36 reader.h -> /home/dave/Dropbox/Workspace/Urho3D/Source/ThirdParty/rapidjson/include/rapidjson/reader.h\r\nlrwxrwxrwx 1 dave dave   96 Jul 31 20:36 stringbuffer.h -> /home/dave/Dropbox/Workspace/Urho3D/Source/ThirdParty/rapidjson/include/rapidjson/stringbuffer.h\r\nlrwxrwxrwx 1 dave dave   90 Jul 31 20:36 writer.h -> /home/dave/Dropbox/Workspace/Urho3D/Source/ThirdParty/rapidjson/include/rapidjson/writer.h\r\n```\r\nbut\r\n```\r\ndave@dave-desktop:~/Dropbox/Workspace/Urho3D/include/Urho3D/ThirdParty/rapidjson$ pwd\r\n/home/dave/Dropbox/Workspace/Urho3D/include/Urho3D/ThirdParty/rapidjson\r\n```\r\nso the symlinks are pointing to themselves!\r\n\r\nAlso, in case it's relevant\r\n```\r\ndave@dave-desktop:~/Dropbox/Workspace/Urho3D/include/Urho3D/ThirdParty/rapidjson$ cmake --version\r\ncmake version 3.5.1\r\n```\r\nand\r\n```\r\ndave@dave-desktop:~/Dropbox/Workspace/Urho3D/include/Urho3D/ThirdParty/rapidjson$ gcc --version\r\ngcc (Ubuntu 5.4.0-6ubuntu1~16.04.1) 5.4.0 20160609\r\n```"}}
{"actor":{"display_login":"feltech"}}