|
[Sponsors] |
January 17, 2014, 10:47 |
|
#101 | |
Senior Member
|
Lionel, make sure you complete the following step and wait for the indexer to reach 100% (bottom right of eclipse window)
Quote:
These two steps worked for me. -Louis |
||
September 23, 2014, 10:20 |
|
#102 |
Member
Join Date: Nov 2012
Posts: 83
Rep Power: 13 |
i managed to compile the application with eclipse
but the i get a lot of errors: type <scalar> could not be resolved i tried to add the variable WM_DP in path and symbols/ includes but there is now variable WM_DP where i have to define the variable? best regards Henning Last edited by Henning86; September 26, 2014 at 09:25. |
|
September 26, 2014, 05:17 |
|
#103 |
Senior Member
|
Dear Henning,
If I remember correctly, you have to create the variable yourself. -Louis |
|
November 18, 2014, 09:21 |
Debugger jump to wrong line
|
#104 |
New Member
Join Date: Dec 2012
Posts: 1
Rep Power: 0 |
Dear Foamer,
I would like to step through the source of my own solver and OpenFoam 2.1 . I hope you have some hints for me what to do. I have the following problems with Eclipse: 1) I have to click on the step-over button several times to execute the highlighted line and to jump to the next line. Thereby the debugger jumps often to the wrong line such as a comment line. 2) When the debugger executes a method, the Variable-View will be also refreshed in such a way that for a few minutes the GDB activity is at 100%. I use: OpenFoam 2.1 GDB version 7.6 Eclipse Kepler Ubuntu 12.04 |
|
February 10, 2015, 08:30 |
|
#105 |
New Member
Jeroen Hofman
Join Date: Feb 2015
Location: The Netherlands
Posts: 15
Rep Power: 16 |
Hi all,
I have a problem similar to the last post, only using Ubuntu 14.04. The debugger gets stuck in my case on the first line, when progressing gdb starts running with occupying 1 core at 100%. However it never finishes executing the statement and crashes eventually (after 20 minutes). Given it is very difficult by now to downgrade GDB to 6.x (the crash appears to happen only with GDB 7.x) currently it's not possible to debug openFOAM with Eclipse. Any help on this issue would be greatly appreciated. Currently I'm circumventing the issue by using QtCreator instead of Eclipse, which doesn't seem to have this problem. Last edited by kenyi89; February 14, 2015 at 07:25. |
|
February 19, 2015, 04:42 |
some problem
|
#106 |
New Member
Vladimir
Join Date: Feb 2015
Posts: 1
Rep Power: 0 |
Hi,
i want to debug icoFoam solver, but i have some problem: after creating a c++ project and importing an icoFoam directory, i've tried to add all includes to the project (properties--> c++ general --> path and symbols). I think that i should include all the includes according to Make/options file. Am i correct ? After that, a lot of errors appeares in Problems window, like "symbol 'mesh' could not be resolved". So how to compile and debug with this problem ? ... __ P.S. I have never used Eclipse before. |
|
February 23, 2015, 09:47 |
Eclipse 3.6.1
|
#107 |
New Member
Tariq Ahmed
Join Date: Jan 2015
Posts: 13
Rep Power: 11 |
Hi,
I am new to OpenFOAM and eclipse. I am currently using OpenFOAM-2.3.x and eclipse 3.6.1 (Scientific Linux 6, KD Environment). I am using sprayFOAM for my work and I used the tutorial as mentioned in some of the posts above
" /home12233/tariq/OpenFOAM/tariq-2.3.x/platforms/linux64GccDPOpt/bin/mysprayFoam: error while loading shared libraries: libfiniteVolume.so: cannot open shared object file: No such file or directory" and in the problems tab of eclipse, " Invalid project path: Duplicate path entries found (/mysprayFoam [Include path] isSystemInclude:true includePath:/usr/local/intel/composer_xe_2013.4.183/mkl/include), path: [/mysprayFoam]. " The eclipse is able to build the project but not run the project **** Build of configuration Debug for project mysprayFoam **** /home12233/tariq/OpenFOAM/OpenFOAM-2.3.x/bin/foamExec wmake all + wmake make: `/home12233/tariq/OpenFOAM/tariq-2.3.x/platforms/linux64GccDPOpt/bin/mysprayFoam' is up to date. + wmake sprayEngineFoam make: `/home12233/tariq/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/bin/sprayEngineFoam' is up to date. I am able to run my case from the konsole terminal but not the eclipse. The eclipse is able to update the libraries but not run the project. Many people posted the above error but no solution to this problem was given. It will be helpful if someone is able to guide me through this. |
|
February 23, 2015, 09:56 |
|
#108 |
New Member
Jeroen Hofman
Join Date: Feb 2015
Location: The Netherlands
Posts: 15
Rep Power: 16 |
Hi Tariq,
Regarding your error in libfiniteVolume.so, it is most likely caused by Eclipse not having the right environment variables set. Perhaps you could try starting a terminal, sourcing the etc/bashrc file in the OpenFOAM folder, and then launching Eclipse from that same terminal? That worked for me. Kind regards, Jeroen |
|
February 27, 2015, 09:51 |
Eclipse 3.6.1 works
|
#109 | |
New Member
Tariq Ahmed
Join Date: Jan 2015
Posts: 13
Rep Power: 11 |
Quote:
Regards, tariq |
||
October 8, 2017, 17:20 |
'scalar' and 'label' are not recognized in NetBeans
|
#110 | |
New Member
Abiy Melaku
Join Date: Jul 2016
Location: Western University
Posts: 5
Rep Power: 10 |
Quote:
If you are using the NetBean as a code editor and use the wmake command on ur Linux terminal to compile your code, those errors actually don't produce any problem in the compilation process. However, if you want to get away from those errors you can define the 'scalar' as a 'double' value by the typedef syntax as follows inside the definition of your class contained in the *.H files. I have also included a similar solution for 'label' types in OpenFOAM using 'int' type, they are also not recognized by NetBeans usually. Code:
typedef double scalar; typedef int label; |
||
|
|