- 论坛徽章:
- 0
|
这次为数理所曹老师编译gxsm,sranger学到了不少东西。开源软件gxsm用到的知识很多,开发者借用了很多开源的库,比如netcdf,libfftw,libquicktime,open gl等很多优秀库,对个人学习来说也是十分有帮助的。sranger是针对加拿大softdb公司的dsp开发板而开发的,主要是usb驱动。通过对该驱动的学习,对Linux USB驱动开发也有了更多的理解。整个编译过程也出现了很多问题,其中有代码的问题,不知道是不是开发者的疏忽,主要问题在于其在使用netcdf库的时候,调用函数的时候出现参数类型不确定的而造成的。并且按照不同的更改方式,对整个软件影响也是很大的,如果调用不正确会造成无法正确显示nc文件,通过查看代码发现主要是数据类型转换不当,就会造成数据丢失,而使得从nc文件中读取的数据不完整。下面是我安装的一个简单描述:
step 1:download sranger source via cvs
cvs -d:pserver:anonymous@sranger.cvs.sourceforge.net:/cvsroot/sranger login
cvs -z3 -d:pserver:anonymous@sranger.cvs.sourceforge.net:/cvsroot/sranger co -P SRanger
step2:download gxsm source via cvs or tar ball
cvs -d:pserver:anonymous@gxsm.cvs.sourceforge.net:/cvsroot/gxsm login
cvs -z3 -d:pserver:anonymous@gxsm.cvs.sourceforge.net:/cvsroot/gxsm co -P Gxsm-2.0
step3:download 3rdparty libraries(via cvs or get tar ball),according to your system,required libraries are not the same as mine.
step4:install 3rd party libraries,when configure use --prefix=/usr options,because when configure the gxsm it will find some file which you must specify the path,if it's not in /usr/.If you didn't specify the --prefix variable when you finish install this library you should set some variables.
step5:install gxsm,just use autogen.sh.Modify src/mem2d.C and src/dataio.C then you will get the rigth display of the nc demo file.
step6:in gxsm directory:make;make install
step7:compile sranger:use autogen.sh script to configure the project.In fact we only need the usb driver of the sranger,so we only need the compile the driver.^_^!!!Just compile the driver is OK!
step8:finish the software install,connect the board to our pc,OK!
step9:Do the work you want to do!Complete!
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/7547/showart_342956.html |
|