Hi Bruno.
Wow, thank you very much for your quick and detailed reply. I'm impressed! Just a quick update, I am using Ubuntu 10.04 LTS. I am trying out your suggestions today and will let you know the results. Regards, Thomas |
Hi Thomas,
Quote:
Quote:
I've given it some thought and I think I know why the patches have worked for me and not for you and Billy: I've always been using 2 or more cores for building the whole thing, while you guys use only one core. This means that with me, libscotcherr gets built in parallel and ends before libscotch is built, therefore with me this issue has never happened before! But for you guys, with single core, libscotch had to be built before libscotcherr. This is not much of a problem in Linux (except in Fedora 13), since libraries can have loose links, but with Windows DLLs, there has to be a very clear existence of the necessary libraries! I'll update the patches ASAP to fix this problem. But hopefully things should now go well for you Thomas, since the instructions I gave you are the ones I'm going to follow to fix the patches :) But nonetheless, please give me some feedback if it has worked or not! Best regards, Bruno |
1 Attachment(s)
Hi again Bruno.
Ok short update. Everything seems to work! Scotch build without problems and openFOAM has just finished building INCLUDING snappyHexMesh.exe. I'm currently compiling the documentation and the tutorials and haven't tested OF yet but will get back to you when I get a chance to test the build. With regards to the error DOS_Mode.bat gives I have uploaded a screen shot of it, however because of my OS (Win 7), it is Danish. A rough translation would be: Procedureentrypoint_ZTVN10_cxxabiv117_class_type_i nfoE was not found in DLL-library libstdc++-6.dll. I believe the error is because I have a python distribution installed which has a local copy libstdc++-6.dll which is on the Windows PATH. When DOS_Mode.bat sets an additional PATH to the OF version of libstdc++-6.dll you get problems. I tested my previous compilations of OF at work where they ran without any problems, so I believe the above error is only a problem at my home computer. Kind regards, Thomas. |
Hi Thomas,
Sweet! Once again, thanks for the feedback :) As for that error with "libstdc++.dll", the trick is to:
By the way, I haven't checked this in Windows, because I mainly use Windows in English, so if you have any problems using ParaView 3.8.0 to open the ".foam" files, it's likely due to your Windows being in Danish. In Linux I know this is an issue with locales different from English (explained here), so you can try the same trick in Windows:
Best regards, Bruno |
Hi Bruno.
I have tested the new compilation of OF and everything works, including snappyHexMesh! Your tip about putting %PATH% at the end of the line in setvars.bat also worked perfectly. Thank you very much for all your help. I haven't found out if there's any problems with parafoam. I simply use paraView and foamToVtk, but thanks for the tip though. I have a few final comments on the build. 1) When I run any openFOAM command in get the following warning. // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // --> FOAM Warning : From function openLibrary(const fileName& libName) in file MSwindows.C at line 1142 \ LoadLibrary failed. "Error 126: Det angivne modul blev ikke fundet. " Is that a problem or just part the porting from linux to Windows? 2) In the section "9.2 Packing up and leaving for Windows" I think I have found a small error. The code : Code:
tar -chjf OpenFOAM.$WM_OPTIONS.tar.bz2 OpenFOAM-1.7.0/applications/bin/$WM_OPTIONS \ Code:
tar -chjf OpenFOAM.$WM_OPTIONS.tar.bz2 OpenFOAM-1.7.0/applications/bin/$WM_OPTIONS \ Again thank you very much for all you help. Kind regards, Thomas. |
Hi Thomas,
Quote:
Quote:
Quote:
Quote:
And Thank You as well, because it's good thing you reported about all of these issues! The release we made of blueCFD 1.7-1 had none of these issues, because I fixed them as I found them and always used multi-core, so none of these issues ended up in the final product... but the documentation in the wiki didn't get the same testing treatment :( Hopefully tomorrow I'll get to fixing these issues. Best regards, Bruno |
Hi Bruno.
I did run Code:
cd $FOAM_LIBBIN Regards, Thomas. |
I have try and get some bugs, this is my build log
Code:
======================================== after use Code:
./build-mingw45 Code:
cd $WM_DIR/rules Code:
./Allwmake |
Hi Mr.Cloud,
That's an old issue, due to the evolution of the "cpp" binary. Edit the file "$WM_DIR/rules/$WM_ARCH$WM_COMPILER/general" and make the 1st line look like the first one from here: https://github.com/OpenCFD/OpenFOAM-...nuxGcc/general Namely this one: Code:
CPP = cpp -traditional-cpp $(GFLAGS) Bruno |
Quote:
Code:
CPP = cpp -traditional-cpp $(GFLAGS) Code:
/* NOTE: make any changes to this file in wmakeFiles/ */ |
Hi Le Phi Long,
OK, I finally managed to get around to test this. Run the following commands: Code:
foam3rdParty Now you can move onto the OpenFOAM folder: Code:
foam Best regards, Bruno |
Oh... THanks you so much Bruno... I have done follow you, and it got no error so far...
|
Quote:
I user the mingw-w64, with this version, i was success in build a OF1.7.x version. Looking for your tutorial like version 1.7, so detail and comfortable. This is the begin... Quote:
|
This is my buildlog so far.
Here is the full log https://docs.google.com/document/d/1...-D3iu1mh0/edit I terminated it when i got these errors. Quote:
|
Hi Mr.Cloud,
If you still have problems with this, I suggest you start a new thread for the instructions you are following, instead of asking the same question on multiple threads :p (the duplicate question I'm talking about is this one: http://www.cfd-online.com/Forums/ope...tml#post379260 ) Best regards, Bruno |
Ok... Thanks for your reply Bruno. From now i will post my problems to this thread "OF 2.1.0 under Windows XP or Windows 7", it look suitable with my problem than this. And can you come there, and have a look at my problem?
Thanks you so much. And st, please forgive for my poor English. |
Problem when patching ThirdParty-1.7.0
Hi,
I am trying to cross compile OpenFoam1.7 in cygwin, I therefore used the wiki instructions on: Code:
http://openfoamwiki.net/index.php/Tip_Using_Cygwin_for_cross-compiling_OpenFOAM Code:
http://openfoamwiki.net/index.php/Tip_Cross_Compiling_OpenFOAM_1.7_in_Linux_For_Windows_with_MinGW In one of the first steps of the second link, however, when patching ThirdParty-1.7.0, I get the error_ Code:
... Anybody any clue? (I don't know anything about linux so I'm following the wiki instructions like a blind robot... ..and hope to end up with win32 executables :o) |
Greetings gerritgroot,
I did a quick test in Ubuntu and it's very simple:
Best regards, Bruno PS: I moved your post to this thread, because this is the thread dedicated to questions for the patches posted for that series of instruction pages. |
"File to patch?"
Muito obrigado Bruno,:)
I never thought it would be that simple. I'm sure more questions will come up as this is all new to me. Gerrit. BTW: It took me some time to find my own messages back. Isn't there a button like "my messages" somewhere? (I've seen that on other forums) |
Hi,
As was to be expected, I got stuck again. I hope you can help me out. First of all some downloads didn't work. I solved this by placing the compressed files under the "download" directory: Code:
./home/MyUser/OpenFOAM/ThirdParty-1.7.0/download Code:
make of binutils failed - log available: /home/MyUser/OpenFOAM/buildLogs/binutils-mingw32_configure.log Code:
checking build system type... i686-pc-cygwin Code:
set -o igncr And ran the script again Code:
./build-mingw44 How can I solve this? |
All times are GMT -4. The time now is 21:42. |