{"action":"created","issue":{"url":"https://api.github.com/repos/Oslandia/SFCGAL/issues/151","repository_url":"https://api.github.com/repos/Oslandia/SFCGAL","labels_url":"https://api.github.com/repos/Oslandia/SFCGAL/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/Oslandia/SFCGAL/issues/151/comments","events_url":"https://api.github.com/repos/Oslandia/SFCGAL/issues/151/events","html_url":"https://github.com/Oslandia/SFCGAL/issues/151","id":286470287,"number":151,"title":"Build from source with custom CGAL_DIRECTORY","user":{"login":"jhiemer","id":1557826,"avatar_url":"https://avatars1.githubusercontent.com/u/1557826?v=4","gravatar_id":"","url":"https://api.github.com/users/jhiemer","html_url":"https://github.com/jhiemer","followers_url":"https://api.github.com/users/jhiemer/followers","following_url":"https://api.github.com/users/jhiemer/following{/other_user}","gists_url":"https://api.github.com/users/jhiemer/gists{/gist_id}","starred_url":"https://api.github.com/users/jhiemer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhiemer/subscriptions","organizations_url":"https://api.github.com/users/jhiemer/orgs","repos_url":"https://api.github.com/users/jhiemer/repos","events_url":"https://api.github.com/users/jhiemer/events{/privacy}","received_events_url":"https://api.github.com/users/jhiemer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-01-06T08:42:42Z","updated_at":"2018-04-10T08:03:26Z","closed_at":null,"author_association":"NONE","body":"Hey, \r\nthis might perhaps seem like a stupid question, but I am currently trying to build SFCGAL from scratch for Postgis. As the deployment will be rolled out with Bosh (deployment orchestrator for CF and K8s), I have to stick to some specific directory structures:\r\n\r\nCGAL 4.9 \r\n\r\n```shell \r\nBOSH_INSTALL_TARGET=/var/vcap/packages/cgal\r\nVERSION=4.9\r\ntar -xvzf cgal/cgal-releases-CGAL-${VERSION}.tar.gz\r\ncd cgal-releases-CGAL-${VERSION}/\r\n\r\nexport BOOST_ROOT=/var/vcap/packages/boost\r\nexport GMP_DIR=/var/vcap/packages/gmp\r\nexport MPFR_DIR=/var/vcap/packages/mpfr\r\n\r\ncmake -DCMAKE_INSTALL_PREFIX=$BOSH_INSTALL_TARGET -DCMAKE_BUILD_TYPE=Release .\r\nmake\r\nmake install\r\n```\r\n\r\nCGAL executes successfully. When I try to build SFCGAL with the following parameters:\r\n\r\nSFCGAL 1.3.0\r\n\r\n```shell\r\nVERSION=1.3.0\r\ntar -xvzf postgis/SFCGAL-${VERSION}.tar.gz\r\ncd SFCGAL-${VERSION}/\r\n\r\nexport BOOST_ROOT=/var/vcap/packages/boost\r\nexport GMP_DIR=/var/vcap/packages/gmp\r\nexport MPFR_DIR=/var/vcap/packages/mpfr\r\nexport CGAL_DIR=/var/vcap/packages/cgal\r\n\r\ncmake -DCMAKE_INSTALL_PREFIX=$BOSH_INSTALL_TARGET .\r\nmake\r\nmake install\r\n```\r\nI always run in the the following:\r\n\r\n\r\n```shell\r\n, Stderr: + VERSION=1.3.0\r\n+ tar -xvzf postgis/SFCGAL-1.3.0.tar.gz\r\n+ cd SFCGAL-1.3.0/\r\n+ export BOOST_ROOT=/var/vcap/packages/boost\r\n+ BOOST_ROOT=/var/vcap/packages/boost\r\n+ export GMP_DIR=/var/vcap/packages/gmp\r\n+ GMP_DIR=/var/vcap/packages/gmp\r\n+ export MPFR_DIR=/var/vcap/packages/mpfr\r\n+ MPFR_DIR=/var/vcap/packages/mpfr\r\n+ export CGAL_DIR=/var/vcap/packages/cgal/lib/x86_64-linux-gnu/CGAL\r\n+ CGAL_DIR=/var/vcap/packages/cgal/lib/x86_64-linux-gnu/CGAL\r\n+ export CGAL_LIBRARIES=/var/vcap/packages/cgal/lib/x86_64-linux-gnu/CGAL\r\n+ CGAL_LIBRARIES=/var/vcap/packages/cgal/lib/x86_64-linux-gnu/CGAL\r\n+ export CGAL_Core_LIBRARY=/var/vcap/packages/cgal/lib/x86_64-linux-gnu/CGAL\r\n+ CGAL_Core_LIBRARY=/var/vcap/packages/cgal/lib/x86_64-linux-gnu/CGAL\r\n+ cmake -DCMAKE_INSTALL_PREFIX=/var/vcap/packages/sfcgal .\r\nCGAL_DIR\r\nCMake Error at cmake/Modules/FindCGAL.cmake:29 (file):\r\n  file STRINGS file\r\n  \"/var/vcap/data/compile/sfcgal/SFCGAL-1.3.0/version_file-NOTFOUND\" cannot\r\n  be read.\r\nCall Stack (most recent call first):\r\n  CMakeLists.txt:115 (find_package)\r\n\r\n\r\nCMake Error at cmake/Modules/FindCGAL.cmake:30 (string):\r\n  string sub-command REGEX, mode REPLACE needs at least 6 arguments total to\r\n  command.\r\nCall Stack (most recent call first):\r\n  CMakeLists.txt:115 (find_package)\r\n\r\n\r\nCMake Error at cmake/Modules/FindCGAL.cmake:32 (message):\r\n  CGAL 4.3 is required (found in version_file-NOTFOUND)\r\nCall Stack (most recent call first):\r\n  CMakeLists.txt:115 (find_package)\r\n```\r\n  "},"comment":{"url":"https://api.github.com/repos/Oslandia/SFCGAL/issues/comments/380011182","html_url":"https://github.com/Oslandia/SFCGAL/issues/151#issuecomment-380011182","issue_url":"https://api.github.com/repos/Oslandia/SFCGAL/issues/151","id":380011182,"user":{"login":"sloriot","id":1224632,"avatar_url":"https://avatars2.githubusercontent.com/u/1224632?v=4","gravatar_id":"","url":"https://api.github.com/users/sloriot","html_url":"https://github.com/sloriot","followers_url":"https://api.github.com/users/sloriot/followers","following_url":"https://api.github.com/users/sloriot/following{/other_user}","gists_url":"https://api.github.com/users/sloriot/gists{/gist_id}","starred_url":"https://api.github.com/users/sloriot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sloriot/subscriptions","organizations_url":"https://api.github.com/users/sloriot/orgs","repos_url":"https://api.github.com/users/sloriot/repos","events_url":"https://api.github.com/users/sloriot/events{/privacy}","received_events_url":"https://api.github.com/users/sloriot/received_events","type":"User","site_admin":false},"created_at":"2018-04-10T08:03:26Z","updated_at":"2018-04-10T08:03:26Z","author_association":"COLLABORATOR","body":"Note that `CGAL_DIR` must point to the directory containing `CGALConfig.cmake`"}}
{"actor":{"display_login":"sloriot"}}