|
[Sponsors] |
June 8, 2012, 07:50 |
Cross-Compiling OpenFOAM-2.1.x
|
#1 |
New Member
deok-kyu choi
Join Date: Feb 2012
Location: Rep. of Korea
Posts: 12
Rep Power: 14 |
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, |
|
June 8, 2012, 17:47 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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
__________________
Last edited by wyldckat; June 8, 2012 at 17:52. Reason: see "PS:" |
|
June 10, 2012, 21:30 |
|
#3 | |
New Member
deok-kyu choi
Join Date: Feb 2012
Location: Rep. of Korea
Posts: 12
Rep Power: 14 |
Quote:
I've just checked your advice. It works! Have a nice day! Best regards, Last edited by ggoggodak85; June 10, 2012 at 22:19. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 06:36 |
[Discussion] Restructuring the Installation page at openfoamwiki.net | wyldckat | OpenFOAM Installation | 16 | November 2, 2013 12:43 |
Error compiling OpenFOAM 1.7.x | uli | OpenFOAM Installation | 6 | June 11, 2012 10:42 |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 07:25 |
Compiling OpenFOAM 13 in Debug mode | fra76 | OpenFOAM Installation | 2 | April 14, 2006 04:09 |