CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   groovyBC & OpenFoam 1.7.0 (http://www.cfd-online.com/Forums/openfoam/78451-groovybc-openfoam-1-7-0-a.html)

val46 July 22, 2010 04:04

groovyBC & OpenFoam 1.7.0
 
Hi,

i'm using OF1.7.
I would like to install groovyBC and downloaded it from

https://openfoam-extend.svn.sourcefo...ries/groovyBC/

Unfortunetaly I got tons of errors like:

Quote:

/home/kressnt/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude/sphericalTensor.H:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Foam’
Do you have any ideas how to install it proberly?

Thanks in advance

Toni

gschaider July 22, 2010 09:27

Quote:

Originally Posted by val46 (Post 268452)
Hi,

i'm using OF1.7.
I would like to install groovyBC and downloaded it from

https://openfoam-extend.svn.sourcefo...ries/groovyBC/

Unfortunetaly I got tons of errors like:

Do you have any ideas how to install it proberly?

Thanks in advance

Toni

This looks like a very fundamental problem with your compiler and/or your installation. Have you ever compiled anything else for that installation?

I just tried and groovBC from the 1.6-section of the Breeder compiles without problems on my 1.7.x-installation

Bernhard

val46 July 22, 2010 10:25

Hi Bernard,

thanks for your quick reply.

Quote:

This looks like a very fundamental problem with your compiler and/or your installation. Have you ever compiled anything else for that installation?
Hm... what do you mean? The whole OF1.7 installation is working probably.

What else to I have to compile?

Regards,
Toni

gschaider July 22, 2010 13:27

Quote:

Originally Posted by val46 (Post 268528)
Hi Bernard,

thanks for your quick reply.



Hm... what do you mean? The whole OF1.7 installation is working probably.

What else to I have to compile?

Regards,
Toni

Have you ever compiled any other Third-Party-contribution? It is my suspicion that you're facing the same problem there. OR that you stumbled upon a very rare compiler problem (unlikely, but what compiler are you using)

Bernhard

val46 July 23, 2010 02:23

Quote:

Have you ever compiled any other Third-Party-contribution? It is my suspicion that you're facing the same problem there. OR that you stumbled upon a very rare compiler problem (unlikely, but what compiler are you using)
I compiled ParaView3.8.0 and it worked.
I'm using Suse 11.2 with gcc 4.4.1

gschaider July 23, 2010 04:02

Quote:

Originally Posted by val46 (Post 268635)
I compiled ParaView3.8.0 and it worked.
I'm using Suse 11.2 with gcc 4.4.1

Sorry. I was a bit unspecific. I meant "ThirdParty-OpenFOAM software that has to be compiled using wmake". Some solver, util etc

Bernhard

val46 July 23, 2010 05:04

No.
I just followed the official installation instructions for OF and recompiled the icofoam solver because i changed the code.

gschaider July 23, 2010 07:44

Quote:

Originally Posted by val46 (Post 268654)
No.
I just followed the official installation instructions for OF and recompiled the icofoam solver because i changed the code.

Strange. Because the file that raises the error is not one of groovyBC

val46 July 23, 2010 09:11

1 Attachment(s)
As I said, this was just an example from the whole error message. Overall i got thousands of errors but all with the same pattern (see the attached file).

What else could i have done wrong?

1. I updated Bison on 2.4.1
2. I downloaded the files from the path I mentioned above
3. I unpacked the files in a separat folder (no OF path)
4. I typed "wmake libso" in the groovyBC folder

gschaider August 3, 2010 08:30

Quote:

Originally Posted by val46 (Post 268690)
As I said, this was just an example from the whole error message. Overall i got thousands of errors but all with the same pattern (see the attached file).

What else could i have done wrong?

1. I updated Bison on 2.4.1
2. I downloaded the files from the path I mentioned above
3. I unpacked the files in a separat folder (no OF path)
4. I typed "wmake libso" in the groovyBC folder

OK. The trouble starts here:

Code:

SOURCE=PatchResult.c ;  gcc -m64 -Dlinux64 ...
For some reason you're compiling PatchResult.c (with a lowercase c) where it should be PatchResult.C. The compiler/wmake interprets this as a C-file and chokes at some C++-constructs (probably the namespace)

Bernhard

val46 August 6, 2010 04:16

1 Attachment(s)
Hi Bernard,

thanks for Reply.
I changed all .c-files to .C-files. After that I had to edit also all the .dep-files.
Than i started wmake again.

No luck so far... i attached the error message.


Regards,
Toni

gschaider August 9, 2010 05:20

Quote:

Originally Posted by val46 (Post 270508)
Hi Bernard,

thanks for Reply.
I changed all .c-files to .C-files. After that I had to edit also all the .dep-files.
Than i started wmake again.

No luck so far... i attached the error message.


Regards,
Toni

No idea. It still gets compiled as C
Code:

SOURCE=PatchValueExpressionDriver.C ;  gcc -m64 -Dlinux64 -DWM_DP -Wall -O3  -IMake/linux64GccDPOpt  -I/home/kressnt/OpenFOAM/OpenFOAM-1.7.0/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/kressnt/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home/kressnt/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/PatchValueExpressionDriver.o
but at least now the compiler seems to know that this is a C++-source
Code:

/home/kressnt/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude/lduInterface.H:102: error: ISO C++ forbids declaration of ‘Pstream’ with no type
Looks like the Pstream was included but for some reason not "looked at".Try the following. Execute
Code:

SOURCE=PatchValueExpressionDriver.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -O3  -IMake/linux64GccDPOpt  -I/home/kressnt/OpenFOAM/OpenFOAM-1.7.0/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/kressnt/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home/kressnt/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/PatchValueExpressionDriver.o
from the command line. If that doesn't help insert
Code:

#include "Pstream.H"
near the beginning of PatchValueExpressionDriver.C

Something is very strange with your setup

Bernhard

val46 August 11, 2010 03:58

I tried both with no success...
Inserting #include "Pstream.H" changed nothing.

gschaider August 11, 2010 04:32

Quote:

Originally Posted by val46 (Post 271094)
I tried both with no success...
Inserting #include "Pstream.H" changed nothing.

Could I suggest that you try again from a completely fresh copy of the sources (by downloading it in the way suggested on the Wiki-page via svn) as you had to rename your original files and nobody knows what else is lurking there

Bernhard

val46 August 11, 2010 06:46

Oh my god! It works!

I'm sitting behind a powerful firewall. That's why I'm not able to use the svn command from the terminal. I have to download it by hand. Maybe I messed something up while I downloaded and saved the files.

Sorry, Bernard, if I wasted your time with that.
Thanks for your help anyway.


Toni

gschaider August 11, 2010 10:27

Quote:

Originally Posted by val46 (Post 271125)
Oh my god! It works!

I'm sitting behind a powerful firewall. That's why I'm not able to use the svn command from the terminal. I have to download it by hand. Maybe I messed something up while I downloaded and saved the files.

There is an alternate Webinterface to Subversion on Sourceforge.net that allows to download whole directories as tar-balls (click around a bit, should be accessible from the project-page)
Quote:

Originally Posted by val46 (Post 271125)
Sorry, Bernard, if I wasted your time with that.
Thanks for your help anyway.

Could we agree on "Your IT-department wasted both of our time by denying you access to essential services on the net"?

val46 August 13, 2010 02:36

Quote:

There is an alternate Webinterface to Subversion on Sourceforge.net that allows to download whole directories as tar-balls (click around a bit, should be accessible from the project-page)
Hm... couldn't find anything like that.

Quote:

Could we agree on "Your IT-department wasted both of our time by denying you access to essential services on the net"?
Jepp, we could do that :D

gschaider August 13, 2010 05:10

Quote:

Originally Posted by val46 (Post 271367)
Hm... couldn't find anything like that.

http://openfoam-extend.svn.sourcefor...-extend/trunk/

Browse to the directory you want and press "Download GNU tarball"

dinesh2n@gmail.com August 20, 2010 13:10

I down loaded from this link
just typed on terminal as
svn checkout https://openfoam-extend.svn.sourcefo...aries/groovyBC

for this I had to first install subversion as
$ sudo apt-get install subversion

before this I was downloading groovyBC from some other link ...that was creating error as
make: *** [Make/linux64GccDPOpt/PatchValueExpressionDriver.o] Error 1

the link mentioned above is from wiki and works well...


All times are GMT -4. The time now is 03:15.