Missing jpeglib.h in current SDK
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    deka
    Posts: 131 from 2013/2/12
    From: Hungary, Kecsk...
    Hi!

    I'd like to use the existing libjpeg lib, but the original jpeglib.h is missing. Only the MOS wrapper exists.

    Do you know this problem?
  • »04.11.15 - 08:14
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    zukow
    Posts: 494 from 2005/2/9
    From: Poland
    there is no libjpeg.a only wrapper _shared....

    use #include <proto/jfif.h> and link with wrapper
  • »04.11.15 - 11:37
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    deka
    Posts: 131 from 2013/2/12
    From: Hungary, Kecsk...
    Ok... Thanx!
  • »04.11.15 - 11:54
    Profile
  • MorphOS Developer
    CISC
    Posts: 617 from 2005/8/27
    From: the land with ...
    Quote:

    deka wrote:
    I'd like to use the existing libjpeg lib, but the original jpeglib.h is missing. Only the MOS wrapper exists.


    IIRC, there are forwarding includes in os-include that are only activated when you add -D__MORPHOS_SHAREDLIBS to your compiler commandline.


    - CISC

    [Edit: Correct define]
  • »17.11.15 - 08:35
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    deka
    Posts: 131 from 2013/2/12
    From: Hungary, Kecsk...
    Quote:

    CISC wrote:
    Quote:

    deka wrote:
    I'd like to use the existing libjpeg lib, but the original jpeglib.h is missing. Only the MOS wrapper exists.


    IIRC, there are forwarding includes in os-include that are only activated when you add -DUSE_SHARED_LIBRARIES to your compiler commandline.


    - CISC


    Don't you know, what are these includes?
    It seems to work well with '#include <proto/jfif.h> and link with JPEG_SHARED (or something similar).
  • »17.11.15 - 09:27
    Profile
  • MorphOS Developer
    Henes
    Posts: 498 from 2003/6/14
    If you want to use your own libjpeg.a build then just install it in /usr/lib. And add your jpeglib.h in /usr/include.
    Then include jpeglib.h as usual in your source. This will include gg:os-include/jpeglib.h which, in turn, will include /usr/include/jpeglib.h. This is the way to go to be sdk-update-friendly and no need to hack the official include files.
  • »17.11.15 - 09:58
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    deka
    Posts: 131 from 2013/2/12
    From: Hungary, Kecsk...
    Quote:

    Henes wrote:
    If you want to use your own libjpeg.a build then just install it in /usr/lib. And add your jpeglib.h in /usr/include.
    Then include jpeglib.h as usual in your source. This will include gg:os-include/jpeglib.h which, in turn, will include /usr/include/jpeglib.h. This is the way to go to be sdk-update-friendly and no need to hack the official include files.


    Currently the libjpeg containing the SDK is fine for me.
  • »17.11.15 - 10:37
    Profile
  • MorphOS Developer
    CISC
    Posts: 617 from 2005/8/27
    From: the land with ...
    Quote:

    deka wrote:
    It seems to work well with '#include <proto/jfif.h> and link with JPEG_SHARED (or something similar).


    The point is that you don't have to change the #include line as this is magically done for you if you define __MORPHOS_SHAREDLIBS (though you still have to link with the jpeg_shared lib to get the right stubs).


    - CISC

    [Edit: Correct define]
  • »17.11.15 - 12:44
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    deka
    Posts: 131 from 2013/2/12
    From: Hungary, Kecsk...
    Quote:

    CISC wrote:
    Quote:

    deka wrote:
    It seems to work well with '#include <proto/jfif.h> and link with JPEG_SHARED (or something similar).


    The point is that you don't have to change the #include line as this is magically done for you if you define USE_SHARED_LIBRARIES (though you still have to link with the jpeg_shared lib to get the right stubs).


    - CISC

    Ok, a try will be given... ;)
  • »17.11.15 - 14:08
    Profile