CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] installing funkySetFields

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 20, 2009, 02:40
Default installing funkySetFields
  #1
Senior Member
 
Prapanch Nair
Join Date: Mar 2009
Location: Bangalore, India
Posts: 105
Rep Power: 17
prapanj is on a distinguished road
I downloaded the tar.gz file "funkySetFields.r7106". I extracted the file to $FOAM_APP/utilities/preProcessing/ . For clarity let me call the above path as $PREPROCESS.

$PREPROCESS/funkySetFields/ has a .C file, a Dict file, valueexpressiondriv.c, h etc.

I ran wmake in $PREROCESS/funkySetFields, and got the error "myflex no rule to make target. So I copied the mybison and myflex files to $PREPROCESS/funkySetFields from the Make folder.
I edited the options file. I modified the lines "include $(MAKE_DIR)/mybison" & "include $(MAKE_DIR)/myflex" to "include mybison" and "include myflex".

again ran wmake. This is the error I am getting:

SOURCE=ValueExpressionParser.yy ; rm Make/linuxGccDPOpt/ValueExpressionParser.C Make/linuxGccDPOpt/ValueExpressionParser.tab.hh; bison -ra -S lalr1.cc -v -d $SOURCE ; mv *.tab.cc Make/linuxGccDPOpt/ValueExpressionParser.C ; mv *.tab.hh Make/linuxGccDPOpt/ValueExpressionParser.tab.hh ; mv *.hh Make/linuxGccDPOpt ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/home/rwdi/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -I/home/rwdi/OpenFOAM/OpenFOAM-1.5/src/meshTools/lnInclude -IlnInclude -I. -I/home/rwdi/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/home/rwdi/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -pthread -c Make/linuxGccDPOpt/ValueExpressionParser.C -o Make/linuxGccDPOpt/ValueExpressionParser.o
ValueExpressionParser.tab.cc: In member function ‘virtual int ve::ValueExpressionParser:arse()’:
ValueExpressionParser.tab.cc:425: error: cannot convert ‘ve::ValueExpressionParser::semantic_type*’ to ‘YYSTYPE*’ for argument ‘1’ to ‘int velex(YYSTYPE*, yy::location*, ValueExpressionDriver&)’
ValueExpressionParser.tab.cc: In member function ‘unsigned char ve::ValueExpressionParser::yytranslate_(int)’:
ValueExpressionParser.tab.cc:1788: warning: use of old-style cast
ValueExpressionParser.yy: At global scope:
ValueExpressionParser.yy:263: error: expected unqualified-id before ‘&’ token
ValueExpressionParser.yy:263: error: expected ‘,’ or ‘...’ before ‘&’ token
ValueExpressionParser.yy:263: error: invalid use of incomplete type ‘struct yy::ValueExpressionParser’
./ValueExpressionDriver.H:16: error: forward declaration of ‘struct yy::ValueExpressionParser’
make: *** [Make/linuxGccDPOpt/ValueExpressionParser.o] Error 1
.

Could someone explain what might be going wrong? I would be very thankful, if possible could you direct me to some guide that talks about the whole process? I followed the userguide tutorial that talks about how to compile turbfoam. But the above case is far more complex for me to figure out. Thank you.

Prapanj
prapanj is offline   Reply With Quote

Old   March 20, 2009, 06:39
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by prapanj View Post
I downloaded the tar.gz file "funkySetFields.r7106". I extracted the file to $FOAM_APP/utilities/preProcessing/ . For clarity let me call the above path as $PREPROCESS.
At first: is there a reason why you're using a version that is in the section "Ancient history" (http://openfoamwiki.net/index.php/Contrib_funkySetFields#Ancient_history)?

Which version of OpenFOAM are you using? If it is 1.5 go to http://openfoam-extend.svn.sourcefor...ostProcessing/ and get the most recent version by clicking on "Download tarball". For 1.4.1 use http://openfoam-extend.svn.sourcefor...ostProcessing/. For older versions you're on your own. Sorry

Quote:
Originally Posted by prapanj View Post
$PREPROCESS/funkySetFields/ has a .C file, a Dict file, valueexpressiondriv.c, h etc.

I ran wmake in $PREROCESS/funkySetFields, and got the error "myflex no rule to make target. So I copied the mybison and myflex files to $PREPROCESS/funkySetFields from the Make folder.
I edited the options file. I modified the lines "include $(MAKE_DIR)/mybison" & "include $(MAKE_DIR)/myflex" to "include mybison" and "include myflex".

again ran wmake. This is the error I am getting:

SOURCE=ValueExpressionParser.yy ; rm Make/linuxGccDPOpt/ValueExpressionParser.C Make/linuxGccDPOpt/ValueExpressionParser.tab.hh; bison -ra -S lalr1.cc -v -d $SOURCE ; mv *.tab.cc Make/linuxGccDPOpt/ValueExpressionParser.C ; mv *.tab.hh Make/linuxGccDPOpt/ValueExpressionParser.tab.hh ; mv *.hh Make/linuxGccDPOpt ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/home/rwdi/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -I/home/rwdi/OpenFOAM/OpenFOAM-1.5/src/meshTools/lnInclude -IlnInclude -I. -I/home/rwdi/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/home/rwdi/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -pthread -c Make/linuxGccDPOpt/ValueExpressionParser.C -o Make/linuxGccDPOpt/ValueExpressionParser.o
ValueExpressionParser.tab.cc: In member function ‘virtual int ve::ValueExpressionParser:arse()’:
ValueExpressionParser.tab.cc:425: error: cannot convert ‘ve::ValueExpressionParser::semantic_type*’ to ‘YYSTYPE*’ for argument ‘1’ to ‘int velex(YYSTYPE*, yy::location*, ValueExpressionDriver&)’
ValueExpressionParser.tab.cc: In member function ‘unsigned char ve::ValueExpressionParser::yytranslate_(int)’:
ValueExpressionParser.tab.cc:1788: warning: use of old-style cast
ValueExpressionParser.yy: At global scope:
ValueExpressionParser.yy:263: error: expected unqualified-id before ‘&’ token
ValueExpressionParser.yy:263: error: expected ‘,’ or ‘...’ before ‘&’ token
ValueExpressionParser.yy:263: error: invalid use of incomplete type ‘struct yy::ValueExpressionParser’
./ValueExpressionDriver.H:16: error: forward declaration of ‘struct yy::ValueExpressionParser’
make: *** [Make/linuxGccDPOpt/ValueExpressionParser.o] Error 1
.

Could someone explain what might be going wrong? I would be very thankful, if possible could you direct me to some guide that talks about the whole process? I followed the userguide tutorial that talks about how to compile turbfoam. But the above case is far more complex for me to figure out. Thank you.

Prapanj
I think I remember that one. Newer versions of bison don't like the old grammar-specifications. This is fixed in the above mentioned version (not in the 1.4.1. There you'd best use the generated Files that come with it - see the README)

Bernhard

PS: I will update the Wiki with a link to the tarball-download
gschaider is offline   Reply With Quote

Old   March 23, 2009, 00:30
Default Thank you
  #3
Senior Member
 
Prapanch Nair
Join Date: Mar 2009
Location: Bangalore, India
Posts: 105
Rep Power: 17
prapanj is on a distinguished road
Hi Bernard,

Thank you. I had looked at the wrong place for the download. I got the right now. It's up and running.

By the way, Great Tool.

thank you

Prapanj
prapanj is offline   Reply With Quote

Old   June 24, 2009, 09:56
Default
  #4
New Member
 
ozie
Join Date: Jun 2009
Posts: 4
Rep Power: 17
ozie is on a distinguished road
Hello everybody,

I downloaded funkySetField for the OpenFOAM 1.4.1 from the page
http://openfoamwiki.net/index.php/Co...funkySetFields in the directory /utilities/Preprocessing. Than I did wmake. But I had some errors as below;



SOURCE=ValueExpressionLexer.ll ; rm Make/linuxGccDPOpt/ValueExpressionLexer.C ; flex -f $SOURCE ; mv *.c Make/linuxGccDPOpt/ValueExpressionLexer.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/home/emre/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/home/emre/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -IlnInclude -I. -I/home/emre/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -pthread -c Make/linuxGccDPOpt/ValueExpressionLexer.C -o Make/linuxGccDPOpt/ValueExpressionLexer.o
rm: ne peut enlever `Make/linuxGccDPOpt/ValueExpressionLexer.C': Aucun fichier ou répertoire de ce type
/bin/sh: flex: command not found
mv: ne peut évaluer `*.c': Aucun fichier ou répertoire de ce type
g++: Make/linuxGccDPOpt/ValueExpressionLexer.C: Aucun fichier ou répertoire de ce type
g++: no input files
make: *** [Make/linuxGccDPOpt/ValueExpressionLexer.o] Erreur 1


I am new to OpenFOAM, could you help me to resolve my problem?

thank you in advance for your cooperations

Oguz,
ozie is offline   Reply With Quote

Old   June 25, 2009, 09:07
Default
  #5
New Member
 
ozie
Join Date: Jun 2009
Posts: 4
Rep Power: 17
ozie is on a distinguished road
Hello everybody,

I noticed why such an error occured as above. Because I didn`t take into account to call ./insertGenerated.sh. So I retried to compile funkysetfields..
But this time, I had the error below;

funkySetFields.C:43:26: error: timeSelector.H: Aucun fichier ou répertoire de ce type
funkySetFields.C: In function ‘int main(int, char**)’:
funkySetFields.C:193: error: ‘Foam::timeSelector’ has not been declared
funkySetFields.C:220: error: ‘Foam::timeSelector’ has not been declared
make: *** [Make/linuxGccDPOpt/funkySetFields.o] Erreur 1

So I checked funkySetFields.C. So I noticed that timeSelector.H is needed to run this program. Indeed, this file doesn`t exist among the funkySetFields files therby causing errors...

Does anyone could tell me how to find timeSelector.H, or maybe am I doing something wrong when compiling funkySetField?

oguz,
ozie is offline   Reply With Quote

Old   June 29, 2009, 10:14
Default
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by ozie View Post
Hello everybody,


funkySetFields.C:43:26: error: timeSelector.H: Aucun fichier ou répertoire de ce type

So I checked funkySetFields.C. So I noticed that timeSelector.H is needed to run this program. Indeed, this file doesn`t exist among the funkySetFields files therby causing errors...
timeSelector.H should be found in $FOAM_SRC/OpenFOAM/lnInclude in 1.5. You are using 1.5 aren't you?
gschaider is offline   Reply With Quote

Old   July 31, 2009, 11:25
Default
  #7
Member
 
Ramesh Yapalparvi
Join Date: Jun 2009
Posts: 53
Rep Power: 17
yapalparvi is on a distinguished road
Hi,

I downloaded the latest version of FunkySetFields.tar.gz for V 1.5 from the link provided. I extracted the file in /application/utilities/preProcessing. It created a direction FunkySetField..... I went into the directory and tried ./Allwmake . It saus permission denied..... . Any help would be appreciated.
Thanks
yapalparvi is offline   Reply With Quote

Old   August 3, 2009, 05:14
Default
  #8
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by yapalparvi View Post
I downloaded the latest version of FunkySetFields.tar.gz for V 1.5 from the link provided. I extracted the file in /application/utilities/preProcessing. It created a direction FunkySetField..... I went into the directory and tried ./Allwmake . It saus permission denied..... . Any help would be appreciated.
Check with "ls -l" whether the executable bits are set for Allwmake (they should be). If not then set them with "chmod a+x Allwmake"
gschaider is offline   Reply With Quote

Old   October 14, 2009, 15:58
Default
  #9
New Member
 
Steffen Goertz
Join Date: Jul 2009
Posts: 4
Rep Power: 17
Ghash is on a distinguished road
Hi

I use OpenFoam v1.6 and downloaded the right version of funkysetfields. I copied everything in the Preprocessing Folder like described above.
Now I tried to run Allwmake and I get a lot of Errors:

It starts with Errors of the type:
/home/Ghash/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../include/c++/4.3.3/x86_64-unknown-linux-gnu/bits/os_defines.h:44:22: error: features.h: Datei oder Verzeichnis nicht gefunden

then it goes on with this Error:

/home/Ghash/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude/cpuTime.H:43:23: error: sys/times.h: Datei oder Verzeichnis nicht gefunden

and then a lot of Errors like this one:

/home/Ghash/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../include/c++/4.3.3/cwchar:72: error: ‘::mbstate_t’ has not been declared

then this:

/home/Ghash/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../include/c++/4.3.3/x86_64-unknown-linux-gnu/bits/gthr-default.h:46: error: ‘pthread_key_t’ does not name a type

and so on.

All in all a lot of Errors, but I still have the hope, that there is just one reason

I'm new to OpenFoam and Linux, so sorry if this is a stupid question. And thank you for your help!!!


Ghash

Last edited by Ghash; October 14, 2009 at 18:22.
Ghash is offline   Reply With Quote

Old   October 16, 2009, 06:41
Default
  #10
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Ghash View Post
Hi

I use OpenFoam v1.6 and downloaded the right version of funkysetfields. I copied everything in the Preprocessing Folder like described above.
Now I tried to run Allwmake and I get a lot of Errors:

It starts with Errors of the type:
/home/Ghash/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../include/c++/4.3.3/x86_64-unknown-linux-gnu/bits/os_defines.h:44:22: error: features.h: Datei oder Verzeichnis nicht gefunden

then it goes on with this Error:

/home/Ghash/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude/cpuTime.H:43:23: error: sys/times.h: Datei oder Verzeichnis nicht gefunden

and then a lot of Errors like this one:

/home/Ghash/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../include/c++/4.3.3/cwchar:72: error: ‘::mbstate_t’ has not been declared

then this:

/home/Ghash/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../include/c++/4.3.3/x86_64-unknown-linux-gnu/bits/gthr-default.h:46: error: ‘pthread_key_t’ does not name a type

and so on.

All in all a lot of Errors, but I still have the hope, that there is just one reason

I'm new to OpenFoam and Linux, so sorry if this is a stupid question. And thank you for your help!!!


Ghash
Did you compile anything on that machine before? I doubt it. The features.h is part of the glibc-headers-package on my distro. My tip would be to install the gcc from your OS-Vendor (although you use the OF-provided-gcc). This usually pulls in al the necessary dependencies

Bernhard
gschaider is offline   Reply With Quote

Old   October 19, 2009, 05:30
Default
  #11
New Member
 
Steffen Goertz
Join Date: Jul 2009
Posts: 4
Rep Power: 17
Ghash is on a distinguished road
This helped, now it works! Thank you for your help.

Greetings
Ghash
Ghash is offline   Reply With Quote

Old   January 29, 2010, 02:42
Default
  #12
Member
 
Mohammad Zakerzadeh
Join Date: Dec 2009
Location: Aachen, Germany
Posts: 40
Rep Power: 16
moh1367 is on a distinguished road
Sorry!
Is there a version of FunkySetfields for 1.6. version. If yes please get me the link?
Thanks a lot
moh1367 is offline   Reply With Quote

Old   January 29, 2010, 07:00
Default
  #13
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by moh1367 View Post
Sorry!
Is there a version of FunkySetfields for 1.6. version. If yes please get me the link?
Thanks a lot
Have a look at
http://openfoamwiki.net/index.php/Co...funkySetFields
the SVN-link works out of the box. For the tarball-link just substitute 1.5 with 1.6

Bernhard
gschaider is offline   Reply With Quote

Old   January 30, 2010, 12:59
Default FunkySetFields Installation
  #14
Member
 
Mohammad Zakerzadeh
Join Date: Dec 2009
Location: Aachen, Germany
Posts: 40
Rep Power: 16
moh1367 is on a distinguished road
Thanks, but what should I do with these numerous files?
I taught I should have a .tar file!
moh1367 is offline   Reply With Quote

Old   January 30, 2010, 20:10
Default
  #15
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by moh1367 View Post
Thanks, but what should I do with these numerous files?
Compile them? No. Seriously. Which files are you talking about? In any case (getting via svn or Downloading the tarball and untarring) you get the same directory structure and it should be compiled like a regular utility
Quote:
Originally Posted by moh1367 View Post
I taught I should have a .tar file!
And you can get one. See http://openfoamwiki.net/index.php/Co...ields#Download (just before section 7.1)
gschaider is offline   Reply With Quote

Old   January 31, 2010, 01:25
Default
  #16
Member
 
Mohammad Zakerzadeh
Join Date: Dec 2009
Location: Aachen, Germany
Posts: 40
Rep Power: 16
moh1367 is on a distinguished road
Thanks!
I got it , it works!
moh1367 is offline   Reply With Quote

Old   February 17, 2010, 13:09
Default
  #17
New Member
 
raul
Join Date: Nov 2009
Posts: 13
Rep Power: 16
rudy is on a distinguished road
Hi
I use OpenFoam v1.6 and am trying to cpmpile a new utility FunkySetFields. I copied everything in the Preprocessing Folder like described above.
Now I tried to run wmake from applications/utilties/preProcessing/funkySetField and got following error.

Making dependency list for source file ValueExpressionParser.yy
could not open file ValueExpressionParser.tab.hh for source file ValueExpressionParser.yy
Making dependency list for source file ValueExpressionLexer.ll
could not open file ValueExpressionParser.tab.hh for source file ValueExpressionLexer.ll
Making dependency list for source file ValueExpressionDriver.C
could not open file ValueExpressionParser.tab.hh for source file ValueExpressionDriver.C
Making dependency list for source file funkySetFields.C
could not open file ValueExpressionParser.tab.hh for source file funkySetFields.C
SOURCE=ValueExpressionParser.yy ; rm -f Make/linuxGccDPOpt/ValueExpressionParser.C Make/linuxGccDPOpt/ValueExpressionParser.tab.hh; bison -ra -v -d $SOURCE ; mv *.tab.cc Make/linuxGccDPOpt/ValueExpressionParser.C ; mv *.tab.hh Make/linuxGccDPOpt/ValueExpressionParser.tab.hh ; mv *.hh Make/linuxGccDPOpt ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/home/rahul/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/home/rahul/OpenFOAM/OpenFOAM-1.6/src/meshTools/lnInclude -IlnInclude -I. -I/home/rahul/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/rahul/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c Make/linuxGccDPOpt/ValueExpressionParser.C -o Make/linuxGccDPOpt/ValueExpressionParser.o
In file included from Make/linuxGccDPOpt/location.hh:44,
from ValueExpressionParser.tab.hh:65,
from ValueExpressionParser.tab.cc:68:
position.hh: In function ‘bool ve:perator==(const ve:osition&, const ve:osition&)’:
position.hh:136: warning: suggest parentheses around && within ||
ValueExpressionParser.tab.cc: In member function ‘unsigned char ve::ValueExpressionParser::yytranslate_(int)’:
ValueExpressionParser.tab.cc:3207: warning: use of old-style cast
SOURCE=ValueExpressionLexer.ll ; rm Make/linuxGccDPOpt/ValueExpressionLexer.C ; flex -f $SOURCE ; mv *.c Make/linuxGccDPOpt/ValueExpressionLexer.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/home/rahul/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/home/rahul/OpenFOAM/OpenFOAM-1.6/src/meshTools/lnInclude -IlnInclude -I. -I/home/rahul/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/rahul/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c Make/linuxGccDPOpt/ValueExpressionLexer.C -o Make/linuxGccDPOpt/ValueExpressionLexer.o
rm: cannot remove `Make/linuxGccDPOpt/ValueExpressionLexer.C': No such file or directory
/bin/sh: flex: not found
mv: cannot stat `*.c': No such file or directory
g++: Make/linuxGccDPOpt/ValueExpressionLexer.C: No such file or directory
g++: no input files
make: *** [Make/linuxGccDPOpt/ValueExpressionLexer.o] Error 1

can anyone please tell me what i m doing wrong...what i can make out is may be i downloaded an older version(for 1.5) and that may be the source of error but i m not sure...Any suggestions are appreciated...
thanks,
rudy...
rudy is offline   Reply With Quote

Old   February 17, 2010, 14:12
Default
  #18
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by rudy View Post
Hi
I use OpenFoam v1.6 and am trying to cpmpile a new utility FunkySetFields. I copied everything in the Preprocessing Folder like described above.
Now I tried to run wmake from applications/utilties/preProcessing/funkySetField and got following error.

Make/linuxGccDPOpt/ValueExpressionLexer.o
<snip>
rm: cannot remove `Make/linuxGccDPOpt/ValueExpressionLexer.C': No such file or directory
/bin/sh: flex: not found
mv: cannot stat `*.c': No such file or directory
g++: Make/linuxGccDPOpt/ValueExpressionLexer.C: No such file or directory
g++: no input files
make: *** [Make/linuxGccDPOpt/ValueExpressionLexer.o] Error 1

can anyone please tell me what i m doing wrong...what i can make out is may be i downloaded an older version(for 1.5) and that may be the source of error but i m not sure...Any suggestions are appreciated...
thanks,
rudy...
First thing I noticed is the missing flex-command. Install that too on your system (bison&flex usually come in pairs. They're the Starsky&Hutch of computer science)

Bernhard
gschaider is offline   Reply With Quote

Old   March 9, 2010, 09:21
Default
  #19
Member
 
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 16
Disco_Caine is on a distinguished road
Hi, ive just downloaded funkysetfields and i need to get it running ASAP.

At first i had the funkysetfields folder in a folder called openFOAMwiki outside of the OpenFOAM-1.6.x folder, after reading the posts here i put it in the preprocessing folder.

Now i go step inside the funkySetFields folder and try this:

./insertGenerated.sh

But it says permission denied.

i tried just compiling with wmake and i get the error that the fellow above gets.

I am really new to this and very lost, so if anyone can help, please
make it very simple and clear. I am total linux-newb, perhaps even
less than a newb.

P.S: i do have another comment about installing openfoam on ubuntu,
this is on another computer.

thanks in advance!

Last edited by Disco_Caine; March 9, 2010 at 10:20.
Disco_Caine is offline   Reply With Quote

Old   March 9, 2010, 15:01
Default
  #20
Member
 
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 16
Disco_Caine is on a distinguished road
I have fixed my own problem, perhaps this is way too obvious for the almighty linux users, but i shall post it anyways, just in case another new guy runs into the same problem.

1) open up your terminal and make sure you are in the funkySetFields folder, (where the insertGenerated.sh is) and type this:

chmod +x insertGenerated.sh

2) then type:

./insertGenerated.sh

3) then, wmake.

And you are done with funkySetFields


P.S: sorry about the different fonts!

Last edited by Disco_Caine; March 10, 2010 at 10:55.
Disco_Caine is offline   Reply With Quote

Reply

Tags
funkysetfields, installation, valueexpressionparser, wmake


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 12:58
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 22:53
Install OF 1.6.ext on Arch based distribution miro2000 OpenFOAM Installation 4 October 9, 2013 15:39
[swak4Foam] installing funkySetFields igo OpenFOAM Community Contributions 1 November 20, 2012 21:16
[swak4Foam] installing funkySetFields utility for OpenFOAM 1.4.1 ozie OpenFOAM Community Contributions 8 September 8, 2011 12:16


All times are GMT -4. The time now is 23:35.