Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Dec 2008 01:43:46 -0800
From:      "Garrett Cooper" <yanefbsd@gmail.com>
To:        "Silver Salonen" <silver.salonen@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: cmake cannot link against libxml++
Message-ID:  <7d6fde3d0812040143n374c63edyead7aa4f44e7c0f1@mail.gmail.com>
In-Reply-To: <20828880.post@talk.nabble.com>
References:  <20828880.post@talk.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 4, 2008 at 12:02 AM, Silver Salonen
<silver.salonen@gmail.com> wrote:
>
> Hello.
>
> I created a port for Museek+ which is built with cmake now. The problem is
> that although it gets built OK, cmake cannot link one of its executables
> against libxml++:
> =====
> ... [100%] Building CXX object
> museekd/CMakeFiles/museekd.dir/distributedsocket.cpp.o Linking CXX
> executable museekd /usr/bin/ld: cannot find -lxml++-2.6 *** Error code 1
> =====
>
> Concerning libxml++, cmake seems to find it OK - before building:
> =====
> -- checking for one of the modules 'libxml++-2.6' -- found libxml++-2.6,
> version 2.22.0
> =====
>
> Previously I had a problem with cmake finding libiconv.h, but I resolved it
> with "CMAKE_ARGS+=    -DCMAKE_REQUIRED_INCLUDES="${LOCALBASE}/include". But
> I guess it's irrelevant and not even similar.
>
> Is there anything to be specified in order to cmake to find libxml++
> correctly?

1. Does /usr/local/lib/libxml++-2.6.a and/or
/usr/local/lib/libxml++-2.6.so exist?
2. What are your CXXFLAGS / LDFLAGS?

-Garrett



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7d6fde3d0812040143n374c63edyead7aa4f44e7c0f1>