CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation on Windows, Mac and other Unsupported Platforms

Cross-Compiling OpenFOAM-2.1.x

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 8, 2012, 06: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: 5
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, 16:47
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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 16:52. Reason: see "PS:"
wyldckat is offline   Reply With Quote

Old   June 10, 2012, 20:30
Smile
  #3
New Member
 
deok-kyu choi
Join Date: Feb 2012
Location: Rep. of Korea
Posts: 12
Rep Power: 5
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 21:19.
ggoggodak85 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
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 09: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 06:25
Compiling OpenFOAM 13 in Debug mode fra76 OpenFOAM Installation 2 April 14, 2006 03:09


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