By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 2308 - tdevelop cannot create CMake hello world project
Summary: tdevelop cannot create CMake hello world project
Status: RESOLVED FIXED
Alias: None
Product: TDE
Classification: Unclassified
Component: non-core programs (show other bugs)
Version: R14.0.1 [Trinity]
Hardware: Other Linux
: P5 normal
Assignee: Michele Calgaro
URL:
Depends on:
Blocks: R14.0.1
  Show dependency treegraph
 
Reported: 2015-01-11 16:56 CST by Timothy Pearson
Modified: 2015-06-17 01:39 CDT (History)
6 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Pearson 2015-01-11 16:56:15 CST
When attempting to create a new project with the C++ CMake Hello World template, after clicking Finish, the project is not created and a popup with the following text appears:
"The file /<username>/tdeveloptest/CMakeLists.txt cannot be created."

The following console spew was noted:
tdevelop: [static bool KTempDir::removeDir(const TQString&)]  /tmp/tde-<username>/tdevelopX3ZILP/
tdevelop: Checking directory for remove /tmp/tde-<username>/tdevelopX3ZILP/
tdevelop: File /tmp/tde-<username>/tdevelopX3ZILP/ is DIRECTORY!
tdevelop: CHECKING /tmp/tde-<username>/tdevelopX3ZILP//.
tdevelop: CHECKING /tmp/tde-<username>/tdevelopX3ZILP//..
tdevelop: RMDIR dir /tmp/tde-<username>/tdevelopX3ZILP/

<popup dialog appeared here>

tdevelop: [static bool KTempDir::removeDir(const TQString&)]  /tmp/tde-<username>/tdevelopGGMlZZ/
tdevelop: Checking directory for remove /tmp/tde-<username>/tdevelopGGMlZZ/
tdevelop: File /tmp/tde-<username>/tdevelopGGMlZZ/ is DIRECTORY!
tdevelop: CHECKING /tmp/tde-<username>/tdevelopGGMlZZ//.
tdevelop: CHECKING /tmp/tde-<username>/tdevelopGGMlZZ//..
tdevelop: CHECKING /tmp/tde-<username>/tdevelopGGMlZZ//README
tdevelop: RECURSE: /tmp/tde-<username>/tdevelopGGMlZZ//README
tdevelop: Checking directory for remove /tmp/tde-<username>/tdevelopGGMlZZ//README
tdevelop: UNLINKING file /tmp/tde-<username>/tdevelopGGMlZZ//README
tdevelop: CHECKING /tmp/tde-<username>/tdevelopGGMlZZ//.
tdevelop: CHECKING /tmp/tde-<username>/tdevelopGGMlZZ//..
tdevelop: CHECKING /tmp/tde-<username>/tdevelopGGMlZZ//main.cpp
tdevelop: RECURSE: /tmp/tde-<username>/tdevelopGGMlZZ//main.cpp
tdevelop: Checking directory for remove /tmp/tde-<username>/tdevelopGGMlZZ//main.cpp
tdevelop: UNLINKING file /tmp/tde-<username>/tdevelopGGMlZZ//main.cpp
tdevelop: CHECKING /tmp/tde-<username>/tdevelopGGMlZZ//.
tdevelop: CHECKING /tmp/tde-<username>/tdevelopGGMlZZ//..
tdevelop: CHECKING /tmp/tde-<username>/tdevelopGGMlZZ//cmakesimple-CMakeLists.txt
tdevelop: RECURSE: /tmp/tde-<username>/tdevelopGGMlZZ//cmakesimple-CMakeLists.txt
tdevelop: Checking directory for remove /tmp/tde-<username>/tdevelopGGMlZZ//cmakesimple-CMakeLists.txt
tdevelop: UNLINKING file /tmp/tde-<username>/tdevelopGGMlZZ//cmakesimple-CMakeLists.txt
tdevelop: CHECKING /tmp/tde-<username>/tdevelopGGMlZZ//.
tdevelop: CHECKING /tmp/tde-<username>/tdevelopGGMlZZ//..
tdevelop: CHECKING /tmp/tde-<username>/tdevelopGGMlZZ//cmakesimple.png
tdevelop: RECURSE: /tmp/tde-<username>/tdevelopGGMlZZ//cmakesimple.png
tdevelop: Checking directory for remove /tmp/tde-<username>/tdevelopGGMlZZ//cmakesimple.png
tdevelop: UNLINKING file /tmp/tde-<username>/tdevelopGGMlZZ//cmakesimple.png
tdevelop: CHECKING /tmp/tde-<username>/tdevelopGGMlZZ//.
tdevelop: CHECKING /tmp/tde-<username>/tdevelopGGMlZZ//..
tdevelop: RMDIR dir /tmp/tde-<username>/tdevelopGGMlZZ/
Comment 1 Michele Calgaro 2015-06-14 03:52:37 CDT
Actually there are two issues:
1) creating the basic project from the template files
2) creating a valid TDevelop project file for the created basic project
Comment 2 Michele Calgaro 2015-06-14 05:37:50 CDT
Fixing point 1) is simple (already done locally).
Fixing point 2) is problematic. This is because after creating the basic project, cmake is invoked using the KDevelop3 generator. This is part of cmake and there is no equivalent TDevelop3 generator, nor there is an easy way to create one.

Probably the best way would be to revert some of the renaming done in tdevelop so to maintain 100% project file compatibility with KDevelop3. At the moment, tdevelop uses ".tdevelop" files instead of ".kdevelop" files and the main entity in such file is <tdevelop> instead of <kdevelop>.
Reverting changes so that tdevelop used ".kdevelop" files with a <kdevelop> entity would be enough to fix point 2) of the previous comment, while at the same time revert to (possibly) full compatibility with KDevelop3 project files.

Opinins welcomed.
Comment 3 Slávek Banko 2015-06-14 07:28:57 CDT
(In reply to Michele Calgaro from comment #2)
> Fixing point 1) is simple (already done locally).
> Fixing point 2) is problematic. This is because after creating the basic
> project, cmake is invoked using the KDevelop3 generator. This is part of
> cmake and there is no equivalent TDevelop3 generator, nor there is an easy
> way to create one.
> 
> Probably the best way would be to revert some of the renaming done in
> tdevelop so to maintain 100% project file compatibility with KDevelop3. At
> the moment, tdevelop uses ".tdevelop" files instead of ".kdevelop" files and
> the main entity in such file is <tdevelop> instead of <kdevelop>.
> Reverting changes so that tdevelop used ".kdevelop" files with a <kdevelop>
> entity would be enough to fix point 2) of the previous comment, while at the
> same time revert to (possibly) full compatibility with KDevelop3 project
> files.
> 
> Opinins welcomed.

Ensure compatibility with KDevelop3 is definitely a good idea.
Comment 4 Michele Calgaro 2015-06-14 22:28:54 CDT
Alright, then I will proceed reverting as commented above.
Comment 5 Michele Calgaro 2015-06-14 23:18:17 CDT
Commit 0656931 (master) and a02c867 (r14.0.x) fixed point 1) for all 5 cmake project templates and reinstate the qt3 cmake one.
Point 2) will be fixed in a separate commit.
Comment 6 Alex Couture 2015-06-15 17:51:09 CDT
Hi,

Any chances that this bug might be related to bug 2379 ?

Thank you!
-Alexandre
Comment 7 Michele Calgaro 2015-06-16 23:40:43 CDT
> Any chances that this bug might be related to bug 2379 ?
No, I would say definitely not.
Comment 8 Michele Calgaro 2015-06-17 01:38:29 CDT
Fixed in commits e044c54 & 2b3d2e3 (r14.1.x) and 8b9c0d2 & ef398b6 (r14.0.x).
Comment 9 Michele Calgaro 2015-06-17 01:39:45 CDT
Correction: 
Fixed in commits e044c54 & 2b3d2e3 (r14.1.x) and 8b9c0d2 & 640864f (r14.0.x).