a native lib that I have built (it actually encompasses the KiwiViewer app) depends on two frameworks (kiwi and vtk framework (http://www.kitware.com/opensource/opensource.html). I want to add that lib into a Xamarin project which, so I have crated a binding project for it. However, when I specify in gcc_flags "-framework kiwi -framework vtk", the link fails with this error :
ld: framework not found kiwi
collect2: ld returned 1 exit status
error MT5201: Native linking failed. Please review user flags provided to gcc: "-framework" "kiwi" "-framework" "vtk"
Both the frameworks have been copied into /Library/Frameworks (and into /System/Library/Frameworks before that) folder, but no joy.
I have noticed that, when invoking g++ compiler (I have added -cxx option because library is a C++ one), it passes the switch : -arch i386. Could that be the problem?
Any help is greatly welcome. Thanks.