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

OF 2.1.0 under Windows XP or Windows 7

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 1, 2012, 06:11
Default
  #21
New Member
 
Le Phi Long
Join Date: Feb 2011
Posts: 18
Rep Power: 15
Mr.Cloud is on a distinguished road
Hi Bruno...!
I still stack with my old problem when trying to build OF2.1.x for window, So if you have time please help me to fix that or can you build my solver to execute file... Here is the source.
http://www.mediafire.com/?zccu1490qf8wjiw
Mr.Cloud is offline   Reply With Quote

Old   October 8, 2012, 22:54
Default
  #22
New Member
 
Le Phi Long
Join Date: Feb 2011
Posts: 18
Rep Power: 15
Mr.Cloud is on a distinguished road
Hi every body... I still got these error when build OF for windows allthough i did it:
Quote:
If you see an error while compiling like:
signals/sigFpe.C:45:15: error: ‘_clearfp’ was not declared in this scope
You need to add #include_next <float.h> to the end of
<mingw-w64>/lib/gcc/x86_64-w64-mingw32/<gcc-version>/include/float.h and remove it from
<mingw-w64>/x86_64-w64-mingw32/include/float.h to include the right float.h
Quote:
+ wmakeLnInclude OpenFOAM
wmakeLnInclude: linking include files to OpenFOAM/lnInclude
+ wmakeLnInclude OSspecific/MSwindows
wmakeLnInclude: linking include files to OSspecific/MSwindows/lnInclude
+ OSspecific/MSwindows/Allwmake
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file MSwindows.C
Making dependency list for source file printStack.C
Making dependency list for source file regExp.C
Making dependency list for source file signals/sigFpe.C
Making dependency list for source file signals/sigSegv.C
Making dependency list for source file signals/sigInt.C
Making dependency list for source file signals/sigQuit.C
Making dependency list for source file signals/sigStopAtWriteNow.C
Making dependency list for source file signals/sigWriteNow.C
Making dependency list for source file fileMonitor.C
Making dependency list for source file timer.C
Making dependency list for source file fileStat.C
Making dependency list for source file cpuTime/cpuTime.C
Making dependency list for source file clockTime/clockTime.C
SOURCE=MSwindows.C ; x86_64-w64-mingw32-g++ -m64 -Dlinux64 -DWM_DP -DMSWIN -DLITTLE_ENDIAN -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -O3 -DNDEBUG -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/home/longlp/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/longlp/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/MSwindows/lnInclude -c $SOURCE -o Make/linux64mingw-w64DPOpt/MSwindows.o
SOURCE=printStack.C ; x86_64-w64-mingw32-g++ -m64 -Dlinux64 -DWM_DP -DMSWIN -DLITTLE_ENDIAN -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -O3 -DNDEBUG -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/home/longlp/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/longlp/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/MSwindows/lnInclude -c $SOURCE -o Make/linux64mingw-w64DPOpt/printStack.o
SOURCE=regExp.C ; x86_64-w64-mingw32-g++ -m64 -Dlinux64 -DWM_DP -DMSWIN -DLITTLE_ENDIAN -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -O3 -DNDEBUG -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/home/longlp/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/longlp/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/MSwindows/lnInclude -c $SOURCE -o Make/linux64mingw-w64DPOpt/regExp.o
SOURCE=signals/sigFpe.C ; x86_64-w64-mingw32-g++ -m64 -Dlinux64 -DWM_DP -DMSWIN -DLITTLE_ENDIAN -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -O3 -DNDEBUG -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/home/longlp/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/longlp/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/MSwindows/lnInclude -c $SOURCE -o Make/linux64mingw-w64DPOpt/sigFpe.o
signals/sigFpe.C: In function ‘void clearFpe()’:
signals/sigFpe.C:45:15: error: ‘_clearfp’ was not declared in this scope
signals/sigFpe.C:46:35: error: ‘_controlfp’ was not declared in this scope
signals/sigFpe.C: In member function ‘void Foam::sigFpe::set(bool)’:
signals/sigFpe.C:136:33: error: ‘_controlfp’ was not declared in this scope
signals/sigFpe.C:138:22: error: ‘_EM_ZERODIVIDE’ was not declared in this scope
signals/sigFpe.C:138:39: error: ‘_EM_INVALID’ was not declared in this scope
signals/sigFpe.C:138:53: error: ‘_EM_OVERFLOW’ was not declared in this scope
signals/sigFpe.C:139:27: error: ‘_MCW_EM’ was not declared in this scope
make: *** [Make/linux64mingw-w64DPOpt/sigFpe.o] Error 1
What wrong with my combiner ...? I', stack here for almost a month....
I used this gcc version: (GCC) 4.5.4 20110805 (prerelease)
Mr.Cloud is offline   Reply With Quote

Old   October 10, 2012, 17:09
Default
  #23
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
Hi Mr. Cloud,

Sorry but I don't the time now to help you with this . The best I can do is to suggest you do one of the following possibilities:
  • Use the source code provided at the project blueCFD-SingleCore, as very briefly explained here: http://code.google.com/p/bluecfd-sin...lingOpenFOAM20
    Since you've already followed with success the other instructions for 1.7.1, you should be able to adjust to the new ways of how things work on the new versions.
  • Or you can purchase blueCFD, which provides you with everything you need and also gives you the ability to compile directly on Windows, without the need to cross-compile things on Linux: http://www.bluecape.com.pt/blueCFD/
  • Or you can even directly contact the forum member Tian: http://www.cfd-online.com/Forums/ope...-openfoam.html - he has followed successfully the instructions from Symscape, so you both might be able to help each other out.
Best regards and good luck!
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   October 10, 2012, 22:16
Default
  #24
New Member
 
Le Phi Long
Join Date: Feb 2011
Posts: 18
Rep Power: 15
Mr.Cloud is on a distinguished road
Hi Bruno..!
Thanks for your reply. I will get contact with him, and try to figure out.
Thanks you so much.
Mr.Cloud 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
queries of star-CD on windows machines Arnab Siemens 3 April 6, 2011 10:13
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
Dual Boot Windows and Linux and Go Open Source andyj Main CFD Forum 2 October 21, 2010 16:49
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
Cross-compiling OpenFOAM 1.6 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 7 January 19, 2010 15:39


All times are GMT -4. The time now is 20:32.