|
[Sponsors] |
June 11, 2012, 04:17 |
lib directory does not exists
|
#1 |
New Member
deok-kyu choi
Join Date: Feb 2012
Location: Rep. of Korea
Posts: 12
Rep Power: 14 |
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, |
|
June 13, 2012, 21:38 |
|
#2 |
New Member
deok-kyu choi
Join Date: Feb 2012
Location: Rep. of Korea
Posts: 12
Rep Power: 14 |
Nobody has any idea?
|
|
June 14, 2012, 15:44 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
June 15, 2012, 03:21 |
|
#4 | |
New Member
deok-kyu choi
Join Date: Feb 2012
Location: Rep. of Korea
Posts: 12
Rep Power: 14 |
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, |
||
June 16, 2012, 04:58 |
|
#5 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Well, this is the main cause:
Quote:
Good luck! Bruno
__________________
|
||
June 20, 2012, 05:20 |
|
#6 | |
New Member
deok-kyu choi
Join Date: Feb 2012
Location: Rep. of Korea
Posts: 12
Rep Power: 14 |
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 |
||
June 20, 2012, 16:21 |
|
#7 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi Deok-kyu,
It's very simple - whenever you see something like that: Quote:
Code:
chmod +x src/OSspecific/MSwindows/Allwmake Best regards, Bruno
__________________
|
||
June 20, 2012, 23:24 |
|
#8 |
New Member
deok-kyu choi
Join Date: Feb 2012
Location: Rep. of Korea
Posts: 12
Rep Power: 14 |
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 |
|
June 21, 2012, 16:39 |
|
#9 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi Deok-kyu,
Quote:
Quote:
Best regards, Bruno
__________________
|
|||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFoam install script Error during paraFoam installation | SePe | OpenFOAM Installation | 10 | June 19, 2010 15:15 |
critical error during installation of openfoam | Fabio88 | OpenFOAM Installation | 21 | June 2, 2010 03:01 |
Re : Problem Installing OpenFOAM on Centos -5.3 | mohanphy | OpenFOAM Installation | 1 | February 7, 2010 19:09 |
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' | mfiandor | OpenFOAM Installation | 2 | January 25, 2010 09:50 |
Compiling OpenFOAM13 on AMD64 with Redhat Enterprise | mbeaudoin | OpenFOAM Installation | 20 | June 17, 2008 06:43 |