swak4Foam and OpenFoam 3.0.x
Dear All,
has anybody tried to compile swak4Foam with OpenFoam 3.0.x? I tried it but it won't work. It seems to be some issue with the configuration files or with the environmental variables. OpenFoam 3.0.x compiles fine without any error, but swak4Foam complaines about missing files. This is the output of ./Allwmake in swak4Foam directory Code:
This is a clean install |
I actually did this yesterday and it worked fine. Note that you need to grab the devel repository.
|
No, it is not running. I downloaded the development release but the error remains. I have a feeling that this is somehow related to the content of the $(OBJECTS_DIR) variable. However, I do not have a clue why this points to a wrong place.
|
Hi,
I have noticed the same behavior and also linked it to the $(OBJECTS_DIR) variable, however I could not resolve the problem. My colleague however had no problems, nor did our cluster. There may be some small setup differences between the machines, but something like this did not happen before. Regards, Tom |
Allright, I think I solved this issue. It is not suitable to put the sources of swak4foam into the $WM_PROJECT_DIR/<path>. A better idea is to put the sources into $WM_PROJECT_USER_DIR/<path>, then everything compiles fine and one can use
Code:
maintainanceScripts/copySwakFilesToSite.sh Kind regards, Fabian |
[Solved]
solved , sorry
https://openfoamwiki.net/index.php/I...oam-extend_3.x ----- Dear Community of Foamers, I was trying to install a swak4Foam version which I have download from: git clone https://github.com/Unofficial-Extend...xtend-Breeder2.0-libraries-swak4Foam.git swak4Foam for using with OF3.0.0. I put the swak4Foam files into the folder user-3.0.0/swak4Foam I also run from the base ./maintainanceScripts/compileRequirements.sh I have added into my PATH variable the following: Code:
export PATH=/users/rechimal/OpenFOAM/rechimal-3.0.0/swak4Foam/privateRequirements/bin:$PATH Code:
Previously compiled for OpenFOAM 3.0.0 Code:
ln -s swakConfiguration.automatic swakConfiguration Code:
Previously compiled for OpenFOAM 3.0.0 Can anybody tell me if I am missing something or doing something wrong? How can I solve the problem? Thanks in advance |
1 Attachment(s)
OpenSUSE 13.2, OpenFoam 3.0.x
I am trying to install swak4Foam according to this guide: https://openfoamwiki.net/index.php/C...m/Installation Code:
mkdir -p $FOAM_RUN Code:
This is a clean install |
Code:
Making dependency list for source file plugins/FaceZoneValuePluginFunction.C /opt/OpenFOAM/OpenFOAM-3.0.x/src/OpenFOAM/primitives/strings/string/string.H And foamString.H can be found in my foam-extend-3.2 sources: /opt/foam/foam-extend-3.2/src/foam/primitives/strings/string/foamString.H So It implies that I cannot build swak4Foam for OpenFOAM-3.0.x, can I? |
Hi,
If you take a look at Libraries/swak4FoamParsers/include/swakString.H, you find Code:
#ifdef FOAM_MOVED_TIME_AND_STRING_HEADERS Code:
#if FOAM_VERSION4SWAK >= VERSION_NR(3,2,0) && defined(FOAM_DEV) |
Hi (privet!), Alexey
Quote:
Code:
// generated by the Allwmake-script of the swak4Foam-distro Code:
... Code:
... |
Hello,
I also got similar problem when installing swak4Foam, could anyone give me a hint please :) this is my make.log file: -------------------------------------------------- Previously compiled for OpenFOAM 3.0.0 /home/thao/OpenFOAM/thao-3.0.0/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison) No file 'swakConfiguration'. Python etc won't work. See README for details Try 'ln -s swakConfiguration.automatic swakConfiguration' for automatic configuration. BEWARE: this does not work on some systems Checking swak4Foam-version and generating file Swak version is 0.3.2 Bison is version 2.7.12-4996 Flex is version 2.5.35 (Minor version: 35) OpenFOAM-version: Major 3 Minor 0 Patch 0 (-1 == x / 0) No swak4FoamParsers/foamVersion4swak.H. Generated wmakeLnInclude: linking include files to simpleFunctionObjects/lnInclude make: *** No rule to make target `Make/linux64GccDPInt64Opt/SubsetValueExpressionParser.o', needed by `Make/linux64GccDPInt64Opt/CellSetValueExpressionDriver.o'. Stop. wmake error: file 'Make/linux64GccDPInt64Opt/sourceFiles' could not be created in /home/thao/OpenFOAM/thao-3.0.0/swak4Foam/Libraries/swak4FoamParsers 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 ---------------------------------------------------------------------------------- Thanks, Thao. |
@Zeppo,
In fact I missed that you are unhappy about foamString.H during wmkdep invocation. The utility does not expand pre-processor definitions, it just scan file for #include directives and symlinks files. So the error could be ignored. About your log file, I can not reproduce the error on Fedora 21/OpenFOAM 3.0.x (commit 9cf0156). The software builds OK till Bison invocation (and it is expected since I do not want to install older Bison). |
1 Attachment(s)
Quote:
Quote:
Code:
Previously compiled for OpenFOAM 3.0.x Code:
// "label.h" Code:
typedef int64_t label; Code:
typedef long int int64_t; |
|
So is there any solution to this issue ready to use?
|
Quote:
Btw, shouldn't "label" be typedefed as "unsigned int" or "unsigned long int"? As far as I can see, objects of this type is only used to index data containers. I opened a ticket with a bug report: https://sourceforge.net/p/openfoam-e...swak4foam/233/ |
Quote:
Hi Fabian, I have the same problem as you, but I don't quite understand how did u solve it. Could u please explain to me step by step? |
|
Quote:
I could not use step 2. instead i used: Code:
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam swak4Foam Code:
Reading variables from 'swakConfiguration' |
Quote:
if i do the installation as you say i obtain an error in: git checkout port_2.0.x Code:
error: pathspec 'port_2.0.x' did not match any file(s) known to git. Code:
This is a clean install |
All times are GMT -4. The time now is 18:38. |