fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [fluid-dev] fluidsynth 1.1.3 build troubles with cmake


From: Pedro Lopez-Cabanillas
Subject: Re: [fluid-dev] fluidsynth 1.1.3 build troubles with cmake
Date: Fri, 15 Oct 2010 17:04:40 +0200
User-agent: KMail/1.13.5 (Linux/2.6.34.7-0.3-desktop; KDE/4.4.4; i686; ; )

On Friday 15 October 2010, Heinz Wiesinger wrote:
> linux/4.4.4/../../../../lib64/libreadline.so: 
> undefined reference to `tgetstr'
> collect2: ld returned 1 exit status
> make[2]: *** [src/fluidsynth] Error 1
> make[1]: *** [src/CMakeFiles/fluidsynth.dir/all] Error 2
> make: *** [all] Error 2
> 
> I tried adding -lcurses, -lncurses and/or -ltermcap to the list of libraries 
> to link, but nothing seemed to help.

You can check the dependencies of readline with this command:
$ ldd /path/to/libreadline.so

The undefined symbols in this library can be checked with:
$ nm -u /path/to/libreadline.so

In Linux, the usual required library is "libncurses". Then, you need the 
"libncurses-devel" package. Some systems prefer other library.

To link the transitive dependency, add some arguments to CMake. For instance:
$ cmake \
        -DCMAKE_EXE_LINKER_FLAGS=-lncurses \
        -DCMAKE_SHARED_LINKER_FLAGS=-lncurses \
        ...

That would be the same as defining the environment variable: LDFLAGS=-lncurses

Regards,
Pedro



reply via email to

[Prev in Thread] Current Thread [Next in Thread]