Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Can't find source file when building on Mac

Can't find source file when building on Mac

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 2 Posters 652 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.
  • K Offline
    K Offline
    kitfox
    wrote on last edited by
    #1

    I have an app I've been developing on a windows machine, and am now trying to see if I can get it to compile on Mac. However, when I try to build within Qt Creator on Mac, I get an error message:

    :-1: error: No rule to make target `math/BezierCurve.cpp', needed by `BezierCurve.o'. Stop.

    This file exists in the subdirectory where it ought to be, and the build process seems to be able to find other files. The first time I tried to compile, the /math directory was missing, but even after adding it, this keeps happening.

    How would I get Qt to find this file?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Are you using the same casing in your .pro file as the file name you show ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      K 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Are you using the same casing in your .pro file as the file name you show ?

        K Offline
        K Offline
        kitfox
        wrote on last edited by
        #3

        @SGaist Yes, the case matches.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          What if you add $$PWD/ before all your sources/header paths ?

          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
          0
          • K Offline
            K Offline
            kitfox
            wrote on last edited by
            #5

            Prepending that to math/BezierCurve.cpp in the .pro file let me get past that error and to the real issue causing the problem - an included file has not included <math.h>. One I fixed that, I didn't need the $$PWD/ anymore.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Good

              Since you have it building now, please mark the thread as solved using the "Topic Tools" button so that other forum uses may know a solution has been found :)

              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
              0

              • Login

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