From owner-freebsd-ports@FreeBSD.ORG Thu Dec 4 09:43:47 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A94AB106567A for ; Thu, 4 Dec 2008 09:43:47 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.224]) by mx1.freebsd.org (Postfix) with ESMTP id 7C3F38FC14 for ; Thu, 4 Dec 2008 09:43:47 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so3821103rvf.43 for ; Thu, 04 Dec 2008 01:43:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=M+rYquaWxPFQksBvUmnhwFCTDt79wqx1xWK9cG8/iTE=; b=qJ/UfTG+LqqF4uUX0HYoZKbjBkcF0OjKsl8GvH7jYGke9s5zkQbOoamQ0DHvY1WHt5 0c1MwzjM1L4uH0UMF6FklDoX3CJsa+e1jcqIxp1t3hxMmlkodBNLx/86ruBmg497i5mV KP4lhSWjekQxwDsyYxssH3DJrn2dQgJ7jyq4M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=lVNY5NWtA6ITWSwbHx9g3n86vqMGdERP+9cpSBU5/nwdqSallIgQpYNMK0w9oFIQBG P81CEpo1g0MEJC+p3DrEBNpHXXvP+DXkPnTGl9tD9eVES9Oec1uvKRXz5TEKwZmw+sLd HFBnnj+HpjScILnJS3Y+ihGFKdFjH84q9wAfQ= Received: by 10.141.23.7 with SMTP id a7mr6816131rvj.66.1228383826876; Thu, 04 Dec 2008 01:43:46 -0800 (PST) Received: by 10.140.158.13 with HTTP; Thu, 4 Dec 2008 01:43:46 -0800 (PST) Message-ID: <7d6fde3d0812040143n374c63edyead7aa4f44e7c0f1@mail.gmail.com> Date: Thu, 4 Dec 2008 01:43:46 -0800 From: "Garrett Cooper" To: "Silver Salonen" In-Reply-To: <20828880.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20828880.post@talk.nabble.com> Cc: freebsd-ports@freebsd.org Subject: Re: cmake cannot link against libxml++ X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Dec 2008 09:43:47 -0000 On Thu, Dec 4, 2008 at 12:02 AM, Silver Salonen 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