On 11/10/2016 11:07 AM, Jan Engelhardt wrote:
On Thursday 2016-11-10 00:23, Malcolm wrote:
I'm one of the developers for the Yoshimi soft-synth, and have recently been informed that it won't compile on Leap 42.1/42.2. It seems that the version of ncurses here doesn't have a .pc file, so CMake's find_package function is unable to locate it.
Is this just an oversight, or done deliberately for some reason?
Well yes, AFAICS, upstream does not ship any .pc files to begin with. Whatever pc file you have been relying on, it smells like a distro-specific hack.
Add SET(LIBNCURSES_LDFLAGS "-lncurses -ltinfo") in your CMakeLists.txt?
That sort of eschews ncurses6.
It would appear that ncurses is still config scripts, i.e. `ncursesw6-config --libs` and so on.
Cmake upstream has a separate FindCurses package which should also be in openSUSE, this doesn't need the .pc file and you should be using that instead of the generic find_package function probably. https://cmake.org/cmake/help/v3.0/module/FindCurses.html -- Simon Lees (Simotek) http://simotek.net Emergency Update Team keybase.io/simotek SUSE Linux Adeliade Australia, UTC+9:30 GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B