Dear all,

I have a Qt project (Qt 5.0.2) that works well on Unix (Ubuntu 12.04). I am now trying to compile it under Windows (Win7, 64 bit, MinGw, Qt 5.0.2), but I get some weird errors. The project uses some static libraries (.a) and some source files of another project.

Here is the .pro:

Qt Code:
  1. TEMPLATE = app
  2.  
  3. TARGET = ugp3-population-inspector.exe
  4.  
  5. DEPENDPATH += . \
  6. ../../ \
  7. ../../Libs/Shared \
  8. ../../Libs/Log \
  9. ../../Libs/XmlParser \
  10. ../../Libs/Graph \
  11. ../../Libs/Shared/Exceptions \
  12. ../../Libs/Shared \
  13. ../../Libs/Log \
  14. ../../Libs/XmlParser/ \
  15. ../../Libs/Graph \
  16. ../../Libs/Constraints \
  17. ../../Frontends/ugp3/ \
  18. ../../Libs/EvolutionaryCore
  19.  
  20. INCLUDEPATH += . \
  21. ../../ \
  22. ../../Libs/Shared \
  23. ../../Libs/Log \
  24. ../../Libs/XmlParser \
  25. ../../Libs/Graph \
  26. ../../Libs/Constraints \
  27. ../../Frontends/ugp3/ \
  28. ../../Libs/EvolutionaryCore
  29.  
  30. LIBS += -L../../Libs/XmlParser/ \
  31. -L../../Libs/Shared/ \
  32. -L../../Libs/Log/ \
  33. -L../../Libs/Graph/ \
  34. -L../../Libs/Constraints/ \
  35. -L../../Frontends/ugp3/ \
  36. -L../../Libs/EvolutionaryCore/ \
  37. -Wl,--start-group ../../Libs/EvolutionaryCore/libEvolutionaryCore.a ../../Frontends/ugp3/libFrontendCommon.a ../../Libs/Constraints/libConstraints.a ../../Libs/Graph/libGraph.a ../../Libs/XmlParser/libXmlParser.a ../../Libs/Shared/libShared.a ../../Libs/Log/libLog.a -Wl,--end-group
  38.  
  39. # Input
  40.  
  41. FORMS += ugp3-population-inspector.ui \
  42. ugp3-entropic-distance.ui
  43.  
  44.  
  45. HEADERS = MicroGPApplication.h \
  46. MicroGPEntropicDistanceWindow.h \
  47. MicroGPMainWindow.h
  48.  
  49. SOURCES = Program.cc \
  50. Program.Run.cc \
  51. MicroGPEntropicDistanceWindow.cpp \
  52. MicroGPMainWindow.cpp \
  53. main.cpp
To copy to clipboard, switch view to plain text mode 

So, I will show you the errors I got, step-by-step. There are many issues, and this leads me to think that I am missing something important.

When I try to run qmake in the folder with the .pro, the first problem I get is:
WARNING: Failure to find: Program.cc
WARNING: Failure to find: Program.Run.cc
WARNING: Failure to find: Program.cc
WARNING: Failure to find: Program.Run.cc
So, it looks like qmake is not able to find the two files Program.*.cc , that are in the folder "../../Frontends/ugp3" that is added to the DEPENDPATH.

If I put the absolute path of the two files, I get other errors. For example, it appears that qmake is not generating the .h files from the .ui files specified in FORMS:

fatal error: ui_ugp3-entropic-distance.h: No such file or directory
I proceeded to manually create the two .h files, using uic:

uic ugp3-population-inspector.ui -o ui_ugp3-population-inspector.h
uic ugp3-entropic-distance.ui -o ui_ugp3-entropic-distance.h
So, the next error I get is:
fatal error: QFileDialog: No such file or directory
So, I guess there is something wrong from the start. Can you help me?

Thanks in advance :-D