Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Compile libraw on windows 7
Qt 6.11 is out! See what's new in the release blog

Compile libraw on windows 7

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
14 Posts 2 Posters 6.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #5

    It's for the pkg-config tool that is not standard on Windows but that you can install.

    Hence you need to add to LIBS the path and library to link to for libraw.

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    S 1 Reply Last reply
    0
    • SGaistS SGaist

      It's for the pkg-config tool that is not standard on Windows but that you can install.

      Hence you need to add to LIBS the path and library to link to for libraw.

      S Offline
      S Offline
      samdol
      wrote on last edited by
      #6

      @SGaist

      I think I added the path and library to LIBS as
      else:win32: LIBS += $$PWD/libraw/win32/libraw.a

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #7

        LIBS += -L$$PWD/libraw/win32/ -lraw

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        S 1 Reply Last reply
        1
        • SGaistS SGaist

          LIBS += -L$$PWD/libraw/win32/ -lraw

          S Offline
          S Offline
          samdol
          wrote on last edited by
          #8

          @SGaist
          The contents of libraw.pc.in is

          prefix=@prefix@
          exec_prefix=@exec_prefix@
          libdir=@libdir@
          includedir=@includedir@

          Name: libraw
          Description: Raw image decoder library (non-thread-safe)
          Requires: @PACKAGE_REQUIRES@
          Version: @PACKAGE_VERSION@
          Libs: -L${libdir} -lraw -lstdc++@PC_OPENMP@
          Cflags: -I${includedir}/libraw

          so I set
          INCLUDEPATH += $$PWD/libraw
          LIBS += -L$$PWD/libraw/win32/ -lraw -lstdc++
          but that gives me the same error.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #9

            Which version of MinGW did you use to build libraw ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            S 1 Reply Last reply
            0
            • SGaistS SGaist

              Which version of MinGW did you use to build libraw ?

              S Offline
              S Offline
              samdol
              wrote on last edited by
              #10

              @SGaist
              I used mingw 4.9.2.

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #11

                The one provided with Qt ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                S 2 Replies Last reply
                0
                • SGaistS SGaist

                  The one provided with Qt ?

                  S Offline
                  S Offline
                  samdol
                  wrote on last edited by
                  #12
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • SGaistS SGaist

                    The one provided with Qt ?

                    S Offline
                    S Offline
                    samdol
                    wrote on last edited by
                    #13

                    @SGaist
                    Yes, It came with 5.6.2

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #14

                      Can you check against the latest version of LibRaw ?

                      There might be a problem with their handling of the imported/exported symbol.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved