Am Freitag 12 März 2010 schrieb BH:
> On Fri, Mar 12, 2010 at 1:25 PM, Kornel Benko <kor...@lyx.org> wrote:
> > Am Freitag 12 März 2010 schrieb Kornel Benko:
> >> Am Freitag 12 März 2010 schrieb BH:
> >> > I can't get cmake to recognize my enchant installation at /opt/local/.
> >> > What cmake variable am I not setting correctly?
> >> >
> >> > BH
> >>
> >> To compile, you need the development package. We are searching for
> >> include files _and_ for libraries. (So e.g. for ubuntu this is:
> >> libenchant-dev + libenchant1c2a)
> >>
> >>       Kornel
> >
> > Read again, I see the "unusual" path, therefore you have to patch the
> > CMakeLists.txt.
> >
> > In trunk, look at line 228:
> >        ...
> >        find_library(ENCHANT_LIBRARY "enchant"  "/usr/local/lib"
> > "/usr/lib") ....
> > Here you may provide your path like this:
> >        find_library(ENCHANT_LIBRARY "enchant"  "/usr/local/lib"
> > "/usr/lib" "/opt/local/lib")
> >
> > Appropriate change also to find the include (provided it is
> > "/opt/local/enchant") find_path(ENCHANT_INCLUDE_DIR "enchant++.h" PATHS
> > /usr/local/include /usr/local/include/enchant /usr/include
> > /usr/include/enchant /opt/local/enchant)
> 
> Thanks. I used
> 
> cmake -DENCHANT_LIBRARY=/opt/local/lib
> -DENCHANT_INCLUDE_DIR=/opt/local/include/enchant
> 
> and now it works. However, when cmake finishes, it now spits out this
>  warning:
> 
> WARNING: Target "LyX2.0" requests linking to directory
> "/opt/local/lib".  Targets may link only to libraries.  CMake is
> dropping the item.
> 
> ... and then linking fails:

If you would have done as said, then the ENCHANT_LIBRARY would have been 
/opt/local/lib/libenchant.so or so.
And probably no linking errors.
...
> What am I doing wrong?
> 
> (Note: I can build lyx with enchant using autotools rather than cmake.)
> 
> BH
> 

        Kornel

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to