我想用 cgo 运行 GraphicsMagick。
/*
#cgo pkg-config: GraphicsMagick-config
#include <magick/api.h>
static int gm(int argc, char **argv) {
int status;
status = GMCommand(argc, argv);
return 1-status;
}
*/
然后我运行“安装”,它说:
# pkg-config --cflags GraphicsMagick-config
Package GraphicsMagick-config was not found in the pkg-config search path.
Perhaps you should add the directory containing `GraphicsMagick-config.pc'
to the PKG_CONFIG_PATH environment variable
No package 'GraphicsMagick-config' found
exit status 1
但我在 shell 中运行“pkg-config GraphicsMagick-config”,没关系。