pyo3 getting started example not building on MacOS - rust

I'm trying to get started with py03, using the starter project created by maturin as described here:
https://pyo3.rs/v0.17.3/
However, when I try to build it, I get this at the link phase:
= note: Undefined symbols for architecture x86_64:
"_PyBytes_AsString", referenced from:
pyo3::types::bytes::PyBytes::as_bytes::hb0ce42a9e99b7119 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.13.rcgu.o)
"_PyBytes_Size", referenced from:
pyo3::types::bytes::PyBytes::as_bytes::hb0ce42a9e99b7119 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.13.rcgu.o)
"_PyCFunction_NewEx", referenced from:
pyo3::types::function::PyCFunction::internal_new_from_pointers::h92a1006a066f3794 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.5.rcgu.o)
"_PyErr_Fetch", referenced from:
pyo3::err::PyErr::take::h34abf03aae524a39 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.2.rcgu.o)
"_PyErr_GivenExceptionMatches", referenced from:
pyo3::err::PyErr::is_instance::h5bd7a1c534dc95ff in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.2.rcgu.o)
"_PyErr_NewExceptionWithDoc", referenced from:
pyo3::err::PyErr::new_type::h207f67133d2fe7dc in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.2.rcgu.o)
"_PyErr_NormalizeException", referenced from:
pyo3::err::PyErr::make_normalized::h92e97061454d87df in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.2.rcgu.o)
"_PyErr_Print", referenced from:
pyo3::err::panic_after_error::h1855c4e68479b292 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.2.rcgu.o)
"_PyErr_PrintEx", referenced from:
pyo3::err::PyErr::take::h34abf03aae524a39 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.2.rcgu.o)
"_PyErr_Restore", referenced from:
pyo3::err::PyErr::take::h34abf03aae524a39 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.2.rcgu.o)
pyo3::err::PyErr::restore::h79045018546bf3d0 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.2.rcgu.o)
"_PyEval_SaveThread", referenced from:
pyo3::gil::prepare_freethreaded_python::_$u7b$$u7b$closure$u7d$$u7d$::h7ec7eff51d016eb2 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.8.rcgu.o)
"_PyExc_AttributeError", referenced from:
_$LT$pyo3..exceptions..PyAttributeError$u20$as$u20$pyo3..type_object..PyTypeInfo$GT$::type_object_raw::h9d284f308c6428d1 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.1.rcgu.o)
"_PyExc_BaseException", referenced from:
_$LT$pyo3..exceptions..PyBaseException$u20$as$u20$pyo3..type_object..PyTypeInfo$GT$::type_object_raw::hbc1c2918865ca2cb in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.1.rcgu.o)
"_PyExc_ImportError", referenced from:
_$LT$pyo3..exceptions..PyImportError$u20$as$u20$pyo3..type_object..PyTypeInfo$GT$::type_object_raw::h61f161f64a44efc1 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.1.rcgu.o)
"_PyExc_OverflowError", referenced from:
_$LT$pyo3..exceptions..PyOverflowError$u20$as$u20$pyo3..type_object..PyTypeInfo$GT$::type_object_raw::h745fe716930d7217 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.1.rcgu.o)
"_PyExc_TypeError", referenced from:
_$LT$pyo3..exceptions..PyTypeError$u20$as$u20$pyo3..type_object..PyTypeInfo$GT$::type_object_raw::h53ec02261503227a in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.1.rcgu.o)
"_PyExc_ValueError", referenced from:
_$LT$pyo3..exceptions..PyValueError$u20$as$u20$pyo3..type_object..PyTypeInfo$GT$::type_object_raw::h6af62b63d19decb7 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.1.rcgu.o)
"_PyException_GetCause", referenced from:
pyo3::err::PyErr::cause::h53aeaff8e297ea33 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.2.rcgu.o)
"_PyException_SetCause", referenced from:
pyo3::err::PyErr::set_cause::hf1c8ca56b45e01b9 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.2.rcgu.o)
"_PyGILState_Ensure", referenced from:
pyo3::gil::GILGuard::acquire_unchecked::h9d0224a43e6401ff in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.8.rcgu.o)
"_PyGILState_Release", referenced from:
_$LT$pyo3..gil..GILGuard$u20$as$u20$core..ops..drop..Drop$GT$::drop::h37927fc149066dfd in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.8.rcgu.o)
"_PyList_Append", referenced from:
pyo3::types::list::PyList::append::h9a6d00903059b938 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.15.rcgu.o)
"_PyList_New", referenced from:
pyo3::types::list::PyList::empty::h5be9ffe49a8635cc in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.15.rcgu.o)
"_PyLong_AsUnsignedLongLong", referenced from:
pyo3::types::num::_$LT$impl$u20$pyo3..conversion..FromPyObject$u20$for$u20$u64$GT$::extract::hc3c373b6f4fdef2b in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.5.rcgu.o)
"_PyModule_Create2", referenced from:
pyo3_ffi::modsupport::PyModule_Create::ha69b3fe4e6294f16 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.7.rcgu.o)
"_PyModule_GetName", referenced from:
pyo3::types::module::PyModule::name::h9e36dc62b552af10 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.4.rcgu.o)
"_PyNumber_Index", referenced from:
pyo3::types::num::_$LT$impl$u20$pyo3..conversion..FromPyObject$u20$for$u20$u64$GT$::extract::hc3c373b6f4fdef2b in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.5.rcgu.o)
"_PyObject_GetAttr", referenced from:
pyo3::types::any::PyAny::getattr::h2e27ff38c6c3fa19 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.6.rcgu.o)
"_PyObject_Repr", referenced from:
pyo3::types::any::PyAny::repr::h269b96ae0d11be7c in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.6.rcgu.o)
"_PyObject_SetAttr", referenced from:
pyo3::types::any::PyAny::setattr::he6a247c2d4d07938 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.6.rcgu.o)
pyo3::types::any::PyAny::setattr::hfd8996f03911a84a in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.6.rcgu.o)
"_PyObject_Str", referenced from:
pyo3::types::any::PyAny::str::he0298d3bd0b3ac1e in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.6.rcgu.o)
"_PyTuple_New", referenced from:
pyo3::types::tuple::_$LT$impl$u20$pyo3..conversion..IntoPy$LT$pyo3..instance..Py$LT$pyo3..types..any..PyAny$GT$$GT$$u20$for$u20$$LP$T0$C$$RP$$GT$::into_py::h9b62fef051255294 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.15.rcgu.o)
pyo3::types::tuple::_$LT$impl$u20$pyo3..conversion..IntoPy$LT$pyo3..instance..Py$LT$pyo3..types..any..PyAny$GT$$GT$$u20$for$u20$$LP$T0$C$$RP$$GT$::into_py::hf65fb0560a71d6f9 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.8.rcgu.o)
"_PyTuple_SetItem", referenced from:
pyo3::types::tuple::_$LT$impl$u20$pyo3..conversion..IntoPy$LT$pyo3..instance..Py$LT$pyo3..types..any..PyAny$GT$$GT$$u20$for$u20$$LP$T0$C$$RP$$GT$::into_py::h9b62fef051255294 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.15.rcgu.o)
pyo3::types::tuple::_$LT$impl$u20$pyo3..conversion..IntoPy$LT$pyo3..instance..Py$LT$pyo3..types..any..PyAny$GT$$GT$$u20$for$u20$$LP$T0$C$$RP$$GT$::into_py::hf65fb0560a71d6f9 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.8.rcgu.o)
"_PyUnicode_AsEncodedString", referenced from:
pyo3::types::string::PyString::to_string_lossy::h5fff290c6902d849 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.2.rcgu.o)
"_PyUnicode_AsUTF8AndSize", referenced from:
pyo3::types::string::PyString::to_str::he285678de3416a4a in pyo3_example.31e4txws67eg8xfh.rcgu.o
pyo3::types::string::PyString::to_str::h0c0d3cfa46a3349a in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.2.rcgu.o)
"_PyUnicode_FromStringAndSize", referenced from:
pyo3::types::string::PyString::new::h756c302dc780d638 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.2.rcgu.o)
pyo3::types::string::PyString::intern::h99c7d7fb8d5ff249 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.2.rcgu.o)
"_PyUnicode_InternInPlace", referenced from:
pyo3::types::string::PyString::intern::h99c7d7fb8d5ff249 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.2.rcgu.o)
"_Py_InitializeEx", referenced from:
pyo3::gil::prepare_freethreaded_python::_$u7b$$u7b$closure$u7d$$u7d$::h7ec7eff51d016eb2 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.8.rcgu.o)
"_Py_IsInitialized", referenced from:
pyo3::gil::prepare_freethreaded_python::_$u7b$$u7b$closure$u7d$$u7d$::h7ec7eff51d016eb2 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.8.rcgu.o)
pyo3::gil::GILGuard::acquire::_$u7b$$u7b$closure$u7d$$u7d$::hcf818b25afc19e8c in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.8.rcgu.o)
"__Py_Dealloc", referenced from:
pyo3_ffi::object::Py_DECREF::h80a00bbd387b4f47 in libpyo3-fe99c63bd9fc0ad2.rlib(pyo3-fe99c63bd9fc0ad2.pyo3.754cfbf6-cgu.4.rcgu.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
What could be going on here? And I'm wondering whether there is a working pyo3 example I could use as a starter project

It turns out the documentation was out of date, there are several differing versions of the instructions. These work as of this date:
https://rustrepo.com/repo/PyO3-PyO3-rust-foreign-function-interface

Related

Beryllium crate does not link with project, linking with cc fails

Allo!
I've been trying to compile an OpenGL example here and so far I've been porting the examples for the newest package versions. After I've finally got the compiler to shut up and compile, it... didnt.
Compiling opengl v0.1.0 (/Users/bigman/Documents/opengl)
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-arch" "x86_64" "-m64" "/var/folders/_r/9h8y938x3sg8w8b166093cs80000gn/T/rustci5KJn3/symbols.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.1ye1bh57tl7zwblh.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.24ksglsqx5rix926.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.291ok3682qh06hja.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.33z1skr6iqu8mbxb.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.38g2rrnpesnwgk95.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.3dv7y4ie77c06eqw.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.3hlgmoupo7y0kfhn.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.3lecw8r4d8y9axm2.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.3mrt3h0y3kgfh006.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.3oxo7uzbm3qux25k.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.3pqmue6qalow8zr9.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.3uzvg2nicxsjyep9.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.41bs2mv4e9wtcbgo.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.43afu5uumcmka4ic.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.44mtky39l5jzsr9i.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.455c1yk83a9oeqej.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.49r8a6nlb1g6vom3.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.4ezvw5th29zf5cpw.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.4jpjakefwnichr47.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.4kjqxmdte2xy5450.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.4sgn75x4qpoaggdo.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.4ydskd6napf3o51l.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.536cy7o3hg4e6s38.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.92rmk9kos8hokgj.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.hr1sotk548uazdt.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.r1mkhnlzeny8r1v.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.rw9csuwauqq65d2.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.uv8c0r69zj37m2.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.vmhgwd12iwpksl9.rcgu.o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305.8rq7vsh59v1xpht.rcgu.o" "-L" "/Users/bigman/Documents/opengl/target/debug/deps" "-L" "/Users/bigman/Documents/opengl/target/debug/build/fermium-953d7e0bee78aaf7/out/lib" "-L" "/Users/bigman/Documents/opengl/target/debug/build/fermium-953d7e0bee78aaf7/out/lib" "-L" "/Users/bigman/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/bigman/Documents/opengl/target/debug/deps/libberyllium-93904a5340d5d2fd.rlib" "/Users/bigman/Documents/opengl/target/debug/deps/libobjc-8a13ac3baf316bfb.rlib" "/Users/bigman/Documents/opengl/target/debug/deps/libmalloc_buf-1279be4a0da6202c.rlib" "/Users/bigman/Documents/opengl/target/debug/deps/liblibc-5e4822d31cf10f76.rlib" "/Users/bigman/Documents/opengl/target/debug/deps/libzstring-7f162cbda9b29001.rlib" "/Users/bigman/Documents/opengl/target/debug/deps/libtinyvec-d72ce2389dfaa142.rlib" "/Users/bigman/Documents/opengl/target/debug/deps/libbytemuck-dac07b5acce9e3b9.rlib" "/Users/bigman/Documents/opengl/target/debug/deps/libfermium-36aa956babba2f91.rlib" "/Users/bigman/Documents/opengl/target/debug/deps/libchlorine-fdebb138e2bae085.rlib" "/Users/bigman/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd-c047ccf37d2c9989.rlib" "/Users/bigman/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-479f6a3646fc9c2c.rlib" "/Users/bigman/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libobject-7a5dbda4659854de.rlib" "/Users/bigman/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libmemchr-21db3783f16058ed.rlib" "/Users/bigman/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libaddr2line-bc1dcfa1ffab2652.rlib" "/Users/bigman/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libgimli-326c2fed02a024e2.rlib" "/Users/bigman/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-6cee2d8aed290e33.rlib" "/Users/bigman/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd_detect-abe3d83fb53f6790.rlib" "/Users/bigman/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-a3d322fe643d1a33.rlib" "/Users/bigman/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libminiz_oxide-796c0979aa0619c8.rlib" "/Users/bigman/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libadler-45c554f893d47cc8.rlib" "/Users/bigman/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-5de68974b16fa161.rlib" "/Users/bigman/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libunwind-8fce473cc391b0d7.rlib" "/Users/bigman/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-e12825695dbeadf4.rlib" "/Users/bigman/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liblibc-890e623f71562a92.rlib" "/Users/bigman/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liballoc-0ba1002b3e9972f6.rlib" "/Users/bigman/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-1bf2f523c1bee03d.rlib" "/Users/bigman/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcore-d0a8c087921eb265.rlib" "/Users/bigman/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-403189210ce7ce14.rlib" "-lobjc" "-liconv" "-framework" "Foundation" "-framework" "AVFoundation" "-framework" "AudioToolbox" "-framework" "CoreAudio" "-framework" "Carbon" "-framework" "ForceFeedback" "-framework" "IOKit" "-framework" "Cocoa" "-framework" "CoreVideo" "-liconv" "-lm" "-framework" "CoreHaptics" "-framework" "QuartzCore" "-framework" "Metal" "-framework" "GameController" "-lSystem" "-lresolv" "-lc" "-lm" "-liconv" "-L" "/Users/bigman/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/Users/bigman/Documents/opengl/target/debug/deps/opengl-cf90588a3409e305" "-Wl,-dead_strip" "-nodefaultlibs"
= note: Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GCColor", referenced from:
objc-class-ref in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCInputDualShockTouchpadTwo", referenced from:
_IOS_MFIJoystickUpdate in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCHapticsLocalityHandles", referenced from:
_IOS_JoystickGetCapabilities in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCHapticsLocalityTriggers", referenced from:
_IOS_JoystickGetCapabilities in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCInputRightTrigger", referenced from:
_IOS_GameControllerGetAppleSFSymbolsNameForAxis in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCInputLeftThumbstick", referenced from:
_IOS_GameControllerGetAppleSFSymbolsNameForAxis in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCInputRightThumbstick", referenced from:
_IOS_GameControllerGetAppleSFSymbolsNameForAxis in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCInputButtonA", referenced from:
_IOS_GameControllerGetAppleSFSymbolsNameForButton in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCInputLeftTrigger", referenced from:
_IOS_GameControllerGetAppleSFSymbolsNameForAxis in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCInputButtonX", referenced from:
_IOS_GameControllerGetAppleSFSymbolsNameForButton in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCInputDualShockTouchpadOne", referenced from:
_IOS_MFIJoystickUpdate in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCInputButtonB", referenced from:
_IOS_GameControllerGetAppleSFSymbolsNameForButton in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCInputButtonHome", referenced from:
_IOS_GameControllerGetAppleSFSymbolsNameForButton in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCInputButtonMenu", referenced from:
_IOS_GameControllerGetAppleSFSymbolsNameForButton in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCInputButtonY", referenced from:
_IOS_GameControllerGetAppleSFSymbolsNameForButton in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCHapticsLocalityLeftTrigger", referenced from:
_IOS_JoystickInitRumble in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCHapticsLocalityRightTrigger", referenced from:
_IOS_JoystickInitRumble in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCInputButtonOptions", referenced from:
_IOS_GameControllerGetAppleSFSymbolsNameForButton in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCInputLeftShoulder", referenced from:
_IOS_GameControllerGetAppleSFSymbolsNameForButton in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCInputRightThumbstickButton", referenced from:
_IOS_GameControllerGetAppleSFSymbolsNameForButton in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCHapticsLocalityLeftHandle", referenced from:
_IOS_JoystickInitRumble in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCHapticsLocalityRightHandle", referenced from:
_IOS_JoystickInitRumble in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCInputXboxPaddleOne", referenced from:
_IOS_GameControllerGetAppleSFSymbolsNameForButton in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
_IOS_AddJoystickDevice in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
_IOS_MFIJoystickUpdate in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCInputXboxPaddleFour", referenced from:
_IOS_GameControllerGetAppleSFSymbolsNameForButton in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
_IOS_AddJoystickDevice in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
_IOS_MFIJoystickUpdate in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCInputDualShockTouchpadButton", referenced from:
_IOS_GameControllerGetAppleSFSymbolsNameForButton in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
_IOS_AddJoystickDevice in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
_IOS_MFIJoystickUpdate in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"___isPlatformVersionAtLeast", referenced from:
-[SDL_RumbleMotor cleanup] in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
-[SDL_RumbleMotor setIntensity:] in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
_IOS_GameControllerGetAppleSFSymbolsNameForButton in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
_IOS_GameControllerGetAppleSFSymbolsNameForAxis in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
_IOS_JoystickInit in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
_IOS_JoystickOpen in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
_IOS_JoystickRumble in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
...
"_GCInputXboxPaddleTwo", referenced from:
_IOS_GameControllerGetAppleSFSymbolsNameForButton in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
_IOS_AddJoystickDevice in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
_IOS_MFIJoystickUpdate in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCHapticDurationInfinite", referenced from:
-[SDL_RumbleMotor setIntensity:] in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCInputRightShoulder", referenced from:
_IOS_GameControllerGetAppleSFSymbolsNameForButton in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCInputLeftThumbstickButton", referenced from:
_IOS_GameControllerGetAppleSFSymbolsNameForButton in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
"_GCInputXboxPaddleThree", referenced from:
_IOS_GameControllerGetAppleSFSymbolsNameForButton in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
_IOS_AddJoystickDevice in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
_IOS_MFIJoystickUpdate in libfermium-36aa956babba2f91.rlib(SDL_mfijoystick.m.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: could not compile `opengl` due to previous error
I haven't even got to the point of actually implementing OpenGL, I'm just trying to get SDL2 to make a window ;w;
Here's my code, maybe I missed something?
use beryllium::{ window, init, gl_window };
use zstring::zstr;
fn main() {
let sdl = init::Sdl::init(init::InitFlags::EVERYTHING).expect("couldn't start SDL");
sdl.gl_set_attribute(gl_window::GlAttr::MajorVersion, 3).unwrap();
sdl.gl_set_attribute(gl_window::GlAttr::MinorVersion, 3).unwrap();
sdl.gl_set_attribute(gl_window::GlAttr::Profile, 1).unwrap();
let _win = sdl
.create_gl_window(
zstr!("Hello Window"),
None,
(800, 600),
window::WindowFlags::OPENGL,
)
.expect("couldn't make a window and context");
}
I'm using the beryllium crate, and I'm not using any of SDL2's controller bindings (which is what I think the compiler is yelling about?). I'm compiling on MacOS Catalina, and I did read that the MacOS implementation of OpenGL gets pissy without the FORWARD_COMPATIBLE flag but OpenGL shouldn't be getting linked with the project since its not being used, ja? And even then, it still shouldn't be breaking the compilation process. I'm no compilation expert, and any help will be appreciated!
I am following a tutorial which suggests to add the #[cfg(target_os = "macos")] tag when compiling on MacOs. The tag was set when specifying the forward compatibility flag, which you are not doing since I assume you do not want to include any of the deprecated parts of the library. But I would try to set the tag at line 10, just under where you set the OpenGL attributes
Link to tutorial: https://rust-tutorials.github.io/learn-opengl/basics/000-creating-a-window.html

error LNK2019 linking assimp

I'm trying to get assimp samples to work in VC++ 2010 and I'm getting link errors.
http://assimp.sourceforge.net/lib_html/install.html
I set include and library directories up, copied the assimp.dll to System32 and put 'assimp.lib' to library dependencies.
I can't figure out what I'm doing wrong.
1>Sample_SimpleOpenGL.obj : error LNK2019: unresolved external symbol _aiTransformVecByMatrix4 referenced in function _get_bounding_box_for_node
1>Sample_SimpleOpenGL.obj : error LNK2019: unresolved external symbol _aiMultiplyMatrix4 referenced in function _get_bounding_box_for_node
1>Sample_SimpleOpenGL.obj : error LNK2019: unresolved external symbol _aiIdentityMatrix4 referenced in function _get_bounding_box
1>Sample_SimpleOpenGL.obj : error LNK2019: unresolved external symbol _aiTransposeMatrix4 referenced in function _recursive_render
1>Sample_SimpleOpenGL.obj : error LNK2019: unresolved external symbol _aiImportFile referenced in function _loadasset
1>Sample_SimpleOpenGL.obj : error LNK2019: unresolved external symbol _aiDetachAllLogStreams referenced in function _main
1>Sample_SimpleOpenGL.obj : error LNK2019: unresolved external symbol _aiReleaseImport referenced in function _main
1>Sample_SimpleOpenGL.obj : error LNK2019: unresolved external symbol _aiAttachLogStream referenced in function _main
1>Sample_SimpleOpenGL.obj : error LNK2019: unresolved external symbol _aiGetPredefinedLogStream referenced in function _main
1>Debug\SimpleOpenGL_Debug.exe : fatal error LNK1120: 9 unresolved externals
Add lib files to Linker -> General -> Additional Library Directories then add assimp.lib to Linker -> Input -> Additional Dependencies
Reference

Using the Facebook SDK With Rubymotion: ld: symbol(s) not found for architecture armv7

I'm getting the following error when I try to build my Rubymotion app:
Undefined symbols for architecture armv7:
"_sqlite3_bind_double", referenced from:
-[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in libPods.a(FBCacheIndex.o)
-[FBCacheIndex _writeEntryInDatabase:] in libPods.a(FBCacheIndex.o)
"_sqlite3_bind_int", referenced from:
-[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in libPods.a(FBCacheIndex.o)
-[FBCacheIndex _writeEntryInDatabase:] in libPods.a(FBCacheIndex.o)
-[FBCacheIndex _trimDatabase] in libPods.a(FBCacheIndex.o)
"_sqlite3_bind_text", referenced from:
-[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in libPods.a(FBCacheIndex.o)
-[FBCacheIndex _writeEntryInDatabase:] in libPods.a(FBCacheIndex.o)
-[FBCacheIndex _readEntryFromDatabase:] in libPods.a(FBCacheIndex.o)
-[FBCacheIndex _readEntriesFromDatabase:excludingFragment:] in libPods.a(FBCacheIndex.o)
-[FBCacheIndex _removeEntryFromDatabaseForKey:] in libPods.a(FBCacheIndex.o)
"_sqlite3_close", referenced from:
___23-[FBCacheIndex dealloc]_block_invoke in libPods.a(FBCacheIndex.o)
"_sqlite3_column_double", referenced from:
-[FBCacheIndex _createCacheEntityInfo:] in libPods.a(FBCacheIndex.o)
"_sqlite3_column_int", referenced from:
-[FBCacheIndex _createCacheEntityInfo:] in libPods.a(FBCacheIndex.o)
-[FBCacheIndex _fetchCurrentDiskUsage] in libPods.a(FBCacheIndex.o)
-[FBCacheIndex _trimDatabase] in libPods.a(FBCacheIndex.o)
"_sqlite3_column_text", referenced from:
-[FBCacheIndex _createCacheEntityInfo:] in libPods.a(FBCacheIndex.o)
-[FBCacheIndex _trimDatabase] in libPods.a(FBCacheIndex.o)
"_sqlite3_errmsg", referenced from:
_releaseStatement in libPods.a(FBCacheIndex.o)
-[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in libPods.a(FBCacheIndex.o)
_initializeStatement in libPods.a(FBCacheIndex.o)
-[FBCacheIndex _writeEntryInDatabase:] in libPods.a(FBCacheIndex.o)
-[FBCacheIndex _readEntryFromDatabase:] in libPods.a(FBCacheIndex.o)
-[FBCacheIndex _readEntriesFromDatabase:excludingFragment:] in libPods.a(FBCacheIndex.o)
-[FBCacheIndex _fetchCurrentDiskUsage] in libPods.a(FBCacheIndex.o)
...
"_sqlite3_exec", referenced from:
___36-[FBCacheIndex initWithCacheFolder:]_block_invoke in libPods.a(FBCacheIndex.o)
"_sqlite3_finalize", referenced from:
_releaseStatement in libPods.a(FBCacheIndex.o)
"_sqlite3_open_v2", referenced from:
___36-[FBCacheIndex initWithCacheFolder:]_block_invoke in libPods.a(FBCacheIndex.o)
"_sqlite3_prepare_v2", referenced from:
_initializeStatement in libPods.a(FBCacheIndex.o)
"_sqlite3_reset", referenced from:
_initializeStatement in libPods.a(FBCacheIndex.o)
"_sqlite3_step", referenced from:
-[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in libPods.a(FBCacheIndex.o)
-[FBCacheIndex _writeEntryInDatabase:] in libPods.a(FBCacheIndex.o)
-[FBCacheIndex _createCacheEntityInfo:] in libPods.a(FBCacheIndex.o)
-[FBCacheIndex _fetchCurrentDiskUsage] in libPods.a(FBCacheIndex.o)
-[FBCacheIndex _removeEntryFromDatabaseForKey:] in libPods.a(FBCacheIndex.o)
-[FBCacheIndex _dropTrimmingTable] in libPods.a(FBCacheIndex.o)
-[FBCacheIndex _trimDatabase] in libPods.a(FBCacheIndex.o)
...
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
rake aborted!
Command failed with status (1): [/Applications/Xcode.app/Contents/Developer...]
Tasks: TOP => archive => build:device
(See full trace by running task with --trace)
My Rakefile
$:.unshift("/Library/RubyMotion/lib")
require File.join(File.dirname(__FILE__), 'version')
require 'motion/project/template/ios'
require 'bundler'
Bundler.require
Motion::Project::App.setup do |app|
app.name = "myapp"
app.seed_id = "79HA123AYV"
app.identifier = "com.myapp.MyApp"
app.prerendered_icon = false
app.deployment_target = "5.0"
app.sdk_version = "6.1"
app.detect_dependencies = false
app.device_family = :iphone
app.interface_orientations = [:portrait]
app.entitlements['application-identifier'] = "#{app.seed_id}.#{app.identifier}"
app.entitlements['keychain-access-groups'] = ["#{app.seed_id}.#{app.identifier}"]
app.development do
app.codesign_certificate = "iPhone Developer: Gavin Morrice (KT54265K2S)"
app.provisioning_profile = '/Users/Gavin/Library/MobileDevice/Provisioning Profiles/01EDFC67-2B0F-4BEC-99E5-9A0446B00680.mobileprovision'
app.entitlements['aps-environment'] = 'development'
app.entitlements['get-task-allow'] = true
end
app.release do
app.codesign_certificate = "iPhone Distribution: MyApp Inc."
app.provisioning_profile = '/Users/Gavin/Library/MobileDevice/Provisioning Profiles/017F2EC9-CA51-4866-8AD9-7FDF764F9658.mobileprovision'
app.entitlements['aps-environment'] = 'production'
app.entitlements['get-task-allow'] = false
end
app.frameworks = ["UIKit", "Foundation", "CoreGraphics", 'CoreLocation', 'MapKit', 'QuartzCore', 'AdSupport', 'Accounts', 'Social']
app.weak_frameworks += %w{ AdSupport Accounts Social }
app.icons = ['Icon.png', 'Icon#2x.png', 'Icon-72.png']
app.short_version = VERSION
app.version = VERSION
app.vendor_project('vendor/CrittercismSDK', :static, headers_dir: 'vendor/CrittercismSDK')
app.vendor_project('vendor/Reachability', :static, headers_dir: 'vendor/Reachability')
app.vendor_project('vendor/FPPopover', :static, headers_dir: 'vendor/FPPopover')
app.pods do
pod 'AFNetworking', '~> 0.10.1' # Can't update to 1.0.0 - it doesn't support iOS 4.3
pod 'Facebook-iOS-SDK', '>= 3.5.3'
pod 'MBProgressHUD', '~> 0.5'
pod 'PullToRefresh', '~> 0.0.1'
end
# TestFlight
app.testflight.sdk = 'vendor/TestFlightSDK'
app.testflight.api_token = '7303366cf2392c9982e9e3f3dd8bdeee_MIz2MzU3MjAxMi0wMi0yMSAwOToyMjozOC43NjkwMDM'
app.testflight.team_token = '85cc97e933d2ab89ad0ee822053c4a98Q_Nj0NDMyMDEyLTAyLTIxIDA5OjQyOjIyLjgzMjg3OQ'
# app.testflight.notify = true # default is false
# Facebook
app.info_plist['FacebookAppID'] = '45104091231578962'
app.info_plist['URL types'] = { 'URL Schemes' => 'fb451040691578962'}
end
Can anyone advise? thanks
Add the following to your Rakefile, right above your frameworks:
app.libs << '/usr/lib/libz.1.1.3.dylib'
app.libs << '/usr/lib/libsqlite3.dylib'
You may have to adjust the path or the version to your particular configuration.
Looks like the Facebook SDK requires sqlite. Adding -lsqlite3 to your app.frameworks should fix that.

fatal error LNK1120: 1 unresolved externals

how can i solve this ,when i compile my source im got this error
Neuz.exe : fatal error LNK1120: 1 unresolved
EditString.obj : error LNK2019: unresolved external symbol "public: void __thiscall CEditString::ParsingString(char const *,unsigned long,unsigned long,unsigned short,class ATL::CStringT<char,class StrTraitMFC<char,class ATL::ChTraitsCRT<char> > > &,class CDWordArray &,class CByteArray &,class CWordArray &,unsigned long)" (?ParsingString#CEditString##QAEXPBDKKGAAV?$CStringT#DV?$StrTraitMFC#DV?$ChTraitsCRT#D#ATL#####ATL##AAVCDWordArray##AAVCByteArray##AAVCWordArray##K#Z) referenced in function "public: void __thiscall CEditString::AddParsingString(char const *,unsigned long,unsigned long,unsigned short,unsigned long)" (?AddParsingString#CEditString##QAEXPBDKKGK#Z)
If the class CEditString is implemented in one of your source files then add the source file to your project.
If the class CEditString is implemented in a library (.LIB) then add the library to your project.
If the class CEditString is implemented in a DLL then add the import library to your project.
In the latter two cases verify that you have included the correct and unchanged header files matching the exported symbols. You can use dumpbin to see the exported symbols of the LIB and the DLL.

GHC - Linking errors when compiling projects with the ncurses-0.2 library

I'm trying to use the ncurses-0.2 library from hackage, however whenever I'm trying to compile my project with cabal. I get a linker error, steps of installation + execution following
I'm on Mac OS X Snow Leopard, and using the Haskell Platform 2010.02
Do you have any insights or suggestions to solve this issue?
$ brew install ncursesw --universal
Warning: It appears you have MacPorts or Fink installed.
Software installed with MacPorts and Fink are known to cause problems.
If you experience issues try uninstalling these tools.
==> Downloading http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.7.tar.gz
File already downloaded and cached to /Users/roman/Library/Caches/Homebrew
==> ./configure --prefix=/Users/roman/.homebrew/Cellar/ncursesw/5.7 --mandir=/Users/roman/.homebrew/Cellar/ncursesw/5.7/share/man --disable-debug --disable-dependency-tracking --e
==> make install
/Users/roman/.homebrew/Cellar/ncursesw/5.7: 2734 files, 14M, in 93 seconds
$ cabal install ncurses --extra-include-dirs=/Users/roman/.homebrew/include --extra-lib-dirs=/Users/roman/.homebrew/lib --reinstall
Resolving dependencies...
Configuring ncurses-0.2...
Preprocessing library ncurses-0.2...
Building ncurses-0.2...
[1 of 4] Compiling UI.NCurses.Enums ( dist/build/UI/NCurses/Enums.hs, dist/build/UI/NCurses/Enums.o )
[2 of 4] Compiling UI.NCurses.Types ( UI/NCurses/Types.hs, dist/build/UI/NCurses/Types.o )
[3 of 4] Compiling UI.NCurses ( dist/build/UI/NCurses.hs, dist/build/UI/NCurses.o )
[4 of 4] Compiling UI.NCurses.Panel ( dist/build/UI/NCurses/Panel.hs, dist/build/UI/NCurses/Panel.o )
UI/NCurses/Panel.chs:49:0:
Warning: The import of `UI.NCurses' is redundant
except perhaps to import instances from `UI.NCurses'
To import instances alone, use: import UI.NCurses()
Registering ncurses-0.2...
Installing library in /Users/roman/.cabal/lib/ncurses-0.2/ghc-6.12.3
Registering ncurses-0.2...
$ cabal build
Preprocessing executables for TicTacToe-0.1...
Building TicTacToe-0.1...
Linking dist/build/TicTacToe/TicTacToe ...
ld: warning: in /Users/roman/.homebrew/lib/libncursesw.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols:
"_start_color", referenced from:
_s9ZP_info in libHSncurses-0.2.a(NCurses.o)
"_wget_wch", referenced from:
_sfkI_info in libHSncurses-0.2.a(NCurses.o)
"_wenclose", referenced from:
_s9Fs_info in libHSncurses-0.2.a(NCurses.o)
"_beep", referenced from:
_ncurseszm0zi2_UIziNCurses_beep1_info in libHSncurses-0.2.a(NCurses.o)
(maybe you meant: _ncurseszm0zi2_UIziNCurses_beep2_closure, _ncurseszm0zi2_UIziNCurses_beep1_srt , _ncurseszm0zi2_UIziNCurses_beep_srt , _ncurseszm0zi2_UIziNCurses_beep3_info , _ncurseszm0zi2_UIziNCurses_beep2_srt , _ncurseszm0zi2_UIziNCurses_beep3_srt , _ncurseszm0zi2_UIziNCurses_beep1_closure , _ncurseszm0zi2_UIziNCurses_beep_info , _ncurseszm0zi2_UIziNCurses_beep1_info , _ncurseszm0zi2_UIziNCurses_beep3_closure , _ncurseszm0zi2_UIziNCurses_beep2_info , _ncurseszm0zi2_UIziNCurses_beep_closure )
"_echo", referenced from:
_sc50_info in libHSncurses-0.2.a(NCurses.o)
(maybe you meant: ___hscore_echo)
"_can_change_color", referenced from:
_ncurseszm0zi2_UIziNCurses_canDefineColor1_info in libHSncurses-0.2.a(NCurses.o)
"_init_color", referenced from:
_s97K_info in libHSncurses-0.2.a(NCurses.o)
_scw2_info in libHSncurses-0.2.a(NCurses.o)
"_wnoutrefresh", referenced from:
_s2JC_info in NCurses.o
_scSh_info in libHSncurses-0.2.a(NCurses.o)
"_noraw", referenced from:
_scaE_info in libHSncurses-0.2.a(NCurses.o)
"_wtouchln", referenced from:
_sd53_info in libHSncurses-0.2.a(NCurses.o)
_sd53_info in libHSncurses-0.2.a(NCurses.o)
"_wcolor_set", referenced from:
_sav6_info in libHSncurses-0.2.a(NCurses.o)
"_meta", referenced from:
_s9KC_info in libHSncurses-0.2.a(NCurses.o)
_scV2_info in libHSncurses-0.2.a(NCurses.o)
"_initscr", referenced from:
_ncurseszm0zi2_UIziNCurses_runCurses2_info in libHSncurses-0.2.a(NCurses.o)
"_stdscr", referenced from:
_stdscr$non_lazy_ptr in NCurses.o
_stdscr$non_lazy_ptr in libHSncurses-0.2.a(NCurses.o)
(maybe you meant: _stdscr$non_lazy_ptr)
"_wbkgrndset", referenced from:
_scOA_info in libHSncurses-0.2.a(NCurses.o)
"_raw", referenced from:
_scaE_info in libHSncurses-0.2.a(NCurses.o)
(maybe you meant: _ffi_closure_raw_SYSV$non_lazy_ptr, _ffi_closure_raw_SYSV , _ffi_raw_call , _ffi_prep_raw_closure_loc )
"__nc_has_mouse", referenced from:
_hsncurses_has_mouse in libHSncurses-0.2.a(hsncurses-shim.o)
"_wtimeout", referenced from:
_s9KE_info in libHSncurses-0.2.a(NCurses.o)
_scV4_info in libHSncurses-0.2.a(NCurses.o)
_sfkG_info in libHSncurses-0.2.a(NCurses.o)
"_doupdate", referenced from:
_ncurseszm0zi2_UIziNCurses_render1_info in libHSncurses-0.2.a(NCurses.o)
"_baudrate", referenced from:
_ncurseszm0zi2_UIziNCurses_baudrate1_info in libHSncurses-0.2.a(NCurses.o)
(maybe you meant: _ncurseszm0zi2_UIziNCurses_baudrate1_info, _ncurseszm0zi2_UIziNCurses_baudrate_info , _ncurseszm0zi2_UIziNCurses_baudrate3_closure , _ncurseszm0zi2_UIziNCurses_baudrate_closure , _ncurseszm0zi2_UIziNCurses_baudrate_srt , _ncurseszm0zi2_UIziNCurses_baudrate2_info , _ncurseszm0zi2_UIziNCurses_baudrate2_closure , _ncurseszm0zi2_UIziNCurses_baudrate1_closure , _ncurseszm0zi2_UIziNCurses_baudrate3_info , _ncurseszm0zi2_UIziNCurses_baudrate1_srt , _ncurseszm0zi2_UIziNCurses_baudrate2_srt , _ncurseszm0zi2_UIziNCurses_baudrate3_srt )
"_whline_set", referenced from:
_s9gs_info in libHSncurses-0.2.a(NCurses.o)
"_wvline_set", referenced from:
_s9fL_info in libHSncurses-0.2.a(NCurses.o)
"_cbreak", referenced from:
_s9ZJ_info in libHSncurses-0.2.a(NCurses.o)
_sc7P_info in libHSncurses-0.2.a(NCurses.o)
"_endwin", referenced from:
_ncurseszm0zi2_UIziNCurses_endwin_info in libHSncurses-0.2.a(NCurses.o)
(maybe you meant: _ncurseszm0zi2_UIziNCurses_endwin_info, _ncurseszm0zi2_UIziNCurses_endwin_closure )
"_wattr_on", referenced from:
_saal_info in libHSncurses-0.2.a(NCurses.o)
_saal_info in libHSncurses-0.2.a(NCurses.o)
_saal_info in libHSncurses-0.2.a(NCurses.o)
_saal_info in libHSncurses-0.2.a(NCurses.o)
_saal_info in libHSncurses-0.2.a(NCurses.o)
_saal_info in libHSncurses-0.2.a(NCurses.o)
_saal_info in libHSncurses-0.2.a(NCurses.o)
_saal_info in libHSncurses-0.2.a(NCurses.o)
_saal_info in libHSncurses-0.2.a(NCurses.o)
"_newwin", referenced from:
_s9du_info in libHSncurses-0.2.a(NCurses.o)
"_getmouse", referenced from:
_sfkP_info in libHSncurses-0.2.a(NCurses.o)
"_touchwin", referenced from:
_sa69_info in libHSncurses-0.2.a(NCurses.o)
"_untouchwin", referenced from:
_sa6c_info in libHSncurses-0.2.a(NCurses.o)
"_has_colors", referenced from:
_ncurseszm0zi2_UIziNCurses_supportsColor1_info in libHSncurses-0.2.a(NCurses.o)
_s9ZN_info in libHSncurses-0.2.a(NCurses.o)
"_mousemask", referenced from:
_s9ZL_info in libHSncurses-0.2.a(NCurses.o)
"_use_default_colors", referenced from:
_s9ZS_info in libHSncurses-0.2.a(NCurses.o)
"_waddwstr", referenced from:
_sduP_info in libHSncurses-0.2.a(NCurses.o)
"_wmove", referenced from:
_sdBo_info in libHSncurses-0.2.a(NCurses.o)
"_dupwin", referenced from:
_scTH_info in libHSncurses-0.2.a(NCurses.o)
"_keypad", referenced from:
_ncurseszm0zi2_UIziNCurses_zdwa3_info in libHSncurses-0.2.a(NCurses.o)
_say8_info in libHSncurses-0.2.a(NCurses.o)
_say8_info in libHSncurses-0.2.a(NCurses.o)
_scV0_info in libHSncurses-0.2.a(NCurses.o)
"_noecho", referenced from:
_sc50_info in libHSncurses-0.2.a(NCurses.o)
"_flash", referenced from:
_ncurseszm0zi2_UIziNCurses_flash1_info in libHSncurses-0.2.a(NCurses.o)
(maybe you meant: _ncurseszm0zi2_UIziNCurses_flash1_closure, _ncurseszm0zi2_UIziNCurses_flash_info , _ncurseszm0zi2_UIziNCurses_flash_srt , _ncurseszm0zi2_UIziNCurses_flash_closure , _ncurseszm0zi2_UIziNCurses_flash1_info , _ncurseszm0zi2_UIziNCurses_flash2_info , _ncurseszm0zi2_UIziNCurses_flash3_closure , _ncurseszm0zi2_UIziNCurses_flash1_srt , _ncurseszm0zi2_UIziNCurses_flash2_srt , _ncurseszm0zi2_UIziNCurses_flash2_closure , _ncurseszm0zi2_UIziNCurses_flash3_info , _ncurseszm0zi2_UIziNCurses_flash3_srt )
"_wborder_set", referenced from:
_scFt_info in libHSncurses-0.2.a(NCurses.o)
"_COLS", referenced from:
_COLS$non_lazy_ptr in libHSncurses-0.2.a(NCurses.o)
(maybe you meant: _COLS$non_lazy_ptr)
"_init_pair", referenced from:
_saTg_info in libHSncurses-0.2.a(NCurses.o)
_saTg_info in libHSncurses-0.2.a(NCurses.o)
_saTg_info in libHSncurses-0.2.a(NCurses.o)
_saTg_info in libHSncurses-0.2.a(NCurses.o)
_saTg_info in libHSncurses-0.2.a(NCurses.o)
_saTg_info in libHSncurses-0.2.a(NCurses.o)
_saTg_info in libHSncurses-0.2.a(NCurses.o)
_saTg_info in libHSncurses-0.2.a(NCurses.o)
_scdx_info in libHSncurses-0.2.a(NCurses.o)
_scdx_info in libHSncurses-0.2.a(NCurses.o)
_scdx_info in libHSncurses-0.2.a(NCurses.o)
_scdx_info in libHSncurses-0.2.a(NCurses.o)
_scdx_info in libHSncurses-0.2.a(NCurses.o)
_scdx_info in libHSncurses-0.2.a(NCurses.o)
_scdx_info in libHSncurses-0.2.a(NCurses.o)
_scdx_info in libHSncurses-0.2.a(NCurses.o)
"_nocbreak", referenced from:
_sc7P_info in libHSncurses-0.2.a(NCurses.o)
"_delwin", referenced from:
_sb4T_info in libHSncurses-0.2.a(NCurses.o)
"_getcurx", referenced from:
_s9Iy_info in libHSncurses-0.2.a(NCurses.o)
"_getcury", referenced from:
_s9Ix_info in libHSncurses-0.2.a(NCurses.o)
"_color_content", referenced from:
_sff4_info in libHSncurses-0.2.a(NCurses.o)
"_COLOR_PAIRS", referenced from:
_COLOR_PAIRS$non_lazy_ptr in libHSncurses-0.2.a(NCurses.o)
(maybe you meant: _COLOR_PAIRS$non_lazy_ptr)
"_wattr_get", referenced from:
_s9vO_info in libHSncurses-0.2.a(NCurses.o)
"_wattr_off", referenced from:
_saaF_info in libHSncurses-0.2.a(NCurses.o)
_saaF_info in libHSncurses-0.2.a(NCurses.o)
_saaF_info in libHSncurses-0.2.a(NCurses.o)
_saaF_info in libHSncurses-0.2.a(NCurses.o)
_saaF_info in libHSncurses-0.2.a(NCurses.o)
_saaF_info in libHSncurses-0.2.a(NCurses.o)
_saaF_info in libHSncurses-0.2.a(NCurses.o)
_saaF_info in libHSncurses-0.2.a(NCurses.o)
_saaF_info in libHSncurses-0.2.a(NCurses.o)
"_wattr_set", referenced from:
_s9vS_info in libHSncurses-0.2.a(NCurses.o)
"_LINES", referenced from:
_LINES$non_lazy_ptr in libHSncurses-0.2.a(NCurses.o)
(maybe you meant: _LINES$non_lazy_ptr)
ld: symbol(s) not found
collect2: ld returned 1 exit status
This questions was answered in Haskell-Café
The link:
http://groups.google.com/group/haskell-cafe/browse_thread/thread/b021f338ed2ba738#

Resources