Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Apr 2020 17:35:23 +0100
From:      Pietro Paolini <pietro.paolini@cognitivecredit.com>
To:        Brian Neal <brian@aceshardware.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: CMake build
Message-ID:  <CAD1wxR%2BmjtVkiZ969d%2B8M-8Vw1yAyoJ4ZoJHpWS9xmuBnWGSig@mail.gmail.com>
In-Reply-To: <540dd25f-b57a-6d19-ccdc-82a1945b98e6@aceshardware.com>
References:  <CAD1wxR%2BaF=2ea4_Gq0LArq-pPC3kCzBe40ZbLsGiF3awBb_6Gw@mail.gmail.com> <540dd25f-b57a-6d19-ccdc-82a1945b98e6@aceshardware.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Oks sorry for the nuisance - it is poppler. Apparently I fixed that
using LD_LIBRARY_PATH - but I a bit surprised I needed to do anything
as CMake should have the job - or at least so I thought.

On Mon, Apr 27, 2020 at 5:13 PM Brian Neal <brian@aceshardware.com> wrote:
>
> You might need to pass the library path on the environment or specify it
> somewhere in CMakeLists.txt. Something like:
>
> $ LIBDIR=/usr/local/lib cmake
>
> You'll have to check the exact syntax though.  I have had similar issues
> trying to link LZMA in Dovecot on FreeBSD and specifying the library
> path resolves it.
>
> Cheers,
>
> -Brian
>
> On 4/27/2020 9:07 AM, Pietro Paolini wrote:
> > Hi all,
> >
> > I am new to FreeBSD even though I have been working in Unix
> > environments for a long while (mainly Linux). I am struggling to build
> > a library locally, using cmake - the library builds fine on a Linux
> > machine as long as dependencies are satisfied. However in my case
> > CMake gets all the dependencies correctly - namely it finds all
> > libraries it needs - but it fails lo link them:
> >
> > ld: error: unable to find library -lnss3
> > ld: error: unable to find library -lsmime3
> > ld: error: unable to find library -lssl3
> > ld: error: unable to find library -lnssutil3
> > ld: error: unable to find library -lplds4
> > ld: error: unable to find library -lplc4
> > ld: error: unable to find library -lnspr4
> > ld: error: unable to find library -lopenjp2
> > ld: error: unable to find library -lnss3
> > ld: error: unable to find library -lsmime3
> > ld: error: unable to find library -lssl3
> > ld: error: unable to find library -lnssutil3
> > ld: error: unable to find library -lplds4
> > ld: error: unable to find library -lplc4
> > ld: error: unable to find library -lnspr4
> > ld: error: unable to find library -lopenjp2
> >
> > Not a single one is found - I must be doing a silly mistake somewhere
> > - I am wondering, is there any need from my side to tell CMake I am
> > about to use not GNU Make ?
> >
> > I did not specify anything in my case - I only typed 'cmake ..'
> >
> > Thanks,
> > Pietro
> > _______________________________________________
> > freebsd-stable@freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAD1wxR%2BmjtVkiZ969d%2B8M-8Vw1yAyoJ4ZoJHpWS9xmuBnWGSig>