|
[Sponsors] |
[swak4Foam] difficulties installing swak4foam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 14, 2015, 16:36 |
|
#81 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi hkiani,
If you had executed the following commands: Code:
./Allwmake > make.log 2>&1 tar -czf make.log.tar.gz make.log From what I can see, this is a reason for concern: Code:
Flex is version Apple(flex-31) As for "g++" and "gcc", please try the following commands: Code:
gcc --version g++ --version Beyond this, I believe that Bernhard, the author of swak4Foam, usually develops swak4Foam on Mac OS X in the first place, so it should work just fine. My guess is that the problem is in fact that since you didn't go through the ordeal of building foam-extend from source code on Mac OS X, you're now having trouble building swak4Foam from source code. If you had built foam-extend from source code, you would likely have had similar issues sooner and would have had to look better into installing the necessary tools Best regards, Bruno |
|
July 6, 2015, 01:07 |
|
#82 |
Senior Member
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 17 |
I try to install flex and bison for using swak4Foam but whenever I want to run the following code:
apt-get install qt4-dev-tools libqt4-dev libqt4-opengl-dev freeglut3-dev libqtwebkit-dev I have got the following error: Ignoring file 'openfoam.listsudo' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension Do you have any idea to fix the problem? Thanks Elham |
|
July 18, 2015, 18:16 |
|
#83 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Elham,
You must do the following command very carefully, without missing a single character, otherwise you risk compromising your Ubuntu installation: Code:
sudo rm -i /etc/apt/sources.list.d/openfoam.listsudo Then run: [CODE]sudo apt-get update[CODE] and it should then allow you to run the command: Code:
sudo apt-get install qt4-dev-tools libqt4-dev libqt4-opengl-dev freeglut3-dev libqtwebkit-dev Bruno
__________________
|
|
November 24, 2018, 14:35 |
|
#84 | |
Member
Viraj Belekar
Join Date: Jun 2016
Posts: 68
Rep Power: 10 |
Quote:
I am trying to install swak4Foam development version with OpenFOAM-5.0 on Ubuntu 18.04.1 LTS. The steps that I follow are as follows: Code:
sudo apt-get install build-essential flex subversion git mercurial wget Code:
of50 mkdir -p $FOAM_RUN cd "$HOME/OpenFOAM/$USER-$WM_PROJECT_VERSION" Code:
git clone https://github.com/Unofficial-Extend-Project-Mirror/openfoam-extend-swak4Foam-dev.git swak4Foam cd swak4Foam git checkout branches/develop cd .. Code:
cd swak4Foam ./maintainanceScripts/compileRequirements.sh export PATH=/home/viraj/OpenFOAM/viraj-5.0/swak4Foam/privateRequirements/bin:$PATH ./Allwmake > log.make 2>&1 ./Allwmake > log.make 2>&1 Code:
/opt/openfoam5/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/CommonValueExpressionDriver.o' failed make: *** [Make/linux64GccDPInt32Opt/CommonValueExpressionDriver.o] Error 1 Thanks, Viraj |
||
November 25, 2018, 08:07 |
|
#85 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
I can't. You're using the unsupported git-repository. Because of this the output "hg info: 000000000000 tip" in your log doesn't give me an indication which version of the sources you're 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 |
||
November 25, 2018, 11:06 |
|
#86 | |
Member
Viraj Belekar
Join Date: Jun 2016
Posts: 68
Rep Power: 10 |
Quote:
Could you please point me towards the correct set of installation steps and repository to install swak4Foam? I have OpenFOAM-5.0 installed in Ubuntu 18.04.1 LTS. Thank you very much! |
||
November 26, 2018, 23:36 |
|
#87 | |
New Member
Leandro
Join Date: Sep 2018
Location: Colombia
Posts: 4
Rep Power: 8 |
Quote:
Hello Mr. Gschaider I have the same error of Vijaj but in my log if it is indicated the version of the sources that I have been using. Could you please help? Thanks Leandro |
||
November 27, 2018, 18:23 |
|
#88 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
The best way to get the sources is Code:
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam openfoam-extend-swak4Foam cd openfoam-extend-swak4Foam hg update development Then compile according to https://openfoamwiki.net/index.php/C...4Foam#Building
__________________
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 |
||
December 11, 2018, 19:07 |
|
#89 | |
Member
Viraj Belekar
Join Date: Jun 2016
Posts: 68
Rep Power: 10 |
Quote:
I used the way suggested by you to get the sources. But I still get the following error: Code:
/opt/openfoam5/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/CommonValueExpressionDriver.o' failed make: *** [Make/linux64GccDPInt32Opt/CommonValueExpressionDriver.o] Error 1 Parser library did not compile OK. No sense continuing as everything else depends on it |
||
August 30, 2019, 12:07 |
Difficulties installing Swak4foam for openFoam2.1
|
#90 |
New Member
Ankit Khot
Join Date: Aug 2019
Posts: 3
Rep Power: 7 |
Dear all,
I am new to the Linux and trying to install Swak4foam for openfoam2.1. During the build I got the following error. Include/patchedInterpolation2DTable.C(38): error: call of an object of a class type without appropriate operator() or conversion functions to pointer-to-function type reader_()(fName, *this); ^ detected during: instantiation of "void Foam::interpolation2DTable<Type>::readTable() [with Type=Foam::scalar={Foam::doubleScalar={double}}]" at line 101 instantiation of "Foam::interpolation2DTable<Type>::interpolation2D Table(const Foam::dictionary &) [with Type=Foam::scalar={Foam::doubleScalar={double}}]" at line 1624 of "CommonValueExpressionDriver.C" instantiation of "void Foam::CommonValueExpressionDriver::readTables(Foam ::Istream &, Foam::HashTable<TableType, Foam::word, Foam::string::hash> &, bool) [with TableType=Foam::interpolation2DTable<Foam::scalar= {Foam::doubleScalar={double}}>]" at line 389 of "CommonValueExpressionDriver.C" lnInclude/patchedInterpolation2DTable.C(377): error: identifier "lessOp" is undefined label x0i = Xi(lessOp<scalar>(), valueX, false); ^ lnInclude/patchedInterpolation2DTable.C(377): error: type name is not allowed label x0i = Xi(lessOp<scalar>(), valueX, false); ^ lnInclude/patchedInterpolation2DTable.C(377): error: expected an expression label x0i = Xi(lessOp<scalar>(), valueX, false); ^ lnInclude/patchedInterpolation2DTable.C(378): error: identifier "greaterOp" is undefined label x1i = Xi(greaterOp<scalar>(), valueX, true); ^ lnInclude/patchedInterpolation2DTable.C(378): error: type name is not allowed label x1i = Xi(greaterOp<scalar>(), valueX, true); ^ lnInclude/patchedInterpolation2DTable.C(378): error: expected an expression label x1i = Xi(greaterOp<scalar>(), valueX, true); ^ compilation aborted for CommonValueExpressionDriver.C (code 2) CommonValueExpressionDriver.dep:543: recipe for target 'Make/linux64IccDPOpt/CommonValueExpressionDriver.o' failed make: *** [Make/linux64IccDPOpt/CommonValueExpressionDriver.o] Error 2 Parser library did not compile OK. No sense continuing as everything else depends on it Requirements for Library not satisfied. I see no sense in going on Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard It would be helpful if you can guide me how to handle this error. Thank you in advance Last edited by AnkitRK; August 30, 2019 at 15:29. |
|
August 30, 2019, 19:37 |
|
#91 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Hm. I guess there is a reason that you use a 8 year old version of OF. The oldest version that I have currently available is 2.3 and that compiles without problems (it is the oldest version that I test against). The file you're having problems with is in swa since 2015 and hasn't been changed since. So I guess all swak-versions since 2015 break with OF 2.1. So your best chance is going back to a version that was released before October 2015 and try to compile that (of course the latest features features would be missing) Or if you're hardcore: find the relevant commit, try to reverse apply it and hope that compiles without these changes (if that makes you go "hä?" then you're probably not hardcore)
__________________
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 |
||
August 31, 2019, 07:11 |
|
#92 |
New Member
Ankit Khot
Join Date: Aug 2019
Posts: 3
Rep Power: 7 |
I am definitely not "hardcore"
Thanks for the suggestion, I tried to build the older version of Swak4foam. Still does not work and i get the same error! Not a clue, what went wrong. |
|
August 31, 2019, 17:48 |
|
#93 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
The "youngest" release before the offending changes would be 0.3.2. But that is rather old BTW: what is the reason for you to use such an old OF-Version (I guess you have a good one)
__________________
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 |
||
September 17, 2019, 05:03 |
|
#94 |
Senior Member
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19 |
Hi,
I tried to build the latest version 0.4.2 but there seems to be readline error: When I use the system readline 6.3, I got the error: ar rcu liblua.a lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o lbitlib.o lcorolib.o ldblib.o liolib.o lmathlib.o loslib.o lstrlib.o ltablib.o lutf8lib.o loadlib.o linit.o ranlib liblua.a gcc -fPIC -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -c -o lua.o lua.c gcc -fPIC -std=gnu99 -o lua lua.o liblua.a -lm -Wl,-E -ldl -lreadline /app/readline/6.3/lib/libreadline.so: undefined reference to `tputs' /app/readline/6.3/lib/libreadline.so: undefined reference to `tgoto' /app/readline/6.3/lib/libreadline.so: undefined reference to `tgetflag' /app/readline/6.3/lib/libreadline.so: undefined reference to `UP' /app/readline/6.3/lib/libreadline.so: undefined reference to `tgetent' /app/readline/6.3/lib/libreadline.so: undefined reference to `tgetnum' /app/readline/6.3/lib/libreadline.so: undefined reference to `PC' /app/readline/6.3/lib/libreadline.so: undefined reference to `tgetstr' /app/readline/6.3/lib/libreadline.so: undefined reference to `BC' collect2: error: ld returned 1 exit status make[2]: *** [lua] Error 1 make[2]: Leaving directory `/home/projects/11000324/OpenFOAM/swak4Foam/privateRequirements/compilation/lua-5.3.4/src' make[1]: *** [linux] Error 2 make[1]: Leaving directory `/home/projects/11000324/OpenFOAM/swak4Foam/privateRequirements/compilation/lua-5.3.4/src' make: *** [linux] Error 2 cd src && mkdir -p /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/bin /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/include /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/lib /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/man/man1 /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/share/lua/5.3 /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/lib/lua/5.3 cd src && install -p -m 0755 lua luac /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/bin install: cannot stat `lua': No such file or directory install: cannot stat `luac': No such file or directory make: *** [install] Error 1 If there were problems during compilation install the readline-devel package (name may be different on platforms) Lua not compiled. Check output When I install readline 8.0, it seems that readline is not found and I got the error: ar rcu liblua.a lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o lbitlib.o lcorolib.o ldblib.o liolib.o lmathlib.o loslib.o lstrlib.o ltablib.o lutf8lib.o loadlib.o linit.o ranlib liblua.a gcc -fPIC -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -c -o lua.o lua.c lua.c:82:31: fatal error: readline/readline.h: No such file or directory #include <readline/readline.h> ^ compilation terminated. make[2]: *** [lua.o] Error 1 make[2]: Leaving directory `/home/projects/11000324/OpenFOAM/swak4Foam/privateRequirements/compilation/lua-5.3.4/src' make[1]: *** [linux] Error 2 make[1]: Leaving directory `/home/projects/11000324/OpenFOAM/swak4Foam/privateRequirements/compilation/lua-5.3.4/src' make: *** [linux] Error 2 cd src && mkdir -p /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/bin /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/include /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/lib /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/man/man1 /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/share/lua/5.3 /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/lib/lua/5.3 cd src && install -p -m 0755 lua luac /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/bin install: cannot stat `lua': No such file or directory install: cannot stat `luac': No such file or directory make: *** [install] Error 1 If there were problems during compilation install the readline-devel package (name may be different on platforms) Lua not compiled. Check output Hope someone can help. Thanks! |
|
September 18, 2019, 04:34 |
|
#95 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
I wouldn't bother about it to much. Lua is only needed for a rather esoteric part of swak4Foam
But I'm curious. Which Linux Distro are you using? (Lua is rather robust in its requirements for compilation) Quote:
__________________
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 |
||
May 9, 2020, 05:48 |
Problem installing swak4Foam with OF 2.1.1
|
#96 |
New Member
Sagar
Join Date: Apr 2016
Posts: 23
Rep Power: 10 |
Hello,
I am not an expert FOAM user. However, I am trying to run a project which was done in OF 2.1.1 about an Euler-Lagrange problem. Reason to use such an old version of OF being that OF has brought in big changes post OF 4.x in thermo libraries and I am finding hard time using Chemkin files and thermo libraries which are used in the current project of OF 2.1.1 Ok, now to the problem, I have cleanly installed OF 2.1.1 without any problems. After that I installed swak4Foam (version 0.3.2) as directed in the openfoamwiki.net. Also, followed the dependencies requirements. When I do Allwmake I get problem as attached in the log file. I am not able to understand the error and hence debug it. Any help would be greatly appreciated. P.S: I have installed my swak4Foam in "$HOME/OpenFOAM/$USER-$WM_PROJECT_VERSION" if it is of any use for the problem. Regards Sagar Last edited by ksgr; May 9, 2020 at 06:55. Reason: Added missing information on swak4Foam |
|
May 9, 2020, 08:38 |
|
#97 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
So you're using an old OF/swak on a newer machine (with a newer compiler). I think this HUGE that was a preprocessor-symbol for a ridiculously large floating point number (but not the largest on) that used to be in the headers of gcc but no longer is. Try Code:
#define HUGE 1e15
__________________
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 |
||
May 10, 2020, 07:45 |
|
#98 |
New Member
Sagar
Join Date: Apr 2016
Posts: 23
Rep Power: 10 |
Thank you Bernhard Gschaider for your quick reply. I followed your suggestion and defined HUGE. It occurred in multiple files and I did the same and was able to successfully compile it.
Thanks Sagar |
|
August 2, 2020, 21:06 |
Installing swak4foam on cluster
|
#99 |
Senior Member
Join Date: Jul 2019
Posts: 148
Rep Power: 7 |
Hi all,
I have used the following commands to install swak4foam in a frontal node in a cluster. hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam cd swak4Foam ./AllwmakeAll The swak4foam was installed at the home directory. I then loaded openfoam to the cluster, but it seems that it did not recognize the swak4foam installation. The error: "funkySetFields: command not found" I am wondering if there is any especial treatment to make swak4foam working on the cluster. I did the same steps on my local machine and it is working well. I appreciate your assistance. |
|
August 3, 2020, 07:07 |
|
#100 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
swak4Foam compiles itself into the $FOAM_USER_APPBIN and $FOAM_USER_LIBBIN of the current user (not into $FOAM_SITE_APPBIN/LIBBIN or $FOAM_APPBIN/LIBBIN where all users can find it. In the maintainanc-directory are scripts to copy the binaries there). If you are a different user on the cluster and/or $FOAM_USER_APPBIN/LIBBIN is on a different file system then swak4Foam can't be found on the cluster
__________________
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 |
||
Tags |
swak4faom, swak4foam error |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] Installing swak4Foam 0.4.0 on ubuntu 14.04 | JFM | OpenFOAM Community Contributions | 1 | October 30, 2016 10:43 |
[swak4Foam] Installing swak4Foam on ubuntu 12.04 | fluidflowsteel | OpenFOAM Community Contributions | 1 | June 28, 2016 15:02 |
[swak4Foam] Installing swak4Foam with openFoam v3.0+ | RebelLion | OpenFOAM Community Contributions | 0 | March 11, 2016 20:10 |
[swak4Foam] fails in parallel with -otherTime? | Phicau | OpenFOAM Community Contributions | 3 | June 26, 2013 14:00 |
[swak4Foam] Installing swak4Foam to OpenFOAM in mac | Kaquesang | OpenFOAM Community Contributions | 22 | January 21, 2013 12:51 |