Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. error: LNK1104: can not open the file 'libxml2.lib'
Qt 6.11 is out! See what's new in the release blog

error: LNK1104: can not open the file 'libxml2.lib'

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 4 Posters 1.1k 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.
  • A Offline
    A Offline
    aisak
    wrote on last edited by
    #1

    Hello,

    Making my .pro im having the next problem:

    "error: LNK1104: can not open the file 'libxml2.lib"

    My .pro:

    pro1.jpg

    Source from xml2.lib:

    pro2.jpg

    Any idea why im getting this error ?

    1 Reply Last reply
    0
    • nageshN Offline
      nageshN Offline
      nagesh
      wrote on last edited by
      #2

      @aisak library path is not correct..
      -L"library path"
      In path you are specified as win64/libxml2
      It will search for win64/libxml2/libxml2.lib
      Whereas your library exists in win64/libxml2.lib

      1 Reply Last reply
      0
      • A Offline
        A Offline
        aisak
        wrote on last edited by
        #3

        u mean this?:

        LIBS += -L"$$PWD/win64/" -lxml2

        doesn't work either.

        1 Reply Last reply
        0
        • nageshN Offline
          nageshN Offline
          nagesh
          wrote on last edited by
          #4

          @aisak does your current project (my.pro) has these library folder in PWD?

          1 Reply Last reply
          0
          • A Offline
            A Offline
            aisak
            wrote on last edited by aisak
            #5

            have it in the folder, but it doesnt appear in the QT tree:

            pro3.jpg

            Edited:

            Have added the library, right clicking on FmuPro folder ->add library -> External library -> select the library and it set the neccesary paths to .pro, anyway show the same error.

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

              Hi,

              Did you check the content of the generated Makefiles ?
              Did you check the build log to see if you where having strange path in there ?

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

              A 1 Reply Last reply
              0
              • SGaistS SGaist

                Hi,

                Did you check the content of the generated Makefiles ?
                Did you check the build log to see if you where having strange path in there ?

                A Offline
                A Offline
                aisak
                wrote on last edited by aisak
                #7

                @SGaist as u can see in the picture, haven't any Makefile, where can i see the log? should be the makefile hiden at any other folder ?

                I'm having the error just after click build, there is no time to generate anything.

                jsulmJ 1 Reply Last reply
                0
                • A aisak

                  @SGaist as u can see in the picture, haven't any Makefile, where can i see the log? should be the makefile hiden at any other folder ?

                  I'm having the error just after click build, there is no time to generate anything.

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @aisak said in error: LNK1104: can not open the file 'libxml2.lib':

                  Makefile

                  Makefiles are in the build folder

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    aisak
                    wrote on last edited by
                    #9

                    Here is the Makefile

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

                      There's no mention of libxml2 in it.

                      Did you do a full rebuild from scratch ?

                      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
                      • A aisak

                        Here is the Makefile

                        nageshN Offline
                        nageshN Offline
                        nagesh
                        wrote on last edited by
                        #11

                        @aisak looks like you need to upload Makefile.Debug/Release

                        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