-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans  .- Knowledge Base  . 

kdeapp-template

   0.4  

KDE Development Tool

Score 53%
kdeapp-template
zoom


kdeapp-template
zoom


Downloads:  229
Submitted:  Oct 19 2004

Description:

This is a very simple template for KDE applications.

By very simple I mean not only is it very simple to use, but it's appropriate pretty much only for simple KDE applications. :-(

Basically, it includes a Makefile, a sample .ui file and implementation, and a file that creates the KApplication and sample widget for you.

The Makefile handles the following for you:

* Automatic dependency tracking (it's what the hidden .d files are). This also means that .moc files should be generated before any file that #includes them is built, and .cpp and .h files are generated from .ui files as necessary.
* Automatic .ui detection. What this means is that if you don't specify otherwise, the Makefile will assume all .ui files in the current directory are necessary for the program.
* Automatically generates moc files for .ui files.
* Makefile includes install and uninstall targets, which do nothing more than install and remove the target from the KDE binary directory.

Note that since it is just a Makefile, the template has a few limitations. .h and .cpp files generated from .ui files will have the same basename (foo.ui => foo.h and foo.cpp), and likewise for .moc files (foo.h => foo.moc, foo.cpp depends on foo.moc). I don't think this is really a problem in practice though.

Also, the Makefile is *very* dependant on the GNU version of make (if you don't know what I'm talking about, you probably have GNU make).

Indeed, I would ask you to use this template for your development *ONLY*, and then convert to autotools or qmake for release for portability reasons. Not to mention that autotools-based KDE build system includes support for niceties as documentation and translation support, icon handling, building of libraries instead of apps, and other fun things that I haven't done.

On second thought, the only reason I'm submitting this instead of having you use qmake is because of the rather quiet output ;-)




Changelog:

0.4: Initial release. Builds, installs, and uninstalls programs, but doesn't handle much else.




LicenseGPL
Send to a friend
Subscribe
Other  Apps  from pynm0001
Report inappropriate content



-

 SuSE 9.1 Pro 64bit

 
 by jasko22 on: Nov 25 2004
 
Score 50%

Ther is a problem while compaling this program under suse Linux 9.1 Pro 64bit.

jasmin@jasmin:~/public_html/c_c++/kde3/kdeapptemplate-0.4> make
Generating mainwidget.moc
Generating mainwidgetbase.h
cc1plus: error: CPU you selected does not support x86-64 instruction set
cc1plus: error: CPU you selected does not support x86-64 instruction set
cc1plus: error: CPU you selected does not support x86-64 instruction set
cc1plus: error: CPU you selected does not support x86-64 instruction set
Generating mainwidgetbase.cpp
cc1plus: error: CPU you selected does not support x86-64 instruction set
cc1plus: error: CPU you selected does not support x86-64 instruction set
Compiling mainwidgetbase.o
cc1plus: error: CPU you selected does not support x86-64 instruction set
cc1plus: error: CPU you selected does not support x86-64 instruction set
make: *** [mainwidgetbase.o] Erreur 1

When i changed Makefile :
- Put CPU=i386 in comment
- and CXXFLAGS = -g -pipe -Wall,
i got this :
jasmin@jasmin:~/public_html/c_c++/kde3/kdeapptemplate-0.4> make
Compiling mainwidgetbase.o
Compiling kdeapp.o
Compiling mainwidget.o
Compiling mainwidgetbase_moc.o
Linking kdeapp
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld: escamotage incompatible /usr/lib/qt3/lib/libqt-mt.so lors de la recherche de -lqt-mt
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld: ne peut trouver -lqt-mt
collect2: ld returned 1 exit status
make: *** [kdeapp] Erreur 1

So i did this :
g++ -o kdeapp -L/usr/lib/qt3/lib64 -L/opt/kde3/lib64 kdeapp.o mainwidget.o mainwidgetbase.o mainwidgetbase_moc.o -lkdeui


Reply to this

Add commentBack






-
-
How do you like Plasma 5?
 The best KDE Desktop ever.
 Definitely a nice improvement.
 Not decided yet. Haven't tried it yet.
 I do not like some of the changes.
 KDE is taking the wrong way.
 I am still sticking with KDE 3.5.
 I have no opinion, but wanted to vote anyway.

resultmore
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2003-2014 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.