Compiling cmake-3.10.2 against ncursesw

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiling cmake-3.10.2 against ncursesw

John Frankish
Hi,

I've been trying to compile cmake-3.10.2 on a system that has only ncursesw using the ./bootstrap script.

I could not find a way to tell ./bootstrap to use ncursesw, so I added the following to Modules/FindCurses.cmake

set(CURSES_NEED_WIDE TRUE)

..this enables ./bootstrap to find libncursesw, but not libformw, so I also added:

set(CURSES_FORM_LIBRARY "/usr/local/lib/libformw.so")

..and ./bootstrap completes successfully.

However "make" fails when it cannot find form.h (even though it found /usr/local/include/ncursesw/ncurses.h).

After symlinking  /usr/local/include/ncursesw/form.h -> ../form.h, "make" completes successfully.

Is there any easy way to use ./bootstrap on an ncursesw system?

If Modules/FindCurses.cmake has the problems above when compiling cmake itself, won't it also have problems when compiling other stuff against ncursesw?

Regards
John

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: Compiling cmake-3.10.2 against ncursesw

John Frankish
bump

-----Original Message-----
From: CMake [mailto:[hidden email]] On Behalf Of John Frankish
Sent: Monday, 05 March 2018 15:45
To: [hidden email]
Subject: [CMake] Compiling cmake-3.10.2 against ncursesw

Hi,

I've been trying to compile cmake-3.10.2 on a system that has only ncursesw using the ./bootstrap script.

I could not find a way to tell ./bootstrap to use ncursesw, so I added the following to Modules/FindCurses.cmake

set(CURSES_NEED_WIDE TRUE)

..this enables ./bootstrap to find libncursesw, but not libformw, so I also added:

set(CURSES_FORM_LIBRARY "/usr/local/lib/libformw.so")

..and ./bootstrap completes successfully.

However "make" fails when it cannot find form.h (even though it found /usr/local/include/ncursesw/ncurses.h).

After symlinking  /usr/local/include/ncursesw/form.h -> ../form.h, "make" completes successfully.

Is there any easy way to use ./bootstrap on an ncursesw system?

If Modules/FindCurses.cmake has the problems above when compiling cmake itself, won't it also have problems when compiling other stuff against ncursesw?

Regards
John

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake