- 积分
- 7018
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-7-21
- 最后登录
- 1970-1-1
|
发表于 2017-11-12 10:30:41
|
显示全部楼层
我安装的是1.9,因为高版本在后面可能出现不了ungrib.exe
根据科研菜鸟理论 高版本的Jasper需要修改jas_image.h文件
cd /usr/local/jasper/include/jasper/
gedit jas_image.h(找到bool inmem_; 将前面的“//“去掉)
配置环境变量
mkdir /usr/local/JASPER
mkdir /usr/local/JASPER/lib
mkdir /usr/local/JASPER/include
cp -r /usr/local/zlib/lib/*/usr/local/JASPER/lib
cp -r /usr/local/libpng/lib/* /usr/local/JASPER/lib
cp -r /usr/local/jasper/lib/* /usr/local/JASPER/lib
cp -r /usr/local/zlib/include/* /usr/local/JASPER/include
cp -r /usr/local/libpng/include/* /usr/local/JASPER/include
cp -r /usr/local/jasper/include/* /usr/local/JASPER/include
gedit~/.bashrc
在最后添加下面路径指向:
#for zlib
exportZLIB_HOME=/usr/local/zlib
exportLD_LIBRARY_PATH=$ZLIB_HOME/lib:$LD_LIBRARY_PATH
#for libpng
exportZLIB_HOME=/usr/local/libpng
exportLIBPNGLIB=/usr/local/libpng/lib
exportLIBPNGINC=/usr/local/libpng/include
#set JASPER
export JASPER=/usr/local/JASPER
export JASPERLIB=/usr/local/JASPER/lib
export JASPERINC=/usr/local/JASPER/include
保存后退出
source~/.bashrc
==================================
如果装的是1.9版本,以上步骤需要做吗? |
|