CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

Cannot Compile libtriSurface.so on Allwmake

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   July 23, 2012, 08:44
Default Cannot Compile libtriSurface.so on Allwmake
  #1
Member
 
Edward Leonard
Join Date: May 2012
Location: Calumet, MI
Posts: 31
Rep Power: 5
iamed18 is on a distinguished road
FOAMers,

I've been able to use CentFOAM in my travels thus far, but now I must venture to the world of Fedora 13 with the latest version of OF. I downloaded the source for OF-2.1.1, sourced the environment variables file, and after making sure that the system I'm on has gcc-4.4.5, I tried to compile.

Some of the source compiles just fine, as notable in the attached output, while some fails. I've attached the output from compilation until it starts to error on various aspects of compilation. After trying to follow it a bit, many problems arise from the inability to compile libfiniteVolume.so, which doesn't compile due to a missing triSurface.so, which I can't seem to troubleshoot much further myself. See here:

Code:
/usr/bin/ld: cannot find -ltriSurface
collect2: ld returned 1 exit status
make: *** [/home/leonard/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so] Error 1
This causes several cases of:

Code:
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make: *** [/home/leonard/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libreconstruct.so] Error 1
Any input on this?
Thanks,
~Ed

P.S.
Code:
flex     2.5.36    /home/leonard/Software/flexbuild/flex
gcc      4.4.5     /usr/bin/gcc
gzip     1.3.13    /bin/gzip
tar      1.22      /bin/tar
Attached Files
File Type: zip makelog.zip (30.0 KB, 3 views)

Last edited by iamed18; July 23, 2012 at 08:50. Reason: Added the P.S.
iamed18 is offline   Reply With Quote

Old   July 23, 2012, 16:57
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Edward,

The problem is this:
Quote:
Code:
SOURCE=triSurface/interfaces/STL/readSTLASCII.L ; flex -+ -oMake/linux64GccDPOpt/readSTLASCII.C -f $SOURCE ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/leonard/OpenFOAM/OpenFOAM-2.1.1/src/fileFormats/lnInclude -IlnInclude -I. -I/home/leonard/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/leonard/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -c Make/linux64GccDPOpt/readSTLASCII.C -o Make/linux64GccDPOpt/readSTLASCII.o
Make/linux64GccDPOpt/readSTLASCII.C:313:23: error: FlexLexer.h: No such file or directory
You apparently have made a custom installation of Flex and although the binary file is visible to wmake via the environment variable "PATH", but the "FlexLexer.H" is not accessible using the conventional inclusion paths.

So, the trick should be:
  1. Check if you can find the file where you installed Flex:
    Code:
    find /home/leonard/Software/flexbuild/ -name FlexLexer.h
  2. If you can find it, create a symbolic link for it to where OpenFOAM's main "lnInclude" folder is:
    Code:
    ln -s /home/leonard/Software/flexbuild/include/FlexLexer.h $FOAM_SRC/OpenFOAM/lnInclude/FlexLexer.h
    The first path is an assumption but the second one should be correct.
Best regards,
Bruno
iamed18 likes this.
wyldckat is offline   Reply With Quote

Old   July 24, 2012, 10:58
Default
  #3
Member
 
Edward Leonard
Join Date: May 2012
Location: Calumet, MI
Posts: 31
Rep Power: 5
iamed18 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings Edward,

The problem is this:
You apparently have made a custom installation of Flex and although the binary file is visible to wmake via the environment variable "PATH", but the "FlexLexer.H" is not accessible using the conventional inclusion paths.
This was exactly my problem, and the fix was quite similar (FlexLexer.h happens to be in the original source directory of flex, not the build directory).

Thanks for the input! I'm happily FOAMing once again.
~Ed
iamed18 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 32 May 8, 2015 06:05
How to compile OpenFOAM-1.7.x on CrunchBang linux 10 gwierink OpenFOAM Installation 0 April 5, 2011 04:38
PV3FoamReader compile error.... PEM_GUY OpenFOAM Installation 6 April 5, 2010 17:22
Error compile file udf czfluent Fluent UDF and Scheme Programming 24 September 26, 2009 13:24
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 22:51


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