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

Compilation error with PatchToolServer

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2009, 13:13
Default Compilation error with PatchToolServer
  #1
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Hi,

I am trying to get the OF-1.4 utility patchTool working but I can't seem to get PatchToolServer to compile I get an error about -lssl:
+ cd PatchToolServer
+ wmake
g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/philipc/OpenFOAM/OpenFOAM-1.4.1-dev/src/mico-2.3.13/platforms/linuxGccDPOpt/include -I../FoamXServer -I/home/philipc/OpenFOAM/OpenFOAM-1.4.1-dev/src/triSurface/lnInclude -I/home/philipc/OpenFOAM/OpenFOAM-1.4.1-dev/src/meshTools/lnInclude -I/home/philipc/OpenFOAM/OpenFOAM-1.4.1-dev/src/dynamicMesh/lnInclude -IlnInclude -I. -I/home/philipc/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude -fPIC -pthread Make/linuxGccDPOpt/PatchToolServer.o Make/linuxGccDPOpt/IPatchToolServerImpl.o Make/linuxGccDPOpt/FoamXErrors.o Make/linuxGccDPOpt/LogEntry.o Make/linuxGccDPOpt/LogManager.o Make/linuxGccDPOpt/NameServer.o Make/linuxGccDPOpt/Orb.o Make/linuxGccDPOpt/Paths.o -L/home/philipc/OpenFOAM/OpenFOAM-1.4.1-dev/lib/linuxGccDPOpt \
-L/home/philipc/OpenFOAM/OpenFOAM-1.4.1-dev/src/mico-2.3.13/platforms/linuxGccDPOpt/lib -lmicocoss2.3.13 -lmico2.3.13 -lssl -lcrypto -ldl -lPatchToolServer -ltriSurface -ldynamicMesh -lmeshTools -lOpenFOAM -ldl -lm -o /home/philipc/OpenFOAM/OpenFOAM-1.4.1-dev/applications/bin/linuxGccDPOpt/PatchToolServer
/usr/lib/gcc/i586-suse-linux/4.3/../../../../i586-suse-linux/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
make: *** [/home/philipc/OpenFOAM/OpenFOAM-1.4.1-dev/applications/bin/linuxGccDPOpt/PatchToolServer] Error 1


At the moment, I can get the patchTool GUI to open but I cannot load a case as it says the PatchToolServer is not running.

I'm not sure if it is connected but when I was recompiling OpenFOAM-1.4.1-dev, some of the solvers and libraries didn't compile and gave the error about ‘yyFlexLexer’.


+ wmake libso triSurface
Making dependency list for source file triSurface/interfaces/STL/readSTLASCII.L
SOURCE=triSurface/interfaces/STL/readSTLASCII.L ; foamFlex++ -f $SOURCE ; mv lex.yy.cc Make/linuxGccDPOpt/readSTLASCII.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/home/philipc/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude -fPIC -pthread -c Make/linuxGccDPOpt/readSTLASCII.C -o Make/linuxGccDPOpt/readSTLASCII.o
triSurface/interfaces/STL/readSTLASCII.L:55: error: no ‘int yyFlexLexer::yywrap()’ member function declared in class ‘yyFlexLexer’


I found this mentioned on the forums but there was no real solution given and the things suggested didn't work for me (changes in readSTLASCII.L file).


I would be very happy if anyone could give me hints on how to get PatchToolServer to compile or explain anything about '-lssl'. I have tried a few things like updating mico but to no avail, hopefully someone can help.

Philip
bigphil is offline   Reply With Quote

Old   September 29, 2009, 14:21
Default fixed!
  #2
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
PHEW got it working!

I don't really know what the problem was but since I thought it was some missing package on my OpenSUSE 11.0, I checked looked at other compilation errors on the forum and packages that needed to be installed, so I installed a few through YaST2 and then PatchToolServer compiled!

The packages I installed were the following:
binutils
binutils-devel
bison
qt3-devel

I think it is one of these.


BTW I realise I only posted the question an hour ago, I actually thought I posted it yesterday but I must have only previewed it.


A happy Philip

Last edited by bigphil; September 29, 2009 at 14:26. Reason: I left out binutils-devel
bigphil 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
UDF compilation problem on Linux System Nitin Pathak Fluent UDF and Scheme Programming 6 September 29, 2018 21:26
Compilation Error when running Tutorial 2.4 zhihuali Siemens 7 April 1, 2008 08:34
Compilation error with uparm.f Raghu Siemens 2 May 30, 2007 03:09
Compilation Error.... Arnab Siemens 4 September 12, 2004 16:54
Need help on double precision compilation tingguang Main CFD Forum 1 March 18, 2002 18:26


All times are GMT -4. The time now is 01:16.