{"action":"created","issue":{"url":"https://api.github.com/repos/ihnorton/Clang.jl/issues/132","labels_url":"https://api.github.com/repos/ihnorton/Clang.jl/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/ihnorton/Clang.jl/issues/132/comments","events_url":"https://api.github.com/repos/ihnorton/Clang.jl/issues/132/events","html_url":"https://github.com/ihnorton/Clang.jl/issues/132","id":85913336,"number":132,"title":"C++ wrapping tutorial","user":{"login":"TeroFrondelius","id":12501534,"avatar_url":"https://avatars.githubusercontent.com/u/12501534?v=3","gravatar_id":"","url":"https://api.github.com/users/TeroFrondelius","html_url":"https://github.com/TeroFrondelius","followers_url":"https://api.github.com/users/TeroFrondelius/followers","following_url":"https://api.github.com/users/TeroFrondelius/following{/other_user}","gists_url":"https://api.github.com/users/TeroFrondelius/gists{/gist_id}","starred_url":"https://api.github.com/users/TeroFrondelius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeroFrondelius/subscriptions","organizations_url":"https://api.github.com/users/TeroFrondelius/orgs","repos_url":"https://api.github.com/users/TeroFrondelius/repos","events_url":"https://api.github.com/users/TeroFrondelius/events{/privacy}","received_events_url":"https://api.github.com/users/TeroFrondelius/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-07T15:57:31Z","updated_at":"2015-06-07T17:22:05Z","closed_at":null,"body":"Hi,\r\nI have been couples of days learning (struggling) Clang.jl. I like the idea and I think this package could really boost scientific calculations, when people could be building on top of existing libraries. \r\n\r\nFirst really hard part was to get the package to building. I used this this type of trick (found somewhere else):\r\n```\r\nPkg.checkout(\"Clang\",\"master\")\r\nPkg.build(\"Clang\")\r\n```\r\nSecondly I tried to follow this https://github.com/ihnorton/Clang.jl#implementation\r\nThat really haven't helped so far, the ratio between code complexity and commenting is above my skills. \r\n\r\nThen I looked the tests and I thought I found something useful: https://github.com/ihnorton/Clang.jl/blob/master/test/test_classparents.jl\r\nThe problem is that it's not doing enough to work as a tutorial. \r\n\r\nAlso the current documentation is not really helping, when the whole wrap_cpp is missing from there. \r\n\r\nIf I could get this type of tutorial for c++, it really would help to the start\r\n```\r\nusing Clang.wrap_c\r\n\r\ncontext = wrap_c.init(; output_file=\"libjpeg.jl\", header_library=x->\"libjpeg\", common_file=\"libjpeg_h.jl\", clang_diagnostics=true)\r\ncontext.options.wrap_structs = true\r\nwrap_c.wrap_c_headers(context, [\"/usr/include/jpeglib.h\"])\r\n```\r\n "},"comment":{"url":"https://api.github.com/repos/ihnorton/Clang.jl/issues/comments/109778444","html_url":"https://github.com/ihnorton/Clang.jl/issues/132#issuecomment-109778444","issue_url":"https://api.github.com/repos/ihnorton/Clang.jl/issues/132","id":109778444,"user":{"login":"TeroFrondelius","id":12501534,"avatar_url":"https://avatars.githubusercontent.com/u/12501534?v=3","gravatar_id":"","url":"https://api.github.com/users/TeroFrondelius","html_url":"https://github.com/TeroFrondelius","followers_url":"https://api.github.com/users/TeroFrondelius/followers","following_url":"https://api.github.com/users/TeroFrondelius/following{/other_user}","gists_url":"https://api.github.com/users/TeroFrondelius/gists{/gist_id}","starred_url":"https://api.github.com/users/TeroFrondelius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeroFrondelius/subscriptions","organizations_url":"https://api.github.com/users/TeroFrondelius/orgs","repos_url":"https://api.github.com/users/TeroFrondelius/repos","events_url":"https://api.github.com/users/TeroFrondelius/events{/privacy}","received_events_url":"https://api.github.com/users/TeroFrondelius/received_events","type":"User","site_admin":false},"created_at":"2015-06-07T17:22:05Z","updated_at":"2015-06-07T17:22:05Z","body":"Thanks. I actually started by Cxx.jl. I just couldn't get Julia to compile with all those needed stuff. I gave up after three long nights. Maybe I will give another try."}}