[GRASS-dev] Re: Error compiling dependencies on OSX

William Kyngesburye woklist at kyngchaos.com
Tue Apr 17 14:48:33 EDT 2007


Ah, I've been meaning to look into this more.  netpbm has its own  
copy of the Jasper source which is built by default, and it's  
clashing with the UnixImageIO Jasper.  I need to figure out how to  
disable the Jasper build in netpbm.

On Apr 17, 2007, at 1:36 PM, Agustin Diez Castillo wrote:

> NetPBM gives the following error:
>
> jas_image.c:166: error: conflicting types for 'jas_image_create'
> /Library/Frameworks/UnixImageIO.framework/unix/include/jasper/ 
> jas_image.h:302: error: previous declaration of 'jas_image_create'  
> was here
> jas_image.c: In function 'jas_image_create':
> jas_image.c:177: error: 'struct <anonymous>' has no member named  
> 'colorspace_'
> jas_image.c:166: error: conflicting types for 'jas_image_create'
> /Library/Frameworks/UnixImageIO.framework/unix/include/jasper/ 
> jas_image.h:302: error: previous declaration of 'jas_image_create'  
> was here
> jas_image.c: In function 'jas_image_create':
> jas_image.c:177: error: 'struct <anonymous>' has no member named  
> 'colorspace_'
> jas_image.c: In function 'jas_image_create0':
> jas_image.c:235: error: 'struct <anonymous>' has no member named  
> 'colorspace_'
> jas_image.c:235: error: 'JAS_IMAGE_CS_UNKNOWN' undeclared (first  
> use in this function)
> jas_image.c:235: error: (Each undeclared identifier is reported  
> only once
> jas_image.c:235: error: for each function it appears in.)
> jas_image.c:240: error: 'struct <anonymous>' has no member named  
> 'iccp_'
> jas_image.c:241: error: 'struct <anonymous>' has no member named  
> 'iccplen_'
> jas_image.c: In function 'jas_image_create0':
> jas_image.c:235: error: 'struct <anonymous>' has no member named  
> 'colorspace_'
> jas_image.c:235: error: 'JAS_IMAGE_CS_UNKNOWN' undeclared (first  
> use in this function)
> jas_image.c:235: error: (Each undeclared identifier is reported  
> only once
> jas_image.c:235: error: for each function it appears in.)
> jas_image.c:240: error: 'struct <anonymous>' has no member named  
> 'iccp_'
> jas_image.c:241: error: 'struct <anonymous>' has no member named  
> 'iccplen_'
> jas_image.c: At top level:
> jas_image.c:414: error: conflicting types for 'jas_image_readcmpt'
> /Library/Frameworks/UnixImageIO.framework/unix/include/jasper/ 
> jas_image.h:418: error: previous declaration of  
> 'jas_image_readcmpt' was here
> jas_image.c: At top level:
> jas_image.c:414: error: conflicting types for 'jas_image_readcmpt'
> /Library/Frameworks/UnixImageIO.framework/unix/include/jasper/ 
> jas_image.h:418: error: previous declaration of  
> 'jas_image_readcmpt' was here
> jas_image.c:498: error: conflicting types for 'jas_image_writecmpt'
> /Library/Frameworks/UnixImageIO.framework/unix/include/jasper/ 
> jas_image.h:423: error: previous declaration of  
> 'jas_image_writecmpt' was here
> jas_image.c:498: error: conflicting types for 'jas_image_writecmpt'
> /Library/Frameworks/UnixImageIO.framework/unix/include/jasper/ 
> jas_image.h:423: error: previous declaration of  
> 'jas_image_writecmpt' was here
> jas_image.c:577: error: conflicting types for 'jas_image_addfmt'
> /Library/Frameworks/UnixImageIO.framework/unix/include/jasper/ 
> jas_image.h:462: error: previous declaration of 'jas_image_addfmt'  
> was here
> jas_image.c:577: error: conflicting types for 'jas_image_addfmt'
> /Library/Frameworks/UnixImageIO.framework/unix/include/jasper/ 
> jas_image.h:462: error: previous declaration of 'jas_image_addfmt'  
> was here
> jas_image.c:682: error: conflicting types for 'jas_image_delcmpt'
> /Library/Frameworks/UnixImageIO.framework/unix/include/jasper/ 
> jas_image.h:426: error: previous declaration of 'jas_image_delcmpt'  
> was here
> jas_image.c:698: error: conflicting types for 'jas_image_addcmpt'
> /Library/Frameworks/UnixImageIO.framework/unix/include/jasper/ 
> jas_image.h:430: error: previous declaration of 'jas_image_addcmpt'  
> was here
> jas_image.c:682: error: conflicting types for 'jas_image_delcmpt'
> /Library/Frameworks/UnixImageIO.framework/unix/include/jasper/ 
> jas_image.h:426: error: previous declaration of 'jas_image_delcmpt'  
> was here
> jas_image.c:698: error: conflicting types for 'jas_image_addcmpt'
> /Library/Frameworks/UnixImageIO.framework/unix/include/jasper/ 
> jas_image.h:430: error: previous declaration of 'jas_image_addcmpt'  
> was here
> lipo: can't figure out the architecture type of: /var/tmp// 
> ccvlNENX.out
> make[5]: *** [jas_image.o] Error 1
> make[4]: *** [base/all] Error 2
> make[3]: *** [libjasper/libjasper.a] Error 2
> make[2]: *** [jpeg2000/all] Error 2
> make[1]: *** [other/all] Error 2
> make: *** [converter/all] Error 2
>
> __________________________________________________________
> Dr. Agustín Diez Castillo
> Departament de Prehistòria i Arqueologia
> Fundació General Universitat de València    	Phone:   +34 963 98 38 93
> Avda. Blasco Ibañez, 28  	 				Fax:       +34 963 98 38 87
> València 46010
> http://www.uv.es/sidgeipa
> Member of the European Network of Excellence EPOCH
> http://www.epoch.eu/
> __________________________________________________________
>
>
>
>
> On Apr 15, 2007, at 8:57 PM, William Kyngesburye wrote:
>
>> I worked out how to dump the env into a script to be sourced in  
>> the Terminal window, as suggested by Glynn.  This removes the  
>> lengthy output before the command is actually run (though the  
>> source command is still there).  And it makes the AppleScript a  
>> little simpler.
>>
>> As before, replace the installed grass /etc/grass-xterm-wrapper  
>> with this one (or replace the source /lib/init/grass-xterm-wrapper  
>> and rebuild).  Also, update CVS for the latest OSX app startup  
>> (and rebuild) - I removed the hardwired xterm path.
>>
>> <grass-xterm-wrapper>
>>
>> If this works well, I'll commit it to CVS.
>>
>> -----
>> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
>> http://www.kyngchaos.com/
>>
>> "History is an illusion caused by the passage of time, and time is  
>> an illusion caused by the passage of history."
>>
>> - Hitchhiker's Guide to the Galaxy
>>
>>
>> _______________________________________________
>> grass-dev mailing list
>> grass-dev at grass.itc.it
>> http://grass.itc.it/mailman/listinfo/grass-dev
>

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

All generalizations are dangerous, even this one.






More information about the grass-dev mailing list