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.5k 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
    #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
                          • B bitsystem

                            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 Offline
                            mrjjM Offline
                            mrjj
                            Lifetime Qt Champion
                            wrote on last edited by
                            #21

                            @bitsystem
                            Hi
                            Before you try the project.
                            Please try to make a standard GUI application to see if your new kit is working

                            Also, all dependencies seems to have a .pro file to build them.

                            About the error
                            unresolved external symbol __imp__MessageBoxA

                            try to insert
                            win32:LIBS += -luser32

                            in the. pro file.

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

                              Perfect!
                              Now it seems build correctly with win32:LIBS += -luser32 instruction.

                              mryy you have been precious.

                              Thank you very much!

                              mrjjM 1 Reply Last reply
                              1
                              • B bitsystem

                                Perfect!
                                Now it seems build correctly with win32:LIBS += -luser32 instruction.

                                mryy you have been precious.

                                Thank you very much!

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

                                @bitsystem
                                Really ?
                                Good work!!

                                \o/

                                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