Hi,

On Sat, 10 Mar 2012 12:18:22 -0600
DRC <dcomman...@users.sourceforge.net> wrote:

> Just FYI-- I looked at this briefly, and from what I can tell, what you
> really want to be doing is linking against Xft, not against fontconfig.

This doesn't seem to work.
Linking against Xft yields the following:

/usr/bin/ld: ../common/fltk/src/libfltk_static.a(fl_font.cxx.o):
undefined reference to symbol 'FcPatternAddInteger' /usr/bin/ld: note:
'FcPatternAddInteger' is defined in DSO /usr/lib/libfontconfig.so.1 so try
adding it to the linker command line

Linking against fontconfig and not Xft works.

For what it's worth, I think the issue is
http://fedoraproject.org/wiki/UnderstandingDSOLinkChange

which explains why it works on old distros and not recent one.

>  Also, I think you only want to link against it when building the Unix
> viewer, not the other versions (pretty sure the patch below would cause
> a Windows build, for instance, to fail.)

I'm afraid I don't know how to do that. CMake is something I know enough to
know that I don't want to know any more. :)
 
> Since I can't repro the original issue, I can't really say what the right fix
> is.  I'm just throwing ideas out there.

I think the link above explains that we're actually supposed to link against
fontconfig explicitly, in all cases. As long as it doesn't break existing
builds, I guess it's OK to include the patch?

-- 
Greetings, 
A. Huillet

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Tigervnc-devel mailing list
Tigervnc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-devel

Reply via email to