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

OpenFOAM on MinGW crosscompiler hosted on Linux

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 3, 2008, 10:16
Default Hi, Rich, Ok, I got one ste
  #41
New Member
 
Allen Zhao
Join Date: Mar 2009
Location: Westmont, IL, USA
Posts: 26
Rep Power: 17
allenzhao is on a distinguished road
Hi, Rich,

Ok, I got one step further, but now I can not link the libOpenFOAM.dll. This is the error:

+ wmake libso OpenFOAM
make: Warning: File `Make/linuxmingw32DPOpt/dontIncludeDeps' has modification time 0.076 s in the future
make: warning: Clock skew detected. Your build may be incomplete.
make: Warning: File `Make/linuxmingw32DPOpt/dontIncludeDeps' has modification time 0.037 s in the future
make: warning: Clock skew detected. Your build may be incomplete.
mingw32-g++: /User/allen/OpenFOAM/OpenFOAM-1.4.1/lib/linuxmingw32DPOpt/libosspecific.o: No such file or directory
make: *** [/User/allen/OpenFOAM/OpenFOAM-1.4.1/lib/linuxmingw32DPOpt/libOpenFOAM.dll] Error 1

Obviously, rest of dll linking will all fail due to non-existence of libOpenFOAM.dll.

The single reason for all the failures is that libosspecific.o is not built (based on the error message).

Any suggestions?

Best regards,

Allen
allenzhao is offline   Reply With Quote

Old   April 3, 2008, 10:22
Default Hi, Rich, Actually, just be
  #42
New Member
 
Allen Zhao
Join Date: Mar 2009
Location: Westmont, IL, USA
Posts: 26
Rep Power: 17
allenzhao is on a distinguished road
Hi, Rich,

Actually, just before the linking error of libOpenFOAM.dll, there are something else that I think might be related to this libosspecific.o:

+ wmake libo OSspecific/MSwindows
make: *** No rule to make target `options', needed by `linuxmingw32DPOpt/options'. Stop.
/User/allen/OpenFOAM/OpenFOAM-1.4.1/wmake/MakefileFiles:40: linuxmingw32DPOpt/options: No such file or directory
make: *** No rule to make target `linuxmingw32DPOpt/options'. Stop.
/User/allen/OpenFOAM/OpenFOAM-1.4.1/wmake/wmake: cannot make, file Make/linuxmingw32DPOpt/objectFiles was not created successfully

Rest of the linking errors are all related to missing libOpenFOAM.dll, libfinitevolume.dll, etc.

Best regards,

Allen
allenzhao is offline   Reply With Quote

Old   April 3, 2008, 10:42
Default Hi, Rich, I figured it out.
  #43
New Member
 
Allen Zhao
Join Date: Mar 2009
Location: Westmont, IL, USA
Posts: 26
Rep Power: 17
allenzhao is on a distinguished road
Hi, Rich,

I figured it out. Have to read the patch file, and find out this line:
Index: src/OSspecific/MSwindows/Make/options

But this file is not there in src/OSspecific/MSwindows/Make/. (only 'files' is there in that directory).

Well, I have to admit I know nothing about this wmake system, but I know enough about the generic make.

So, I just touch this 'options', even though that is empty.

Vola... Everything starts to link.

When do I have to create this option file myself? I thought the patch should have done that for me already. Any clue?

In any case, thank you so much for your wonderful works, Rich. Let me continue my play, and will keep everyone updated.

Best regards,

Allen
allenzhao is offline   Reply With Quote

Old   April 3, 2008, 11:04
Default Hi, Same here, I found t
  #44
Member
 
Jason Dale
Join Date: Mar 2009
Location: UK
Posts: 80
Rep Power: 17
jason is on a distinguished road
Hi,

Same here,

I found that only root was allowed to access the files that I had extracted. Once I chmod and changed the permissions to allow all read and execute access things seem to be progressing.

I can now compile and Hello World runs on Windows! Hurraha!

./Allmake for OF is now underway, will report on what happens.

Jason
jason is offline   Reply With Quote

Old   April 3, 2008, 11:31
Default Hi, Rich, On your website,
  #45
New Member
 
Allen Zhao
Join Date: Mar 2009
Location: Westmont, IL, USA
Posts: 26
Rep Power: 17
allenzhao is on a distinguished road
Hi, Rich,

On your website, you said:

"A drawback of this cross compiler approach is the inability to build a new executable using the OpenFOAM libraries under Windows unless you are willing to enable the case sensitive file system option."

Could you give us some details about "enable the case sensitive file system option"? To be able to link our C++/F90 application with these OpenFOAM DLL actually is our main interest.

Also, I notice that in your MinGW configuration, you did not say much about enable_sjlj_exceptions stuff. I am using the same vanilla gnu c as you, so what kind of potential pitfall may be resulted from enable_sjlj_exceptions = 1 configuration?

Best regards,

Allen
allenzhao is offline   Reply With Quote

Old   April 3, 2008, 11:57
Default Hi Allen, First thanks for
  #46
Senior Member
 
gocarts's Avatar
 
Richard Smith
Join Date: Mar 2009
Location: Enfield, NH, USA
Posts: 138
Blog Entries: 4
Rep Power: 17
gocarts is on a distinguished road
Hi Allen,

First thanks for figuring out the missing Make/options file problem. I've updated the patch (v5) to fix this problem. For details visit:
http://www.symscape.com/openfoam-on-windows#comment-136

Next on the "enable the case sensitive file system option," issue - it's the same problem faced by the Cygwin build, in that file names (in our case header file names) under windows are case insensitive. There is an option buried within windows (maybe just Vista?) that can make the file system case sensitive. However, I have not enabled it and I can see it leading to system instability - given the assumption by all windows apps to date that file names are case insensitive.

So at your own risk find more details at:
http://support.microsoft.com/kb/929110

I'm no compiler expert and I don't know what are the repercussions of using enable_sjlj_exceptions, maybe someone else could comment?

Rich
__________________
Symscape, Computational Fluid Dynamics for all
gocarts is offline   Reply With Quote

Old   April 3, 2008, 12:49
Default Hi, I also had the same pro
  #47
Member
 
Jason Dale
Join Date: Mar 2009
Location: UK
Posts: 80
Rep Power: 17
jason is on a distinguished road
Hi,

I also had the same problem as Allen 03/04/08 08:22 above

So, I just tried your v5 patch and this is what happens:
> ./Allwmake
+ cd wmake
+ ./makeWmake
make: Nothing to be done for `all'.
+ cd src
+ ./Allwmake
+ cd /home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OSspecific/MSwindows
+ wmakeLnInclude .
/home/igagic/OpenFOAM/OpenFOAM-1.4.1/wmake/wmakeLnInclude: linking include files to ./lnInclude

+ cd /home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM
+ wmakeLnInclude .
+ wmake libso zlib-1.2.1
Making dependency list for source file adler32.c
Making dependency list for source file compress.c
Making dependency list for source file crc32.c
Making dependency list for source file deflate.c
Making dependency list for source file gzio.c
Making dependency list for source file infback.c
Making dependency list for source file inffast.c
Making dependency list for source file inflate.c
Making dependency list for source file inftrees.c
Making dependency list for source file trees.c
Making dependency list for source file uncompr.c
Making dependency list for source file zutil.c
SOURCE=adler32.c ; i386-mingw32-gcc -m32 -Dlinux -DDP -DWIN32 -DLITTLE_ENDIAN -Wall -O3 -DNDEBUG -IlnInclude -I. -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OSspecific/MSwindows/lnInclude -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -c $SOURCE -o Make/linuxmingw32DPOpt/adler32.o
SOURCE=compress.c ; i386-mingw32-gcc -m32 -Dlinux -DDP -DWIN32 -DLITTLE_ENDIAN -Wall -O3 -DNDEBUG -IlnInclude -I. -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OSspecific/MSwindows/lnInclude -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -c $SOURCE -o Make/linuxmingw32DPOpt/compress.o
SOURCE=crc32.c ; i386-mingw32-gcc -m32 -Dlinux -DDP -DWIN32 -DLITTLE_ENDIAN -Wall -O3 -DNDEBUG -IlnInclude -I. -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OSspecific/MSwindows/lnInclude -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -c $SOURCE -o Make/linuxmingw32DPOpt/crc32.o
SOURCE=deflate.c ; i386-mingw32-gcc -m32 -Dlinux -DDP -DWIN32 -DLITTLE_ENDIAN -Wall -O3 -DNDEBUG -IlnInclude -I. -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OSspecific/MSwindows/lnInclude -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -c $SOURCE -o Make/linuxmingw32DPOpt/deflate.o
SOURCE=gzio.c ; i386-mingw32-gcc -m32 -Dlinux -DDP -DWIN32 -DLITTLE_ENDIAN -Wall -O3 -DNDEBUG -IlnInclude -I. -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OSspecific/MSwindows/lnInclude -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -c $SOURCE -o Make/linuxmingw32DPOpt/gzio.o
SOURCE=infback.c ; i386-mingw32-gcc -m32 -Dlinux -DDP -DWIN32 -DLITTLE_ENDIAN -Wall -O3 -DNDEBUG -IlnInclude -I. -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OSspecific/MSwindows/lnInclude -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -c $SOURCE -o Make/linuxmingw32DPOpt/infback.o
SOURCE=inffast.c ; i386-mingw32-gcc -m32 -Dlinux -DDP -DWIN32 -DLITTLE_ENDIAN -Wall -O3 -DNDEBUG -IlnInclude -I. -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OSspecific/MSwindows/lnInclude -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -c $SOURCE -o Make/linuxmingw32DPOpt/inffast.o
SOURCE=inflate.c ; i386-mingw32-gcc -m32 -Dlinux -DDP -DWIN32 -DLITTLE_ENDIAN -Wall -O3 -DNDEBUG -IlnInclude -I. -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OSspecific/MSwindows/lnInclude -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -c $SOURCE -o Make/linuxmingw32DPOpt/inflate.o
SOURCE=inftrees.c ; i386-mingw32-gcc -m32 -Dlinux -DDP -DWIN32 -DLITTLE_ENDIAN -Wall -O3 -DNDEBUG -IlnInclude -I. -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OSspecific/MSwindows/lnInclude -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -c $SOURCE -o Make/linuxmingw32DPOpt/inftrees.o
SOURCE=trees.c ; i386-mingw32-gcc -m32 -Dlinux -DDP -DWIN32 -DLITTLE_ENDIAN -Wall -O3 -DNDEBUG -IlnInclude -I. -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OSspecific/MSwindows/lnInclude -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -c $SOURCE -o Make/linuxmingw32DPOpt/trees.o
SOURCE=uncompr.c ; i386-mingw32-gcc -m32 -Dlinux -DDP -DWIN32 -DLITTLE_ENDIAN -Wall -O3 -DNDEBUG -IlnInclude -I. -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OSspecific/MSwindows/lnInclude -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -c $SOURCE -o Make/linuxmingw32DPOpt/uncompr.o
SOURCE=zutil.c ; i386-mingw32-gcc -m32 -Dlinux -DDP -DWIN32 -DLITTLE_ENDIAN -Wall -O3 -DNDEBUG -IlnInclude -I. -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OSspecific/MSwindows/lnInclude -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -c $SOURCE -o Make/linuxmingw32DPOpt/zutil.o
Creating library file: /home/igagic/OpenFOAM/OpenFOAM-1.4.1/lib/linuxmingw32DPOpt/libz.a
`/home/igagic/OpenFOAM/OpenFOAM-1.4.1/lib/linuxmingw32DPOpt/libz.dll' is up to date.
+ wmake libo OSspecific/MSwindows
/home/igagic/OpenFOAM/OpenFOAM-1.4.1/wmake/wmakeLnInclude: linking include files to /home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OSspecific/MSwindows/lnInclude

Making dependency list for source file OSspecific.C
could not open file OSspecific.H for source file OSspecific.C
Making dependency list for source file printStack.C
Making dependency list for source file regularExpression.C
Making dependency list for source file signals/sigFpe.C
could not open file OSspecific.H for source file signals/sigFpe.C
Making dependency list for source file signals/sigSegv.C
could not open file OSspecific.H for source file signals/sigSegv.C
Making dependency list for source file signals/sigInt.C
could not open file OSspecific.H for source file signals/sigInt.C
Making dependency list for source file signals/sigQuit.C
could not open file OSspecific.H for source file signals/sigQuit.C
Making dependency list for source file timer.C
Making dependency list for source file fileStat.C
Making dependency list for source file cpuTime/cpuTime.C
Making dependency list for source file clockTime/clockTime.C
SOURCE=OSspecific.C ; i386-mingw32-g++ -Dlinux -DDP -DWIN32 -DLITTLE_ENDIAN -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -O3 -DNDEBUG -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OSspecific/MSwindows/lnInclude -I/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -c $SOURCE -o Make/linuxmingw32DPOpt/OSspecific.o
OSspecific.C:33:24: error: OSspecific.H: No such file or directory
OSspecific.C:263: error: 'pid_t Foam::pid()' should have been declared inside 'Foam'
OSspecific.C:270: error: 'pid_t Foam::ppid()' should have been declared inside 'Foam'
OSspecific.C: In function 'pid_t Foam::ppid()':
OSspecific.C:276: error: 'Info' was not declared in this scope
OSspecific.C:276: error: 'endl' was not declared in this scope
OSspecific.C: At global scope:
OSspecific.C:283: error: 'pid_t Foam::pgid()' should have been declared inside 'Foam'
OSspecific.C: In function 'pid_t Foam::pgid()':
OSspecific.C:289: error: 'Info' was not declared in this scope
OSspecific.C:289: error: 'endl' was not declared in this scope
OSspecific.C: At global scope:
OSspecific.C:296: error: 'bool Foam::env(const Foam::word&)' should have been declared inside 'Foam'
OSspecific.C:306: error: 'Foam::string Foam::getEnv(const Foam::word&)' should have been declared inside 'Foam'
OSspecific.C:333: error: 'bool Foam::setEnv(const Foam::word&, const Foam::string&, bool)' should have been declared inside 'Foam'
OSspecific.C:341: error: 'Foam::word Foam::hostName()' should have been declared inside 'Foam'
OSspecific.C:354: error: 'Foam::word Foam::userName()' should have been declared inside 'Foam'
OSspecific.C:367: error: 'Foam::fileName Foam::home()' should have been declared inside 'Foam'
OSspecific.C:380: error: 'Foam::fileName Foam::cwd()' should have been declared inside 'Foam'
OSspecific.C: In function 'Foam::fileName Foam::cwd()':
OSspecific.C:397: error: 'FatalErrorIn' was not declared in this scope
OSspecific.C:399: error: 'FatalError' was not declared in this scope
OSspecific.C: At global scope:
OSspecific.C:406: error: 'bool Foam::chDir(const Foam::fileName&)' should have been declared inside 'Foam'
OSspecific.C:413: error: 'Foam::fileName Foam::dotFoam(const Foam::fileName&)' should have been declared inside 'Foam'
OSspecific.C: In function 'Foam::fileName Foam::dotFoam(const Foam::fileName&)':
OSspecific.C:424: error: 'exists' was not declared in this scope
OSspecific.C:433: error: 'cerr' was not declared in this scope
OSspecific.C:441: error: 'exists' was not declared in this scope
OSspecific.C:443: error: 'cerr' was not declared in this scope
OSspecific.C: At global scope:
OSspecific.C:454: error: 'bool Foam::mkDir(const Foam::fileName&, mode_t)' should have been declared inside 'Foam'
OSspecific.C: In function 'bool Foam::mkDir(const Foam::fileName&, mode_t)':
OSspecific.C:458: error: 'FatalErrorIn' was not declared in this scope
OSspecific.C:460: error: 'FatalError' was not declared in this scope
OSspecific.C:470: error: 'chmod' is not a member of 'Foam'
OSspecific.C:499: error: 'FatalErrorIn' was not declared in this scope
OSspecific.C:502: error: 'FatalError' was not declared in this scope
OSspecific.C: At global scope:
OSspecific.C:511: error: 'bool Foam::chmod(const Foam::fileName&, mode_t)' should have been declared inside 'Foam'
OSspecific.C: In function 'bool Foam::chmod(const Foam::fileName&, mode_t)':
OSspecific.C:511: error: declaration of 'bool Foam::chmod(const Foam::fileName&, mode_t)'
/usr/local/lib/gcc/i386-mingw32/4.2.1-sjlj/../../../../i386-mingw32/include/io.h :179: error: conflicts with previous declaration 'int chmod(const char*, int)'
OSspecific.C: At global scope:
OSspecific.C:519: error: 'mode_t Foam::mode(const Foam::fileName&)' should have been declared inside 'Foam'
OSspecific.C:530: error: 'Foam::fileName::Type Foam::type(const Foam::fileName&)' should have been declared inside 'Foam'
OSspecific.C:549: error: 'bool Foam::exists(const Foam::fileName&)' should have been declared inside 'Foam'
OSspecific.C: In function 'bool Foam::exists(const Foam::fileName&)':
OSspecific.C:551: error: 'file' was not declared in this scope
OSspecific.C: At global scope:
OSspecific.C:557: error: 'bool Foam::file(const Foam::fileName&)' should have been declared inside 'Foam'
OSspecific.C:566: error: 'bool Foam::dir(const Foam::fileName&)' should have been declared inside 'Foam'
OSspecific.C:574: error: 'off_t Foam::size(const Foam::fileName&)' should have been declared inside 'Foam'
OSspecific.C:585: error: 'time_t Foam::lastModified(const Foam::fileName&)' should have been declared inside 'Foam'
OSspecific.C:596: error: 'fileNameList' does not name a type
OSspecific.C:681: error: 'bool Foam::cp(const Foam::fileName&, const Foam::fileName&)' should have been declared inside 'Foam'
OSspecific.C: In function 'bool Foam::cp(const Foam::fileName&, const Foam::fileName&)':
OSspecific.C:454: error: too few arguments to function 'bool Foam::mkDir(const Foam::fileName&, mode_t)'
OSspecific.C:701: error: at this point in file
OSspecific.C:710: error: 'ios_base' has not been declared
OSspecific.C:710: error: 'ios_base' has not been declared
OSspecific.C:719: error: 'ios_base' has not been declared
OSspecific.C:719: error: 'ios_base' has not been declared
OSspecific.C:743: error: invalid use of incomplete type 'struct Foam::wordList'
/home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/fileName.H:51: error: declaration of 'struct Foam::wordList'
OSspecific.C:454: error: too few arguments to function 'bool Foam::mkDir(const Foam::fileName&, mode_t)'
OSspecific.C:747: error: at this point in file
OSspecific.C:753: error: 'fileNameList' was not declared in this scope
OSspecific.C:753: error: expected `;' before 'contents'
OSspecific.C:754: error: 'contents' was not declared in this scope
OSspecific.C:754: error: 'i' was not declared in this scope
OSspecific.C:754: error: 'forAll' was not declared in this scope
OSspecific.C:755: error: expected `;' before '{' token
OSspecific.C:1003: error: expected `}' at end of input
OSspecific.C:1003: error: expected `}' at end of input
make: *** [Make/linuxmingw32DPOpt/OSspecific.o] Error 1
+ '[' '' = OPENMPI -a '!' -r /lib/libmpi.a -a '!' -r /lib/libmpi.so ']'
+ '[' '' = LAM -a '!' -r /lib/libmpi.a -a '!' -r /lib/libmpi.so ']'
+ '[' '' = MPICH -a '!' -r /lib/libmpich.a -a '!' -r /lib/libmpich.so ']'
+ '[' mingw32 = mingw32 ']'
+ ln -s /home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/Pstream/dummy/IPread.C OpenFOAM/db/IOstreams/Pstreams/IPreadDummy.C
+ ln -s /home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/Pstream/dummy/OPwrite.C OpenFOAM/db/IOstreams/Pstreams/OPwriteDummy.C
+ ln -s /home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/Pstream/dummy/Pstream.C OpenFOAM/db/IOstreams/Pstreams/PstreamDummy.C
+ wmake libso OpenFOAM
/home/igagic/OpenFOAM/OpenFOAM-1.4.1/wmake/wmakeLnInclude: linking include files to /home/igagic/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude

Making dependency list for source file global/global.C
Making dependency list for source file global/dimensionedConstants/dimensionedConstants.C
Making dependency list for source file global/argList/argList.C
Making dependency list for source file global/clock/clock.C
Making dependency list for source file primitives/zero/zero.C
Making dependency list for source file primitives/bool/bool.C
Making dependency list for source file primitives/bool/boolIO.C
Making dependency list for source file primitives/char/charIO.C
Making dependency list for source file primitives/int/intIO.C


Is there still something wrong? Cant seem to find OSSpecific.H

Thanks

Jason
jason is offline   Reply With Quote

Old   April 3, 2008, 12:59
Default Hi, Rich, Thanks for the po
  #48
New Member
 
Allen Zhao
Join Date: Mar 2009
Location: Westmont, IL, USA
Posts: 26
Rep Power: 17
allenzhao is on a distinguished road
Hi, Rich,

Thanks for the pointers, again!

If header files are the only concern, well, I guess I am not concerned, because I am trying to do the f90 to OpenFOAM linking, and I do not work directly with OpenFOAM headers.

As I am reviewing the build result, there are still something not built:

1) libccmio:

+ wmake libso libccmio
make[3]: Entering directory `/tmp_mnt/User/allen/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/mesh/convers ion/ccm26ToFoam/libccmi
o/libccmio'
Creating library file: /User/allen/OpenFOAM/OpenFOAM-1.4.1/lib/linuxmingw32DPOpt/libccmio.accmio.o:ccmi o.c.text+0x309): undefined
reference to `_ADF_Read_Block_Data'
ccmio.o:ccmio.c.text+0x412): undefined reference to `_ADF_Read_Block_Data'
ccmio.o:ccmio.c.text+0x526): undefined reference to `_ADF_Read_Block_Data'
ccmio.o:ccmio.c.text+0x78d): undefined reference to `_ADF_Read_All_Data'
ccmio.o:ccmio.c.text+0xcbd): undefined reference to `_ADF_Read_All_Data'
ccmio.o:ccmio.c.text+0x1196): undefined reference to `_ADF_Read_All_Data'
ccmio.o:ccmio.c.text+0x16a9): undefined reference to `_ADF_Read_All_Data'
ccmio.o:ccmio.c.text+0x16b3): undefined reference to `_ADF_Read_Block_Data'
ccmio.o:ccmio.c.text+0x17be): undefined reference to `_ADF_Write_All_Data'
ccmio.o:ccmio.c.text+0x17c8): undefined reference to `_ADF_Write_Block_Data'
ccmio.o:ccmio.c.text+0x6d90): undefined reference to `_ADF_Read_Block_Data'
ccmio.o:ccmio.c.text+0x6ec8): undefined reference to `_ADF_Read_Block_Data'
ccmio.o:ccmio.c.text+0x6ffd): undefined reference to `_ADF_Read_Block_Data'
ccmio.o:ccmio.c.text+0xab9c): undefined reference to `_ADF_Read_Block_Data'
ccmio.o:ccmio.c.text+0xac44): undefined reference to `_ADF_Read_Block_Data'
ccmio.o:ccmio.c.text+0xacec): more undefined references to `_ADF_Read_Block_Data' follow
ccmiocore.o:ccmiocore.c.text+0xbb): undefined reference to `_ADF_Get_Root_ID'
ccmiocore.o:ccmiocore.c.text+0x130): undefined reference to `_ADF_Get_Data_Type'
ccmiocore.o:ccmiocore.c.text+0x1e0): undefined reference to `_ADF_Move_Child'
ccmiocore.o:ccmiocore.c.text+0x244): undefined reference to `_ADF_Delete'
ccmiocore.o:ccmiocore.c.text+0x2e1): undefined reference to `_ADF_Link'
ccmiocore.o:ccmiocore.c.text+0x357): undefined reference to `_ADF_Set_Label'
ccmiocore.o:ccmiocore.c.text+0x3d8): undefined reference to `_ADF_Get_Label'
ccmiocore.o:ccmiocore.c.text+0x44c): undefined reference to `_ADF_Put_Name'
ccmiocore.o:ccmiocore.c.text+0x4d0): undefined reference to `_ADF_Get_Name'
ccmiocore.o:ccmiocore.c.text+0x555): undefined reference to `_ADF_Children_Names'
ccmiocore.o:ccmiocore.c.text+0x5a0): undefined reference to `_ADF_Get_Node_ID'
ccmiocore.o:ccmiocore.c.text+0x635): undefined reference to `_ADF_Number_of_Children'
ccmiocore.o:ccmiocore.c.text+0x700): undefined reference to `_ADF_Get_Node_ID'
ccmiocore.o:ccmiocore.c.text+0x72e): undefined reference to `_ADF_Get_Node_ID'
ccmiocore.o:ccmiocore.c.text+0x80c): undefined reference to `_ADF_Get_Number_of_Dimensions'
ccmiocore.o:ccmiocore.c.text+0x848): undefined reference to `_ADF_Get_Number_of_Dimensions'
ccmiocore.o:ccmiocore.c.text+0x875): undefined reference to `_ADF_Get_Dimension_Values'
ccmiocore.o:ccmiocore.c.text+0x909): undefined reference to `_ADF_Get_Dimension_Values'
ccmiocore.o:ccmiocore.c.text+0x93f): undefined reference to `_ADF_Read_All_Data'
ccmiocore.o:ccmiocore.c.text+0xae0): undefined reference to `_ADF_Create'
ccmiocore.o:ccmiocore.c.text+0xb16): undefined reference to `_ADF_Set_Label'
ccmiocore.o:ccmiocore.c.text+0xb92): undefined reference to `_ADF_Database_Close'
ccmiocore.o:ccmiocore.c.text+0xbe1): undefined reference to `_ADF_Database_Open'
ccmiocore.o:ccmiocore.c.text+0xde8): undefined reference to `_ADF_Delete'
ccmiocore.o:ccmiocore.c.text+0xe32): undefined reference to `_ADF_Put_Dimension_Information'
ccmiocore.o:ccmiocore.c.text+0xe9b): undefined reference to `_ADF_Put_Dimension_Information'
ccmiocore.o:ccmiocore.c.text+0x1010): undefined reference to `_ADF_Write_All_Data'
ccmiocore.o:ccmiocore.c.text+0x106f): undefined reference to `_ADF_Put_Dimension_Information'
ccmiocore.o:ccmiocore.c.text+0x1393): undefined reference to `_ADF_Number_of_Children'
ccmiocore.o:ccmiocore.c.text+0x141c): undefined reference to `_ADF_Number_of_Children'
ccmiocore.o:ccmiocore.c.text+0x144c): undefined reference to `_ADF_Delete'
ccmiocore.o:ccmiocore.c.text+0x14fe): undefined reference to `_ADF_Get_Data_Type'
ccmioprivate.o:ccmioprivate.c.text+0x1b2): undefined reference to `_ADF_Get_Number_of_Dimensions'
ccmioprivate.o:ccmioprivate.c.text+0x1ee): undefined reference to `_ADF_Get_Dimension_Values'
ccmioprivate.o:ccmioprivate.c.text+0x335): undefined reference to `_ADF_Get_Data_Type'
ccmioprivate.o:ccmioprivate.c.text+0x37b): undefined reference to `_ADF_Get_Number_of_Dimensions'
ccmioprivate.o:ccmioprivate.c.text+0x478): undefined reference to `_ADF_Get_Number_of_Dimensions'
ccmioprivate.o:ccmioprivate.c.text+0x4e2): undefined reference to `_ADF_Get_Dimension_Values'
ccmioutility.o:ccmioutility.c.text+0x184): undefined reference to `_ADF_Put_Dimension_Information'
ccmioutility.o:ccmioutility.c.text+0x2fe): undefined reference to `_ADF_Write_All_Data'
ccmioutility.o:ccmioutility.c.text+0x372): undefined reference to `_ADF_Read_All_Data'
collect2: ld returned 1 exit status

make[3]: *** [/User/allen/OpenFOAM/OpenFOAM-1.4.1/lib/linuxmingw32DPOpt/libccmio.dll] Error 1

2) libcgns

+ wmake libso libcgns
make[3]: Entering directory `/tmp_mnt/User/allen/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/mesh/convers ion/ccm26ToFoam/libccmi
o/libcgns'
Creating library file: /User/allen/OpenFOAM/OpenFOAM-1.4.1/lib/linuxmingw32DPOpt/libcgns.aadf_cond.o:ad f_cond.c.text+0x26): undef
ined reference to `_ADF_Get_Label'
adf_cond.o:adf_cond.c.text+0x4d): undefined reference to `_ADF_Set_Label'
adf_cond.o:adf_cond.c.text+0x74): undefined reference to `_ADF_Get_Data_Type'
adf_cond.o:adf_cond.c.text+0x9b): undefined reference to `_ADF_Get_Number_of_Dimensions'
adf_cond.o:adf_cond.c.text+0xce): undefined reference to `_ADF_Number_of_Children'
adf_cond.o:adf_cond.c.text+0x11d): undefined reference to `_ADF_Get_Link_Path'
adf_cond.o:adf_cond.c.text+0x178): undefined reference to `_ADF_Link'
adf_cond.o:adf_cond.c.text+0x1ad): undefined reference to `_ADF_Children_IDs'
adf_cond.o:adf_cond.c.text+0x1d4): undefined reference to `_ADF_Get_Name'
adf_cond.o:adf_cond.c.text+0x1fb): undefined reference to `_ADF_Is_Link'
adf_cond.o:adf_cond.c.text+0x237): undefined reference to `_ADF_Create'
adf_cond.o:adf_cond.c.text+0x284): undefined reference to `_ADF_Get_Dimension_Values'
adf_cond.o:adf_cond.c.text+0x2b9): undefined reference to `_ADF_Put_Dimension_Information'
adf_cond.o:adf_cond.c.text+0x3a4): undefined reference to `_ADF_Error_Message'
adf_cond.o:adf_cond.c.text+0x4c6): undefined reference to `_ADF_Read_All_Data'
adf_cond.o:adf_cond.c.text+0x4ee): undefined reference to `_ADF_Write_All_Data'
adf_cond.o:adf_cond.c.text+0x6ec): undefined reference to `_ADF_Database_Close'
adf_ftoc.o:adf_ftoc.c.text+0x16): undefined reference to `_ADFWBLK'
adf_ftoc.o:adf_ftoc.c.text+0x34): undefined reference to `_ADFWALL'
adf_ftoc.o:adf_ftoc.c.text+0x68): undefined reference to `_ADFWRIT'
adf_ftoc.o:adf_ftoc.c.text+0x8a): undefined reference to `_ADFRBLK'
adf_ftoc.o:adf_ftoc.c.text+0xa8): undefined reference to `_ADFRALL'
adf_ftoc.o:adf_ftoc.c.text+0xdc): undefined reference to `_ADFREAD'
adf_ftoc.o:adf_ftoc.c.text+0x102): undefined reference to `_ADFSLB2'
adf_ftoc.o:adf_ftoc.c.text+0x11d): undefined reference to `_ADFSES2'
adf_ftoc.o:adf_ftoc.c.text+0x145): undefined reference to `_ADFPNA2'
adf_ftoc.o:adf_ftoc.c.text+0x170): undefined reference to `_ADFPDI2'
adf_ftoc.o:adf_ftoc.c.text+0x18c): undefined reference to `_ADFNCL2'
adf_ftoc.o:adf_ftoc.c.text+0x1ab): undefined reference to `_ADFMOV2'
adf_ftoc.o:adf_ftoc.c.text+0x1cf): undefined reference to `_ADFLVE2'
adf_ftoc.o:adf_ftoc.c.text+0x213): undefined reference to `_ADFLIN2'
adf_ftoc.o:adf_ftoc.c.text+0x230): undefined reference to `_ADFISL2'
adf_ftoc.o:adf_ftoc.c.text+0x24c): undefined reference to `_ADFGRI2'
adf_ftoc.o:adf_ftoc.c.text+0x275): undefined reference to `_ADFGNI2'
adf_ftoc.o:adf_ftoc.c.text+0x290): undefined reference to `_ADFGND2'
adf_ftoc.o:adf_ftoc.c.text+0x2b6): undefined reference to `_ADFGNA2'
adf_ftoc.o:adf_ftoc.c.text+0x2eb): undefined reference to `_ADFGLK2'
adf_ftoc.o:adf_ftoc.c.text+0x312): undefined reference to `_ADFGLB2'
adf_ftoc.o:adf_ftoc.c.text+0x32d): undefined reference to `_ADFGES2'
adf_ftoc.o:adf_ftoc.c.text+0x348): undefined reference to `_ADFGDV2'
adf_ftoc.o:adf_ftoc.c.text+0x36e): undefined reference to `_ADFGDT2'
adf_ftoc.o:adf_ftoc.c.text+0x389): undefined reference to `_ADFFTD2'
adf_ftoc.o:adf_ftoc.c.text+0x3ab): undefined reference to `_ADFERR2'
adf_ftoc.o:adf_ftoc.c.text+0x3ec): undefined reference to `_ADFDVE2'
adf_ftoc.o:adf_ftoc.c.text+0x412): undefined reference to `_ADFDSF2'
adf_ftoc.o:adf_ftoc.c.text+0x454): undefined reference to `_ADFDOP2'
adf_ftoc.o:adf_ftoc.c.text+0x47a): undefined reference to `_ADFDGF2'
adf_ftoc.o:adf_ftoc.c.text+0x495): undefined reference to `_ADFDGC2'
adf_ftoc.o:adf_ftoc.c.text+0x4b0): undefined reference to `_ADFDEL2'
adf_ftoc.o:adf_ftoc.c.text+0x4d3): undefined reference to `_ADFDDE2'
adf_ftoc.o:adf_ftoc.c.text+0x4ed): undefined reference to `_ADFDCL2'
adf_ftoc.o:adf_ftoc.c.text+0x515): undefined reference to `_ADFCRE2'
adf_ftoc.o:adf_ftoc.c.text+0x539): undefined reference to `_ADFCID2'
adf_ftoc.o:adf_ftoc.c.text+0x56a): undefined reference to `_ADFCNA2'
cgns_error.o:cgns_error.c.text+0xd7): undefined reference to `_ADF_Error_Message'
cgns_internals.o:cgns_internals.c.text+0x1e3e): undefined reference to `_ADF_Delete'
cgns_internals.o:cgns_internals.c.text+0x1e97): undefined reference to `_ADF_Move_Child'
cgns_internals.o:cgns_internals.c.text+0x1ed4): undefined reference to `_ADF_Put_Name'
cgns_internals.o:cgns_internals.c.text+0x1f23): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0x1f79): undefined reference to `_ADF_Is_Link'
cgns_internals.o:cgns_internals.c.text+0x1fdc): undefined reference to `_ADF_Get_Link_Path'
cgns_internals.o:cgns_internals.c.text+0x2373): undefined reference to `_ADF_Create'
cgns_internals.o:cgns_internals.c.text+0x23d4): undefined reference to `_ADF_Set_Label'
cgns_internals.o:cgns_internals.c.text+0x2431): undefined reference to `_ADF_Put_Dimension_Information'
cgns_internals.o:cgns_internals.c.text+0x24fe): undefined reference to `_ADF_Write_All_Data'
cgns_internals.o:cgns_internals.c.text+0x34b6): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0x3577): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0x36b8): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0x7988): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0x7ad2): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0x7c18): more undefined references to `_ADF_Link' follow
cgns_internals.o:cgns_internals.c.text+0x7f63): undefined reference to `_ADF_Move_Child'
cgns_internals.o:cgns_internals.c.text+0x7f89): undefined reference to `_ADF_Put_Name'
cgns_internals.o:cgns_internals.c.text+0x8052): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0x8148): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0x8257): undefined reference to `_ADF_Move_Child'
cgns_internals.o:cgns_internals.c.text+0x8293): undefined reference to `_ADF_Put_Name'
cgns_internals.o:cgns_internals.c.text+0x8303): undefined reference to `_ADF_Move_Child'
cgns_internals.o:cgns_internals.c.text+0x8328): undefined reference to `_ADF_Put_Name'
cgns_internals.o:cgns_internals.c.text+0x836a): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0x84ca): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0x856a): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0x872a): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0x87ca): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0x896a): more undefined references to `_ADF_Link' follow
cgns_internals.o:cgns_internals.c.text+0xa06e): undefined reference to `_ADF_Move_Child'
cgns_internals.o:cgns_internals.c.text+0xa208): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0xa252): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0xa2f3): undefined reference to `_ADF_Put_Name'
cgns_internals.o:cgns_internals.c.text+0xa507): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0xa5e6): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0xa76e): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0xa80e): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0xa8cc): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0xa91e): more undefined references to `_ADF_Link' follow
cgns_internals.o:cgns_internals.c.text+0xae99): undefined reference to `_ADF_Move_Child'
cgns_internals.o:cgns_internals.c.text+0xaed3): undefined reference to `_ADF_Put_Name'
cgns_internals.o:cgns_internals.c.text+0xaf40): undefined reference to `_ADF_Move_Child'
cgns_internals.o:cgns_internals.c.text+0xaf63): undefined reference to `_ADF_Put_Name'
cgns_internals.o:cgns_internals.c.text+0xafce): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0xb14b): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0xb28e): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0xb380): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0xb4b2): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0xb6ac): more undefined references to `_ADF_Link' follow
cgns_internals.o:cgns_internals.c.text+0xdc22): undefined reference to `_ADF_Delete'
cgns_internals.o:cgns_internals.c.text+0xdf15): undefined reference to `_ADF_Delete'
cgns_internals.o:cgns_internals.c.text+0xf92e): undefined reference to `_ADF_Delete'
cgns_internals.o:cgns_internals.c.text+0xfdc6): undefined reference to `_ADF_Delete'
cgns_internals.o:cgns_internals.c.text+0x10f10): undefined reference to `_ADF_Delete'
cgns_internals.o:cgns_internals.c.text+0x110a6): more undefined references to `_ADF_Delete' follow
cgns_internals.o:cgns_internals.c.text+0x14327): undefined reference to `_ADF_Number_of_Children'
cgns_internals.o:cgns_internals.c.text+0x1438c): undefined reference to `_ADF_Children_IDs'
cgns_internals.o:cgns_internals.c.text+0x143e0): undefined reference to `_ADF_Get_Label'
cgns_internals.o:cgns_internals.c.text+0x145fa): undefined reference to `_ADF_Delete'
cgns_internals.o:cgns_internals.c.text+0x1478e): undefined reference to `_ADF_Delete'
cgns_internals.o:cgns_internals.c.text+0x14a4f): undefined reference to `_ADF_Delete'
cgns_internals.o:cgns_internals.c.text+0x14c6e): undefined reference to `_ADF_Delete'
cgns_internals.o:cgns_internals.c.text+0x14e36): undefined reference to `_ADF_Delete'
cgns_internals.o:cgns_internals.c.text+0x15292): more undefined references to `_ADF_Delete' follow
cgns_internals.o:cgns_internals.c.text+0x1539a): undefined reference to `_ADF_Get_Name'
cgns_internals.o:cgns_internals.c.text+0x1572a): undefined reference to `_ADF_Link'
cgns_internals.o:cgns_internals.c.text+0x15b44): undefined reference to `_ADF_Get_Name'
cgns_internals.o:cgns_internals.c.text+0x15b7b): undefined reference to `_ADF_Get_Data_Type'
cgns_internals.o:cgns_internals.c.text+0x15bd3): undefined reference to `_ADF_Get_Number_of_Dimensions'
cgns_internals.o:cgns_internals.c.text+0x15c07): undefined reference to `_ADF_Get_Dimension_Values'
cgns_internals.o:cgns_internals.c.text+0x15ca3): undefined reference to `_ADF_Read_All_Data'
cgns_internals.o:cgns_internals.c.text+0x161db): undefined reference to `_ADF_Put_Dimension_Information'
cgns_internals.o:cgns_internals.c.text+0x16330): undefined reference to `_ADF_Read_All_Data'
cgns_internals.o:cgns_internals.c.text+0x1657e): undefined reference to `_ADF_Get_Name'
cgns_internals.o:cgns_internals.c.text+0x16618): undefined reference to `_ADF_Delete'
cgns_internals.o:cgns_internals.c.text+0x17e81): undefined reference to `_ADF_Get_Name'
cgns_internals.o:cgns_internals.c.text+0x180b6): undefined reference to `_ADF_Get_Name'
cgns_internals.o:cgns_internals.c.text+0x1874f): undefined reference to `_ADF_Get_Name'
cgns_internals.o:cgns_internals.c.text+0x18d7d): undefined reference to `_ADF_Get_Name'
cgns_internals.o:cgns_internals.c.text+0x1907c): undefined reference to `_ADF_Get_Name'
cgns_internals.o:cgns_internals.c.text+0x195a9): more undefined references to `_ADF_Get_Name' follow
cgns_internals.o:cgns_internals.c.text+0x2033d): undefined reference to `_ADF_Get_Node_ID'
cgns_internals.o:cgns_internals.c.text+0x20427): undefined reference to `_ADF_Delete'
cgns_internals.o:cgns_internals.c.text+0x205ab): undefined reference to `_ADF_Get_Name'
cgns_internals.o:cgns_internals.c.text+0x21537): undefined reference to `_ADF_Get_Name'
cgns_internals.o:cgns_internals.c.text+0x21697): undefined reference to `_ADF_Get_Name'
cgns_internals.o:cgns_internals.c.text+0x2189c): undefined reference to `_ADF_Get_Name'
cgns_internals.o:cgns_internals.c.text+0x21be3): undefined reference to `_ADF_Get_Name'
cgns_internals.o:cgns_internals.c.text+0x21f1e): undefined reference to `_ADF_Move_Child'
cgns_internals.o:cgns_internals.c.text+0x22059): undefined reference to `_ADF_Move_Child'
cgns_internals.o:cgns_internals.c.text+0x22099): undefined reference to `_ADF_Delete'
cgns_internals.o:cgns_internals.c.text+0x222da): undefined reference to `_ADF_Get_Name'
cgns_internals.o:cgns_internals.c.text+0x228c9): undefined reference to `_ADF_Get_Name'
cgns_internals.o:cgns_internals.c.text+0x2310e): undefined reference to `_ADF_Get_Name'
cgns_internals.o:cgns_internals.c.text+0x23474): undefined reference to `_ADF_Put_Dimension_Information'
cgns_internals.o:cgns_internals.c.text+0x234a6): undefined reference to `_ADF_Write_All_Data'
cgns_internals.o:cgns_internals.c.text+0x23869): undefined reference to `_ADF_Get_Name'
cgns_internals.o:cgns_internals.c.text+0x241d6): undefined reference to `_ADF_Put_Dimension_Information'
cgns_internals.o:cgns_internals.c.text+0x24241): undefined reference to `_ADF_Write_All_Data'
cgns_internals.o:cgns_internals.c.text+0x244f3): undefined reference to `_ADF_Put_Dimension_Information'
cgns_internals.o:cgns_internals.c.text+0x2479f): undefined reference to `_ADF_Write_All_Data'
cgnslib.o:cgnslib.c.text+0x565): undefined reference to `_ADF_Get_Node_ID'
cgnslib.o:cgnslib.c.text+0x59d): undefined reference to `_ADF_Get_Label'
cgnslib.o:cgnslib.c.text+0x7cc2): undefined reference to `_ADF_Link'
cgnslib.o:cgnslib.c.text+0xedca): undefined reference to `_ADF_Write_All_Data'
cgnslib.o:cgnslib.c.text+0xf9cd): undefined reference to `_ADF_Write_All_Data'
cgnslib.o:cgnslib.c.text+0x11257): undefined reference to `_ADF_Get_Link_Path'
cgnslib.o:cgnslib.c.text+0x1137b): undefined reference to `_ADF_Is_Link'
cgnslib.o:cgnslib.c.text+0x1154c): undefined reference to `_ADF_Read_All_Data'
cgnslib.o:cgnslib.c.text+0x1160f): undefined reference to `_ADF_Read_All_Data'
cgnslib.o:cgnslib.c.text+0x1186c): undefined reference to `_ADF_Read_All_Data'
cgnslib.o:cgnslib.c.text+0x11a93): undefined reference to `_ADF_Read_All_Data'
cgnslib.o:cgnslib.c.text+0x128f5): undefined reference to `_ADF_Read_All_Data'
cgnslib.o:cgnslib.c.text+0x12a7a): more undefined references to `_ADF_Read_All_Data' follow
cgnslib.o:cgnslib.c.text+0x14853): undefined reference to `_ADF_Database_Close'
cgnslib.o:cgnslib.c.text+0x148dc): undefined reference to `_ADF_Database_Open'
cgnslib.o:cgnslib.c.text+0x14942): undefined reference to `_ADF_Flush_to_Disk'
cgnslib.o:cgnslib.c.text+0x1496c): undefined reference to `_ADF_Database_Close'
cgnslib.o:cgnslib.c.text+0x14ce3): undefined reference to `_ADF_Database_Open'
cgnslib.o:cgnslib.c.text+0x14e82): undefined reference to `_ADF_Database_Version'
cgnslib.o:cgnslib.c.text+0x14f48): undefined reference to `_ADF_Library_Version'
cgnslib.o:cgnslib.c.text+0x15047): undefined reference to `_ADF_Write_All_Data'
collect2: ld returned 1 exit status

make[3]: *** [/User/allen/OpenFOAM/OpenFOAM-1.4.1/lib/linuxmingw32DPOpt/libcgns.dll] Error 1


3) Other failures related:
metis-5.0pre2/GKlib and libdecompositionMethods.dll that depends metis.

Nevertheless, we can indeed run some OpenFOAM applications on Windows now.
allenzhao is offline   Reply With Quote

Old   April 3, 2008, 13:03
Default Hi Jason, Looks like as you
  #49
Senior Member
 
gocarts's Avatar
 
Richard Smith
Join Date: Mar 2009
Location: Enfield, NH, USA
Posts: 138
Blog Entries: 4
Rep Power: 17
gocarts is on a distinguished road
Hi Jason,

Looks like as you say OSspecific.H is missing.

You have to remove src/OpenFOAM/OSspecific *prior* to applying the patch. *After* applying the patch it will recreate the src/OpenFOAM/OSspecific directory with OSspecific.H in it.

The patch also creates src/OSspecific which contains platform specific directories and files.

Hope this helps.
Rich
__________________
Symscape, Computational Fluid Dynamics for all
gocarts is offline   Reply With Quote

Old   April 3, 2008, 13:09
Default Hi Allen, I made no attempt
  #50
Senior Member
 
gocarts's Avatar
 
Richard Smith
Join Date: Mar 2009
Location: Enfield, NH, USA
Posts: 138
Blog Entries: 4
Rep Power: 17
gocarts is on a distinguished road
Hi Allen,

I made no attempt to get those libraries (libcgns or metis) to compile. A juicy piece of work for anyone interested.

As you said, they fail but the build still continues.

Rich
__________________
Symscape, Computational Fluid Dynamics for all
gocarts is offline   Reply With Quote

Old   April 4, 2008, 06:58
Default Hi, I deleted the whole OF
  #51
Member
 
Jason Dale
Join Date: Mar 2009
Location: UK
Posts: 80
Rep Power: 17
jason is on a distinguished road
Hi,

I deleted the whole OF installation and I went back and started from No. 3 of your installation instructions. I certainly removed the directory src/OpenFOAM/OSspecific 'before' applying the v5 patch but I still got the same error.

So, I copied

src/OpenFOAM/OSspecific/OSspecific.H

to

src/OSspecific/MSwindows/OSspecific.H

and now it appears to be compiling quite happily.

Is this a problem with your patch or did I do something wrong? or maybe right?

Regards

Jason
jason is offline   Reply With Quote

Old   April 4, 2008, 09:26
Default Hi Jason, I think the probl
  #52
Senior Member
 
gocarts's Avatar
 
Richard Smith
Join Date: Mar 2009
Location: Enfield, NH, USA
Posts: 138
Blog Entries: 4
Rep Power: 17
gocarts is on a distinguished road
Hi Jason,

I think the problem lies not with you, but with the vanilla OpenFOAM distribution containing 'lnInclude' directories.

This prevents the initialization of the 'src/OpenFOAM/lnInclude directory' which should contain a link to 'src/OpenFOAM/OSspecific/OSspecific.H'

So I suggest
1) you remove the file you added - 'src/OSspecific/MSwindows/OSspecific.H'
2) in the top OpenFOAM directory issue the command 'wcleanLnIncludeAll'
3) Rebuild as normal.

Sorry about the confusion this has caused. I've added add extra step to the build process to account for this at:
http://www.symscape.com/openfoam-on-windows

Thanks for your feedback.

Rich
__________________
Symscape, Computational Fluid Dynamics for all
gocarts is offline   Reply With Quote

Old   April 4, 2008, 16:26
Default Hi, Rich, Just got OpenFOAM
  #53
New Member
 
Allen Zhao
Join Date: Mar 2009
Location: Westmont, IL, USA
Posts: 26
Rep Power: 17
allenzhao is on a distinguished road
Hi, Rich,

Just got OpenFOAM linking with our flagship GTsuite product on Windows today. Very good news. Thank you so much for all the wonderful works.

Just a thought, though. Do you think you (maybe we together) to convince the OpenFOAM team to include your patches to the final source code distribution? I would think that would be wonderful, to us and to our customers who may want to compile their own binaries (linux or win32-mingw).

Any chance that this may ever happen? Anybody that should be contacted? Any idea?

Best regards,

Allen Zhao
allenzhao is offline   Reply With Quote

Old   April 4, 2008, 16:37
Default Hi Rich, Happy to report th
  #54
Member
 
Jason Dale
Join Date: Mar 2009
Location: UK
Posts: 80
Rep Power: 17
jason is on a distinguished road
Hi Rich,

Happy to report that almost all of OF compiled on OpenSUSE 10.2 (32bit) and seems to work great on Windows (havent tried your latest suggestion yet though), apart from the ones you mentioned on your web page....in a rush today but will try to list them at some point. The compile process did keep exiting whenever an uncompilable application was encountered so I had to remove the offending folder and then restart ./Allmake

Also, can patchTool be compiled for windows?

Also, for postprocessing in windows use

foamToVTK . casename -ascii

and this seems to work ok, no unix2dos needed.

will do some performance tests at some point!

Regards

Jason
jason is offline   Reply With Quote

Old   April 4, 2008, 16:52
Default Hi Allen, Great that it wor
  #55
Senior Member
 
gocarts's Avatar
 
Richard Smith
Join Date: Mar 2009
Location: Enfield, NH, USA
Posts: 138
Blog Entries: 4
Rep Power: 17
gocarts is on a distinguished road
Hi Allen,

Great that it worked out. Thanks for your feedback along with everyone else in this thread. If you get a chance to provide credit for this work in your product documentation please mention Symscape and our URL http://www.symscape.com/

Throughout the porting process I sought Henry Weller's advice and he was very supportive of this effort. So I think there is every chance that it will find its way into the official OpenFOAM source code distribution.

Rich
__________________
Symscape, Computational Fluid Dynamics for all
gocarts is offline   Reply With Quote

Old   April 4, 2008, 17:13
Default Hi Jason, Thanks again for
  #56
Senior Member
 
gocarts's Avatar
 
Richard Smith
Join Date: Mar 2009
Location: Enfield, NH, USA
Posts: 138
Blog Entries: 4
Rep Power: 17
gocarts is on a distinguished road
Hi Jason,

Thanks again for the feedback. When you find a spare moment - a summary of the directories that wouldn't compile and stopped the build would be useful.

There are a few known instances were libraries failed to compile as Allen pointed out, but they didn't cause the build to stop.

I didn't try compiling patchTool, given that it relies on mico and java. Takuya is probably better placed to comment on this with his experience of compiling under Cygwin.

Rich
__________________
Symscape, Computational Fluid Dynamics for all
gocarts is offline   Reply With Quote

Old   April 24, 2008, 09:00
Default Hi, Is there any change the
  #57
New Member
 
Lourens Aanen
Join Date: Mar 2009
Posts: 16
Rep Power: 17
lourens is on a distinguished road
Hi,

Is there any change there will become a compiled set of binaries available for download somewhere? I think that would help a lot of people who don't have the opportunity to compile the binaries, since they don't have access to a linux machine.

Regards,

Lourens.
lourens is offline   Reply With Quote

Old   December 24, 2008, 13:05
Default Hi Richard I Have followed
  #58
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 17
alexandrepereira is on a distinguished road
Hi Richard

I Have followed your instructions on Building a port of OpenFOAM for windows in a Linux machine...

/home/richardsmith/projects/win32compiler/gcc4.2.3/install:

No such file or directory
Installing cross libs and includes
Extracting binutils
Configuring binutils
Building binutils
Installing binutils
Extracting gcc
Configuring gcc
Building gcc
Installing gcc
Finalizing installation
Installation complete!


But when I try to
Quote

" Add #include_next <float.h> to the end of
"lib/gcc/mingw32/4.2.3/include/float.h" and remove it from
"mingw32/include/float.h" to include the right "float.h". "

I cannot find such a thing as a

lib/gcc/mingw32/4.2.3/include/float.h

my /usr/lib/gcc is like this

root@iskandhar:/home/alex/Desktop# ls /usr/lib/gcc
arm-wince-pe i486-linux-gnu i586-mingw32msvc

and furthermore,

root@iskandhar:/home/alex/Desktop# find /usr -name *mingw32*
/usr/lib/gcc/i586-mingw32msvc
/usr/lib/python2.4/site-packages/numpy/distutils/mingw32ccompiler.py
/usr/lib/python2.4/site-packages/numpy/distutils/mingw32ccompiler.pyc
/usr/lib/python2.5/site-packages/numpy/distutils/mingw32ccompiler.py
/usr/lib/python2.5/site-packages/numpy/distutils/mingw32ccompiler.pyc
root@iskandhar:/home/alex/Desktop#


Something is quite wrong here... can someone tell me what it is...?

Shouldn't mingw32-gcc compiler have been installed in /usr/bin...?

The i586-mingw32msvc folder is from a previous install of mingw32msvc from the repositories in Ubuntu 7.10...

Why does the script fails...?

Best regards

Alex

BTW Merry Christmas... :-)
alexandrepereira is offline   Reply With Quote

Old   December 24, 2008, 21:28
Default Hi Alex, My recommendation
  #59
Senior Member
 
gocarts's Avatar
 
Richard Smith
Join Date: Mar 2009
Location: Enfield, NH, USA
Posts: 138
Blog Entries: 4
Rep Power: 17
gocarts is on a distinguished road
Hi Alex,

My recommendation is to install the MinGW compiler in a local directory and then add it your path prior to the system binaries etc.

Within the script I used at: http://www.symscape.com/openfoam-1-5-x-on-windows

There's a variable you need to set with your local directory, something like:
WIN32_COMPILER_HOME=$HOME/projects/win32compiler/gcc4.2.3

Then I think the rest of the script should be able to do its thing.

Hope this helps
__________________
Symscape, Computational Fluid Dynamics for all
gocarts is offline   Reply With Quote

Old   December 25, 2008, 22:35
Default Man... this is not easy... :-
  #60
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 17
alexandrepereira is on a distinguished road
Man... this is not easy... :-)

So... I rm my previous installation of OpenFOAM-1.4.1, and reinstalled it from scratch, rebuilt my solvers, BC utilities and stuff... everything allright... the result :




root@iskandhar:~/OpenFOAM/OpenFOAM-1.4.1# foamInstallationTest
Executing /root/OpenFOAM/OpenFOAM-1.4.1/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: iskandhar
OS: Linux version 2.6.22-14-generic
User: root
User_config: /root/.bashrc
Foam_config: /root/.OpenFOAM-1.4.1/bashrc sourced correctly.
-------------------------------------------------------------------------------


Checking main FOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /root/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /root/OpenFOAM/root-1.4.1 yes no
$FOAM_JOB_DIR /root/OpenFOAM/jobControl no yes
-------------------------------------------------------------------------------


Checking the FOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /root/OpenFOAM/OpenFOAM-1.4.1 yes yes yes

$FOAM_USER_APPBIN ...1.4.1/applications/bin/linuxGccDPOpt yes yes no
$FOAM_APPBIN ...1.4.1/applications/bin/linuxGccDPOpt yes yes yes
$WM_DIR /root/OpenFOAM/OpenFOAM-1.4.1/wmake yes yes yes
$FOAMX_PATH ...ations/utilities/preProcessing/FoamX yes no yes
$CEI_HOME /usr/local/ensight/CEI no no

$JAVA_PATH /root/OpenFOAM/linux/j2sdk1.4.2_05 yes yes no
$MICO_ARCH_PATH .../mico-2.3.12/platforms/linuxGccDPOpt yes yes yes
$LAM_ARCH_PATH --------- env variable not set --------- yes
$MPICH_ARCH_PATH --------- env variable not set --------- no
-------------------------------------------------------------------------------


Checking the FOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...OAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt yes yes yes
$FOAM_USER_LIBBIN ...penFOAM/root-1.4.1/lib/linuxGccDPOpt yes yes no
$LAM_ARCH_PATH --------- env variable not set --------- yes
-------------------------------------------------------------------------------


Software versions
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.2.1 /root/OpenFOAM/linux/gcc-4.2.1/bin/gcc
java 1.4.2_05 /root/OpenFOAM/linux/j2sdk1.4.2_05/bin/java
gzip 1.3.12 /bin/gzip
tar 1.3.12 /bin/tar
icoFoam .../OpenFOAM-1.4.1/applications/bin/linuxGccDPOpt/icoFoam
-------------------------------------------------------------------------------


Checking file/directory permissions...
-------------------------------------------------------------------------------
File/directory Set Reqd Crit
-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_iskandhar Successful yes
Pinging_localHost Successful yes
Test_rsh: Unsuccessful_connection_refused* yes
Test_ssh: Successful yes
(*) Only one of rsh or ssh is required by the Foam enviroment.

-------------------------------------------------------------------------------

Base configuration ok.

Critical systems ok.





Then I ran your script, and installed the compilation tools in

/home/richardsmith/projects/win32compiler/gcc4.2.3/install and copied the content of ./install to /home/richardsmith/projects/win32compiler/gcc4.2.3

Then I changed lib/gcc/mingw32/4.2.3/include/float.h and mingw32/include/float.h

I ran wcleanLnIncludeAll in /root/OpenFOAM/OpenFOAM-1.4.1

I removed src/OpenFOAM/OSspecific

I ran the patch ,

patch -p0 < v5-mingw-openfoam-1-4-1.patch with the patch file in /root/OpenFOAM/OpenFOAM-1.4.1 directory

I copied wmkdep and dirToString to the target directory

...and I modified .OpenFOAM-1.4.1/bashrc-mingw32 so as to match closely my .OpenFOAM-1.4.1/bashrc, and sourced it... this is my .OpenFOAM-1.4.1/bashrc-mingw32 :





export WM_PROJECT=OpenFOAM
export WM_PROJECT_VERSION=1.4.1
export WM_PROJECT_LANGUAGE=c++

#!!User: uncomment one of the lines below to set the WM_PROJECT_INST_DIR to
# point to where you installed Foam.
#
# Location of FOAM installation
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export WM_PROJECT_INST_DIR=$HOME/$WM_PROJECT
#export WM_PROJECT_INST_DIR=$HOME/$WM_PROJECT
#export WM_PROJECT_INST_DIR=~$WM_PROJECT
#export WM_PROJECT_INST_DIR=$HOME/$WM_PROJECT/$LOGNAME-$WM_PROJECT_VERSION
#export WM_PROJECT_INST_DIR=/usr/local/$WM_PROJECT

# Check that the installation directory has been set and exists
if [ "$WM_PROJECT_INST_DIR" -a -d $WM_PROJECT_INST_DIR ]; then

export WM_PROJECT_DIR=$WM_PROJECT_INST_DIR/$WM_PROJECT-$WM_PROJECT_VERSION

# Location of users FOAM files
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export WM_PROJECT_USER_DIR=$HOME/$WM_PROJECT/$LOGNAME-$WM_PROJECT_VERSION
#export WM_PROJECT_USER_DIR=$HOME/$WM_PROJECT/$LOGNAME-$WM_PROJECT_VERSION

# Operating System/Platform from Unix or MSwindows
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export WM_OS_SPECIFIC=OSspecific/MSwindows

# Compiler (if set to "" use the system compiler)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export WM_COMPILER=mingw32
#export WM_COMPILER=Gcc
export WM_COMPILER_ARCH=
export WM_COMPILER_LIB_ARCH=

# Compilation options (default precision, optimised, debug or profiling)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
#export WM_PRECISION_OPTION=SP
export WM_PRECISION_OPTION=DP

export WM_COMPILE_OPTION=Opt
#export WM_COMPILE_OPTION=Debug
#export WM_COMPILE_OPTION=Prof

export WM_JAVAC_OPTION=Opt
#export WM_JAVAC_OPTION=Debug


# Running options (floating-point signal handling and memory initialisation)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~
export FOAM_SIGFPE=
#export FOAM_SETNAN=


# Detect system type and set environment variables
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
machineTest=`uname -s`

# Linux workstation
# ~~~~~~~~~~~~~~~~~
if [ "$machineTest" = "Linux" ]; then

processor=`uname -m`

if [ "$processor" = "i686" -o "$processor" = "x86_64" ]; then
export WM_ARCH=linux
export CC='mingw32-gcc'
export CXX='mingw32-g++'
else
echo Unknown processor type $processor for Linux MinGW
fi

export WM_MPLIB=
#export WM_MPLIB=OPENMPI
#export WM_MPLIB=LAM
#export WM_MPLIB=MPICH
#export WM_MPLIB=MPICH-GM
#export WM_MPLIB=GAMMA
#export WM_MPLIB=MPIGAMMA
#export WM_MPLIB=MPI

# An unsupported operating system
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

else

echo \
Your $machineTest operating system is not supported\
by this release of OpenFOAM. For further assistance,\
please contact www.openfoam.org.
echo

fi



# Clean standard environment variables (path, PATH, MANPATH, LD_LIBRARY_PATH)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~

cleanProg=$WM_PROJECT_DIR/bin/foamCleanPath

#- Clean path/PATH. Remove anything under top-level foam directory.
cleanPath=`$cleanProg "$PATH" "$WM_PROJECT_INST_DIR"`
if [ $? -eq 0 ]; then
PATH="$cleanPath"
fi

#- Clean LD_LIBRARY_PATH
export LD_LIBRARY_PATH=`$cleanProg "$LD_LIBRARY_PATH" "$WM_PROJECT_INST_DIR"`

#- Clean MANPATH
export MANPATH=`$cleanProg "$MANPATH" "$WM_PROJECT_INST_DIR"`


# FOAM: set-up FOAM release-specific environment
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SOURCE(){
foamDotFile=$1
. $1
foamDotFile=
}
SOURCE $WM_PROJECT_DIR/.bashrc


# Alias Declarations
# ~~~~~~~~~~~~~~~~~~
alias src='cd $FOAM_SRC'
alias lib='cd $FOAM_LIB'
alias run='cd $FOAM_RUN'
alias foam='cd $WM_PROJECT_DIR'
alias foamsrc='cd $FOAM_SRC/$WM_PROJECT'
alias foamfv='cd $FOAM_SRC/finiteVolume'
alias app='cd $FOAM_APP'
alias util='cd $FOAM_UTILITIES'
alias sol='cd $FOAM_SOLVERS'
alias tut='cd $FOAM_TUTORIALS'


# Source user setup files for optional packages
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SOURCE $WM_PROJECT_DIR/$FOAM_DOT_DIR/apps/ensightFoam/bashrc
SOURCE $WM_PROJECT_DIR/$FOAM_DOT_DIR/apps/paraview/bashrc
#SOURCE $WM_PROJECT_DIR/$FOAM_DOT_DIR/apps/ParaView3/bashrc


# Again clean environment (path, PATH, MANPATH, LD_LIBRARY_PATH)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~

#- Clean path/PATH. Only remove duplicates
cleanPath=`$cleanProg "$PATH"`
if [ $? -eq 0 ]; then
PATH="$cleanPath"
fi

#- Clean LD_LIBRARY_PATH
export LD_LIBRARY_PATH=`$cleanProg "$LD_LIBRARY_PATH"`

#- Clean MANPATH
export MANPATH=`$cleanProg "$MANPATH"`

else

if [ ! "$WM_PROJECT_INST_DIR" ]; then
echo
echo "$0: \$WM_PROJECT_INST_DIR not set"
echo
elif [ ! -d $WM_PROJECT_INST_DIR ]; then
echo
echo "$0: cannot find FOAM installation"
echo
fi

fi

# -----------------------------------------------------------------------------






and this is my .OpenFOAM-1.4.1/bashrc :





export WM_PROJECT=OpenFOAM
export WM_PROJECT_VERSION=1.4.1
export WM_PROJECT_LANGUAGE=c++

#!!User: uncomment one of the lines below to set the WM_PROJECT_INST_DIR to
# point to where you installed Foam.
#
# Location of FOAM installation
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export WM_PROJECT_INST_DIR=$HOME/$WM_PROJECT
#export WM_PROJECT_INST_DIR=~$WM_PROJECT
#export WM_PROJECT_INST_DIR=$HOME/$WM_PROJECT/$LOGNAME-$WM_PROJECT_VERSION
#export WM_PROJECT_INST_DIR=/usr/local/$WM_PROJECT

# Check that the installation directory has been set and exists
if [ "$WM_PROJECT_INST_DIR" -a -d $WM_PROJECT_INST_DIR ]; then

export WM_PROJECT_DIR=$WM_PROJECT_INST_DIR/$WM_PROJECT-$WM_PROJECT_VERSION

# Location of users FOAM files
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export WM_PROJECT_USER_DIR=$HOME/$WM_PROJECT/$LOGNAME-$WM_PROJECT_VERSION

# Operating System/Platform from Unix or MSwindows
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export WM_OS_SPECIFIC=OSspecific/Unix

# Compiler (if set to "" use the system compiler)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export WM_COMPILER=Gcc
export WM_COMPILER_ARCH=
export WM_COMPILER_LIB_ARCH=

# Compilation options (default precision, optimised, debug or profiling)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
#export WM_PRECISION_OPTION=SP
export WM_PRECISION_OPTION=DP

export WM_COMPILE_OPTION=Opt
#export WM_COMPILE_OPTION=Debug
#export WM_COMPILE_OPTION=Prof

export WM_JAVAC_OPTION=Opt
#export WM_JAVAC_OPTION=Debug


# Running options (floating-point signal handling and memory initialisation)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~
export FOAM_SIGFPE=
#export FOAM_SETNAN=


# Detect system type and set environment variables
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
machineTest=`uname -s`

# Linux workstation
# ~~~~~~~~~~~~~~~~~
if [ "$machineTest" = "Linux" ]; then

processor=`uname -m`

if [ "$processor" = "i686" ]; then
export WM_ARCH=linux
#export WM_COMPILER=I32
elif [ "$processor" = "x86_64" ]; then
if [ "$WM_64" ]; then
export WM_ARCH=linux64
#export WM_COMPILER=I64
export WM_COMPILER_LIB_ARCH=64
export CC='gcc'
export CXX='g++'
export CFLAGS='-m64 -fPIC'
export CXXFLAGS='-m64 -fPIC'
export LDFLAGS='-m64'
else
export WM_ARCH=linux
#export WM_COMPILER=I64
export WM_COMPILER_ARCH='-64'
export CC='gcc'
export CXX='g++'
export CFLAGS='-m32'
export CXXFLAGS='-m32'
export LDFLAGS='-m32'
fi
elif [ "$processor" = "ia64" ]; then
export WM_ARCH=linuxIA64
export WM_COMPILER=I64
else
echo Unknown processor type $processor for Linux
fi

#export WM_MPLIB=
export WM_MPLIB=OPENMPI
#export WM_MPLIB=LAM
#export WM_MPLIB=MPICH
#export WM_MPLIB=MPICH-GM
#export WM_MPLIB=GAMMA
#export WM_MPLIB=MPIGAMMA
#export WM_MPLIB=MPI

# SUN workstation
# ~~~~~~~~~~~~~~~
elif [ "$machineTest" = "SunOS" ]; then

export WM_ARCH=solaris

#export WM_MPLIB=
export WM_MPLIB=OPENMPI
#export WM_MPLIB=LAM
#export WM_MPLIB=MPICH
#export WM_MPLIB=MPICH-GM

# Silicon Graphics workstation
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
elif [ "$machineTest" = "IRIX" -o "$machineTest" = "IRIX64" ]; then

export WM_ARCH=sgiN32
#export WM_ARCH=sgi64
#export WM_COMPILER_LIB_ARCH=/mabi=64

#export WM_MPLIB=
export WM_MPLIB=MPI
#export WM_MPLIB=OPENMPI
#export WM_MPLIB=LAM
#export WM_MPLIB=MPICH
#export WM_MPLIB=MPICH-GM

# An unsupported operating system
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

else

echo \
Your $machineTest operating system is not supported\
by this release of OpenFOAM. For further assistance,\
please contact www.openfoam.org.
echo

fi



# Clean standard environment variables (path, PATH, MANPATH, LD_LIBRARY_PATH)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~

cleanProg=$WM_PROJECT_DIR/bin/foamCleanPath

#- Clean path/PATH. Remove anything under top-level foam directory.
cleanPath=`$cleanProg "$PATH" "$WM_PROJECT_INST_DIR"`
if [ $? -eq 0 ]; then
PATH="$cleanPath"
fi

#- Clean LD_LIBRARY_PATH
export LD_LIBRARY_PATH=`$cleanProg "$LD_LIBRARY_PATH" "$WM_PROJECT_INST_DIR"`

#- Clean MANPATH
export MANPATH=`$cleanProg "$MANPATH" "$WM_PROJECT_INST_DIR"`


# FOAM: set-up FOAM release-specific environment
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SOURCE(){
foamDotFile=$1
. $1
foamDotFile=
}
SOURCE $WM_PROJECT_DIR/.bashrc


# Alias Declarations
# ~~~~~~~~~~~~~~~~~~
alias src='cd $FOAM_SRC'
alias lib='cd $FOAM_LIB'
alias run='cd $FOAM_RUN'
alias foam='cd $WM_PROJECT_DIR'
alias foamsrc='cd $FOAM_SRC/$WM_PROJECT'
alias foamfv='cd $FOAM_SRC/finiteVolume'
alias app='cd $FOAM_APP'
alias util='cd $FOAM_UTILITIES'
alias sol='cd $FOAM_SOLVERS'
alias tut='cd $FOAM_TUTORIALS'


# Source user setup files for optional packages
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SOURCE $WM_PROJECT_DIR/$FOAM_DOT_DIR/apps/ensightFoam/bashrc
SOURCE $WM_PROJECT_DIR/$FOAM_DOT_DIR/apps/paraview/bashrc
#SOURCE $WM_PROJECT_DIR/$FOAM_DOT_DIR/apps/ParaView3/bashrc


# Again clean environment (path, PATH, MANPATH, LD_LIBRARY_PATH)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~

#- Clean path/PATH. Only remove duplicates
cleanPath=`$cleanProg "$PATH"`
if [ $? -eq 0 ]; then
PATH="$cleanPath"
fi

#- Clean LD_LIBRARY_PATH
export LD_LIBRARY_PATH=`$cleanProg "$LD_LIBRARY_PATH"`

#- Clean MANPATH
export MANPATH=`$cleanProg "$MANPATH"`

else

if [ ! "$WM_PROJECT_INST_DIR" ]; then
echo
echo "$0: \$WM_PROJECT_INST_DIR not set"
echo
elif [ ! -d $WM_PROJECT_INST_DIR ]; then
echo
echo "$0: cannot find FOAM installation"
echo
fi

fi

# -----------------------------------------------------------------------------





As you can see, the only differences to the "standard" .bashrc-mingw are in the specification of the build directory for the project.

After having sourced my .OpenFOAM-1.4.1/bashrc-mingw32, I ran foamInstallationTest, the result was this... :





root@iskandhar:~/OpenFOAM/OpenFOAM-1.4.1# foamInstallationTest
Executing /root/OpenFOAM/OpenFOAM-1.4.1/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: iskandhar
OS: Linux version 2.6.22-14-generic
User: root
User_config: /root/.bashrc
Foam_config: /root/.OpenFOAM-1.4.1/bashrc sourced correctly.
-------------------------------------------------------------------------------


Checking main FOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /root/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /root/OpenFOAM/root-1.4.1 yes no
$FOAM_JOB_DIR /root/OpenFOAM/jobControl no yes
-------------------------------------------------------------------------------


Checking the FOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /root/OpenFOAM/OpenFOAM-1.4.1 yes yes yes

$FOAM_USER_APPBIN ...1/applications/bin/linuxmingw32DPOpt yes yes no
$FOAM_APPBIN ...1/applications/bin/linuxmingw32DPOpt yes yes yes
$WM_DIR /root/OpenFOAM/OpenFOAM-1.4.1/wmake yes yes yes
$FOAMX_PATH ...ations/utilities/preProcessing/FoamX yes no yes
$CEI_HOME /usr/local/ensight/CEI no no

$JAVA_PATH /root/OpenFOAM/linux/j2sdk1.4.2_05 yes yes no
$MICO_ARCH_PATH ...o-2.3.12/platforms/linuxmingw32DPOpt no yes
$LAM_ARCH_PATH --------- env variable not set --------- yes
$MPICH_ARCH_PATH --------- env variable not set --------- no
-------------------------------------------------------------------------------


Checking the FOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...OpenFOAM-1.4.1/lib/linuxmingw32DPOpt yes yes yes
$FOAM_USER_LIBBIN ...OAM/root-1.4.1/lib/linuxmingw32DPOpt yes yes no
$LAM_ARCH_PATH --------- env variable not set --------- yes
-------------------------------------------------------------------------------


Software versions
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.1.3
WARNING: Conflicting installations:
foam settings: /home/richardsmith/projects/win32compiler/gcc4.2.3/bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

java 1.4.2_05 /root/OpenFOAM/linux/j2sdk1.4.2_05/bin/java
gzip 1.3.12 /bin/gzip
tar 1.3.12 /bin/tar
icoFoam *** not installed ***
CRITICAL ERROR

-------------------------------------------------------------------------------


Checking file/directory permissions...
-------------------------------------------------------------------------------
File/directory Set Reqd Crit
-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_iskandhar Successful yes
Pinging_localHost Successful yes
Test_rsh: Unsuccessful_connection_refused* yes
Test_ssh: Successful yes
(*) Only one of rsh or ssh is required by the Foam enviroment.

-------------------------------------------------------------------------------

Base configuration ok.

The foam installation contains 2 critical error(s).

Review the output for warning messages and consult
the installation guide for trouble shooting.






but I must say that before running foamInstallationTest, I manually set $WM_COMPILER_DIR, $WM_COMPILER_BIN and $WM_COMPILER_LIB to point to the install directory od the mingw compiler... :

export $WM_COMPILER_DIR=/home/richardsmith/projects/win32compiler/gcc4.2.3
export $WM_COMPILER_BIN=/home/richardsmith/projects/win32compiler/gcc4.2.3/bin
export $WM_COMPILER_LIB=/home/richardsmith/projects/win32compiler/gcc4.2.3/lib

...aditionally, following your advice,

export WIN32_COMPILER_HOME=/home/richardsmith/projects/win32compiler/gcc4.2.3

After all that, I ran foamInstallationTest again, and the same critical error continues...

gcc 4.1.3
WARNING: Conflicting installations:
foam settings: /home/richardsmith/projects/win32compiler/gcc4.2.3/bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

java 1.4.2_05 /root/OpenFOAM/linux/j2sdk1.4.2_05/bin/java
gzip 1.3.12 /bin/gzip
tar 1.3.12 /bin/tar
icoFoam *** not installed ***
CRITICAL ERROR




Clearly, after ./Allwmake, the mingw32 compiler wont be found... defaulting the path to current path : /usr/bin/gcc...

I even tried, without hope...




root@iskandhar:~/OpenFOAM/OpenFOAM-1.4.1# ./Allwmake
+ cd wmake
+ ./makeWmake
make: Nothing to be done for `all'.
+ cd src
+ ./Allwmake
+ cd /root/OpenFOAM/OpenFOAM-1.4.1/src/OSspecific/MSwindows
+ wmakeLnInclude .
/root/OpenFOAM/OpenFOAM-1.4.1/wmake/wmakeLnInclude: linking include files to ./lnInclude

+ cd /root/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM
+ wmakeLnInclude .
/root/OpenFOAM/OpenFOAM-1.4.1/wmake/wmakeLnInclude: linking include files to ./lnInclude

ln: creating symbolic link `./OSspecific.H' to `../OSspecific/Unix/OSspecific.H': File exists
+ wmake libso zlib-1.2.1
/root/OpenFOAM/OpenFOAM-1.4.1/wmake/wmakeLnInclude: linking include files to /root/OpenFOAM/OpenFOAM-1.4.1/src/zlib-1.2.1/lnInclude

ln: creating symbolic link `./zfstream.h' to `../contrib/iostream3/zfstream.h': File exists
Making dependency list for source file adler32.c
Making dependency list for source file compress.c
Making dependency list for source file crc32.c
Making dependency list for source file deflate.c
Making dependency list for source file gzio.c
Making dependency list for source file infback.c
Making dependency list for source file inffast.c
Making dependency list for source file inflate.c
Making dependency list for source file inftrees.c
Making dependency list for source file trees.c
Making dependency list for source file uncompr.c
Making dependency list for source file zutil.c
SOURCE=adler32.c ; mingw32-gcc -m32 -Dlinux -DDP -DWIN32 -DLITTLE_ENDIAN -Wall -O3 -DNDEBUG -IlnInclude -I. -I/root/OpenFOAM/OpenFOAM-1.4.1/src/OSspecific/MSwindows/lnInclude -I/root/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -c $SOURCE -o Make/linuxmingw32DPOpt/adler32.o
/bin/sh: mingw32-gcc: not found
make: *** [Make/linuxmingw32DPOpt/adler32.o] Error 127
+ wmake libo OSspecific/MSwindows....





And it goes all the way without ever finding mingw32-gcc...


I tried the "wildest" thing to do... pasted the contents of /home/richardsmith/projects/win32compiler/gcc4.2.3 directly in /usr so that mingw32 would eventually be found by Allwmake, and indeed it was...

The object files are build, but then the linking into executable files fail... :

This was the result from ./Allwmake after my "tweak" in /usr, last lines :





SOURCE=extrudeMesh.C ; mingw32-g++ -Dlinux -DDP -DWIN32 -DLITTLE_ENDIAN -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -O3 -DNDEBUG -DNoRepository -ftemplate-depth-40 -IextrudedMesh -I/root/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -I/root/OpenFOAM/OpenFOAM-1.4.1/src/dynamicMesh/lnInclude -IlnInclude -I. -I/root/OpenFOAM/OpenFOAM-1.4.1/src/OSspecific/MSwindows/lnInclude -I/root/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -c $SOURCE -o Make/linuxmingw32DPOpt/extrudeMesh.o
In file included from /root/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/Time.H:47,
from extrudeMesh.C:63:
/root/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/cpuTime.H:40:23: error: sys/times.h: No such file or directory
In file included from /root/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/Time.H:47,
from extrudeMesh.C:63:
/root/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/cpuTime.H:57: error: field 'startTime_' has incomplete type
/root/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/cpuTime.H:58: error: field 'lastTime_' has incomplete type
/root/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/cpuTime.H:59: error: field 'newTime_' has incomplete type
make[3]: *** [Make/linuxmingw32DPOpt/extrudeMesh.o] Error 1
make[3]: Leaving directory `/root/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/mesh/generation/extrudeMes h'
make[2]: *** [extrudeMesh] Error 2
make[2]: Leaving directory `/root/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/mesh/generation'
make[1]: *** [generation] Error 2
make[1]: Leaving directory `/root/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/mesh'
make: *** [mesh] Error 2
+ [ 0 = 1 -a = doc ]


But this IS weird, I SPECIFICALLY exported the WM_COMPILER variables, so that they would point to the install directory of mingw32 comp...

why the heck doesn't wmake takes this into consideration...?

Did i do anything wrong along the way...?

.. man, i realy need to get this working under win32... because cygwin is sloooooowww like a snail, and my CFD thesis coordinator is somehow "allergic" to linux (... the "lack of knowledge" syndrome... ) so, since I am planning to build a framework for shape optimization in CFD using only OpenSource software, targeting windows OS... I reaaly must have this working....

Is the build of OF-1.5 to win32 so .... tricky ( :-D ) as the one for OF-1.4.1... ?

How can I set OF-1.4.1 to "see" the mingw32 build tools that were installed in /home/richardsmith/projects/win32compiler/gcc4.2.3 directory...?

Restating differently : How can i make foamInstallationTest have the same results that it had with my default OpenFOAM-1.4.1 installation...?

Thanks for yr help... :-)

Alexandre
alexandrepereira is offline   Reply With Quote

Reply


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
OpenFOAM 15x MinGW Windows Port gocarts OpenFOAM Installation 1 April 17, 2009 10:41
divide by zero FPE issue in OpenFOAM 141 MingW port allenzhao OpenFOAM Installation 9 September 22, 2008 17:13
OpenFOAM on SuSE Linux 100 musahossein OpenFOAM Installation 4 June 20, 2008 16:47
OpenFoam and Linux Tomislav Maric Main CFD Forum 13 October 25, 2007 04:45
OpenFOAM and linux distros billy OpenFOAM 8 September 8, 2005 01:43


All times are GMT -4. The time now is 13:02.