Hi Thomas,<div>I had ported spectral unmixing to grass7. Myself and Markus had tested it several times on both G6 and G7 and updated it every time.</div><div><br></div><div>The problem is because of g2c.h which is not used by gcc4+. and g2c.h headers are included in lapack wrap code of gmath lib.</div>

<div><br></div><div>The error he said about <span style="font-family:arial,sans-serif;font-size:13px">__g77_integer is mentioned here </span><a href="https://bugs.launchpad.net/ubuntu/+source/gcc-3.4/+bug/61623">https://bugs.launchpad.net/ubuntu/+source/gcc-3.4/+bug/61623</a></div>

<div>which says gcc-3.4</div><div><br></div><div><br></div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Dec 8, 2012 at 12:33 PM, Thomas Becker <span dir="ltr"><<a href="mailto:thomasgeo@gmx.de" target="_blank">thomasgeo@gmx.de</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
there was recently some question about spectral unmixing here in the list.<br>
<br>
If you didn't modify the source code of the unmixing model to fit Grass 7 it won't work. Spectral unmixing was written by Markus as part of his diploma thesis, is now some years old and is based on Grass 5.something, if I'm not wrong.<br>


<br>
Would be great if you can get it to work in Grass 7.x! Seems to me there is quite some interest in this module.<br>
<span class="HOEnZb"><font color="#888888"><br>
\T<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On 08.12.2012, at 05:04, 王德辉 <<a href="mailto:dehuiw@gig.ac.cn">dehuiw@gig.ac.cn</a>> wrote:<br>
<br>
> Hi all!<br>
> compilation error in ubuntu12.10 x64<br>
> GRASS 7.0.svn (nc_spm_08):/usr/local/grass-addons/grass7/imagery/i.spec.unmix > sudo make MODULE_TOPDIR=/usr/local/grass-7.0.svn<br>
> gcc  -g -O2   -I/usr/local/grass-7.0.svn/include -I/usr/local/grass-7.0.svn/include  -D_FILE_OFFSET_BITS=64  -DPACKAGE=\""grassmods"\"   -I/usr/local/grass-7.0.svn/include -I/usr/local/grass-7.0.svn/include -o OBJ.x86_64-unknown-linux-gnu/la_extra.o -c la_extra.c<br>


> In file included from /usr/local/grass-7.0.svn/include/grass/la.h:34:0,<br>
>                  from la_extra.c:12:<br>
> /usr/include/g2c.h:21:1: error: unknown type name ‘__g77_integer’<br>
> /usr/include/g2c.h:22:1: error: unknown type name ‘__g77_uinteger’<br>
> /usr/include/g2c.h:29:1: error: unknown type name ‘__g77_integer’<br>
> /usr/include/g2c.h:33:1: error: unknown type name ‘__g77_longint’<br>
> /usr/include/g2c.h:34:1: error: unknown type name ‘__g77_ulongint’<br>
> /usr/include/g2c.h:55:1: error: unknown type name ‘__g77_integer’<br>
> /usr/include/g2c.h:56:1: error: unknown type name ‘__g77_integer’<br>
> /usr/include/g2c.h:57:1: error: unknown type name ‘__g77_integer’<br>
> la_extra.c: In function ‘G_matvect_get_column2’:<br>
> la_extra.c:22:2: warning: format not a string literal and no format arguments [-Wformat-security]<br>
> la_extra.c:27:2: warning: format not a string literal and no format arguments [-Wformat-security]<br>
> la_extra.c:32:2: warning: format not a string literal and no format arguments [-Wformat-security]<br>
> la_extra.c: In function ‘mv_mlt’:<br>
> la_extra.c:257:9: warning: assignment from incompatible pointer type [enabled by default]<br>
> la_extra.c: In function ‘G_vector_product’:<br>
> la_extra.c:396:2: warning: format not a string literal and no format arguments [-Wformat-security]<br>
> la_extra.c:401:2: warning: format not a string literal and no format arguments [-Wformat-security]<br>
> la_extra.c:406:2: warning: format not a string literal and no format arguments [-Wformat-security]<br>
> la_extra.c:411:2: warning: format not a string literal and no format arguments [-Wformat-security]<br>
> la_extra.c:417:2: warning: format not a string literal and no format arguments [-Wformat-security]<br>
> la_extra.c:423:2: warning: format not a string literal and no format arguments [-Wformat-security]<br>
> la_extra.c: In function ‘G_matrix_read2’:<br>
> la_extra.c:470:2: warning: format not a string literal and no format arguments [-Wformat-security]<br>
> la_extra.c:480:6: warning: format not a string literal and no format arguments [-Wformat-security]<br>
> la_extra.c:486:3: warning: format not a string literal and no format arguments [-Wformat-security]<br>
> make: *** [OBJ.x86_64-unknown-linux-gnu/la_extra.o] Error 1<br>
><br>
> Thanks!<br>
> dehui<br>
><br>
><br>
><br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> grass-user mailing list<br>
> <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><font face="arial, helvetica, sans-serif">Regards,<br>   Rashad</font></div><br>
</div>