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

Cross-Compiling OpenFOAM-2.1.x

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 8, 2012, 07:50
Default 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
ggoggodak85 is on a distinguished road
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,
ggoggodak85 is offline   Reply With Quote

Old   June 8, 2012, 17:47
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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:"
wyldckat is offline   Reply With Quote

Old   June 10, 2012, 21:30
Smile
  #3
New Member
 
deok-kyu choi
Join Date: Feb 2012
Location: Rep. of Korea
Posts: 12
Rep Power: 14
ggoggodak85 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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,

Last edited by ggoggodak85; June 10, 2012 at 22:19.
ggoggodak85 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
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


All times are GMT -4. The time now is 07:53.