1. samba安装:http://blog.csdn.net/voice_shen/article/details/7692605
2. 安装run, sudo chmod 777 filename, 这里是777,不要写错了
3.
支持C++11,在pro文件里,添加CONFIG += c++11
4. 引用库配置
macx {
DEFINES += USE_FILE32API
INCLUDEPATH += \
/usr/local/include \
/$$PWD/../../external/tiff/include/mac \
/$$PWD/../../external/webp/include/mac \
/$$PWD/../../external/mac-specific/glew-1.10.0/include \
LIBS += -L/usr/local/lib/ -lpng
LIBS += -L/usr/local/lib/ -ljpeg
LIBS += -L/usr/local/lib/ -lfreetype
LIBS += -L/$$PWD/../../external/mac-specific/ -lchipmunk
LIBS += -L/$$PWD/../../external/webp/prebuilt/mac/ -lwebp
LIBS += -L$$PWD/../../external/mac-specific/glew-1.10.0/lib/ -lGLEW
LIBS += -L/usr/local/lib/ -lz
LIBS += -L/usr/local/lib/ -lcurl
LIBS += -L/usr/local/lib/ -ltiff
}
5. gdal编译:
3.安装GDAL-1.9.0库,命令如下:
% cd gdal
% ./configure
% make
% su
Password: ********
% make install
% exit
安装成功后,会在/usr/local/include文件夹中产生一系列.h文件(cpl_config.h、gdal.h……),在/usr/local/lib文件夹中产生5个库文件,其中libgdal.a和libgdal.la为静态链接库,libgdal.so, libgdal.so.1, libgdal.so.1.13.2为动态链接库。