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. Problems with compiled libgit2 Library
QtWS25 Last Chance

Problems with compiled libgit2 Library

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 3 Posters 1.9k Views
  • 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.
  • F Offline
    F Offline
    Fuel
    wrote on last edited by
    #1

    I have Problems with my Library i compiled from libgit2 Sources. Maybe someone can help me. To compile i have everything done like described here https://libgit2.github.com/docs/guides/build-and-link/.

    First i used the static Library and then tried the dynamic Library, but both give me an "undefined Reference" Error. I used right Click in .pro File to add the Library to the Project. i selected the compiled .lib File (Windows) and set the Include Path.

    Then i wrote "git_libgit2_init()" in my main File to test it. But he says me that git_libgit2_init() is an undefined Reference. Im using MSVC 2017 on Windows.

    Somebody can explain that to me?

    I found this https://github.com/libgit2/libgit2/pull/749#issuecomment-6434565, but that doesnt work for me. I compiled with the -DSTDCALL=OFF Option.

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

      Hi,

      How is it related to Qt ?

      Things to check:

      • same compiler version ?
      • same architecture ?

      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
      2
      • F Offline
        F Offline
        Fuel
        wrote on last edited by
        #3

        I thought its maybe a Problem with QT Creator. Sorry, but im just a little bit sad about it. I hoped somebody can help me. Normally i get an "Undefined Reference" Error when he cant find the Library. Including is not the Problem.

        If not, its a Problem with the compiled Library itself.

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

          Did you proceed to the check I suggested ?

          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
          1
          • F Offline
            F Offline
            Fuel
            wrote on last edited by Fuel
            #5

            Compiler is fine and Architecure too. A Friend compiled the Lib and tested it in Visual Studio. He had no Problems. It seems im doing something wrong. I try it again and write later if it worked.

            My Settings... Problem still exists

            0_1516355958739_Unbenannt.png

            0_1516355963150_Unbenannt2.png

            aha_1980A 2 Replies Last reply
            0
            • F Fuel

              Compiler is fine and Architecure too. A Friend compiled the Lib and tested it in Visual Studio. He had no Problems. It seems im doing something wrong. I try it again and write later if it worked.

              My Settings... Problem still exists

              0_1516355958739_Unbenannt.png

              0_1516355963150_Unbenannt2.png

              aha_1980A Offline
              aha_1980A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on last edited by
              #6
              This post is deleted!
              1 Reply Last reply
              0
              • F Fuel

                Compiler is fine and Architecure too. A Friend compiled the Lib and tested it in Visual Studio. He had no Problems. It seems im doing something wrong. I try it again and write later if it worked.

                My Settings... Problem still exists

                0_1516355958739_Unbenannt.png

                0_1516355963150_Unbenannt2.png

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Hi @Fuel,

                I thought its maybe a Problem with QT Creator.

                If, at all, it may be a problem with QMake.

                Sorry, but im just a little bit sad about it. I hoped somebody can help me.

                We already trying to do this, but you need to provide us some more infos to help.

                If not, its a Problem with the compiled Library itself.

                That may also be, but please show us the compile log with the linker call.

                Regards

                1 Reply Last reply
                0
                • F Offline
                  F Offline
                  Fuel
                  wrote on last edited by
                  #8

                  Im an Idiot. I build it for x86 but need it for amd64. Problem is solved. Sorry and thanks.

                  1 Reply Last reply
                  1

                  • Login

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