0
我想用cgo運行GraphicsMagick。cgo和pkg-config
/*
#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配置GraphicsMagick工具 - 配置' 和它的確定。