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, |
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 ;) |
Quote:
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. |