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. Building Open-Sankoré on windows
Qt 6.11 is out! See what's new in the release blog

Building Open-Sankoré on windows

Scheduled Pinned Locked Moved Solved General and Desktop
qt 4.8.6
25 Posts 4 Posters 13.5k Views 4 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.
  • G GamalMohamed

    @JKSH
    Oh yes thanks :)
    I saw this thread before but it did benefit me a lot unfortuantely..

    Anyway I passed the above mentioned errors by changing my compiler to mingw32..but now I have this new error:

    Warning: corrupt .drectve at end of def file
    Warning: corrupt .drectve at end of def file
    Warning: corrupt .drectve at end of def file
    Warning: corrupt .drectve at end of def file
    Warning: corrupt .drectve at end of def file
    Warning: corrupt .drectve at end of def file
    Warning: corrupt .drectve at end of def file
    Warning: corrupt .drectve at end of def file
    Warning: corrupt .drectve at end of def file
    D:/2- Extra-circular work/RGB Internship/sources/Open-sankore sources/Project2/ThirdParty/xpdf/lib/win32/libxpdf.a(SplashFTFontEngine.o):SplashFTFontEngine.cc:(.text+0x66): undefined reference to `FT_Library_Version'
    D:/2- Extra-circular work/RGB Internship/sources/Open-sankore sources/Project2/ThirdParty/xpdf/lib/win32/libxpdf.a(SplashFTFontEngine.o):SplashFTFontEngine.cc:(.text+0xaf): undefined reference to `FT_Init_FreeType'
    D:/2- Extra-circular work/RGB Internship/sources/Open-sankore sources/Project2/ThirdParty/xpdf/lib/win32/libxpdf.a(SplashFTFontEngine.o):SplashFTFontEngine.cc:(.text+0x11a): undefined reference to `FT_Done_FreeType'
    C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld.exe: D:/2- Extra-circular work/RGB Internship/sources/Open-sankore sources/Project2/ThirdParty/xpdf/lib/win32/libxpdf.a(SplashFTFontEngine.o): bad reloc address 0x20 in section `.eh_frame'
    collect2.exe: error: ld returned 1 exit status
    

    Any idea how to handle this ?

    JKSHJ Offline
    JKSHJ Offline
    JKSH
    Moderators
    wrote on last edited by
    #14

    @GamalMohamed said:

    I know but I tried several times to follow these steps but in vain...

    Sorry, I didn't notice that you already posted the same link in your original post!

    Warning: corrupt .drectve at end of def file
    

    I'm not sure what these mean, I'm afraid...

    D:/2- Extra-circular work/RGB Internship/sources/Open-sankore sources/Project2/ThirdParty/xpdf/lib/win32/libxpdf.a(SplashFTFontEngine.o):SplashFTFontEngine.cc:(.text+0x66): undefined reference to `FT_Library_Version'
    D:/2- Extra-circular work/RGB Internship/sources/Open-sankore sources/Project2/ThirdParty/xpdf/lib/win32/libxpdf.a(SplashFTFontEngine.o):SplashFTFontEngine.cc:(.text+0xaf): undefined reference to `FT_Init_FreeType'
    D:/2- Extra-circular work/RGB Internship/sources/Open-sankore sources/Project2/ThirdParty/xpdf/lib/win32/libxpdf.a(SplashFTFontEngine.o):SplashFTFontEngine.cc:(.text+0x11a): undefined reference to `FT_Done_FreeType'
    C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld.exe: D:/2- Extra-circular work/RGB Internship/sources/Open-sankore sources/Project2/ThirdParty/xpdf/lib/win32/libxpdf.a(SplashFTFontEngine.o): bad reloc address 0x20 in section `.eh_frame'
    

    How did you build the FreeType and Xpdf libraries?

    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

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

      It looks like the ThirdParty repository provides some of the dependencies as pre-built lib files. Taking the build documentation as reference, they are likely built for Visual Studio 2008 which is not compatible with Visual Studio 2015 and even less MinGW.

      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
      • JKSHJ JKSH

        @GamalMohamed said:

        I know but I tried several times to follow these steps but in vain...

        Sorry, I didn't notice that you already posted the same link in your original post!

        Warning: corrupt .drectve at end of def file
        

        I'm not sure what these mean, I'm afraid...

        D:/2- Extra-circular work/RGB Internship/sources/Open-sankore sources/Project2/ThirdParty/xpdf/lib/win32/libxpdf.a(SplashFTFontEngine.o):SplashFTFontEngine.cc:(.text+0x66): undefined reference to `FT_Library_Version'
        D:/2- Extra-circular work/RGB Internship/sources/Open-sankore sources/Project2/ThirdParty/xpdf/lib/win32/libxpdf.a(SplashFTFontEngine.o):SplashFTFontEngine.cc:(.text+0xaf): undefined reference to `FT_Init_FreeType'
        D:/2- Extra-circular work/RGB Internship/sources/Open-sankore sources/Project2/ThirdParty/xpdf/lib/win32/libxpdf.a(SplashFTFontEngine.o):SplashFTFontEngine.cc:(.text+0x11a): undefined reference to `FT_Done_FreeType'
        C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld.exe: D:/2- Extra-circular work/RGB Internship/sources/Open-sankore sources/Project2/ThirdParty/xpdf/lib/win32/libxpdf.a(SplashFTFontEngine.o): bad reloc address 0x20 in section `.eh_frame'
        

        How did you build the FreeType and Xpdf libraries?

        G Offline
        G Offline
        GamalMohamed
        wrote on last edited by
        #16

        @JKSH
        There's a .pro file found in the repo: https://github.com/Sankore/Sankore-ThirdParty
        I used it to compile the project using Qt-creator (mingw32-Qt 4.8.6) and then put the build files in the same directory with source files..
        Same thing done for xpdf..

        @SGaist
        I didn't use any pre-built lib files as far I can see...Have a look at the files i use:
        https://goo.gl/Xv4mbV

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

          I didn't say you did: the repository provides them. Look at the microsoft folder.

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

          G 1 Reply Last reply
          0
          • SGaistS SGaist

            I didn't say you did: the repository provides them. Look at the microsoft folder.

            G Offline
            G Offline
            GamalMohamed
            wrote on last edited by
            #18

            @SGaist
            I saw them..but I think the linker isn't complaining from them, is it? :/
            These errors are from xpdf and freetype..

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

              xpdf depends on freetype so if you haven't built it that's why you are getting the missing symbols.

              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
              • G GamalMohamed

                @JKSH
                There's a .pro file found in the repo: https://github.com/Sankore/Sankore-ThirdParty
                I used it to compile the project using Qt-creator (mingw32-Qt 4.8.6) and then put the build files in the same directory with source files..
                Same thing done for xpdf..

                @SGaist
                I didn't use any pre-built lib files as far I can see...Have a look at the files i use:
                https://goo.gl/Xv4mbV

                JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on last edited by
                #20

                @GamalMohamed said:

                I used it to compile the project using Qt-creator (mingw32-Qt 4.8.6) and then put the build files in the same directory with source files..
                Same thing done for xpdf..

                You also need to tell the linker exactly which library files to use. Just putting the files in the same folder is not enough.

                In your .pro file, you need something like LIBS += -lfreetype (see https://github.com/Sankore/Sankore-ThirdParty/blob/master/libs.pri ). I'm guessing that you got the "Undefined reference" errors because this line is missing.

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  GamalMohamed
                  wrote on last edited by
                  #21

                  FINAAAAAAAAAAALYYYYYYY IT BUILT & RAN !
                  Thnx 2 all of u guys :)

                  mrjjM JKSHJ 2 Replies Last reply
                  1
                  • G GamalMohamed

                    FINAAAAAAAAAAALYYYYYYY IT BUILT & RAN !
                    Thnx 2 all of u guys :)

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #22

                    @GamalMohamed
                    good work :)

                    so u made it compile with mingw?

                    Any change to share this setup? on git or something like that.

                    1 Reply Last reply
                    1
                    • G GamalMohamed

                      FINAAAAAAAAAAALYYYYYYY IT BUILT & RAN !
                      Thnx 2 all of u guys :)

                      JKSHJ Offline
                      JKSHJ Offline
                      JKSH
                      Moderators
                      wrote on last edited by
                      #23

                      @GamalMohamed said:

                      FINAAAAAAAAAAALYYYYYYY IT BUILT & RAN !
                      Thnx 2 all of u guys :)

                      Congratulations! :) What was the secret?

                      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                      1 Reply Last reply
                      2
                      • G Offline
                        G Offline
                        GamalMohamed
                        wrote on last edited by GamalMohamed
                        #24

                        The Secret is simple :)
                        I used VS2008 to build the project and it ran like magic :D

                        Concerning the other approaches that are available on long term: (if anyone interested :) )

                        • It's too hard to be built on Qt-creator using mingw (even if we use qt4.8 kit) as Sankoré depends on external libraries that are very hard (and maybe impossible!) to be built using mingw..

                        • Also on VS2015 it's also too hard as it uses modules that have been removed from Qt5.6 or 5.7 like phonon, QtWebkit, QFtp, ...etc

                        So,any of these 2 methods needs a "hard & deep Porting operation" to be able to build and run Sankoré on it using Qt5..

                        1 Reply Last reply
                        0
                        • JKSHJ Offline
                          JKSHJ Offline
                          JKSH
                          Moderators
                          wrote on last edited by
                          #25

                          Thanks for sharing! All the best with your project

                          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                          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