{"action":"created","issue":{"url":"https://api.github.com/repos/lohedges/aabbcc/issues/2","repository_url":"https://api.github.com/repos/lohedges/aabbcc","labels_url":"https://api.github.com/repos/lohedges/aabbcc/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/lohedges/aabbcc/issues/2/comments","events_url":"https://api.github.com/repos/lohedges/aabbcc/issues/2/events","html_url":"https://github.com/lohedges/aabbcc/issues/2","id":235245937,"number":2,"title":"Python Wrapper Build Fail on OSX 10.12.2","user":{"login":"Sloth6","id":2099089,"avatar_url":"https://avatars1.githubusercontent.com/u/2099089?v=3","gravatar_id":"","url":"https://api.github.com/users/Sloth6","html_url":"https://github.com/Sloth6","followers_url":"https://api.github.com/users/Sloth6/followers","following_url":"https://api.github.com/users/Sloth6/following{/other_user}","gists_url":"https://api.github.com/users/Sloth6/gists{/gist_id}","starred_url":"https://api.github.com/users/Sloth6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sloth6/subscriptions","organizations_url":"https://api.github.com/users/Sloth6/orgs","repos_url":"https://api.github.com/users/Sloth6/repos","events_url":"https://api.github.com/users/Sloth6/events{/privacy}","received_events_url":"https://api.github.com/users/Sloth6/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-06-12T14:12:04Z","updated_at":"2017-06-12T15:24:43Z","closed_at":null,"body":"```\r\n$ make PYTHON=3.4 python\r\n--> Building Python wrapper\r\n../src/AABB.cc:172:41: error: no viable overloaded '='\r\n        else                periodicity = {false, false, false};\r\n                            ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~\r\n/usr/include/c++/4.2.1/bits/stl_bvector.h:516:5: note: candidate function not\r\n      viable: cannot convert initializer list argument to 'const std::vector<bool,\r\n      std::allocator<bool> >'\r\n    operator=(const vector& __x)\r\n    ^\r\n../src/AABB.cc:1105:13: warning: unused variable 'height' [-Wunused-variable]\r\n        int height = 1 + std::max(height1, height2);\r\n            ^\r\n1 warning and 1 error generated.\r\nerror: command '/usr/bin/clang' failed with exit status 1\r\nmake: *** [python] Error 1\r\n\r\n```\r\n\r\nLet me know if I can provide anything else. Thanks."},"comment":{"url":"https://api.github.com/repos/lohedges/aabbcc/issues/comments/307823715","html_url":"https://github.com/lohedges/aabbcc/issues/2#issuecomment-307823715","issue_url":"https://api.github.com/repos/lohedges/aabbcc/issues/2","id":307823715,"user":{"login":"lohedges","id":648557,"avatar_url":"https://avatars2.githubusercontent.com/u/648557?v=3","gravatar_id":"","url":"https://api.github.com/users/lohedges","html_url":"https://github.com/lohedges","followers_url":"https://api.github.com/users/lohedges/followers","following_url":"https://api.github.com/users/lohedges/following{/other_user}","gists_url":"https://api.github.com/users/lohedges/gists{/gist_id}","starred_url":"https://api.github.com/users/lohedges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lohedges/subscriptions","organizations_url":"https://api.github.com/users/lohedges/orgs","repos_url":"https://api.github.com/users/lohedges/repos","events_url":"https://api.github.com/users/lohedges/events{/privacy}","received_events_url":"https://api.github.com/users/lohedges/received_events","type":"User","site_admin":false},"created_at":"2017-06-12T15:24:43Z","updated_at":"2017-06-12T15:24:43Z","body":"Hi again,\r\n\r\nI was just doing a quick web search and found [this](https://github.com/swig/swig/issues/73). If you're still having problems, could you possibly try replacing the contents of ```python/aabb.i``` with the following:\r\n\r\n```\r\n%module aabb\r\n\r\n%{\r\n#include \"../src/AABB.h\"\r\n%}\r\n\r\n%include \"../src/AABB.h\"\r\n%include \"std_vector.i\"\r\n\r\n%inline %{\r\ntypedef bool Bool;\r\ntypedef double Double;\r\ntypedef unsigned int UnsignedInt;\r\n%}\r\n\r\n%template(BoolVector) std::vector<Bool>;\r\n%template(DoubleVector) std::vector<Double>;\r\n%template(UnsignedIntVector) std::vector<unsigned int>;\r\n```\r\nThis still works fine for me on Linux, but might fix the issue with compiling the Swig generated CXX on OS X."}}
{"actor":{"display_login":"lohedges"}}