CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   OpenFOAM and KDevelop (https://www.cfd-online.com/Forums/openfoam-programming-development/102673-openfoam-kdevelop.html)

majkl May 31, 2012 06:23

OpenFOAM and KDevelop
 
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

http://www.cfd-online.com/Forums/ope...m-project.html

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

Majkl

wyldckat May 31, 2012 14:38

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

majkl June 1, 2012 05:53

Quote:

Originally Posted by wyldckat (Post 364137)
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 June 18, 2012 06:40

Quote:

Originally Posted by wyldckat (Post 364137)
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 June 18, 2012 15:01

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

maybee February 21, 2014 14:17

KDevelop4 and OpenFOAM
 
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

wyldckat February 21, 2014 15:59

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: http://www.cfd-online.com/Forums/ope...tml#post366990

Best regards,
Bruno

t.oliveira April 28, 2015 14:44

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

wyldckat April 30, 2015 11:30

Quick answer: Try launching KDevelop from the command line, namely one where OpenFOAM is working.

t.oliveira May 21, 2015 15:11

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

sharonyue May 25, 2015 05:39

Whats the merits of using KDevelop or eclipse for OpenFOAM?

t.oliveira May 29, 2015 10:06

Quote:

Originally Posted by sharonyue (Post 547542)
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).

Lisandro Maders June 3, 2015 13:12

General doubt
 
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

t.oliveira June 3, 2015 19:02

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.


All times are GMT -4. The time now is 16:46.