CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Cross-Compiling OpenFOAM-2.1.x (https://www.cfd-online.com/Forums/openfoam-installation/103009-cross-compiling-openfoam-2-1-x.html)

ggoggodak85 June 8, 2012 06:50

Cross-Compiling OpenFOAM-2.1.x
 
Dear, FOAMers.

I'm trouble with compile in Ubuntu_11.10_64bit

and I've recived running script file from symscape.

when I run "make libscotch", error found!

/usr/bin/x86_64-w64-ming32-ld : cannot find -lz
collect2 : ld returned 1 exit status
make[1]: *** [libscotch.dll] Error 1
make[1]: Leaving directory '/home/choidk/OpenFOAM/ThirdParty-2.1.0/scotch_5.1.11/src/libscotch'
make: *** [libscotch] Error 2

This may be problem with Makefile.inc (LDFLAGS)
I declared "LDFLAGS=-L/usr/x86_64-w64-mingw32/lib -lz"

Does anybody have idea?
I'll hope good advice.

regards,

wyldckat June 8, 2012 16:47

Greetings ggoggodak85,

If you check for the existence of any "libz.*" files at "/usr/x86_64-w64-mingw32/lib/", you'll see that there are no files with that name. There should be at least one file named "libz.a".

Try using the mingw-w64 compiler kits from here: http://mingw-w64.sourceforge.net/
Or try cross-compiling zlib yourself :)
Or even try the instructions from here: http://openfoamwiki.net/index.php/Ti...ows_with_MinGW

Best regards,
Bruno

PS: I moved your thread to the sub-forum Installation on Windows, Mac and other Unsupported Platforms, because cross-compiling is a non-standard way of installing OpenFOAM on Windows ;)

ggoggodak85 June 10, 2012 20:30

Quote:

Originally Posted by wyldckat (Post 365514)
Greetings ggoggodak85,

If you check for the existence of any "libz.*" files at "/usr/x86_64-w64-mingw32/lib/", you'll see that there are no files with that name. There should be at least one file named "libz.a".

Try using the mingw-w64 compiler kits from here: http://mingw-w64.sourceforge.net/
Or try cross-compiling zlib yourself :)
Or even try the instructions from here: http://openfoamwiki.net/index.php/Ti...ows_with_MinGW

Best regards,
Bruno

PS: I moved your thread to the sub-forum Installation on Windows, Mac and other Unsupported Platforms, because cross-compiling is a non-standard way of installing OpenFOAM on Windows ;)

Thx, Bruno.
I've just checked your advice.

It works! :)
Have a nice day!

Best regards,


All times are GMT -4. The time now is 05:09.