Solved Can't find source file when building on Mac
-
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?
-
Hi,
Are you using the same casing in your .pro file as the file name you show ?
-
@SGaist Yes, the case matches.
-
What if you add
$$PWD/
before all your sources/header paths ? -
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. -
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 :)