Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [Moved] qmake not generating object files
Forum Updated to NodeBB v4.3 + New Features

[Moved] qmake not generating object files

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 1 Posters 2.9k Views 1 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.
  • V Offline
    V Offline
    vicapow
    wrote on last edited by
    #1

    Hello all,

    I'm got a project that contains a folder called src/ and inside src/ is a src.pri file that adds all the files in src/ to the appropriate HEADERS and SOURCES qmake variables. it works for that project, but what I'm trying to do is create an example folder, (ie, projectroot/examples/ ) and create another project that uses the source from the parent project.

    I use include(../../src/src.pri) and everything seems to build correctly until it starts to link. It can't find the object files. i have my OBJECTS_DIR variable set to tmp/obj , but the only files that end up inside it are moc_* files. my examples .pro file looks exactly like my root project's .pro file except i've changed the relative path's as needed (for example, RESOURCES = ../../resources/resources.qrc )

    can any offer me any advice on how to fix this?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vicapow
      wrote on last edited by
      #2

      after a few hours, i finally found the my error. my .pri file was correct.

      example .pri file
      SOURCES += source1.cpp
      source2.cpp
      source3.cpp

      example1.pro should have something in it like this but i forgot the '+'
      SOURCES += example1.cpp

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved