{"action":"created","issue":{"url":"https://api.github.com/repos/PySide/shiboken2/issues/39","repository_url":"https://api.github.com/repos/PySide/shiboken2","labels_url":"https://api.github.com/repos/PySide/shiboken2/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/PySide/shiboken2/issues/39/comments","events_url":"https://api.github.com/repos/PySide/shiboken2/issues/39/events","html_url":"https://github.com/PySide/shiboken2/issues/39","id":145480637,"number":39,"title":"Explain how to compile shiboken2 independently","user":{"login":"techtonik","id":515889,"avatar_url":"https://avatars.githubusercontent.com/u/515889?v=3","gravatar_id":"","url":"https://api.github.com/users/techtonik","html_url":"https://github.com/techtonik","followers_url":"https://api.github.com/users/techtonik/followers","following_url":"https://api.github.com/users/techtonik/following{/other_user}","gists_url":"https://api.github.com/users/techtonik/gists{/gist_id}","starred_url":"https://api.github.com/users/techtonik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techtonik/subscriptions","organizations_url":"https://api.github.com/users/techtonik/orgs","repos_url":"https://api.github.com/users/techtonik/repos","events_url":"https://api.github.com/users/techtonik/events{/privacy}","received_events_url":"https://api.github.com/users/techtonik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-03T10:50:28Z","updated_at":"2016-04-03T20:43:12Z","closed_at":null,"body":"It is possible to build `shiboken2` without master project? So that a person (admin) without C++ knowledge can read https://github.com/PySide/shiboken2 and know what to run to compile it?"},"comment":{"url":"https://api.github.com/repos/PySide/shiboken2/issues/comments/205051411","html_url":"https://github.com/PySide/shiboken2/issues/39#issuecomment-205051411","issue_url":"https://api.github.com/repos/PySide/shiboken2/issues/39","id":205051411,"user":{"login":"f3nix","id":72836,"avatar_url":"https://avatars.githubusercontent.com/u/72836?v=3","gravatar_id":"","url":"https://api.github.com/users/f3nix","html_url":"https://github.com/f3nix","followers_url":"https://api.github.com/users/f3nix/followers","following_url":"https://api.github.com/users/f3nix/following{/other_user}","gists_url":"https://api.github.com/users/f3nix/gists{/gist_id}","starred_url":"https://api.github.com/users/f3nix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f3nix/subscriptions","organizations_url":"https://api.github.com/users/f3nix/orgs","repos_url":"https://api.github.com/users/f3nix/repos","events_url":"https://api.github.com/users/f3nix/events{/privacy}","received_events_url":"https://api.github.com/users/f3nix/received_events","type":"User","site_admin":false},"created_at":"2016-04-03T20:43:12Z","updated_at":"2016-04-03T20:43:12Z","body":"Just tested it on:\r\n- Windows 7 64-bit\r\n- Python 2.7\r\n- Qt 5.5.1 64 bit\r\n- MSVC 2013\r\n\r\n**VS2013 x64 Native Tools Command Prompt**\r\n```\r\nC:\\Devel\\shiboken2-test\\build-release>cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=C:\\Qt\\Qt5.5.1\\5.5\\msvc2013_64 -PYTHON_EXECUTABLE=c:\\python27\\python.exe ..\r\n-- Building for: Visual Studio 12 2013\r\n-- The C compiler identification is MSVC 18.0.31101.0\r\n-- The CXX compiler identification is MSVC 18.0.31101.0\r\n-- Check for working C compiler using: Visual Studio 12 2013\r\n-- Check for working C compiler using: Visual Studio 12 2013 -- works\r\n-- Detecting C compiler ABI info\r\n-- Detecting C compiler ABI info - done\r\n-- Check for working CXX compiler using: Visual Studio 12 2013\r\n-- Check for working CXX compiler using: Visual Studio 12 2013 -- works\r\n-- Detecting CXX compiler ABI info\r\n-- Detecting CXX compiler ABI info - done\r\n-- Detecting CXX compile features\r\n-- Detecting CXX compile features - done\r\n-- Found PythonLibs: C:/Python27/libs/python27.lib (found suitable version \"2.7.11\", minimum required is \"2.6\")\r\n-- Found PythonInterp: C:/Python27/python.exe (found suitable version \"2.7.11\",minimum required is \"2.6\")\r\n-- Could NOT find LibXml2 (missing:  LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR) (Required is at least version \"2.6.32\")\r\n-- Could NOT find LibXslt (missing:  LIBXSLT_LIBRARIES LIBXSLT_INCLUDE_DIR) (Required is at least version \"1.1.19\")\r\nCMake Warning at ApiExtractor/CMakeLists.txt:12 (message):\r\n  libxslt and/or libxml not found, disabling support for doc strings!\r\n\r\n\r\n-- sphinx-build - not found! doc target disabled\r\n-- Tests will be generated avoiding the protected hack!\r\n-- Found PythonInterp: C:/Python27/python.exe (found version \"2.7.11\")\r\n-- Configuring done\r\n-- Generating done\r\n-- Build files have been written to: C:/Devel/shiboken2-test/build-release\r\n\r\nC:\\Devel\\shiboken2-test\\build-release>\r\n```\r\n\r\nSo to summarize the only needed options are:\r\n- CMAKE_PREFIX_PATH\r\n- PYTHON_EXECUTABLE\r\n\r\nAdditionally setting CMAKE_BUILD_TYPE and CMAKE_INSTALL_PREFIX seems like good idea.\r\n\r\nHTH.\r\n\r\nCheers,\r\nMateusz\r\n"}}