Unable to build DiffImg project
-
@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.exeThe build docs for linux mentions Qt4 so I assume its that version.
-
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.
-
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 :)
-
@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.
-
@bitsystem
you tried to compile or own version of Qt ? -
@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) -
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..
-
@bitsystem
Hi
Before you try the project.
Please try to make a standard GUI application to see if your new kit is workingAlso, all dependencies seems to have a .pro file to build them.
About the error
unresolved external symbol __imp__MessageBoxAtry to insert
win32:LIBS += -luser32in the. pro file.
-
@bitsystem
Really ?
Good work!!\o/