No ftcache in freetype?

Owain Ainsworth <[email protected]>
Newsgroups gmane.os.openbsd.x11
Message-ID <[email protected]>
Hi all,

I'm currently trying to port vtk (http://vtk.org) to OpenBSD, it works
fine despite the lack of 3D acceleration (i've been using it for
projects of mine for around a year). However, one thing that always
annoyed me was that I could never get it to work with the system
freetype library, it always failing on a link. Example at the end of the
email. This is particularly annoying since the Qt bindings for VTK link
with Qt, with does have freetype, so you always get a linker warning of
a symbol size mismatch when you build a project using both Qt and VTK
with VTK's built in freetype.

Having finally had the time to look into this. Although the headers are
installed, building freetype doesn't appear to build freetype/src/cache/*. This
is what's causing the linker errors. Since the symbols involved are
defined in ftcache.c.

Since AFAIK this is an X11 problem, not a ports@ problem i've come here.

I suppose my question is this:
Is there a reason why the cache subsystem isn't built? If not, would it
be possible to build it.

Thanks for your time.

Regards,

Owain

output of build follows:
-----Final part of output from make in fledgeling VTK port: ---
cd /usr/bld/i386/vtk-5.0.3/VTK/Graphics/Testing/Cxx && /usr/bin/c++
-O2 -pipe    -Wno-deprecated  -fPIC
"CMakeFiles/GraphicsCxxTests.dir/GraphicsCxxTests.o"
"CMakeFiles/GraphicsCxxTests.dir/Mace.o"
"CMakeFiles/GraphicsCxxTests.dir/expCos.o"
"CMakeFiles/GraphicsCxxTests.dir/BoxClipTriangulate.o"
"CMakeFiles/GraphicsCxxTests.dir/CellLocator.o"
"CMakeFiles/GraphicsCxxTests.dir/PointLocator.o"
"CMakeFiles/GraphicsCxxTests.dir/FrustumClip.o"
"CMakeFiles/GraphicsCxxTests.dir/RGrid.o"
"CMakeFiles/GraphicsCxxTests.dir/TestSortDataArray.o"
"CMakeFiles/GraphicsCxxTests.dir/vtkTestHierarchicalDataReader.o"   -o
./../../bin/GraphicsCxxTests  -L/usr/bld/i386/vtk-5.0.3/VTK/bin
-L/usr/X11R6/lib -L/usr/local/lib -lvtkRendering -lvtkIO -lvtkGraphics
-lvtkImaging -lvtkftgl -lfreetype -lGL -lXt -lSM -lICE -lSM -lICE -lX11
-lXext -lX11 -lXext -lvtkFiltering -lvtkCommon -lvtksys -lpthread -lm
-lvtkDICOMParser -lpng -lz -lz -ljpeg -ltiff -lexpat
/usr/X11R6/lib/libGL.so.5.1: warning: vsprintf() is often misused,
please use vsnprintf()
CMakeFiles/GraphicsCxxTests.dir/GraphicsCxxTests.o(.text+0x30): In
function `lowercase(char const*)':
: warning: strcpy() is almost always misused, please use strlcpy()
CMakeFiles/GraphicsCxxTests.dir/vtkTestHierarchicalDataReader.o(.text+0xb04):
In function `vtkTestHierarchicalDataReader::GetBlockFileName(int)':
: warning: sprintf() is often misused, please use snprintf()
/usr/bld/i386/vtk-5.0.3/VTK/bin/libvtkRendering.so.5.0: warning:
strcat() is almost always misused, please use strlcat()
/usr/bld/i386/vtk-5.0.3/VTK/bin/libvtkRendering.so.5.0: undefined
reference to `FTC_ImageCache_New'
/usr/bld/i386/vtk-5.0.3/VTK/bin/libvtkRendering.so.5.0: undefined
reference to `FTC_CMapCache_New'
/usr/bld/i386/vtk-5.0.3/VTK/bin/libvtkRendering.so.5.0: undefined
reference to `FTC_Manager_Done'
/usr/bld/i386/vtk-5.0.3/VTK/bin/libvtkRendering.so.5.0: undefined
reference to `FTC_Manager_LookupFace'
/usr/bld/i386/vtk-5.0.3/VTK/bin/libvtkRendering.so.5.0: undefined
reference to `FTC_Manager_New'
/usr/bld/i386/vtk-5.0.3/VTK/bin/libvtkRendering.so.5.0: undefined
reference to `FTC_ImageCache_Lookup'
/usr/bld/i386/vtk-5.0.3/VTK/bin/libvtkRendering.so.5.0: undefined
reference to `FTC_CMapCache_Lookup'
/usr/bld/i386/vtk-5.0.3/VTK/bin/libvtkRendering.so.5.0: undefined
reference to `FTC_Manager_LookupSize'
collect2: ld returned 1 exit status
*** Error code 1

Stop in /usr/bld/i386/vtk-5.0.3/VTK (line 318 of
Graphics/Testing/Cxx/CMakeFiles/GraphicsCxxTests.dir/build.make).
*** Error code 1

Stop in /usr/bld/i386/vtk-5.0.3/VTK (line 1957 of CMakeFiles/Makefile2).
*** Error code 1

Stop in /usr/bld/i386/vtk-5.0.3/VTK (line 99 of Makefile).
*** Error code 1

-- 
The rights you have are the rights given you by this Committee [the
House Un-American Activities Committee].  We will determine what rights
you have and what rights you have not got.
		-- J. Parnell Thomas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.