64bit - Io does not compile on Mac OS X Snow Leopard -


i followed instructions in readme, simple

cd build cmake .. make install 

the problem occurs after make install command. io not compile, because of module cffi. ld complains libffi.dylib not 64-bit, , won't link .o files, , because of that, complains or symbol not defined, etc.

ld: warning: in /opt/local/lib/libffi.dylib, file built i386 not architecture being linked (x86_64) 

how can solve this? there way compile io in 32-bit, passing parameters make, cmake or editing file? makefile has entry cffi addon. delete it? can 64-bit libcffi? library provides api access lower-level function calls higher level languages, i+m not sure replacing 32-bit 1 64-bit one, may break macruby or other stuff. able build cffi , possible addons may work in system, able more stuff: interested in objective-c bindings, guess may require cffi.

on mac, can compile 32-bit setting cmake_osx_architectures = i386 in cmake cache.

run "cmake-gui ." in build tree, , change cmake_osx_architectures i386. clean build. should end 32-bit binaries @ point.

on other oses (linux, windows) there different techniques 32-bit builds on 64-bit systems. involve either passing flags compiler (-m32 -m64 gcc) or using proper cmake generator (visual studio 9 2008 vs. visual studio 9 2008 win64).


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -