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. Unable to build DiffImg project
Forum Updated to NodeBB v4.3 + New Features

Unable to build DiffImg project

Scheduled Pinned Locked Moved Solved 3rd Party Software
23 Posts 4 Posters 8.2k Views 2 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.
  • B Offline
    B Offline
    bitsystem
    wrote on last edited by bitsystem
    #1

    Hi,
    I'm trying to build DiffImg project (https://sourceforge.net/projects/diffimg/) without luck. I've got many errors so I don't know if I'm wrong about use or version of QT I'm using.
    Can you help me?

    mrjjM 1 Reply Last reply
    0
    • B bitsystem

      Hi,
      I'm trying to build DiffImg project (https://sourceforge.net/projects/diffimg/) without luck. I've got many errors so I don't know if I'm wrong about use or version of QT I'm using.
      Can you help me?

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

      hi and welcome

      It is kinda hard to help you when there is no
      1:
      the actual errors ( at least some of them )
      2:
      What platform and Qt version and the compiler you try with. Linux ;)?
      3:
      It needs OpenCV
      Did you download that external library , and made sure it matches the compiler you are using or
      did you compile it yourself ?

      1 Reply Last reply
      2
      • B Offline
        B Offline
        bitsystem
        wrote on last edited by
        #3

        Well, I'm using Windows 8.1.

        I'm using QT 4.8.6. Furthermore, I've downloaded mingw32 and I've setted that tool as compiler.

        Actually, my error is:
        process_begin: CreateProcess(NULL, cp c:\Qt\4.8.6\translations\qt_fr.qm ../lang/, ...) failed.
        make (e=2): The system cannot find the file specified.

        mrjjM 1 Reply Last reply
        1
        • B bitsystem

          Well, I'm using Windows 8.1.

          I'm using QT 4.8.6. Furthermore, I've downloaded mingw32 and I've setted that tool as compiler.

          Actually, my error is:
          process_begin: CreateProcess(NULL, cp c:\Qt\4.8.6\translations\qt_fr.qm ../lang/, ...) failed.
          make (e=2): The system cannot find the file specified.

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

          @bitsystem said in Unable to build DiffImg project:

          mingw32

          Are you using an external mingw compiler ?
          (as in, not the one that comes with Qt ? )

          And what about openCV ?
          Did you compile it yourself ?

          1 Reply Last reply
          2
          • B Offline
            B Offline
            bitsystem
            wrote on last edited by bitsystem
            #5

            I'm new with QT and I'm sorry for my simple question..but..
            As far as I know, QT doesn't provide any compiler.

            It suggest me to use VC++ runtime (I've Visual studio), but in that case I get many other errors.

            Searching on google, someone suggest me to download mingw (I don't remember where I did take it).
            In fact, after use that tool, I've got one error only.

            mrjjM 1 Reply Last reply
            0
            • B bitsystem

              I'm new with QT and I'm sorry for my simple question..but..
              As far as I know, QT doesn't provide any compiler.

              It suggest me to use VC++ runtime (I've Visual studio), but in that case I get many other errors.

              Searching on google, someone suggest me to download mingw (I don't remember where I did take it).
              In fact, after use that tool, I've got one error only.

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

              @bitsystem
              Hi
              the mingw Qt comes with compiler and debugger :)
              https://download.qt.io/archive/qt/4.8/4.8.6/qt-opensource-windows-x86-mingw482-4.8.6-1.exe
              ( or at least in 5.x series. :)

              Sorry
              process_begin: CreateProcess(NULL, cp c:\Qt\4.8.6\translations\qt_fr.qm ../lang/, ...) failed.

              not sure what that is.

              1 Reply Last reply
              2
              • B Offline
                B Offline
                bitsystem
                wrote on last edited by
                #7

                I really would appreciate if you can provide me info in order to compile successfully this project:
                https://sourceforge.net/projects/diffimg/

                Can you help me?

                mrjjM 1 Reply Last reply
                1
                • B bitsystem

                  I really would appreciate if you can provide me info in order to compile successfully this project:
                  https://sourceforge.net/projects/diffimg/

                  Can you help me?

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

                  @bitsystem
                  The readme says

                  • Windows (tested on XP/Seven x64)

                  Opencv and qwt are bundled for practicality

                  Use qtcreator, cmake or the Visual Qt plugin
                  There a NSI script for building a setup.exe file in the setup directory

                  But it fails to mention which visual studio it expects and Qt 4.8.X seems to want 2008 or 2010
                  https://download.qt.io/official_releases/qt/4.8/4.8.7/

                  I dont think mingw is supported at all.
                  It needs the following libs which seems more happy about VS than mingw on windows.
                  alt text

                  I only have vs2015 installed and that did not work well as i only have Qt5.X installed so tons of
                  Qt4->Qt5 errors.

                  So to build it, i think you need a working Qt4.8.7 + visual studio 2010 installed.
                  (or spend the time porting it to newer Qt + vs compiler)

                  You could also compile your own Qt with other vs compiler.
                  https://stackoverflow.com/questions/32848962/how-to-build-qt-4-8-6-with-visual-studio-2015-without-official-support

                  What VS do you have installed?

                  1 Reply Last reply
                  2
                  • B Offline
                    B Offline
                    bitsystem
                    wrote on last edited by
                    #9

                    I have VS 2015

                    mrjjM 1 Reply Last reply
                    0
                    • B bitsystem

                      I have VS 2015

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

                      @bitsystem

                      Ok, with Qt 4.8.6/7 ?
                      Unless you want to port it to Qt5, then you will need a Qt4 that works with vs2015
                      There is none to download. so you must build it yourself and i just tried and it gave errors so
                      might be up hill.

                      Any change you can get vs2010 ?

                      1 Reply Last reply
                      0
                      • B Offline
                        B Offline
                        bitsystem
                        wrote on last edited by
                        #11

                        Well, It seems I Need to install Vs 2010 in order to build the project. Ok, I'll try to install this version and for sure I'll tell you if I'll solve the issue. Thank you very much.

                        mrjjM 1 Reply Last reply
                        0
                        • B bitsystem

                          Well, It seems I Need to install Vs 2010 in order to build the project. Ok, I'll try to install this version and for sure I'll tell you if I'll solve the issue. Thank you very much.

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

                          @bitsystem
                          Well it will be easier as Qt4.8.X has a vs2010 version
                          so with a bit of luck. it will just work.
                          https://download.qt.io/official_releases/qt/4.8/4.8.7/qt-opensource-windows-x86-vs2010-4.8.7.exe

                          The build docs for linux mentions Qt4 so I assume its that version.

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

                            Hi,

                            Qt 4 is really not that hard to compile on Windows, you should go on with VS2015 and build the whole thing.

                            Depending on what you need that project for, there might be more recent alternatives.

                            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
                            • B Offline
                              B Offline
                              bitsystem
                              wrote on last edited by
                              #14

                              SGaist, what do you mean?
                              Simply, I need to build and run the project I've linked.
                              As I've already saym I've VS 2015 installed, however it seems impossible to build that project because many errors occurs (please, see all thread).

                              If you are right, you should be able to compile DiffImg project, if so, please, tell me how you do this :)

                              jsulmJ 1 Reply Last reply
                              0
                              • B bitsystem

                                SGaist, what do you mean?
                                Simply, I need to build and run the project I've linked.
                                As I've already saym I've VS 2015 installed, however it seems impossible to build that project because many errors occurs (please, see all thread).

                                If you are right, you should be able to compile DiffImg project, if so, please, tell me how you do this :)

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

                                @bitsystem You're using Qt 4 this is not working with VS2015 as it was built with an older VS (different Microsoft compiler are not compatible with each other). @SGaist suggested you to compile Qt 4 by yourself with VS2015 if you want to use VS2015.

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

                                1 Reply Last reply
                                2
                                • B Offline
                                  B Offline
                                  bitsystem
                                  wrote on last edited by bitsystem
                                  #16

                                  I've tried to follow the suggestion by mrjj without luck.

                                  The type of errors changes, but there's no way to build correctly the code.

                                  Visual Studio 2010
                                  QT 4.8.7

                                  Nothing to do. I'm sorry. However, thank everyone for helping me.

                                  mrjjM 1 Reply Last reply
                                  0
                                  • B bitsystem

                                    I've tried to follow the suggestion by mrjj without luck.

                                    The type of errors changes, but there's no way to build correctly the code.

                                    Visual Studio 2010
                                    QT 4.8.7

                                    Nothing to do. I'm sorry. However, thank everyone for helping me.

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

                                    @bitsystem
                                    you tried to compile or own version of Qt ?

                                    1 Reply Last reply
                                    0
                                    • B Offline
                                      B Offline
                                      bitsystem
                                      wrote on last edited by
                                      #18

                                      I've tried to compile the project by using VC++ 2010 compiler and QT 4.8.7 which I've downloaded yesterday..

                                      mrjjM 1 Reply Last reply
                                      1
                                      • B bitsystem

                                        I've tried to compile the project by using VC++ 2010 compiler and QT 4.8.7 which I've downloaded yesterday..

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

                                        @bitsystem
                                        That should work pretty ok.
                                        You are not showing the actual errors you get so its hard to see if we are close or far,far away.

                                        You did install the Qt 4.8 - 2010 version yes?
                                        (qt-opensource-windows-x86-vs2010-4.8.7.exe)

                                        1 Reply Last reply
                                        0
                                        • B Offline
                                          B Offline
                                          bitsystem
                                          wrote on last edited by
                                          #20

                                          Ok, I'll tell you every step I've done:

                                          1 - Build on root project with error: cannot open file 'opencv_imgproc.lib'

                                          2 - So, manually I go on 3rdparty folder and copy all *.lib files within "debug" folder I've defined, then I try to build again, but I get another error: cannot open file z.lib.

                                          3 - I notice that doesn't exists any z.lib, instead I've a library which name is zlib.lib. So, manually, I open Makefile.apps.Debug file, and replace z.lib occurence with zlib.lib. Then, I try to build one time again and I get two errors:

                                          tiff.lib(tif_win32.obj) : error LNK2019: unresolved external symbol __imp__MessageBoxA@16 referenced in function _Win32WarningHandler

                                          tiff.lib(tif_win32.obj) : error LNK2019: unresolved external symbol __imp__MessageBoxA@16 referenced in function _Win32WarningHandler

                                          So, at this poin I really don't know what could I try again..
                                          3_1498577077201_4.PNG 2_1498577077200_3.PNG 1_1498577077200_2.PNG 0_1498577077200_1.PNG

                                          mrjjM 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