I'm trying to install swak4Foam on OF-2.1.0, without success!
I downloaded the last version (0.2.3) - "Swak4Foam_2.x_release_0.2.3.tar.gz" ; after extracting, I went in the dyrectory and then I did ./Allwmake; the result gave me back an error.

I'm trying to install swak4Foam on OF-2.1.0, without success!
I downloaded the last version (0.2.3) - "Swak4Foam_2.x_release_0.2.3.tar.gz" ; after extracting, I went in the dyrectory and then I did ./Allwmake; the result gave me back an error.

Attached there is the log file.

Could anyone help me?
Thank you!

Best regards,
Claudio

Your textfile only has the standard-output, but not the standard-error-stuff (where the real problem is described ... you should see it on the terminal). To get all that into one file you usually do something like

__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request

claudio87@debian:~/Scrivania/Swak4Foam_2.x_release_0.2.3$ ./Allwmake 2>&1 > wmake.txt
In file included from /usr/include/bits/errno.h:25,
from /usr/include/errno.h:36,
from lex.fvexpr.c:41:
/usr/include/linux/errno.h:4:23: error: asm/errno.h: No such file or directory
In file included from lnInclude/FieldValueExpressionParser_location.hh:44,
from FieldValueExpressionParser.tab.hh:65,
from lnInclude/FieldValueExpressionDriver.H:49,
from lnInclude/FieldValueExpressionDriverYY.H:36,
from ../FieldValueExpressionLexer.ll:33:
position.hh: In function bool parserField::operator==(const parserField::position&, const parserField::position&):
position.hh:136: warning: suggest parentheses around && within ||
lex.fvexpr.c: In function int parserFieldlex(parserField::FieldValueExpressionParser::semantic_type*, parserField::location*, void*, Foam::FieldValueExpressionDriver&, int&, int&):
lex.fvexpr.c:62496: warning: use of old-style cast

The majority of these warnings is "normal". The problem is

Code:

/usr/include/linux/errno.h:4:23: error: asm/errno.h: No such file or directory

which is strange as asm/errrno.h usually is in the same package as linux/errno.h (kernel-headers). Anyway this is not a swak-problem but with your system (have you compiled any other software before?)

Quote:

Originally Posted by Claudio87

With the command

Code:

./Allwmake 2>&1 >wmake.txt

I get back what I attached before...

OK. This differs from shell to shell. With bash it usually works

__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request

Ok. I did everything again from the beginning (1st: ./Allwclean; then: ./Allwmake, again).

I attached the new log. There is something new, something you can see I could do for the installation?

I didn't compiled any other sotware before anyway.

Thanks!

The problem seems to be that a file that is needed by the compiler is missing. There is nothing to avoid using that on the swak/OpenFOAM-side. That's why I asked whether you ever compiled anything on that machine. Because I think that the compiler on your machine won't compile ANYTHING.

What Distro are you using?

__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request

The file that is missing (asm/errno.h) is included indirectly over 7 corners and probably will be needed by EVERY C++-program. My guess is that even a simple "Hello World"-program won't compile.

I don't have a Debian-based distro so I can't tell you which package the missing file belongs do. On my distro it is part of kernel-headers. Maybe someone with a Debian/Ubuntu can help you here

__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request