lib directory does not exists
I'm trying to compile OF-2.1.x for windows.
I got a build-script from https://gist.github.com/2352720 When I follow the build-script, I'm trouble at Line 145. Line 145 : export FOAM_LIB=$WM_PROJECT_DIR/lib I can't find "OpenFOAM/OpenFOAM-2-1.x/lib" Is there anything to do more to make lib directory? In script, No jobs to make directory. I hope someone will help me. Best regards, |
Nobody has any idea?
|
Hi ggoggodak85,
It's not as much of a lack of ideas, the main problem is the lack of time ;) And I'm not sure I understand the problem. The folder you seem to be looking for should appear if you run this command: Code:
ls -l $HOME/OpenFOAM/OpenFOAM-2.1.x/lib Code:
ls -l $HOME/OpenFOAM/OpenFOAM-2.1.x/ If this doesn't help, then please describe in more detail what is the problem!? Best regards, Bruno |
1 Attachment(s)
Quote:
yes, I already work within $HOME/OpenFOAM/OpenFOAM-2.1.x and when I ran Code:
ls -l $HOME/OpenFOAM/OpenFOAM-2.1.x/lib lrwxrwxrwx 1 choidk choidk 62 2012-06-15 15:29 linux64GccDPOpt -> /home/choidk/OpenFOAM/OpenFOAM-2.1.x/lib/linux64mingw-w64DPOpt drwxrwxr-x 2 choidk choidk 4096 2012-06-15 15:25 linux64mingw-w64DPOpt and Code:
ls -l $HOME/OpenFOAM/OpenFOAM-2.1.x/ total 844 -rwxrwxr-x 1 choidk choidk 939 2012-06-15 15:03 Allwmake -rw-rw-r-- 1 choidk choidk 541359 2012-06-15 15:47 Allwmake.log drwxrwxr-x 5 choidk choidk 4096 2012-06-13 15:57 applications drwxrwxr-x 3 choidk choidk 4096 2012-06-13 15:57 bin -rw-rw-r-- 1 choidk choidk 35647 2012-06-13 15:57 COPYING drwxrwxr-x 6 choidk choidk 4096 2012-06-13 15:57 doc drwxrwxr-x 5 choidk choidk 4096 2012-06-15 15:09 etc drwxrwxr-x 4 choidk choidk 4096 2012-06-15 15:03 extra drwxrwxr-x 3 choidk choidk 4096 2012-06-15 15:29 lib -rw-rw-r-- 1 choidk choidk 221422 2012-06-15 15:03 patch.log drwxrwxr-x 3 choidk choidk 4096 2012-06-15 15:30 platforms -rw-rw-r-- 1 choidk choidk 6478 2012-06-13 15:57 README.html -rw-rw-r-- 1 choidk choidk 1590 2012-06-13 15:57 README.org drwxrwxr-x 33 choidk choidk 4096 2012-06-15 15:03 src drwxrwxr-x 16 choidk choidk 4096 2012-06-13 15:57 tutorials drwxrwxr-x 6 choidk choidk 4096 2012-06-15 15:03 wmake finally I attached my Allwmake.log file compiling OpenFOAM. Best regards, |
Well, this is the main cause:
Quote:
Good luck! Bruno |
Quote:
I almost solved my problem, but there's some problems for compiling. I think OpenFOAM can't find library files. Plz give some help. here is some parts of output for Allwmake. Regards, ================================================== ============= make: Nothing to be done for `all'. no ThirdParty sources found - skipping + set -e + wmakePrintBuild -check same version as previous build + wmakeLnInclude OpenFOAM + wmakeLnInclude OSspecific/MSwindows + OSspecific/MSwindows/Allwmake src/Allwmake: 1: OSspecific/MSwindows/Allwmake: Permission denied + wmake all utilities make[1]: Entering directory `/home/choidk/OpenFOAM/OpenFOAM-2.1.x/applications/utilities/mesh' make[2]: Entering directory `/home/choidk/OpenFOAM/OpenFOAM-2.1.x/applications/utilities/mesh/advanced' make[3]: Entering directory `/home/choidk/OpenFOAM/OpenFOAM-2.1.x/applications/utilities/mesh/advanced/PDRMesh' 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 -I/home/choidk/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/choidk/OpenFOAM/OpenFOAM-2.1.x/src/dynamicMesh/lnInclude -I/home/choidk/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/choidk/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/choidk/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/MSwindows/lnInclude -Wl,--enable-auto-import,--enable-auto-image-base,--force-exe-suffix,--strip-all Make/linux64mingw-w64DPOpt/PDRMesh.o -L/home/choidk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64mingw-w64DPOpt/lib \ -lmeshTools -ldynamicMesh -lfiniteVolume -lcompressibleRASModels -u compressibleRASModelsLoad -lcompressibleTurbulenceModel -lOpenFOAM -L/home/choidk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64mingw-w64DPOpt/lib/dummy -lPstream -lm -o /home/choidk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64mingw-w64DPOpt/bin/PDRMesh.exe /usr/bin/x86_64-w64-mingw32-ld: cannot find -lmeshTools /usr/bin/x86_64-w64-mingw32-ld: cannot find -ldynamicMesh /usr/bin/x86_64-w64-mingw32-ld: cannot find -lfiniteVolume /usr/bin/x86_64-w64-mingw32-ld: cannot find -lcompressibleRASModels /usr/bin/x86_64-w64-mingw32-ld: cannot find -lcompressibleTurbulenceModel /usr/bin/x86_64-w64-mingw32-ld: cannot find -lOpenFOAM /usr/bin/x86_64-w64-mingw32-ld: cannot find -lPstream collect2: ld returned 1 exit status make[3]: *** [/home/choidk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64mingw-w64DPOpt/bin/PDRMesh.exe] Error 1 make[3]: Leaving directory `/home/choidk/OpenFOAM/OpenFOAM-2.1.x/applications/utilities/mesh/advanced/PDRMesh' make[2]: *** [PDRMesh] Error 2 |
Hi Deok-kyu,
It's very simple - whenever you see something like that: Quote:
Code:
chmod +x src/OSspecific/MSwindows/Allwmake Best regards, Bruno |
Thanks again, Bruno!
It works, Allwmake file has no function to execute. Some messages posted when Allwmake. plz see the messages. + wmake libso OpenFOAM SOURCE=db/IOstreams/gzstream/gzstream.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 -IMake/linux64mingw-w64DPOpt -IlnInclude -I. -I/home/choidk/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/choidk/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/MSwindows/lnInclude -c $SOURCE -o Make/linux64mingw-w64DPOpt/gzstream.o In file included from db/IOstreams/gzstream/gzstream.C:29:0: db/IOstreams/gzstream/gzstream.h:35:18: fatal error: zlib.h: No such file or directory compilation terminated. make: *** [Make/linux64mingw-w64DPOpt/gzstream.o] Error 1 And I have more questions. 1. how can i link library file? (refer to above replies) e.g.) /usr/bin/x86_64-w64-mingw32-ld: cannot find -lmeshTools /usr/bin/x86_64-w64-mingw32-ld: cannot find -ldynamicMesh /usr/bin/x86_64-w64-mingw32-ld: cannot find -lfiniteVolume /usr/bin/x86_64-w64-mingw32-ld: cannot find -lcompressibleRASModels /usr/bin/x86_64-w64-mingw32-ld: cannot find -lcompressibleTurbulenceModel /usr/bin/x86_64-w64-mingw32-ld: cannot find -lOpenFOAM /usr/bin/x86_64-w64-mingw32-ld: cannot find -lPstream 2. why this message occur? I don't know why. run-detectors: unable to find an interpreter for /home/choidk/OpenFOAM/OpenFOAM-2.1.x/wmake/platforms/linux64mingw-w64/wmkdep |
Hi Deok-kyu,
Quote:
Quote:
Best regards, Bruno |
All times are GMT -4. The time now is 11:53. |