Compiling libraries for LWM 32 on Mac OS X
HiI think I have a problem trying to use CFFI with LWM.
Basically I believe that I need to compile code for 32 bits as CFFI gives me the following error message:
CL-USER 9 > (cffi:use-foreign-library cl-autowrap-tests::cl-autowrap-tests-lib)
Error: Unable to load foreign library (CL-AUTOWRAP-TESTS-LIB).
Could not register handle for external module CL-AUTOWRAP-TESTS::CL-AUTOWRAP-TESTS-LIB:
no suitable image found. Did find:
/Users/marcoxa/Projects/Lang/CL/tests/cl-autowrap/cl-autowrap-test.dylib: mach-o, but wrong architecture.
1 (continue) Try loading the foreign library again.
2 Use another library instead.
3 (abort) Return to level 0.
4 Return to top loop level 0.
Error: Unable to load foreign library (CL-AUTOWRAP-TESTS-LIB).
Could not register handle for external module CL-AUTOWRAP-TESTS::CL-AUTOWRAP-TESTS-LIB:
no suitable image found. Did find:
/Users/marcoxa/Projects/Lang/CL/tests/cl-autowrap/cl-autowrap-test.dylib: mach-o, but wrong architecture.
1 (continue) Try loading the foreign library again.
2 Use another library instead.
3 (abort) Return to level 0.
4 Return to top loop level 0.
Has anybody seen anything like this?
Which leads to the question: what are the
clang incantations necessary to produce 32 dylib? Note that passing
-arch x86_32 or -arch i386 does not seem to work. Also munging the -target argument does not seem to lead to a working dylib.
Thanks
Marco
--
Marco Antoniotti, Associate Professor tel. +39 - 02 64 48 79 01
DISCo, Università Milano Bicocca U14 2043 http://bimib.disco.unimib.it
Viale Sarca 336
I-20126 Milan (MI) ITALY
Please check: http://cdac.lakecomoschool.org
Please note that I am not checking my Spam-box anymore.
Please do not forward this email without asking me first.
Marco Antoniotti, Associate Professor tel. +39 - 02 64 48 79 01
DISCo, Università Milano Bicocca U14 2043 http://bimib.disco.unimib.it
Viale Sarca 336
I-20126 Milan (MI) ITALY
Please check: http://cdac.lakecomoschool.org
Please note that I am not checking my Spam-box anymore.
Please do not forward this email without asking me first.