{"action":"created","issue":{"url":"https://api.github.com/repos/gtk-rs/cairo/issues/72","repository_url":"https://api.github.com/repos/gtk-rs/cairo","labels_url":"https://api.github.com/repos/gtk-rs/cairo/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/gtk-rs/cairo/issues/72/comments","events_url":"https://api.github.com/repos/gtk-rs/cairo/issues/72/events","html_url":"https://github.com/gtk-rs/cairo/issues/72","id":141285463,"number":72,"title":"Could not compile cairo","user":{"login":"gbersac","id":6059511,"avatar_url":"https://avatars.githubusercontent.com/u/6059511?v=3","gravatar_id":"","url":"https://api.github.com/users/gbersac","html_url":"https://github.com/gbersac","followers_url":"https://api.github.com/users/gbersac/followers","following_url":"https://api.github.com/users/gbersac/following{/other_user}","gists_url":"https://api.github.com/users/gbersac/gists{/gist_id}","starred_url":"https://api.github.com/users/gbersac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbersac/subscriptions","organizations_url":"https://api.github.com/users/gbersac/orgs","repos_url":"https://api.github.com/users/gbersac/repos","events_url":"https://api.github.com/users/gbersac/events{/privacy}","received_events_url":"https://api.github.com/users/gbersac/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-16T14:05:58Z","updated_at":"2016-03-16T14:41:30Z","closed_at":null,"body":"I get the following error message when trying to compile caire :\r\n\r\n```\r\n   Compiling cairo v0.0.3\r\n/nfs/2013/g/gbersac/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/cairo-0.0.3/src/lib.rs:193:49: 193:53 error: type name `uint` is undefined or not in scope [E0412]\r\n/nfs/2013/g/gbersac/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/cairo-0.0.3/src/lib.rs:193       let dashes_len = self.get_dash_count() as uint;\r\n                                                                                                                                                                            ^~~~\r\n/nfs/2013/g/gbersac/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/cairo-0.0.3/src/lib.rs:193:49: 193:53 help: run `rustc --explain E0412` to see a detailed explanation\r\n/nfs/2013/g/gbersac/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/cairo-0.0.3/src/lib.rs:193:49: 193:53 help: no candidates by the name of `uint` found in your project; maybe you misspelled the name or forgot to import an external crate?\r\n/nfs/2013/g/gbersac/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/cairo-0.0.3/src/font/mod.rs:154:55: 154:74 error: no associated item named `from_slice` found for type `std::ffi::c_str::CString` in the current scope\r\n/nfs/2013/g/gbersac/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/cairo-0.0.3/src/font/mod.rs:154       let foreign_result = cairo_toy_font_face_create(CString::from_slice(family.as_bytes()).as_ptr() as *mut i8, slant, weight);\r\n                                                                                                                                                                                       ^~~~~~~~~~~~~~~~~~~\r\n/nfs/2013/g/gbersac/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/cairo-0.0.3/src/font/mod.rs:269:51: 269:70 error: no associated item named `from_slice` found for type `std::ffi::c_str::CString` in the current scope\r\n/nfs/2013/g/gbersac/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/cairo-0.0.3/src/font/mod.rs:269       cairo_scaled_font_text_extents(self.opaque, CString::from_slice(utf8.as_bytes()).as_ptr() as *mut i8, &mut extents);\r\n                                                                                                                                                                                   ^~~~~~~~~~~~~~~~~~~\r\n/nfs/2013/g/gbersac/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/cairo-0.0.3/src/surface/mod.rs:180:64: 180:83 error: no associated item named `from_slice` found for type `std::ffi::c_str::CString` in the current scope\r\n/nfs/2013/g/gbersac/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/cairo-0.0.3/src/surface/mod.rs:180       let foreign_result = cairo_image_surface_create_from_png(CString::from_slice(filename.as_bytes()).as_ptr() as *mut i8);\r\n                                                                                                                                                                                                   ^~~~~~~~~~~~~~~~~~~\r\n/nfs/2013/g/gbersac/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/cairo-0.0.3/src/surface/mod.rs:188:68: 188:87 error: no associated item named `from_slice` found for type `std::ffi::c_str::CString` in the current scope\r\n/nfs/2013/g/gbersac/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/cairo-0.0.3/src/surface/mod.rs:188       let foreign_result = cairo_surface_write_to_png(self.opaque, CString::from_slice(filename.as_bytes()).as_ptr() as *mut i8);\r\n                                                                                                                                                                                                       ^~~~~~~~~~~~~~~~~~~\r\n/nfs/2013/g/gbersac/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/cairo-0.0.3/src/surface/mod.rs:196:45: 196:64 error: no associated item named `from_slice` found for type `std::ffi::c_str::CString` in the current scope\r\n/nfs/2013/g/gbersac/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/cairo-0.0.3/src/surface/mod.rs:196       cairo_svg_surface_create(self.opaque, CString::from_slice(filename.as_bytes()).as_ptr() as *mut i8, width, height);\r\n                                                                                                                                                                                ^~~~~~~~~~~~~~~~~~~\r\n/nfs/2013/g/gbersac/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/cairo-0.0.3/src/lib.rs:534:36: 534:55 error: no associated item named `from_slice` found for type `std::ffi::c_str::CString` in the current scope\r\n/nfs/2013/g/gbersac/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/cairo-0.0.3/src/lib.rs:534       cairo_text_path(self.opaque, CString::from_slice(text_path.as_bytes()).as_ptr() as *mut i8);\r\n                                                                                                                                                               ^~~~~~~~~~~~~~~~~~~\r\n/nfs/2013/g/gbersac/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/cairo-0.0.3/src/lib.rs:652:43: 652:62 error: no associated item named `from_slice` found for type `std::ffi::c_str::CString` in the current scope\r\n/nfs/2013/g/gbersac/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/cairo-0.0.3/src/lib.rs:652       cairo_select_font_face(self.opaque, CString::from_slice(family.as_bytes()).as_ptr() as *mut i8, slant, weight);\r\n                                                                                                                                                                      ^~~~~~~~~~~~~~~~~~~\r\n/nfs/2013/g/gbersac/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/cairo-0.0.3/src/lib.rs:718:36: 718:55 error: no associated item named `from_slice` found for type `std::ffi::c_str::CString` in the current scope\r\n/nfs/2013/g/gbersac/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/cairo-0.0.3/src/lib.rs:718       cairo_show_text(self.opaque, CString::from_slice(utf8.as_bytes()).as_ptr() as *mut i8);\r\n                                                                                                                                                               ^~~~~~~~~~~~~~~~~~~\r\n/nfs/2013/g/gbersac/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/cairo-0.0.3/src/lib.rs:731:43: 731:62 error: no associated item named `from_slice` found for type `std::ffi::c_str::CString` in the current scope\r\n/nfs/2013/g/gbersac/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/cairo-0.0.3/src/lib.rs:731       cairo_show_text_glyphs(self.opaque, CString::from_slice(utf8.as_bytes()).as_ptr() as *mut i8, -1, glyphs.as_mut_ptr(), glyphs.len() as libc::c_int, clusters.as_mut_ptr(), clusters.len() as libc::c_int, cluster_flags);\r\n                                                                                                                                                                      ^~~~~~~~~~~~~~~~~~~\r\n/nfs/2013/g/gbersac/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/cairo-0.0.3/src/lib.rs:749:39: 749:58 error: no associated item named `from_slice` found for type `std::ffi::c_str::CString` in the current scope\r\n/nfs/2013/g/gbersac/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/cairo-0.0.3/src/lib.rs:749       cairo_text_extents(self.opaque, CString::from_slice(utf8.as_bytes()).as_ptr() as *mut i8, &mut extents);\r\n                                                                                                                                                                  ^~~~~~~~~~~~~~~~~~~\r\nerror: aborting due to 10 previous errors\r\nCould not compile `cairo`.\r\n```\r\n\r\nI am on mac osx. I installed cairo with :\r\n\r\n```\r\nbrew install cairo\r\n```"},"comment":{"url":"https://api.github.com/repos/gtk-rs/cairo/issues/comments/197359984","html_url":"https://github.com/gtk-rs/cairo/issues/72#issuecomment-197359984","issue_url":"https://api.github.com/repos/gtk-rs/cairo/issues/72","id":197359984,"user":{"login":"gbersac","id":6059511,"avatar_url":"https://avatars.githubusercontent.com/u/6059511?v=3","gravatar_id":"","url":"https://api.github.com/users/gbersac","html_url":"https://github.com/gbersac","followers_url":"https://api.github.com/users/gbersac/followers","following_url":"https://api.github.com/users/gbersac/following{/other_user}","gists_url":"https://api.github.com/users/gbersac/gists{/gist_id}","starred_url":"https://api.github.com/users/gbersac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbersac/subscriptions","organizations_url":"https://api.github.com/users/gbersac/orgs","repos_url":"https://api.github.com/users/gbersac/repos","events_url":"https://api.github.com/users/gbersac/events{/privacy}","received_events_url":"https://api.github.com/users/gbersac/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T14:41:30Z","updated_at":"2016-03-16T14:41:30Z","body":"This is it ! Problem solved. Thanks.\r\n\r\nIs there a reason why there is two implementations ? One great implementation should be enough."}}