|
[Sponsors] |
June 18, 2008, 11:42 |
Hello,
I am having the same p
|
#81 |
Senior Member
Kent Wardle
Join Date: Mar 2009
Location: Illinois, USA
Posts: 219
Rep Power: 21 |
Hello,
I am having the same problem as Jason with flex. On compiling, I get an error that says undefined reference to `yyFlexLexer ... when it is compiling the ansystofoam mesh conversion utility. If it makes a difference, I don't anticipate needing this specific conversion tool, can I tell Allwmake to somehow skip this and compile everything else? Or is the flexlexer something I need? As it is, everything up to that point compiles fine but the make exits with "Error 2" after the undefined reference noted above. Any help? I tried using the previous version of flex from cygwin (2.5.33-1) but get the same error. Thanks, Kent |
|
June 18, 2008, 17:39 |
hi,
is there anyone that coul
|
#82 |
New Member
Andrea Fuccio
Join Date: Mar 2009
Posts: 1
Rep Power: 0 |
hi,
is there anyone that could help me with the installation of OF? I have never used cygwin and i am having a problem following the instructions given in the cygwin.readme. If anyone can help, i will appreciate it. Thanks, Andrea PS Once version 1.5 comes out...will it work with cygwin? |
|
June 19, 2008, 16:40 |
It is amazing what you can lea
|
#83 |
Senior Member
Kent Wardle
Join Date: Mar 2009
Location: Illinois, USA
Posts: 219
Rep Power: 21 |
It is amazing what you can learn when you actually read the posts... I found my answer on another thread.
http://www.cfd-online.com/cgi-bin/Op...2652#POST22652 The switch suggested there seems to have done the trick with the undefined yyFlexLexer::yywrap() problem. |
|
July 3, 2008, 21:03 |
Hi Hans Linqvist,What error me
|
#84 |
Super Moderator
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20 |
Hi Hans Linqvist,
|
|
July 4, 2008, 03:38 |
Hi Takuya, the path to my jdk
|
#85 |
New Member
Hans Linqvist
Join Date: Mar 2009
Location: Älvkarleby, SE
Posts: 4
Rep Power: 17 |
Hi Takuya, the path to my jdk is:
C:\Program\Java\jdk1.6.0_06 When executing Allmake the error message is: $ bashrc Monroe@oem-048e0ff0b68 ~/openfoam/OpenFOAM-1.4/.OpenFOAM-1.4 $ cd .. Monroe@oem-048e0ff0b68 ~/openfoam/OpenFOAM-1.4 $ Allwmake + cd wmake + ./makeWmake Makefile:61: /rules//general: No such file or directory Makefile:62: /rules: No such file or directory make: *** No rule to make target `/rules'. Stop. ln: creating symbolic link `Makefile': File exists ln: creating symbolic link `MakefileFiles': File exists + cd src + ./Allwmake + cd /OpenFOAM ./Allwmake: line 4: cd: /OpenFOAM: No such file or directory + wmakeLnInclude . ./Allwmake: line 4: wmakeLnInclude: command not found + wmake libso zlib-1.2.1 ./Allwmake: line 6: wmake: command not found + wmake libso foamUser ./Allwmake: line 7: wmake: command not found + '[' '' = cygwin ']' + '[' '' = OPENMPI ']' + '[' '' = cygwin ']' + '[' '' = LAM ']' + '[' '' = cygwin ']' + '[' '' = MPICH ']' + '[' '' = cygwin ']' + cd Pstream + ./Allwmake + wmake libso dummy ./Allwmake: line 4: wmake: command not found + '[' '' = LAM ']' + '[' '' = OPENMPI ']' + '[' '' = MPI ']' + '[' '' = MPICH ']' + '[' '' = MPICH-GM ']' + wmake libso OpenFOAM ./Allwmake: line 116: wmake: command not found + wmake libso lagrangian/basic ./Allwmake: line 119: wmake: command not found + wmake libso triSurface ./Allwmake: line 121: wmake: command not found + wmake libso edgeMesh ./Allwmake: line 122: wmake: command not found + wmake libso meshTools ./Allwmake: line 123: wmake: command not found etc. etc. Thanks Hasse |
|
July 4, 2008, 12:11 |
Hi Hasse,
You most likely h
|
#86 |
Super Moderator
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20 |
Hi Hasse,
You most likely have to "source" the bashrc file into the current shell environment, instead of executing it directly. source ~/openfoam/OpenFOAM-1.4/.OpenFOAM-1.4/bashrc Takuya |
|
July 4, 2008, 12:47 |
Thanks Takuya, that did it, ha
|
#87 |
New Member
Hans Linqvist
Join Date: Mar 2009
Location: Älvkarleby, SE
Posts: 4
Rep Power: 17 |
Thanks Takuya, that did it, had to sourced the allwmake to
Hasse |
|
July 8, 2008, 10:55 |
when run
~/openfoam/OpenFOAM-
|
#88 |
New Member
Sean Bian
Join Date: Mar 2009
Posts: 19
Rep Power: 17 |
when run
~/openfoam/OpenFOAM-1.4/.OpenFOAM-1.4/bashrc I have the following errors: line 56: [: too many arguments line 262: [: too many arguments What can be the problem? |
|
July 9, 2008, 20:51 |
Hi Sean Bian,
Does your insta
|
#89 |
Super Moderator
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20 |
Hi Sean Bian,
Does your installation path contain a whitespace (e.g. C:\Documents and Settings\OpenFOAM)? If so could you try moving the path to the one without a whitespace. Takuya |
|
July 11, 2008, 19:03 |
Takuya,
Thanks. The files are
|
#90 |
New Member
Sean Bian
Join Date: Mar 2009
Posts: 19
Rep Power: 17 |
Takuya,
Thanks. The files are installed in C:\cygwin\OpenFOAM... but this problem is solved and i think the sources are successfully compiled now. A new problem is when I type FoamX in cygwin terminal i have the error: Can't find FoamX configuration directory at /cygerie/c /Documents and Settings/user/.OpenFOAM-1.4/apps/FoamX |
|
July 12, 2008, 21:25 |
Sean Bian,
Just like the orig
|
#91 |
Super Moderator
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20 |
Sean Bian,
Just like the original Linux version, the Cygwin version by default assumes to be compiled and installed under $HOME/OpenFOAM and $HOME should not contain a whitespace. Takuya |
|
July 14, 2008, 16:39 |
Hi All,
I am trying to comp
|
#92 |
New Member
Paul Chang
Join Date: Mar 2009
Posts: 11
Rep Power: 17 |
Hi All,
I am trying to compile OpenFOAM-1.4.3 under cygwin. Everything looked normal until I got the following message after hours of compilation. Could any gurus give me any info what's wrong with my compilation? Many thanks! /usr/bin/ld: cannot find -lfiniteVolume collect2: ld returned 1 exit status make[2]: *** [/home/paul/OpenFOAM/OpenFOAM-1.4/applications/bin/cygwinGcc4DPOpt/laplacianFoam ] Error 1 make[2]: Leaving directory `/home/paul/OpenFOAM/OpenFOAM-1.4/applications/solvers/basic/laplacianFoam' make[1]: *** [laplacianFoam] Error 2 make[1]: Leaving directory `/home/paul/OpenFOAM/OpenFOAM-1.4/applications/solvers/basic' make: *** [basic] Error 2 + cd utilities + wmake all make[1]: Entering directory `/home/paul/OpenFOAM/OpenFOAM-1.4/applications/utilities/errorEstimation' make[2]: Entering directory `/home/paul/OpenFOAM/OpenFOAM-1.4/applications/utilities/errorEstimation/estimat eScal arError' Making dependency list for source file estimateScalarError.C Dropping import dependency files make[2]: Leaving directory `/home/paul/OpenFOAM/OpenFOAM-1.4/applications/utilities/errorEstimation/estimat eScala rError' make[2]: Entering directory `/home/paul/OpenFOAM/OpenFOAM-1.4/applications/utilities/errorEstimation/estimat eScal arError' SOURCE=estimateScalarError.C ; g++ -m32 -Dcygwin -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -DNoRe pository -ftemplate-depth-30 -I/home/paul/OpenFOAM/OpenFOAM-1.4/src/finiteVolume/lnInclude -I/home/paul/OpenFOAM /OpenFOAM-1.4/src/errorEstimation/lnInclude -I/home/paul/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude -IlnInclude -I. -c $SOURCE -o Make/cygwinGcc4DPOpt/estimateScalarError.o /home/paul/OpenFOAM/OpenFOAM-1.4/wmake/bashScripts/mkObjectDir /home/paul/OpenFOAM/OpenFOAM-1.4/applications/bin /cygwinGcc4DPOpt/estimateScalarError g++ -m32 -Dcygwin -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -I/ home/paul/OpenFOAM/OpenFOAM-1.4/src/finiteVolume/lnInclude -I/home/paul/OpenFOAM/OpenFOAM-1.4/src/errorEstimatio n/lnInclude -I/home/paul/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude -IlnInclude -I. Make/cygwinGcc4DPOpt/est imateScalarError.o -L/home/paul/OpenFOAM/OpenFOAM-1.4/lib/cygwinGcc4DPOpt \ -lerrorEstimation -lfiniteVolume -lmeshTools -ldynamicMesh -lOpenFOAM -liberty -o /home/paul/OpenF OAM/OpenFOAM-1.4/applications/bin/cygwinGcc4DPOpt/estimateScalarError /usr/bin/ld: cannot find -lerrorEstimation collect2: ld returned 1 exit status make[2]: *** [/home/paul/OpenFOAM/OpenFOAM-1.4/applications/bin/cygwinGcc4DPOpt/estimateScala rError] Error 1 make[2]: Leaving directory `/home/paul/OpenFOAM/OpenFOAM-1.4/applications/utilities/errorEstimation/estimat eScala rError' make[1]: *** [estimateScalarError] Error 2 make[1]: Leaving directory `/home/paul/OpenFOAM/OpenFOAM-1.4/applications/utilities/errorEstimation' make: *** [errorEstimation] Error 2 + '[' 0 = 1 -a '' = doc ']' Paul |
|
July 14, 2008, 18:24 |
Hi Paul!
1.4.3? As the patc
|
#93 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Hi Paul!
1.4.3? As the patches posted above are for previous versions it is not sure that they are correctly applied. Make sure that they are. Please check whether this is the first error message you get during compilation (I doubt it) Bernhard
__________________
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 |
|
July 14, 2008, 22:15 |
Probably he meant the 1.4-3.cy
|
#94 |
Super Moderator
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20 |
Probably he meant the 1.4-3.cygwin version. My current guess is the available memory was not enough to link finiteVolume (see my post on June 14, 2007 above), but can't say for sure until I see the first error message.
T |
|
July 15, 2008, 13:12 |
Thanks, Bernhard and Takuya.
|
#95 |
New Member
Paul Chang
Join Date: Mar 2009
Posts: 11
Rep Power: 17 |
Thanks, Bernhard and Takuya.
Sorry for the confusion. Takuya is right, I meant 1.4-3.cygwin. I guess it is not because of the memory, which is 3.2 GB in my computer. Is the installation of "cygserver" mandatory? Since I don't have administrator privilege, I skipped the step of installing cygserver. |
|
July 15, 2008, 21:04 |
Hi Paul,
You don't need cygse
|
#96 |
Super Moderator
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20 |
Hi Paul,
You don't need cygserver unless you do parallel runs. As Bernhard said posting the first error message may be helpful. Takuya |
|
July 16, 2008, 17:10 |
Thanks, Takuya
After carefu
|
#97 |
New Member
Paul Chang
Join Date: Mar 2009
Posts: 11
Rep Power: 17 |
Thanks, Takuya
After carefully checked the compiling output info and did more internet search, I modified line 286 of the file "os-misc.h" from extern "C" int gettimeofday (struct timeval *, struct timezone *) to extern "C" int gettimeofday (struct timeval *, void*), and the errors are less than before, but the compilation is still not successful. I also noticed that almost all the errors are related to "cygwinGcc4DPOpt", which I didn't download (Is this file needed? Where can I download this package?) BTW, how can attached a text file to my message? |
|
July 17, 2008, 03:44 |
cygwinGcc4DPOpt is just a targ
|
#98 |
Super Moderator
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20 |
cygwinGcc4DPOpt is just a target name so there's no such distribution to download.
If you could precisely track down the occurrence of the first error, just copy-and-pasting several ten lines of the log around there should be enough. But if you think it is insufficient and would like to post the whole log, see the Formatting section of the forum documentation at the pane left of this forum screen. Note the size of the attachment is still limited to 50 KBytes (IIRC). T |
|
July 17, 2008, 19:55 |
I gave up compiling ver1.4 and
|
#100 |
New Member
Sean Bian
Join Date: Mar 2009
Posts: 19
Rep Power: 17 |
I gave up compiling ver1.4 and installed 1.3 binary with a nonworking FoamX. When i try to use paraFoam to view the cavity sample i just run, I can not open the controlDict.foam in the GUI. It keeps asking:
a reader for "...controlDict.foam" could not be found, please choose one... Which one should I choose? The 0 0.1 0.2 ...0.5 folds are in .../cavity and controlDict.foam is in .../system I have paraview3.2.1 installed in c:/program files/paraview3.2.1 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFoam vs CFX5 mass balance in OpenFoam | tangd | OpenFOAM Running, Solving & CFD | 33 | May 23, 2010 17:36 |
[Other] CAD and openFOAM | erik023 | OpenFOAM Meshing & Mesh Conversion | 2 | September 9, 2008 16:27 |
[blockMesh] CheckMesh error using a tutorial from OpenFOAM 114 with openFOAM 13 | martapajon | OpenFOAM Meshing & Mesh Conversion | 7 | January 21, 2008 13:52 |
OpenFOAM users in Munich OpenFOAM benutzer in M%c3%bcnchen | jaswi | OpenFOAM | 0 | August 3, 2007 14:11 |
A new Howto on the OpenFOAM Wiki Compiling OpenFOAM under Unix | mbeaudoin | OpenFOAM Installation | 2 | April 28, 2006 09:54 |