XMP Toolkit & Static C++ libraries import

  • Hi,

    I'm trying to use XMP Toolkit in my application but it seems I'm
    missing something about the way to import a static C++ library (.a
    extension) in my Cocoa project.

    When I'm compiling the release, I've got this message:
    "warning suggest use of -bind_at_load, as lazy binding may result in
    errors or different symbols being used"
    the build succeed and no executable is generated in the app package?!?
    The debug version is completely unstable.

    The samples embedded in the XMP SDK are perfectly working on my
    machine so I think XMP Libs I've compiled are OK.

    Is there anyone experienced in this domain?

    Thanks for your help

    Florent Lacheroy
    <florent.lacheroy...>
  • Hi Florent,

    Make sure that, if you use Obj-C, to name the class files where you
    use the XMP classes .mm (Obj-C++) instead of .m. This will cause the
    right libraries to be linked in.

    Diederik

    --
    Diederik Hoogenboom
    Obvious Matter - DiskLibrary for Mac
    http://www.obviousmatter.com

    On 26-sep-2007, at 19:43, Florent Lacheroy wrote:

    >
    > Hi,
    >
    > I'm trying to use XMP Toolkit in my application but it seems I'm
    > missing something about the way to import a static C++ library (.a
    > extension) in my Cocoa project.
    >
    > When I'm compiling the release, I've got this message:
    > "warning suggest use of -bind_at_load, as lazy binding may result
    > in errors or different symbols being used"
    > the build succeed and no executable is generated in the app package?!?
    > The debug version is completely unstable.
    >
    > The samples embedded in the XMP SDK are perfectly working on my
    > machine so I think XMP Libs I've compiled are OK.
    >
    > Is there anyone experienced in this domain?
    >
    >
    > Thanks for your help
    >
    >
    >
    > Florent Lacheroy
    > <florent.lacheroy...>
    >
    >
    >
    > _______________________________________________
    > MacOSX-dev mailing list
    > <MacOSX-dev...>
    > http://www.omnigroup.com/mailman/listinfo/macosx-dev
    >
  • Hi,

    Thanks for your help.

    I finally decide to create a new project with my classes. I set the
    libraries and headers paths, changed some code in my classes and it
    worked.
    Actually, I had two problems in my project:
    1. I must have corrupted the build settings to the bone when I was
    trying to solve problem 2.
    2. I did not correctly initialize XMP classes I used (SXMPFiles and
    SXMPMeta): I forgot to call "Initialize" method of the classes. I
    thought because of the kind of error I got it was a link problem.

    Florent Lacheroy
    <florent.lacheroy...>

    On 27 sept. 07, at 20:59, Diederik Hoogenboom wrote:

    > Hi Florent,
    >
    > Make sure that, if you use Obj-C, to name the class files where you
    > use the XMP classes .mm (Obj-C++) instead of .m. This will cause
    > the right libraries to be linked in.
    >
    > Diederik
    >
    > --
    > Diederik Hoogenboom
    > Obvious Matter - DiskLibrary for Mac
    > http://www.obviousmatter.com
    >
    >
    >
    > On 26-sep-2007, at 19:43, Florent Lacheroy wrote:
    >
    >>
    >> Hi,
    >>
    >> I'm trying to use XMP Toolkit in my application but it seems I'm
    >> missing something about the way to import a static C++ library (.a
    >> extension) in my Cocoa project.
    >>
    >> When I'm compiling the release, I've got this message:
    >> "warning suggest use of -bind_at_load, as lazy binding may result
    >> in errors or different symbols being used"
    >> the build succeed and no executable is generated in the app
    >> package?!?
    >> The debug version is completely unstable.
    >>
    >> The samples embedded in the XMP SDK are perfectly working on my
    >> machine so I think XMP Libs I've compiled are OK.
    >>
    >> Is there anyone experienced in this domain?
    >>
    >>
    >> Thanks for your help
    >>
    >>
    >>
    >> Florent Lacheroy
    >> <florent.lacheroy...>
    >>
    >>
    >>
    >> _______________________________________________
    >> MacOSX-dev mailing list
    >> <MacOSX-dev...>
    >> http://www.omnigroup.com/mailman/listinfo/macosx-dev
    >>
    >
previous month september 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Go to today