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

[OpenFOAM.com] Cannot find -ltriSurface

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 17, 2019, 23:35
Post Cannot find -ltriSurface
  #1
New Member
 
Hafiz Ahmad
Join Date: May 2019
Location: Brunei
Posts: 19
Rep Power: 6
mdhfiz is on a distinguished road
I have tried to install LaminarSMOKE on my system. The system that I'm running on is debian stretch. I have successfully installed of1806+ and ParaView on my system. However, when compiling one of the folders of LaminarSMOKE, I received this error:

Code:
-lOpenFOAM -ltriSurface -lmeshTools -lfiniteVolume -lmeshTools -o /home/hafiz/OpenFOAM/hafiz-v1806/platforms/linux64GccDPInt64Opt/lib/libboundaryConditionsOpenSMOKE++.so
/usr/bin/ld: cannot find -ltriSurface
collect2: error: ld returned 1 exit status
/home/hafiz/OpenFOAM/OpenFOAM-v1806/wmake/makefiles/general:163: recipe for target '/home/hafiz/OpenFOAM/hafiz-v1806/platforms/linux64GccDPInt64Opt/lib/libboundaryConditionsOpenSMOKE++.so' failed
make: *** [/home/hafiz/OpenFOAM/hafiz-v1806/platforms/linux64GccDPInt64Opt/lib/libboundaryConditionsOpenSMOKE++.so] Error 1
I can't seem to figure out where this error comes about. I have the latest flex installed in my system. I tried similar problems from other forum posts but apparently they don't work as well. Please help!

-hafiz
mdhfiz is offline   Reply With Quote

Old   June 20, 2019, 14:45
Default
  #2
Member
 
Fatih Ertinaz
Join Date: Feb 2011
Location: Istanbul
Posts: 64
Rep Power: 15
fertinaz is on a distinguished road
Hello Hafiz

Following message means linker cannot find the triSurface library probably because it wasn't compiled properly:
Code:
/usr/bin/ld: cannot find -ltriSurface
If it was compiled successfully, you'd have a file called "libtriSurface.so" in the $FOAM_LIBBIN directory which is where the linker checks. So for me it looks like this:
Code:
$ ls $FOAM_LIBBIN/libtriSurface.so -l
OF-5x/platforms/linux64Gcc48DPInt32Opt/lib/libtriSurface.so
Presumably you don't have that library file in that location.

If you have log file from the compilation, take a look at it and see why it failed.

To compile triSurface library:
Code:
 $ grep -irn "libtriSurface" src/*
src/triSurface/Make/files:40:LIB = $(FOAM_LIBBIN)/libtriSurface
You need to go to the $FOAM_SRC/triSurface directory and run "wmake libso".

Hope this helps

// Fatih
fertinaz is offline   Reply With Quote

Old   June 27, 2019, 08:57
Default
  #3
New Member
 
Hafiz Ahmad
Join Date: May 2019
Location: Brunei
Posts: 19
Rep Power: 6
mdhfiz is on a distinguished road
The lib was unavailable in OF1812, that’s why I got the error. Anyways, I changed it to OF6 and it was compiled successfully!
mdhfiz is offline   Reply With Quote

Old   June 27, 2019, 09:08
Default
  #4
New Member
 
Hafiz Ahmad
Join Date: May 2019
Location: Brunei
Posts: 19
Rep Power: 6
mdhfiz is on a distinguished road
Well, now I got this error when compiling another solver:

Code:
radiationModels/fvDOM/radiativeIntensityRay/radiativeIntensityRay.C: In member function ‘Foam::scalar Foam::radiation::radiativeIntensityRay::correct()’:
radiationModels/fvDOM/radiativeIntensityRay/radiativeIntensityRay.C:245:9: error: no matching function for call to ‘solve(Foam::fvScalarMatrix&, const char [3])’
);
^
In file included from /home/hafiz/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/scalarMatrices.H:171:0,
from /home/hafiz/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/dimensionSets.H:39,
I'm not really sure what to do here. Apparently, I do have the header file required. How can I fix this problem?
mdhfiz is offline   Reply With Quote

Old   July 9, 2019, 14:11
Default
  #5
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,686
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by mdhfiz View Post
The lib was unavailable in OF1812, that’s why I got the error. Anyways, I changed it to OF6 and it was compiled successfully!



The triSurface library has been absorbed into the surfMesh library, so it's not needed any more.
olesen is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[foam-extend.org] 3.2 Installation in Debian 8.5 jsm OpenFOAM Installation 2 June 19, 2016 10:53
How to make a code parallel? Bruno Machado Fluent UDF and Scheme Programming 15 May 27, 2016 09:18
CFX-Pre problem, pls help!!! cth_yao CFX 0 February 17, 2012 00:52
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 12:38
Problem Building OF on Centos cluster (no admin rights) CKH OpenFOAM Installation 5 November 13, 2011 06:32


All times are GMT -4. The time now is 23:05.