Menu

#545 Reusing built shipped libraries

v1.0_(example)
closed
5
2018-02-11
2018-02-08
No

So there are libraries shipped with GraphicksMagic so I have built it seamlessly. But those built libraries are not installed. How can I use them not just for building GraphicksMagick but for developing for Magick++ API?

Discussion

  • Bob Friesenhahn

    Bob Friesenhahn - 2018-02-08

    On Thu, 8 Feb 2018, Baykalov Pyotr wrote:

    So there are libraries shipped with GraphicksMagic so I have built it seamlessly. But those built libraries are not installed. How can I use them not just for building GraphicksMagick but for developing for Magick++ API?

    What operating system and compiler are you using?

    Bob

     
  • Baykalov Pyotr

    Baykalov Pyotr - 2018-02-08

    I am sorry for not mentionшng that. I am using W7 with MinGW w64, my configure command is:

    ../configure '--host=x86_64-w64-mingw32' '--disable-shared' --prefix=/usr/x86_64-w64-mingw32/sys-root/mingw CXXFLAGS="-flto -ffat-lto-objects -O3" && make && make install

    I use host option because I am using Cygwin's MinGW. Everything builds and installs fine without errors except that I am not getting the libraries.

     

    Last edit: Baykalov Pyotr 2018-02-08
    • Bob Friesenhahn

      Bob Friesenhahn - 2018-02-08

      On Thu, 8 Feb 2018, Baykalov Pyotr wrote:

      I am sorry for not mentionung. I am using W7 with MinGW w64, my configure command is:

      ../configure '--host=x86_64-w64-mingw32' '--disable-shared' --prefix=/usr/x86_64-w64-mingw32/sys-root/mingw CXXFLAGS="-flto -ffat-lto-objects -O3" && make

      I use host option because I am using Cygwin's MinGW. Everything installs and builds fine without errors except that I am not getting the libraries.

      So you checked /usr/x86_64-w64-mingw32/sys-root/mingw/usr/lib after
      'make install' and no static libraries were added by the install?

      Since you are using Cygwin, the paths would need to be viewed using
      the Cygwin shell (ls -l
      usr/x86_64-w64-mingw32/sys-root/mingw/usr/lib),
      or externally based on the real path that Cygwin is
      using.

      Bob

       
      • Baykalov Pyotr

        Baykalov Pyotr - 2018-02-09

        Excuse me one more time, I am confused now.
        I initially thought that GraphicksMagic has libraries included (libpng, libtiff, libwebp etc) because it was built without issues. Now I understand that it was built without issues because I already have had all these libraries installed by accident beforehand. Therefore original question does not make any sense (as GraphicksMagick package does not include these libraries).

        But now I have problem with GraphicsMagic library itself. Complete example:
        https://pastebin.com/dXtijW01
        This includes full output of configure, make, make install and compilation of demo program (line 1356, after the word "INSTALLED") which fails to link. I have also included output of other commands to make the situation more clear.

        Same for shared build:
        https://pastebin.com/Hjq0yN5C

        So: GM configures, builds and installs but library symbols are not available.

         

        Last edit: Baykalov Pyotr 2018-02-09
  • Baykalov Pyotr

    Baykalov Pyotr - 2018-02-10

    Close this bug please because I totally forgot about that linker flags should follow compiler flags.

    g++ `GraphicsMagick++-config --cxxflags --cppflags` ../Magick++/demo/button.cpp `GraphicsMagick++-config --ldflags --libs`
    

    I have no more problems. and those which I had were not caused by GraphicksMagic in any way.

     

    Last edit: Baykalov Pyotr 2018-02-10
  • Bob Friesenhahn

    Bob Friesenhahn - 2018-02-11
    • status: open --> closed
    • assigned_to: Bob Friesenhahn
     

Log in to post a comment.

MongoDB Logo MongoDB