April 10, 2012

pascal95abc pascal95abc
Lab Rat
121 posts

[solved] Moved Project folder

 

Hello,

I moved my project in an other folder, like this:
\QtSdk\Projects\Test\QtSdk\Projects\OwnProjects\Test

Now I have problems with compiling.

Can you tell me what files to update and to renew ?
Thank you

 Signature 

Qt 4.7.3
Symbian OS v9.4 / Symbian^1, S60 5th Edition
on N97

9 replies

April 10, 2012

Tobias Hunger Tobias Hunger
Robot Herder
3386 posts

You will need to rerun qmake, provided you use a project with a .pro-file.

Qt Creator has an option in the Build menu, if you are using that.

April 10, 2012

pascal95abc pascal95abc
Lab Rat
121 posts

There is already the problem when running qmake again.
I also tried to clean the project before copying it (2 files were removed), then I copied it, but then always this is the error log:
errror compiling

edit:
Another idea idea would be creating a new project in the new folder and copying the code into the files, but I am still looking for an easier solution.

 Signature 

Qt 4.7.3
Symbian OS v9.4 / Symbian^1, S60 5th Edition
on N97

April 10, 2012

pascal95abc pascal95abc
Lab Rat
121 posts

Now, I did the following:

Deleting these files:

  • .make.cache
  • ABLD.BAT
  • bld.inf
  • <projectname>.loc
  • <projectname>.pro.user
  • <projectname>.rss
  • <projectname>_exe.mmp
  • <projectname>_installer.pkg
  • <projectname>_reg.rss
  • <projectname>_stub.pkg
  • <projectname>_template.pkg
  • Makefile
  • Makefile_<projectname>_exe.mk

Then copying the project to the desired path and start the compiling.

It worked ! :)

I found out that these files should be deleted by rerunning the qmake after cleaning up the project and then looking at the date when they were changed or created.

 Signature 

Qt 4.7.3
Symbian OS v9.4 / Symbian^1, S60 5th Edition
on N97

April 11, 2012

pascal95abc pascal95abc
Lab Rat
121 posts

If you are interested in a clean executable for the projects, here you go:

<——————————

Sorry, code disappeared for no reason ?!
Look here [pastehtml.com]

——————————>

Hope it helps.

 Signature 

Qt 4.7.3
Symbian OS v9.4 / Symbian^1, S60 5th Edition
on N97

April 11, 2012

Tobias Hunger Tobias Hunger
Robot Herder
3386 posts

“make clean” should also remove all the generated files.

If you have your project in git (like we do with Qt Creator;-) and want to make sure to have no more files around that git does not know about you can do “git clean -fdx”, too.

April 11, 2012

pascal95abc pascal95abc
Lab Rat
121 posts

Hello,

I also tried clean via build’s menu but only 2 files were removed.
The files I mentioned above, are they removed when you run clean ? Then something is wrong with my SDK?!
However, the solution I wrote in a batch script should do this, too; whereby clicking a context popupmenu’s entry would be even nicer ;)

 Signature 

Qt 4.7.3
Symbian OS v9.4 / Symbian^1, S60 5th Edition
on N97

April 12, 2012

Tobias Hunger Tobias Hunger
Robot Herder
3386 posts

You can always add your script as a custom build step into your build configuration or define it as an external command (Tools->External->Configure), which can than get triggered via the UI.

April 12, 2012

pascal95abc pascal95abc
Lab Rat
121 posts

Thank you very much, this is great!
I also needed something like this for other tasks but I didn’t find it so I thought it was not possible, I also found out that project’s varialbes can be passed like, for me very important, the project filepath.

 Signature 

Qt 4.7.3
Symbian OS v9.4 / Symbian^1, S60 5th Edition
on N97

April 14, 2012

pascal95abc pascal95abc
Lab Rat
121 posts

If anyone is interested, I will translate my command line application into english and upload it.

 Signature 

Qt 4.7.3
Symbian OS v9.4 / Symbian^1, S60 5th Edition
on N97

 
  ‹‹ Screen Resolution      question about Qt Quick Shader (4.8) ››

You must log in to post a reply. Not a member yet? Register here!