CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation on Windows, Mac and other Unsupported Platforms (http://www.cfd-online.com/Forums/openfoam-installation-windows-mac/)
-   -   Looking for OpenFOAM 1.7.x for windown 64bit (http://www.cfd-online.com/Forums/openfoam-installation-windows-mac/102719-looking-openfoam-1-7-x-windown-64bit.html)

Mr.Cloud June 1, 2012 02:20

Looking for OpenFOAM 1.7.x for windown 64bit
 
I'm newbie here, and I'm looking for OpenFOAM version 1.7.x work well on Windows 64bit.
I'm trying to build it throught http://www.symscape.com/openfoam-1-7...windows-64-mpi and http://www.geocities.jp/penguinitis2...n64-mpich.html (this is a japanese website, but it's more detail then the tutorial of symcape)
but not success. So any one can help me to build it...?

wyldckat June 2, 2012 05:38

Greetings Mr.Cloud,

Have you tried these instructions: http://openfoamwiki.net/index.php/Ti...ows_with_MinGW ?

That page has a very detailed step-by-step on how to build OpenFOAM 1.7.0 on Linux (or Cygwin) for Windows, so whatever you learn from there, you can then apply to 1.7.x ;)

Best regards,
Bruno

Mr.Cloud June 3, 2012 22:21

Quote:

Originally Posted by wyldckat (Post 364399)
Greetings Mr.Cloud,

Have you tried these instructions: http://openfoamwiki.net/index.php/Ti...ows_with_MinGW ?

That page has a very detailed step-by-step on how to build OpenFOAM 1.7.0 on Linux (or Cygwin) for Windows, so whatever you learn from there, you can then apply to 1.7.x ;)

Best regards,
Bruno

Thanks for your reply, I'll try.

Mr.Cloud June 4, 2012 06:04

I have try and get some bugs, this is my build log
Code:

========================================
Start ThirdParty Allwmake
========================================

========================================
Compile zlib library

'/home/longlp/OpenFOAM/OpenFOAM-1.7.0/lib/linuxmingw-w64DPOpt/libz.dll' is up to date.
========================================
Compile regex library

regex already installed... run ./AllwcleanRegEx if you feel that it needs rebuilding!
========================================
Copying gcc related DLLs

========================================
Compile specific mpi libraries

Setup MPICH2 stubs...
[1m Generating MPICH2 stub... [0m
[1m MPICH2 stub is already built and ready to use. [0m
========================================
Build Scotch decomposition library

have scotch shared libraries
========================================
Build PTScotch decomposition library (requires MPI)

have ptscotch shared libraries
========================================
Build Metis decomposition

+ cd metis-5.0pre2
+ cpMakeFiles metis
+ set +x
+ wmake libso GKlib
'/home/longlp/OpenFOAM/OpenFOAM-1.7.0/lib/linuxmingw-w64DPOpt/libGKlib.dll' is up to date.
+ wmake libso libmetis
linuxmingw-w64DPOpt/options:10: *** missing separator.  Stop.
wmake error: file 'Make/linuxmingw-w64DPOpt/objectFiles' could not be created
//Start error from here
========================================
Build ParMetis decomposition. Requires MPI.

+ cd ParMetis-3.1
+ WM_OPTIONS_LOCAL=linuxmingw-w64DPOptMPICH
+ cpMakeFiles ParMetis
+ set +x
+ wmake libso METISLib
'/home/longlp/OpenFOAM/OpenFOAM-1.7.0/lib/linuxmingw-w64DPOpt/mpich2-1.4.1p1/libmetis-parmetis.dll' is up to date.
+ wmake libso ParMETISLib
linuxmingw-w64DPOpt/options:10: *** missing separator.  Stop.
wmake error: file 'Make/linuxmingw-w64DPOpt/objectFiles' could not be created
+ unset WM_OPTIONS_LOCAL
========================================
Build ParMGridGen

+ cd ParMGridGen-1.0
+ cpMakeFiles ParMGridGen
+ set +x
+ wmake libso MGridGen/IMlib
'/home/longlp/OpenFOAM/OpenFOAM-1.7.0/lib/linuxmingw-w64DPOpt/libIMlib.dll' is up to date.
+ wmake libso MGridGen/Lib
'/home/longlp/OpenFOAM/OpenFOAM-1.7.0/lib/linuxmingw-w64DPOpt/libMGridGen.dll' is up to date.
========================================
Done ThirdParty Allwmake
========================================

+ wmakePrintBuild -check
no git description found
+ /bin/rm -f OpenFOAM/Make/linuxmingw-w64DPOpt/global.?
+ wmakeLnInclude OpenFOAM
+ wmakeLnInclude OSspecific/MSwindows
+ Pstream/Allwmake
+ buildMode=libso
+ echo mingw-w64
+ grep mingw
+ [ x != xmingw-w64 ]
+ [  = LINKTOPSTREAM ]
+ buildMode=libo
+ wmake libo dummy
'/home/longlp/OpenFOAM/OpenFOAM-1.7.0/lib/linuxmingw-w64DPOpt/dummy/libPstream.o' is up to date.
+ set +x

Note: ignore spurious warnings about missing mpicxx.h headers
+ wmake libo mpi
'/home/longlp/OpenFOAM/OpenFOAM-1.7.0/lib/linuxmingw-w64DPOpt/mpich2-1.4.1p1/libPstream.o' is up to date.
+ unset buildMode
+ wmake libo OSspecific/MSwindows
'/home/longlp/OpenFOAM/OpenFOAM-1.7.0/lib/linuxmingw-w64DPOpt/libOSspecific.o' is up to date.
+ wmake libso OpenFOAM
linuxmingw-w64DPOpt/options:13: *** missing separator.  Stop.
wmake error: file 'Make/linuxmingw-w64DPOpt/objectFiles' could not be created
+ echo mingw-w64
+ grep mingw
+ [ x != xmingw-w64 ]
+ export WM_PSTREAMLINK=LINKTOPSTREAM
+ cd Pstream
+ ./Allwmake
+ buildMode=libso
+ echo mingw-w64
+ grep mingw
+ [ x != xmingw-w64 ]
+ [ LINKTOPSTREAM = LINKTOPSTREAM ]
+ buildMode=libso
+ wmake libso dummy
x86_64-w64-mingw32-g++ -Dlinux -DWM_DP -DWIN64 -DLITTLE_ENDIAN -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -O2 -DNDEBUG -fno-strict-aliasing -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/home/longlp/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home/longlp/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/MSwindows/lnInclude -I/home/longlp/OpenFOAM/ThirdParty-1.7.0/zlib-1.2.5 -I/home/longlp/OpenFOAM/ThirdParty-1.7.0/platforms/linuxmingw-w64/mingw-libgnurx-2.5.1/include /home/longlp/OpenFOAM/OpenFOAM-1.7.0/lib/linuxmingw-w64DPOpt/OFversion.o -Wl,--output-def,/home/longlp/OpenFOAM/OpenFOAM-1.7.0/lib/linuxmingw-w64DPOpt/dummy/libPstream.def,--out-implib,/home/longlp/OpenFOAM/OpenFOAM-1.7.0/lib/linuxmingw-w64DPOpt/dummy/libPstream.a,--enable-auto-import,--strip-all -shared Pstream.o IPread.o OPwrite.o -L/home/longlp/OpenFOAM/OpenFOAM-1.7.0/lib/linuxmingw-w64DPOpt -lOpenFOAM -o /home/longlp/OpenFOAM/OpenFOAM-1.7.0/lib/linuxmingw-w64DPOpt/dummy/libPstream.dll
/home/longlp/OpenFOAM/ThirdParty-1.7.0/platforms/linuxmingw-w64/mingw/lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/bin/ld: cannot find -lOpenFOAM
collect2: ld returned 1 exit status
make: *** [/home/longlp/OpenFOAM/OpenFOAM-1.7.0/lib/linuxmingw-w64DPOpt/dummy/libPstream.dll] Error 1
+ set +x
........ and more

I use 7.1 Using custom built MinGW cross-compilers
after use
Code:

./build-mingw45
I did follow 7.3.1
Code:

cd $WM_DIR/rules
sed -i -e 's=-O2 -DNDEBUG=-O2 -DNDEBUG -fno-strict-aliasing=' "$WM_ARCH$WM_COMPILER/c++Opt"

and cd to OpenFOAM project and
Code:

./Allwmake
I use Ubuntu 11.04
Did i miss st??

Mr.Cloud June 4, 2012 06:23

Code:

/* NOTE: make any changes to this file in wmakeFiles/ */

comm.c
util.c
debug.c
setup.c
grsetup.c
timer.c
node_refine.c
initmsection.c
order.c
xyzpart.c
pspases.c
frename.c
iintsort.c
iidxsort.c
ikeysort.c
ikeyvalsort.c
kmetis.c
gkmetis.c
ometis.c
initpart.c
match.c
coarsen.c
kwayfm.c
kwayrefine.c
kwaybalance.c
remap.c
stat.c
fpqueue.c
ametis.c
rmetis.c
lmatch.c
initbalance.c
mdiffusion.c
diffutil.c
wave.c
csrmatch.c
redomylink.c
balancemylink.c
selectq.c
akwayfm.c
serial.c
move.c
mmetis.c
mesh.c
memory.c
weird.c
backcompat.c

LIB = $(FOAM_MPI_LIBBIN)/libparmetis

That is the contents of Make/files
Code:

/* NOTE: make any changes to this file in wmakeFiles/ */

sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
sinclude $(RULES)/mplib$(WM_MPLIB)

EXE_INC  = $(PFLAGS) $(PINC)
LIB_LIBS = $(PLIBS)

/*neutralize this variable...*/
PROJECT_LIBS =

That is the contents of Make/options
And I'm not change any thing manual...!


All times are GMT -4. The time now is 10:19.