| 12 | == qualification build error == |
| 13 | |
| 14 | Some folks have reported the following building on unix: |
| 15 | |
| 16 | {{{ |
| 17 | |
| 18 | Has anyone made notes recently on compiling gdal with mrsid support. |
| 19 | |
| 20 | Here is what I did so far, but it failed. |
| 21 | 1) download the DSDK from LizardTech |
| 22 | 2) ./configure --with-mrsid=pathToDSDK |
| 23 | 3)edited MRSID lines in nmake.opt to point to the DSDK directory 4)gmake |
| 24 | |
| 25 | I got this error: |
| 26 | /home/pvandeus/downloads/gdal/Geo_DSDK-6.0.7.1407/include/base |
| 27 | /lti_sceneBuffer.h:356: |
| 28 | error: extra qualification 'LizardTech::LTISceneBuffer::' on member 'inWindow' |
| 29 | gmake[2]: *** [../o/mrsiddataset.o] Error 1 |
| 30 | gmake[2]: Leaving directory |
| 31 | `/home/pvandeus/downloads/gdal/gdal-1.4.0/frmts/mrsid' |
| 32 | gmake[1]: *** [mrsid-install-obj] Error 2 |
| 33 | gmake[1]: Leaving directory `/home/pvandeus/downloads/gdal/gdal-1.4.0/frmts' |
| 34 | gmake: *** [frmts-target] Error 2 |
| 35 | |
| 36 | This is on a system running Fedora Core 6. |
| 37 | }}} |
| 38 | |
| 39 | This is an incompatibility of the MrSID SDK header file with gcc 3.4+; it was not considered an error in previous versions of gcc. (Thanks to Mateusz |
| 40 | Loskot for pointing it out to us originally.) |
| 41 | |
| 42 | To fix the issue in the header (lti_sceneBuffer.h), simply remove the extra qualification from the inWindow declaration. Line 356 should look like this: |
| 43 | |
| 44 | {{{ |
| 45 | bool inWindow(lt_uint32 x, lt_uint32 y) const; |
| 46 | }}} |
| 47 | |