re-running cmake with a different source
-
Hi, i never managed to deploy Qt, so i tried just getting the code to another computer, which used to work , but now it just throws this error, no idea how to deal with it
:-1: error: The source does not match the source used to
generate cache. Re-run cmake with a different source directory -
Hi, i never managed to deploy Qt, so i tried just getting the code to another computer, which used to work , but now it just throws this error, no idea how to deal with it
:-1: error: The source does not match the source used to
generate cache. Re-run cmake with a different source directoryYou somehow copied a build and/or source directory around and now the CMakeCache.txt points to another source and/or binary dir as you've calling it from. Remove the build dir and start from scratch,
-
Had the same problem today and I was going crazy here.
Just want to say thank you to Christian for the answer.
Hope that I'm not violating any guideline of the forum, but I'd like to provide pictorial example of what I've done on my environment (Ubuntu). Since this issue could be annoying, I wouldn't want anybody to run through the same problem of needing more instructions around the solution.
I have a bunch of projects on a git project and I moved the project directory to (let's say) my home directory:
$ pwd /home/ivanleoncz/github/c-cpp-exercises
Here are all projects along with their
build-*
directories:$ ll total 116 drwxrwxr-x 18 ivanleoncz ivanleoncz 4096 jul 30 20:41 ./ drwxrwxr-x 11 ivanleoncz ivanleoncz 4096 jul 8 19:46 ../ drwxrwxr-x 2 ivanleoncz ivanleoncz 4096 oct 22 14:27 Arrays/ drwxrwxr-x 2 ivanleoncz ivanleoncz 4096 jun 30 18:55 ArraysCalculations/ drwxrwxr-x 7 ivanleoncz ivanleoncz 4096 may 31 18:47 build-ArraysCalculations-Desktop-Debug/ drwxrwxr-x 7 ivanleoncz ivanleoncz 4096 oct 22 14:27 build-Arrays-Desktop-Debug/ drwxrwxr-x 7 ivanleoncz ivanleoncz 4096 jul 5 20:24 build-Calculator-cpp-Desktop-Debug/ drwxrwxr-x 7 ivanleoncz ivanleoncz 4096 jun 4 20:49 build-SizeOf-Desktop-Debug/ drwxrwxr-x 7 ivanleoncz ivanleoncz 4096 jul 30 22:03 build-strings-cpp-Desktop-Debug/ drwxrwxr-x 7 ivanleoncz ivanleoncz 4096 jul 30 22:06 build-strings-v2-cpp-Desktop-Debug/ drwxrwxr-x 2 ivanleoncz ivanleoncz 4096 jul 5 20:24 Calculator-cpp/ drwxrwxr-x 2 ivanleoncz ivanleoncz 4096 jun 30 18:46 CountDigitsFromString/ drwxrwxr-x 8 ivanleoncz ivanleoncz 4096 jul 24 22:51 .git/ -rw-rw-r-- 1 ivanleoncz ivanleoncz 376 jun 30 18:54 .gitignore drwxrwxr-x 2 ivanleoncz ivanleoncz 4096 jun 30 18:46 InputNumbersDynamic/ drwxrwxr-x 2 ivanleoncz ivanleoncz 4096 jun 30 18:46 IterateOverString/ -rw-rw-r-- 1 ivanleoncz ivanleoncz 35149 may 31 18:43 LICENSE -rw-rw-r-- 1 ivanleoncz ivanleoncz 49 may 31 20:41 README.md drwxrwxr-x 4 ivanleoncz ivanleoncz 4096 jun 30 18:54 SizeOf/ drwxrwxr-x 2 ivanleoncz ivanleoncz 4096 jul 30 22:15 strings-cpp/ drwxrwxr-x 2 ivanleoncz ivanleoncz 4096 jul 30 22:15 strings-v2-cpp/
I just deleted all
build-*
directories:$ rm -rf build-*
And for any of the projects, I just Rebuild them:
And running the project (CTRL+R) goes just fine.
-
Open your terminal then write the following commands:
flutter clean flutter pub get flutter run
How is this topic even related to flutter? It's not mentioned at all.
-
How is this topic even related to flutter? It's not mentioned at all.
-
@Pl45m4 another spam account posting on a long dead thread. I report at least three per day...
-
What's the point of posting random, unrelated sh!t?
I mean, what if I want to recover my lost BTC or want to buy some blue pills online?
How do one know what "services" they are offering? xD@Pl45m4 I might be overly biased but judging by the amount of random posts like this one (some of them are "I have the same problem" line but never followed if anyone wants to assist) I think someone is trying to employ LLM. testing new iterations perhaps. But I am biased, so might be wrong.
-
@Pl45m4 I might be overly biased but judging by the amount of random posts like this one (some of them are "I have the same problem" line but never followed if anyone wants to assist) I think someone is trying to employ LLM. testing new iterations perhaps. But I am biased, so might be wrong.
@artwaw said in re-running cmake with a different source:
some of them are "I have the same problem" line but never followed if anyone wants to assist
Don't overestimate the attitude and cleverness of the common forum user :)
Some "real" persons post that they have a similar problem and never come back to the topic again... -
@Pl45m4 another spam account posting on a long dead thread. I report at least three per day...
@artwaw said in re-running cmake with a different source:
@Pl45m4 another spam account posting on a long dead thread. I report at least three per day...
@Pl45m4 said in re-running cmake with a different source:
What's the point of posting random, unrelated sh!t?
How do one know what "services" they are offering? xDWhat typically is the case, is we get backlink spam - at some point a benign looking post is edited to add links to some unrelated thing. If it is really obvious from the start, we delete the post directly, otherwise we may wait some time for the "spammy nature" of the post to manifest itself. In any case we try to give people a fair chance, if for example they'd missed the point of the discussion, posting in the wrong place or w/e.