Compiling Just One File.

Sergey Vidyuk sir.vestnik at gmail.com
Wed Sep 7 17:56:06 BST 2011


On Wednesday 07 September 2011 16:32:16 Andreas Pakulat wrote:
> On 07.09.11 20:59:25, Sergey Vidyuk wrote:
> > On Wednesday 07 September 2011 15:38:06 Andreas Pakulat wrote:
> > > On 07.09.11 14:31:52, Milian Wolff wrote:
> > > > On Tuesday 06 September 2011 23:26:20 Michael Hart wrote:
> > > > > LOL!
> > > > > 
> > > > >    I have been using kdevelop4 with cmake for sometime
> > > > >    now and
> > > > >    not until> >
> > > > > 
> > > > > yesterday did I ever have the need to compile just one
> > > > > specific C++
> > > > > file in my entire project of about twenty plus *.cpp files.
> > > > > I would
> > > > > simply press F8 key and be happy.
> > > > > 
> > > > > However, now I would like experiment with the content of
> > > > > just one
> > > > > C++ file; compile it but not build the entire project. How
> > > > > do I do
> > > > > this with kdevelop4?
> > > > 
> > > > I don't get it, do you want to compile a "hello-world"-style
> > > > file, i.e. without any external dependencies and such? Then
> > > > take a look at the "quick compile" external script which just
> > > > calls gcc on the file.> > 
> > > The CMake+Make support also allows to build individual object files,
> > > simply select the .cpp in the Project tree and hit Build. If you
> > > already have items in the build selection (the lower left list
> > > under the project tree view) then you'd have to remove those first
> > > since they override the current selection in the project tree (you
> > > can also just add the .cpp file there).
> > > 
> > > Andreas
> > > 
> > > 
> > > _______________________________________________
> > > kdevelop mailing list
> > > kdevelop at kdevelop.org
> > > https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop
> > 
> > Just tried it with one of my projects and it doesn't works for source
> > file in a subdirectory. Tried on master.
> > 
> > Kdevelop tried to execute
> > 
> > make file.o
> > 
> > in the build dir while this command should be executed in corresponding
> > subdir.
> 
> File a bugreport at bugs.kde.org, best with a small sample
> CMakeLists.txt that exhibits the problem.
> 
> Andreas
> 
> 
> _______________________________________________
> kdevelop mailing list
> kdevelop at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop

Done :)
https://bugs.kde.org/show_bug.cgi?id=281565

Sergey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20110907/a5519de0/attachment.sig>


More information about the KDevelop mailing list