{"action":"created","issue":{"url":"https://api.github.com/repos/Oslandia/SFCGAL/issues/127","repository_url":"https://api.github.com/repos/Oslandia/SFCGAL","labels_url":"https://api.github.com/repos/Oslandia/SFCGAL/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/Oslandia/SFCGAL/issues/127/comments","events_url":"https://api.github.com/repos/Oslandia/SFCGAL/issues/127/events","html_url":"https://github.com/Oslandia/SFCGAL/issues/127","id":157659079,"number":127,"title":"Problem in Vagrant build","user":{"login":"avyavkumar","id":11760308,"avatar_url":"https://avatars.githubusercontent.com/u/11760308?v=3","gravatar_id":"","url":"https://api.github.com/users/avyavkumar","html_url":"https://github.com/avyavkumar","followers_url":"https://api.github.com/users/avyavkumar/followers","following_url":"https://api.github.com/users/avyavkumar/following{/other_user}","gists_url":"https://api.github.com/users/avyavkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/avyavkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avyavkumar/subscriptions","organizations_url":"https://api.github.com/users/avyavkumar/orgs","repos_url":"https://api.github.com/users/avyavkumar/repos","events_url":"https://api.github.com/users/avyavkumar/events{/privacy}","received_events_url":"https://api.github.com/users/avyavkumar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-31T12:26:22Z","updated_at":"2016-05-31T13:30:04Z","closed_at":"2016-05-31T13:30:04Z","body":"Hi all, \r\n\r\nI tried to install SFCGAL on top of a Vagrant machine and I got this log - \r\n```\r\n[ 94%] Building CXX object src/CMakeFiles/SFCGAL.dir/capi/sfcgal_c.cpp.o\r\n[ 95%] Building CXX object src/CMakeFiles/SFCGAL.dir/TriangulatedSurface.cpp.o\r\n[ 96%] Building CXX object src/CMakeFiles/SFCGAL.dir/Geometry.cpp.o\r\n[ 97%] Building CXX object src/CMakeFiles/SFCGAL.dir/version.cpp.o\r\n[ 98%] Building CXX object src/CMakeFiles/SFCGAL.dir/GeometryVisitor.cpp.o\r\n[100%] Building CXX object src/CMakeFiles/SFCGAL.dir/MultiSolid.cpp.o\r\nLinking CXX shared library libSFCGAL.so\r\n/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libboost_thread-mt.a(thread.o): relocation R_X86_64_32 against `tls_destructor' can not be used when making a shared object; recompile with -fPIC\r\n/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libboost_thread-mt.a: could not read symbols: Bad value\r\ncollect2: ld returned 1 exit status\r\nmake[2]: *** [src/libSFCGAL.so.1.3.0] Error 1\r\nmake[1]: *** [src/CMakeFiles/SFCGAL.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n```\r\n\r\nAny idea on how to get a successful build? I tried to add a `-fPIC` flag in the generated `flag.make` script, but it didn't work. \r\nIf it helps, I had initially got an unsuccessful result because I didn't have a `libCGAL.so` file in /usr/lib/. I just copied the file from `usr/local/lib/`. I guess copying shouldn't matter with `.so` files as opposed to `.a` files. Or am I wrong? "},"comment":{"url":"https://api.github.com/repos/Oslandia/SFCGAL/issues/comments/222688378","html_url":"https://github.com/Oslandia/SFCGAL/issues/127#issuecomment-222688378","issue_url":"https://api.github.com/repos/Oslandia/SFCGAL/issues/127","id":222688378,"user":{"login":"avyavkumar","id":11760308,"avatar_url":"https://avatars.githubusercontent.com/u/11760308?v=3","gravatar_id":"","url":"https://api.github.com/users/avyavkumar","html_url":"https://github.com/avyavkumar","followers_url":"https://api.github.com/users/avyavkumar/followers","following_url":"https://api.github.com/users/avyavkumar/following{/other_user}","gists_url":"https://api.github.com/users/avyavkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/avyavkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avyavkumar/subscriptions","organizations_url":"https://api.github.com/users/avyavkumar/orgs","repos_url":"https://api.github.com/users/avyavkumar/repos","events_url":"https://api.github.com/users/avyavkumar/events{/privacy}","received_events_url":"https://api.github.com/users/avyavkumar/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T13:30:04Z","updated_at":"2016-05-31T13:30:04Z","body":"Yes, that was it. Just had to modify the -Bstatic file. Thanks so much!\r\nClosing the issue. "}}
{"actor":{"display_login":"avyavkumar"}}