<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.32.2">
</HEAD>
<BODY>
Il giorno ven, 22/11/2013 alle 08.49 -0500, Wayne DePrince Jr. ha scritto:<BR>
<BLOCKQUOTE TYPE=CITE>
    ahoy all,<BR>
    <BR>
        i am trying to build the 1.5.0  SVN  version following the directions here<BR>
    <BR>
    <A HREF="http://wiki.scribus.net/canvas/Building_SVN_versions_with_CMake">http://wiki.scribus.net/canvas/Building_SVN_versions_with_CMake</A><BR>
    <BR>
    on a GNU+Linux x86_64 system (Gentoo).<BR>
    <BR>
        i have installed the Qt5 dependencies along with the others listed, but i am stuck at the following linking error:<BR>
    <BR>
<PRE>
[ 78%] Building CXX object scribus/CMakeFiles/scribus-1.5.0.svn.dir/main.cpp.o
Linking CXX executable scribus-1.5.0.svn
/usr/lib64/libsqlite3.so.0: undefined reference to `ubrk_next'
/usr/lib64/libsqlite3.so.0: undefined reference to `utf8_nextCharSafeBody'
/usr/lib64/libsqlite3.so.0: undefined reference to `u_errorName'
/usr/lib64/libsqlite3.so.0: undefined reference to `u_foldCase'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libxml2.so: undefined reference to `ucnv_setToUCallBack'
/usr/lib64/libsqlite3.so.0: undefined reference to `uregex_setText'
/usr/lib64/libsqlite3.so.0: undefined reference to `uregex_close'
/usr/lib64/libsqlite3.so.0: undefined reference to `uregex_matches'
/usr/lib64/libsqlite3.so.0: undefined reference to `ubrk_close'
/usr/lib64/libsqlite3.so.0: undefined reference to `ucol_strcoll'
/usr/lib64/libsqlite3.so.0: undefined reference to `u_strToUpper'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libxml2.so: undefined reference to `ucnv_convertEx'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libxml2.so: undefined reference to `ucnv_setFromUCallBack'
/usr/lib64/libsqlite3.so.0: undefined reference to `u_strToUTF8'
/usr/lib64/libsqlite3.so.0: undefined reference to `ucol_close'
/usr/lib64/libsqlite3.so.0: undefined reference to `ubrk_open'
/usr/lib64/libsqlite3.so.0: undefined reference to `ubrk_current'
/usr/lib64/libsqlite3.so.0: undefined reference to `u_isspace'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libxml2.so: undefined reference to `ucnv_close'
/usr/lib64/libsqlite3.so.0: undefined reference to `ucol_open'
/usr/lib64/libsqlite3.so.0: undefined reference to `uregex_open'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libxml2.so: undefined reference to `UCNV_FROM_U_CALLBACK_STOP'
/usr/lib64/libsqlite3.so.0: undefined reference to `u_strToLower'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libxml2.so: undefined reference to `ucnv_open'
/usr/lib64/libsqlite3.so.0: undefined reference to `ubrk_first'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libxml2.so: undefined reference to `UCNV_TO_U_CALLBACK_STOP'
collect2: ld returned 1 exit status
make[2]: *** [scribus/scribus-1.5.0.svn] Error 1
make[1]: *** [scribus/CMakeFiles/scribus-1.5.0.svn.dir/all] Error 2
make: *** [all] Error 2

i have tried updating/rebuilding SQLite, ICU and libXML2 with no luck so far, still getting the same error.

        thanks in advance for any advice or next debugging steps.
</PRE>
</BLOCKQUOTE>
<BR>
    after lots of debugging and poking i finally figured out that the problem here is that the version of libXML2 that i have installed depends on ICU (as do most libraries in the system it seems).  rebuilding libXML2 w/o ICU allows the Scribus build to finish.<BR>
<BR>
    my next question is whether the CMake build process should determine that ICU is a dependency of libXML2 automatically and include it in the linking phase?  or does ICU need to be added as a dependency of Scribus explicitly?  the CMake module LibXml2Config.cmake <I>seems</I> to be searching for the libraries that libXML2 depends on (which end up in "LIBXML2_LIBRARIES" - the libraries needed to use LibXml2) but obviously it is not picking up the ICU dependency on libXML2 during the cmake setup.<BR>
<BR>
    my gut tells me it is some local problem on my machine but i posted just in case anyone else has similar problems.<BR>
<BR>
    happy new year if u dig it.<BR>
<BR>
peace, w<BR>
<BR>
</BODY>
</HTML>