#2094: [with patch, needs more work] Add jpeg support to gd
-------------------------------+--------------------------------------------
 Reporter:  boothby            |        Owner:  was       
     Type:  enhancement        |       Status:  new       
 Priority:  major              |    Milestone:  sage-3.1.3
Component:  graphics           |   Resolution:            
 Keywords:  editor_craigcitro  |  
-------------------------------+--------------------------------------------
Changes (by mhampton):

  * summary:  [with patch, needs review] Add jpeg support to gd => [with
              patch, needs more work] Add jpeg support to gd

Comment:

 I am now having problems different from before.  The jpeg spkg seems to
 install OK, and when installing the gd spkg I get the following
 encouraging message from the configuring:
 {{{
 ** Configuration summary for gd 2.0.33:

    Support for PNG library:          yes
    Support for JPEG library:         yes
    Support for Freetype 2.x library: yes
    Support for Fontconfig library:   no
    Support for Xpm library:          no
    Support for pthreads:             yes
 }}}
 ...but then the build fails, and there is a message:

 {{{
 *** Warning: linker path does not have real file for library -ljpeg.
 *** I have the capability to make that library automatically link in when
 *** you link to this library.  But I can only do this if you have a
 *** shared version of the library, which you do not appear to have
 *** because I did check the linker path looking for a file starting
 *** with libjpeg and none of the candidates passed a file format test
 *** using a file magic. Last file checked:
 /Volumes/D/sage-3.1.2/local/lib//libjpeg.a
 *** The inter-library dependencies that have been dropped here will be
 *** automatically added whenever a program is linked with this library
 *** or is declared to -dlopen it.
 }}}

 ...which occurs before the actual error:
 {{{
 /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
 _gdImageCreateFromJpeg
 _gdImageJpeg
 collect2: ld returned 1 exit status
 make[2]: *** [annotate] Error 1
 make[2]: Leaving directory
 `/Volumes/D/sage-3.1.2/spkg/build/gd-2.0.33.p7/src'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory
 `/Volumes/D/sage-3.1.2/spkg/build/gd-2.0.33.p7/src'
 make: *** [all] Error 2
 Error building gd.
 }}}

 It would be very nice to have this stuff working; being able to quickly
 import images as matrices is something matlab and mathematica users take
 for granted.  Unfortunately I don't think I have the skills needed to fix
 this.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/2094#comment:16>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to