CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   lib directory does not exists (https://www.cfd-online.com/Forums/openfoam-installation/103098-lib-directory-does-not-exists.html)

ggoggodak85 June 11, 2012 04:17

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,

ggoggodak85 June 13, 2012 21:38

Nobody has any idea?

wyldckat June 14, 2012 15:44

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
If not, try this command to confirm if the parent folder exists:
Code:

ls -l $HOME/OpenFOAM/OpenFOAM-2.1.x/
Additionally, by what I can see from the line #76, you are meant to run this script from within the folder "$HOME/OpenFOAM".


If this doesn't help, then please describe in more detail what is the problem!?

Best regards,
Bruno

ggoggodak85 June 15, 2012 03:21

1 Attachment(s)
Quote:

Originally Posted by wyldckat (Post 366518)
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
If not, try this command to confirm if the parent folder exists:
Code:

ls -l $HOME/OpenFOAM/OpenFOAM-2.1.x/
Additionally, by what I can see from the line #76, you are meant to run this script from within the folder "$HOME/OpenFOAM".


If this doesn't help, then please describe in more detail what is the problem!?

Best regards,
Bruno

Thx for your great help.
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
the output in terminal
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/
choidk@choidk-VirtualBox:~/OpenFOAM/OpenFOAM-2.1.x$ 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,

wyldckat June 16, 2012 04:58

Well, this is the main cause:
Quote:

Code:

UOPwrite.C:29:17: fatal error: mpi.h: No such file or directory
compilation terminated.


You have to figure out how the MS-MPI is meant to be installed!

Good luck!
Bruno

ggoggodak85 June 20, 2012 05:20

Quote:

Originally Posted by wyldckat (Post 366760)
Well, this is the main cause:
You have to figure out how the MS-MPI is meant to be installed!

Good luck!
Bruno

Hi, Bruno!

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

wyldckat June 20, 2012 16:21

Hi Deok-kyu,

It's very simple - whenever you see something like that:
Quote:

Code:

src/Allwmake: 1: OSspecific/MSwindows/Allwmake: Permission denied

It's either due to one of two reasons:
  1. File not accessible.
  2. Or the file doesn't have execution permissions.
From within the "OpenFOAM-2.1.x" folder, run:
Code:

chmod +x src/OSspecific/MSwindows/Allwmake
Then you can try again!

Best regards,
Bruno

ggoggodak85 June 20, 2012 23:24

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

wyldckat June 21, 2012 16:39

Hi Deok-kyu,

Quote:

Originally Posted by ggoggodak85 (Post 367567)
db/IOstreams/gzstream/gzstream.h:35:18: fatal error: zlib.h: No such file or directory

I vaguely remember already telling you about this, which is due to the missing zlib library!

Quote:

Originally Posted by ggoggodak85 (Post 367567)
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

Mmm... If I'm not mistaken, it's because Symscape's scripts don't automatically fix the issue about building the wmake helper applications. If you build first the Linux version of OpenFOAM - well, just start to build it, you don't need to let it build everything - you can then copy the files from "wmake/platforms/linux64Gcc/" to "wmake/platforms/linux64mingw-w64/".

Best regards,
Bruno


All times are GMT -4. The time now is 11:53.