Results 1 to 2 of 2

Thread: Weird errors when compiling project (working on Linux) under Win7 64-bit

  1. #1
    Join Date
    Apr 2013
    Posts
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Question Weird errors when compiling project (working on Linux) under Win7 64-bit

    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

  2. #2
    Join Date
    Apr 2013
    Posts
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Weird errors when compiling project (working on Linux) under Win7 64-bit

    Just to wrap things up, I managed to solve the problem by installing Qt 5.1.1 along with mingw 4.8, and re-compiling everything with mingw 4.8

    Now I have another issue :-P but I think it deserves a second thread, since it's completely different.

Similar Threads

  1. Compiling a project from linux in windows
    By matulik in forum Qt Tools
    Replies: 2
    Last Post: 6th January 2013, 12:49
  2. Replies: 2
    Last Post: 15th February 2010, 06:42
  3. errors with compiling qt-embedded-linux-opensource-4.4.3
    By dycjiaoda in forum Installation and Deployment
    Replies: 4
    Last Post: 17th April 2009, 15:56
  4. Compiling Linux project on Mac
    By December in forum Newbie
    Replies: 2
    Last Post: 25th March 2007, 04:25

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.