|
[Sponsors] |
March 16, 2012, 13:02 |
OpenFoam & Eclipse
|
#1 |
Member
Kasra
Join Date: Jun 2010
Location: USA
Posts: 44
Rep Power: 16 |
Hi all,
I just followed the openfoamwiki tutorial on using openfoam with eclipse, thanks to great explanation of A. Mahrla. I brought icoFoam into eclipse and could run a cavity case in there. But for debugging when I set everything up as it's described in the openfoamwiki I get the Code:
No source available for "main() at 0x417f40" 1. Made a project for icoFoam from its source directory under .../solvers/icompressible/icoFoam 2. Used "lnInclude" under .../src/OpenFoam/lnInclude and .../src/finiteVolume/lnInclude for header files 3. Made another project for my case which is .../incompressible/icoFoam/cavity I did compile the openfoam with WM_COMPILE_OPTION = Debug in the bashrc and I executed Allwmake from openfoam base directory .../openfoam210/ to compile the whole package again with Debug mode which took 3 hours to compile on my machine. Any idea where the problem lies? Cheers... |
|
March 18, 2012, 18:45 |
|
#2 |
Member
Kasra
Join Date: Jun 2010
Location: USA
Posts: 44
Rep Power: 16 |
Has anyone tried OpenFoam in eclipse? Can you address my problem I'd appreciate it.
|
|
March 19, 2012, 03:57 |
|
#3 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Are you sure icoFoam has been recompiled with the debug flag, and even more important, are you sure Eclipse is executing the correct executable? The debug executable are in a different folder than the regular ones.
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
March 19, 2012, 12:22 |
|
#4 |
Member
Kasra
Join Date: Jun 2010
Location: USA
Posts: 44
Rep Power: 16 |
Thanks Anton, well I didn't know that debug version are in a different place! because all I did was to set WM_COMPILE_OPTION=Debug in the $WM_PROJECT_DIR/etc/bashrc
and I ran Allwmake from $WM_PROJECT_DIR/applications/ which recompiled and built the code again which took a long time, is that the right thing to do? or can I just recompile the solver that I want in debug mode? . I looked for executables in the same place as before which is $WM_PROJECT_DIR//platforms/linux64GccDPOpt/bin/ I checked the files date and they were all made new so I assumed they are in the same place as before... Cheers |
|
March 19, 2012, 12:29 |
|
#5 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
The debug builds will end up in linux64GccDPDebug. You could just compile the solver in debug mode by adding -g to the Make/options file of your solver. You won't be able to "see" where you are once you step into the libraries though. The thorough option is to recompile everything with the debug flag. Did you re-source the bashrc after changing it?
- Anton
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Eclipse for OpenFOAM | AMahrla | OpenFOAM Programming & Development | 109 | October 8, 2017 17:20 |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 07:55 |
OpenFOAM + Eclipse | Svensson | OpenFOAM | 2 | April 10, 2011 12:02 |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 07:25 |
Modified OpenFOAM Forum Structure and New Mailing-List | pete | Site News & Announcements | 0 | June 29, 2009 06:56 |