Developing with Kdevelop
-
evster
- Gnoblar
- Posts: 13
- Joined: Mon Aug 01, 2005 7:33 pm
Developing with Kdevelop
Hi,
I have worked through most of the tutorials using just a text editor. I want to use Kdevelop now before I start into anything big. Whenever I create a project I get a whole pile of files created in the directory. Which files do I need to edit for it to compile and run properlly??
I have worked through most of the tutorials using just a text editor. I want to use Kdevelop now before I start into anything big. Whenever I create a project I get a whole pile of files created in the directory. Which files do I need to edit for it to compile and run properlly??
-
stodge
- Goblin
- Posts: 217
- Joined: Thu Oct 24, 2002 4:12 am
- x 1
-
Emmeran
- Goblin
- Posts: 272
- Joined: Wed Jun 02, 2004 11:47 am
- Location: Erlangen
-
Olex
- Hobgoblin
- Posts: 593
- Joined: Fri Apr 08, 2005 6:08 pm
- Location: WA, USA
I use KDevelop as it is, I don't mind the files, and live just as happily. I have been developing under KDevelop for a little bit now.
About the files: generally, you want all of them that are created during first step. But if you are not sure, you can run "distclean" command and that would clean up most of the files, majority is pretty small in size.
if you give some more details about what bothers you I would be able to answer in more details.
About the files: generally, you want all of them that are created during first step. But if you are not sure, you can run "distclean" command and that would clean up most of the files, majority is pretty small in size.
if you give some more details about what bothers you I would be able to answer in more details.
-
evster
- Gnoblar
- Posts: 13
- Joined: Mon Aug 01, 2005 7:33 pm
-
Olex
- Hobgoblin
- Posts: 593
- Joined: Fri Apr 08, 2005 6:08 pm
- Location: WA, USA
"Project"->"Project Options"->"Configure Options"->Tag: "C/C++ Preprocessor flags"
Have you checked the manual for KDevelop?
http://docs.kde.org/development/en/kdevelop/kdevelop/
Have you checked the manual for KDevelop?
http://docs.kde.org/development/en/kdevelop/kdevelop/
-
evster
- Gnoblar
- Posts: 13
- Joined: Mon Aug 01, 2005 7:33 pm
ok, thats what I figured...and so I have tried that.
Am I right in putting this in there
Am I right in putting this in there
Code: Select all
$(shell pkg-config --cflags OGRE)-
Olex
- Hobgoblin
- Posts: 593
- Joined: Fri Apr 08, 2005 6:08 pm
- Location: WA, USA
I don't know if that works. Did it?evster wrote:ok, thats what I figured...and so I have tried that.
Am I right in putting this in thereCode: Select all
$(shell pkg-config --cflags OGRE)
This is how I do it sometimes:
Code: Select all
'pkg-config --cflags OGRE'-
evster
- Gnoblar
- Posts: 13
- Joined: Mon Aug 01, 2005 7:33 pm
I tried both and and I still get the compile errors.
I actually get the following errors when it tries to configure
I'm not sure where the log is
Code: Select all
'pkg-config --cflags OGRE'Code: Select all
pkg-config --cflags OGREI actually get the following errors when it tries to configure
Code: Select all
cd '/home/evan/workspace/test/debug' && CPPFLAGS="'pkg-config --cflags OGRE'" CXXFLAGS="-O0 -g3" "/home/evan/workspace/test/configure" --enable-debug=full
installing -c
checking whether build environment is sane... yes
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
*** Exited with status: 77 ***
-
sergey akifiev
- Kobold
- Posts: 34
- Joined: Mon Feb 09, 2004 7:56 am
you should put this (pkg-config --cflags OGRE) in backquotes. like this:
also try this command in shell to see if it produces any usefull output.
Code: Select all
`pkg-config --cflags OGRE`
-
evster
- Gnoblar
- Posts: 13
- Joined: Mon Aug 01, 2005 7:33 pm
-
evster
- Gnoblar
- Posts: 13
- Joined: Mon Aug 01, 2005 7:33 pm
-
Emmeran
- Goblin
- Posts: 272
- Joined: Wed Jun 02, 2004 11:47 am
- Location: Erlangen
maybe, I didn't use them for a while because of problems with my radeon card on linux, what caused me to change to windows again for a while till the drivers get better. I'm not sure if they simple to port, but lets have a look:
it's based on php. you need this 2 files in your projects root directory:
http://emmeran.corvusmedia.de/linuxbuild.rar
and then you have one yourProject.PROJECT file for each project:
for example I had a little lib with tools. the project is called Tools:
Tools.PROJECT:
here a little explanation:
$NAME is the variable that stores the name of your project. you may never give two projects in one directory same names!
WorkingDir is the dir in which the objects will be stored
ShortDesc is a little description (may be ignored)
Description is a longer description (may be ignored)
Output:
- Filename is the filename of the projects executable/libary which you want to make
- Path is the path where this should be stored
- SU sets, if the program should change in superuser mode before copying the file to it's destination
Compiler:
- Includes is a list of files in which the include files are stored; you do not need to add default include pathes here (like /usr/include)
- Packages is a list of pkgs you need (for pkg-config)
- Flags are additional compiler flags if you want to set some
Linker:
- Libraries is a list of special libs you want to link to
- LibPaths sets additional pathes where the linker should search for libs
- Packages: see Compiler: Packages
- Flags: see Compiler: Flags
SourceDirs is a list of directories in which the compiler will compile every *.cpp file
AdditionalSourceFiles is a list of additional single files the compiler should compile
You use the tool this way (here an example for my "Tools" project):
for more info try this:
with the following command you can delete all objects file - it does NOT delete the executable/lib:
remember to replace Tools with the name of your project!
I hope it works, good luck,
Emmeran
it's based on php. you need this 2 files in your projects root directory:
http://emmeran.corvusmedia.de/linuxbuild.rar
and then you have one yourProject.PROJECT file for each project:
for example I had a little lib with tools. the project is called Tools:
Tools.PROJECT:
Code: Select all
<?
$NAME = "libTools";
$Project[$NAME] = Array(
"WorkingDir" => "Build",
"ShortDesc" => "Network and Logging tools",
"Description" => "%(c) 2005 by CORVUS MEDIA",
"Output" => Array(
"Filename" => "libTools.so",
"Path" => "/usr/lib",
"SU" => true,
),
"Compiler" => Array(
"Includes" => Array(
"Tools/include",
),
"Packages" => Array(
"OGRE",
),
"Flags" => "-g -O2",
),
"Linker" => Array(
"Libraries" => Array(
),
"LibPaths" => Array(
),
"Packages" => Array(
"OGRE",
),
"Flags" => "-g -O2 -shared ",
),
"SourceDirs" => Array(
"Tools/src",
),
"AdditionalSourceFiles" => Array(
),
);
?>
$NAME is the variable that stores the name of your project. you may never give two projects in one directory same names!
WorkingDir is the dir in which the objects will be stored
ShortDesc is a little description (may be ignored)
Description is a longer description (may be ignored)
Output:
- Filename is the filename of the projects executable/libary which you want to make
- Path is the path where this should be stored
- SU sets, if the program should change in superuser mode before copying the file to it's destination
Compiler:
- Includes is a list of files in which the include files are stored; you do not need to add default include pathes here (like /usr/include)
- Packages is a list of pkgs you need (for pkg-config)
- Flags are additional compiler flags if you want to set some
Linker:
- Libraries is a list of special libs you want to link to
- LibPaths sets additional pathes where the linker should search for libs
- Packages: see Compiler: Packages
- Flags: see Compiler: Flags
SourceDirs is a list of directories in which the compiler will compile every *.cpp file
AdditionalSourceFiles is a list of additional single files the compiler should compile
You use the tool this way (here an example for my "Tools" project):
Code: Select all
~# cd /game/libTools
/game/libTools# php build.php config Tools
/game/libTools# php build.php build Tools
Code: Select all
/game/libTools# php build.php help
/game/libTools# php build.php info
Code: Select all
/game/libTools# php build.php clean Tools
I hope it works, good luck,
Emmeran
Last edited by Emmeran on Mon Aug 15, 2005 7:18 pm, edited 1 time in total.
-
jacmoe
- OGRE Retired Moderator

- Posts: 20570
- Joined: Thu Jan 22, 2004 10:13 am
- Location: Denmark
- x 179
Wiki, wiki, wik.. ? 
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
-
Emmeran
- Goblin
- Posts: 272
- Joined: Wed Jun 02, 2004 11:47 am
- Location: Erlangen
***WIKIED***
i've a problem with wiki... in "How to use" after the <pre> section it doesn't recognize my line breaks...
maybe someone could correct that and my bad english
i've a problem with wiki... in "How to use" after the <pre> section it doesn't recognize my line breaks...
maybe someone could correct that and my bad english