CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

OpenFOAM and KDevelop

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By majkl
  • 1 Post By t.oliveira

Reply
 
LinkBack Thread Tools Display Modes
Old   May 31, 2012, 06:23
Default OpenFOAM and KDevelop
  #1
New Member
 
Michal
Join Date: Apr 2012
Location: Czech Republic
Posts: 27
Rep Power: 5
majkl is on a distinguished road
Hello,

I'm new user of OpenFOAM. I've installed KDevelop (4.3.5) and I will use it for making changes, running and screening, .. in the OF. The problem is with the compiler.. I can't say the KDevelop to use wmake instead of make. I've tried this one

Wmake C and KDevelop for a Foam project

but without succes. (There is no Build options). Can anyone help me? Thanks.

Majkl
majkl is offline   Reply With Quote

Old   May 31, 2012, 14:38
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Majkl,

I've never used KDevelop (as far as I can remember), so the closest I can suggest is this: Howto Use OpenFOAM with Eclipse

edit: wait, here's another one that should be better:Howto Use OpenFOAM with Kdevelop4

Good luck!
Bruno

Last edited by wyldckat; May 31, 2012 at 14:40. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   June 1, 2012, 05:53
Default
  #3
New Member
 
Michal
Join Date: Apr 2012
Location: Czech Republic
Posts: 27
Rep Power: 5
majkl is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
edit: wait, here's another one that should be better:Howto Use OpenFOAM with Kdevelop4

Good luck!
Bruno
Well, I tried the link above feew weeks ago but I couldn't find the possibility to change the compiler from make to wmake.

Now, I'm using eclipse. Thanks for advice.

Michal
majkl is offline   Reply With Quote

Old   June 18, 2012, 06:40
Default
  #4
New Member
 
Michal
Join Date: Apr 2012
Location: Czech Republic
Posts: 27
Rep Power: 5
majkl is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings Majkl,

I've never used KDevelop (as far as I can remember), so the closest I can suggest is this: Howto Use OpenFOAM with Eclipse

edit: wait, here's another one that should be better:Howto Use OpenFOAM with Kdevelop4

Good luck!
Bruno
Hello Bruno,

I've returned to the KDevelop (ver. 4.2.3) because of some constrain in Eclipse.


I've found very good description of usage KDevelop with OpenFOAM:
http://dealii.sourceforge.net/index.php/Kdevelop


My problem with the compiler solved:
Menu -> Project -> Open Configuration -> Item Make executable - I put "wmake".


Best regards,
Michal
wyldckat likes this.
majkl is offline   Reply With Quote

Old   June 18, 2012, 15:01
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Michal,

Nice! And feel free to update the wiki page at openfoamwiki.net: http://openfoamwiki.net/index.php/Ho...with_Kdevelop4 !

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   February 21, 2014, 15:17
Default KDevelop4 and OpenFOAM
  #6
Senior Member
 
Join Date: Jan 2012
Posts: 159
Rep Power: 5
maybee is on a distinguished road
hi,

I installed and configured KDevelop as described here

http://openfoamwiki.net/index.php/Ho...with_Kdevelop4

Unfortunately when building the main of the multiphaseEulerFoam solver I only get the error

Quote:
wmake error: environment variable $WM_OPTIONS not set
Does someone know how to fix this problem?

greetings
maybee
maybee is offline   Reply With Quote

Old   February 21, 2014, 16:59
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings maybee,

I've moved your post to this thread, since it's the exact same topic
In addition, have a look into post #4: OpenFOAM and KDevelop

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   April 28, 2015, 14:44
Default
  #8
New Member
 
Thomas Oliveira
Join Date: Apr 2015
Posts: 6
Rep Power: 2
t.oliveira is on a distinguished road
Hi,

I have followed the tutorials mentioned on this thread but I can't yet get KDevelop to build the project using wmake.

Aparently, majkl suggestion:
Quote:
Originally Posted by majkl
My problem with the compiler solved:
Menu -> Project -> Open Configuration -> Item Make executable - I put "wmake".
doesn't work anymore on KDevelop 4.6.0. The only itens I see are "Project Filter" and "Custom BuildSystem".

The project can be built successfully by running "wmake".

I loaded it on KDevelop, went to Project > Open Configuration, item Custom BuildSystem and fill in the fields:

Build Configuration: wmake
Build Directory: <base_dir>
Action: Build
Enable: Yes
Executable: /home/thomas/OpenFOAM/OpenFOAM-2.3.1/wmake/wmake
Arguments: [blank]
Environment: default

However, when I press the button "Build", nothing happens: no compilation, no warnings, no errors, nothing at all.

Am I missing something? Is KDevelop working for you?

Best regards,

Oliveira
t.oliveira is offline   Reply With Quote

Old   April 30, 2015, 11:30
Default
  #9
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quick answer: Try launching KDevelop from the command line, namely one where OpenFOAM is working.
wyldckat is offline   Reply With Quote

Old   May 21, 2015, 15:11
Default
  #10
New Member
 
Thomas Oliveira
Join Date: Apr 2015
Posts: 6
Rep Power: 2
t.oliveira is on a distinguished road
Thank you. If I remember correctly, your suggestion worked. However, I faced other problems and limitations. Finally, I turned to Qt Creator: https://openfoamwiki.net/index.php/H...with_QtCreator
wyldckat likes this.

Last edited by t.oliveira; May 21, 2015 at 19:43.
t.oliveira is offline   Reply With Quote

Old   May 25, 2015, 05:39
Default
  #11
Senior Member
 
Dongyue Li
Join Date: Jun 2012
Location: Torino, Italy
Posts: 669
Rep Power: 8
sharonyue is on a distinguished road
Whats the merits of using KDevelop or eclipse for OpenFOAM?
sharonyue is offline   Reply With Quote

Old   May 29, 2015, 10:06
Default
  #12
New Member
 
Thomas Oliveira
Join Date: Apr 2015
Posts: 6
Rep Power: 2
t.oliveira is on a distinguished road
Quote:
Originally Posted by sharonyue View Post
Whats the merits of using KDevelop or eclipse for OpenFOAM?
Sorry for the late reply. I didn't get if you ask for a comparison about
- (using KDevelop for OpenFOAM) vs (using eclipse for OpenFOAM)
or
- (using KDevelop or eclipse OpenFOAM) vs (not using an IDE for OpenFOAM).
t.oliveira is offline   Reply With Quote

Old   June 3, 2015, 13:12
Default General doubt
  #13
New Member
 
Lisandro Maders
Join Date: Feb 2013
Posts: 16
Rep Power: 4
Lisandro Maders is on a distinguished road
Hi, I will start developing and programming in OpenFOAM. Do the experienced guys recommend or not to use some IDE like Eclipse to do it? What do you recommend me to use as development tool to make life easier?

Thanks,

Lisandro
Lisandro Maders is offline   Reply With Quote

Old   June 3, 2015, 19:02
Default
  #14
New Member
 
Thomas Oliveira
Join Date: Apr 2015
Posts: 6
Rep Power: 2
t.oliveira is on a distinguished road
I always recommend using an IDE for programming, but I am not sufficiently experienced in OpenFOAM to know if it would be an exception to this general recommendation. Since my first contact with it, I opted to use an IDE.
t.oliveira is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wmake C and KDevelop for a Foam project roncresswell OpenFOAM Installation 21 January 27, 2010 13:00
How should one debug a solver using KDevelop kar OpenFOAM Installation 5 July 28, 2008 16:36
Manage openfoam solver project in KDevelop probably the last linker error any suggestion is welcome lakeat OpenFOAM Installation 0 July 7, 2007 10:01


All times are GMT -4. The time now is 14:28.