Errors by OpenFOAM-1.5-dev compilation
Dear OpenFOAMers,
when trying to compile the version of OpenFOAM-1.5-dev (which I have got from http://openfoam-extend.svn.sourcefor...nFOAM-1.5-dev/) Although many libraries were compiled successfully, I have got several errors the discussion of which I have not noticed in other threads. I work with gcc 4.5.0 under SUSE Linux 11.3. I hope, I have installed all the required packages: at least, OpenFOAM-1.6-ext and OpenFOAM-1.7.x I have successfully compiled. (I need OpenFOAM-1.5-dev because I am going to use the OSIG TurboMachinery libraries and still fail to make them work with OpenFOAM-1.6-ext) Here are the error messages: 1. Code:
/home/oko/OpenFOAM/OpenFOAM-1.5-dev/lib/linuxGccDPOpt/libcombustionThermophysicalModels.so: undefined reference to `Foam::basicThermo::hBoundaryCorrection(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&)' Code:
/home/oko/OpenFOAM/OpenFOAM-1.5-dev/lib/linuxGccDPOpt/libliquidMixture.so: undefined reference to `Foam::liquid::New(Foam::Istream&)' Code:
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/libreadline.so when searching for -lreadline Code:
Checking basic setup... And what is the problem with ssh connection? For the other OpenFOAM versions installed on the computer, the foamInstallationTest delivers no errors. Sincerely, Alexey Kochevsky |
Greetings Alexey,
OK, a few of the errors you are getting have already been addressed here: http://www.cfd-online.com/Forums/ope...c-4-5-1-a.html I'm sorry, but you'll have to read the whole thread, since there are details that I might forget if I sum them up here. As for the "-lreadline", you're missing the libreadline packages, both library and development folders. Search in YaST - Software installation, for occurrences of "libreadline". If you still are unable to build 1.5-dev, then don't forget to run Allwmake like this: Code:
cd $WM_PROJECT_DIR Best regards and good luck! Bruno |
1 Attachment(s)
Greetings Bruno,
thank you very much for the prompt help. Nevertheless, I have not made further progress. I have read the thread you had mentioned, I have taken the wmake rules from OpenFOAM-1.7.x, updated the links with "wmakeLnIncludeAll src applications", added the line "#include <stdio.h>" to the "chemkinLexer.L" file, however, it had no effect on the compilation results. Concerning the "libreadline" library: I have checked, this library is installed by me, namely the version 5.2-117.1 and 6.1-8.1. However, the installed libraries are of 64 bit, whereas my system is of 32 bit. Maybe, here is the reason? When I try to install 32-bit version, the YaST answers that a number of other libraries should be replaced with 32 bit versions. I am hesitating whether this major replacement will not disturb operation of other OpenFOAM versions that are already installed. By the way, how can one be sure whether the used OpenSuSE version is of 32 or 64 bit? I assume, for 64 bit versions, it is stated in system information explicitly. Otherwise, the OS is of 32 bit? Attached is the make.log file, compressed with tar (sorry, some messages over there are in German, it is the language of my operation system). Regards, Alexey |
Hi Alexey,
I'm sorry for taking so long to reply, but these last days have been a hand full. Quote:
Quote:
Code:
uname -m Quote:
Code:
cd $WM_PROJECT_DIR Code:
find / -name "libreadline.so*" 2>/dev/null But if you can find it, run: Code:
mkdir -p $FOAM_LIBBIN Then run Allwmake like you did before. Best regards and good luck! Bruno |
Dear Bruno,
thank you very much for your explanation. The code "uname -m" outputs by me "x86_64". So, I was mistaking, my Linux SuSE is of 64 bit. Meanwhile, I have succeeded to build this OpenFOAM version on my laptop and copy the results to this PC. It seems it works. To spare time, I will try to proceed with this separately compiled version. Kind regards, Alexey |
All times are GMT -4. The time now is 09:47. |