IM stopped working on OS X Mavericks
Posted: 2013-10-27T07:25:50-07:00
Hello - Yesterday I switched to OS X 10.9; deinstalled and reinstalled MacPorts; and installed IM. The version is:
Suddenly, I cannot create C++ executables that use Magick++ anymore: a minimal example is:
I have no idea of what's happening; please...
Code: Select all
ImageMagick @6.8.7-3_0+x11 (active) platform='darwin 13' archs='x86_64'
Code: Select all
MLO@bigmac 16 $ cat minimal.cxx
#include <iostream>
#include <Magick++.h>
using namespace std;
using namespace Magick;
int main() {
try {
Image newImage("logo.jpg");
newImage.zoom("50x");
newImage.write("newlogo.jpg");
} catch (Error &e) {
cerr << e.what() << '\n';
} catch (...) {
cerr << "Unknown exception catched\n";
}
}
MLO@bigmac 17 $ g++ `Magick++-config --cppflags --cxxflags --ldflags --libs` -o minimal minimal.cxx
Undefined symbols for architecture x86_64:
"Magick::Image::write(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
_main in ccMyhbLg.o
"Magick::Image::Image(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
_main in ccMyhbLg.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status