ubuntu qtcreator is removing user files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtcreator-plugin-ubuntu |
Fix Released
|
Critical
|
Unassigned | ||
qtcreator-plugin-ubuntu (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
After run the qtcretor from my source root dir, some pre-compiled files disappear:
How to reproduce (qmake projects)
=======
1 - go inside any qmake source dir
2 - manually run qmake to create the necessary build files
3 - open the qtcreator project: qtcreator my-project.pro
4 - try to manually build the project: make
Expected:
--------------
The project build ok
Current Result
-------------------
The project fail to build due missing Makefile.
How to reproduce (cmake projects)
=======
1 - go inside any cmake project source dir
2 - create a build dir: mkdir build
3 - go inside build dir: cd build
4 - run cmake: cmake ../CMakeLists.txt
5 - open qtcreator from build dir: qtcreator ../CMakeLists.txt
6 - try to manually build the project: make
Expected:
--------------
The project build ok
Current Result
-------------------
The project fail to build due missing files.
Related branches
- Zoltan Balogh: Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 265 lines (+147/-10)6 files modifiedshare/qtcreator/ubuntu/scripts/qtc_chroot_cmake2 (+4/-1)
src/ubuntu/ubuntuapimode.cpp (+118/-4)
src/ubuntu/ubuntuapimode.h (+11/-0)
src/ubuntu/ubuntuconstants.h (+1/-1)
src/ubuntu/ubuntuwebmode.cpp (+10/-3)
src/ubuntu/ubuntuwebmode.h (+3/-1)
Changed in qtcreator-plugin-ubuntu: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in qtcreator-plugin-ubuntu: | |
status: | Confirmed → Fix Committed |
assignee: | nobody → zbenjamin (zeller-benjamin) |
status: | Fix Committed → Confirmed |
assignee: | zbenjamin (zeller-benjamin) → nobody |
status: | Confirmed → Won't Fix |
Changed in qtcreator-plugin-ubuntu: | |
status: | Won't Fix → Confirmed |
importance: | Medium → Critical |
Changed in qtcreator-plugin-ubuntu: | |
status: | Confirmed → Fix Committed |
Changed in qtcreator-plugin-ubuntu: | |
status: | Fix Committed → Fix Released |
The cause for this bug is a workaround we had to do in order to
get cmake projects compiling using the chroots. It is still required
to delete previously created buildfiles or cmake will fail with:
CMake Error at /usr/lib/ arm-linux- gnueabihf/ cmake/Qt5Core/ Qt5CoreConfig. cmake:27 (message):
The imported target "Qt5::Core" references the file
"/ usr/lib/ arm-linux- gnueabihf/ qt5/bin/ moc"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/ usr/lib/ arm-linux- gnueabihf/ cmake/Qt5Core/ Qt5CoreConfigEx tras.cmake"
but not all the files it references.