{"action":"created","issue":{"url":"https://api.github.com/repos/charto/nbind/issues/35","repository_url":"https://api.github.com/repos/charto/nbind","labels_url":"https://api.github.com/repos/charto/nbind/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/charto/nbind/issues/35/comments","events_url":"https://api.github.com/repos/charto/nbind/issues/35/events","html_url":"https://github.com/charto/nbind/issues/35","id":188244502,"number":35,"title":"using nbind / node-gyp with lot's of extra libraries - how to tell node-gyp where all sources are?","user":{"login":"subwaystation","id":10184961,"avatar_url":"https://avatars.githubusercontent.com/u/10184961?v=3","gravatar_id":"","url":"https://api.github.com/users/subwaystation","html_url":"https://github.com/subwaystation","followers_url":"https://api.github.com/users/subwaystation/followers","following_url":"https://api.github.com/users/subwaystation/following{/other_user}","gists_url":"https://api.github.com/users/subwaystation/gists{/gist_id}","starred_url":"https://api.github.com/users/subwaystation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subwaystation/subscriptions","organizations_url":"https://api.github.com/users/subwaystation/orgs","repos_url":"https://api.github.com/users/subwaystation/repos","events_url":"https://api.github.com/users/subwaystation/events{/privacy}","received_events_url":"https://api.github.com/users/subwaystation/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-11-09T13:13:50Z","updated_at":"2016-11-11T13:10:22Z","closed_at":null,"body":"Take a C++ framework, e.g. https://github.com/vgteam/vg/tree/master/src having lots of dependencies when building.\r\nNow I would like to e.g. nbind all classes in file https://github.com/vgteam/vg/tree/master/src/vg.cpp. The problem is that when executing\r\n\"npm run -- node-gyp configure build\" the following happens:\r\n\r\n_../src/vg.hpp:11:10: fatal error: 'omp.h' file not found\r\n#include <omp.h>\r\n         ^\r\n1 error generated._\r\n\r\nThis error does not occur if I build the project as specified in the wiki. Following this issue http://stackoverflow.com/questions/25990296/how-to-include-omp-h-in-os-x I have to state that gcc 4.9.3 via homebrew is installed and globally available. Maybe node-gyp does not use gcc / g++?\r\nIs there anyway to pass all the source files necessary for the build to node-gyp or how do I proceed here? (I have a CMakeLists.txt file containing over 3000 lines of sources, can I pass this to node-gyp? Or would node-gyp be able to do this automatically?)\r\n\r\nAll the best."},"comment":{"url":"https://api.github.com/repos/charto/nbind/issues/comments/259954010","html_url":"https://github.com/charto/nbind/issues/35#issuecomment-259954010","issue_url":"https://api.github.com/repos/charto/nbind/issues/35","id":259954010,"user":{"login":"subwaystation","id":10184961,"avatar_url":"https://avatars.githubusercontent.com/u/10184961?v=3","gravatar_id":"","url":"https://api.github.com/users/subwaystation","html_url":"https://github.com/subwaystation","followers_url":"https://api.github.com/users/subwaystation/followers","following_url":"https://api.github.com/users/subwaystation/following{/other_user}","gists_url":"https://api.github.com/users/subwaystation/gists{/gist_id}","starred_url":"https://api.github.com/users/subwaystation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subwaystation/subscriptions","organizations_url":"https://api.github.com/users/subwaystation/orgs","repos_url":"https://api.github.com/users/subwaystation/repos","events_url":"https://api.github.com/users/subwaystation/events{/privacy}","received_events_url":"https://api.github.com/users/subwaystation/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T13:10:22Z","updated_at":"2016-11-11T13:10:22Z","body":"Then I run into the following:\r\n```\r\n CXX(target) Release/obj.target/nbind/JS_VG.o\r\ng++: error: unrecognized command line option '-stdlib=libc++'\r\ng++: error: unrecognized command line option '-stdlib=libc++'\r\nmake: *** [Release/obj.target/nbind/JS_VG.o] Error 1\r\n```\r\nAlthough, I did not even specify this command line option in `binding.gyp`."}}
{"actor":{"display_login":"subwaystation"}}