./configure --with-shared --with-termlib=tinfo --prefix=/opt/ncurses/6.1 ; make –j24; make install
- If checking for curses support failed, use:
./bootstrap --prefix=/opt/cmake_3.14.6 --parallel=20 -- -DBUILD_CursesDialog=ON -DCURSES_LIBRARY=/opt/ncurses_6.2/lib/libncurses.so -DCURSES_INCLUDE_PATH=/opt/ncurses_6.2/include/ncurses
make -j 20; make install
- If an error message comes:fatal error: ncurses/ncurses_dll.h: No such file or directory’
ln -s /opt/ncurses/6.1/include/ncurses/*.h /opt/ncurses/6.1/include
./bootstrap --prefix=/opt/cmake_3.14.6 --parallel=20 -- -DBUILD_CursesDialog=ON -DCURSES_LIBRARY=/opt/ncurses_6.2/lib/libncurses.so -DCURSES_INCLUDE_PATH=/opt/ncurses_6.2/include
- Include paths of include/ncurses and include/ are required but cmake path may not understand multiple paths. So make symbolic links to be included.
./bootstrap --help; ./bootstrap --prefix=/opt/cmake/3.11.4 --parallel=4; make -j16 ;
If –ltinfo is not found, then edit Source/CMakeFiles/ccmake.dir/link.txt and add -L/opt/ncurses/6.1/lib in the left of -ltinfo
set(CURSES_INCLUDE_DIRS "/opt/libs/ncurses/6.1/include")
set(CURSES_INCLUDE_DIR "/opt/libs/ncurses/6.1/include")
set(CURSES_INCLUDE_LIBRARIES "/opt/libs/ncurses/6.1/lib/libncurses.so")
set(CURSES_INCLUDE_LIBRARY "/opt/libs/ncurses/6.1/lib/libncurses.so")
if signal.c:(.text+0x1370): undefined reference to `pthread_atfork' => in CMakeCache.txt, convert -lpthread into -pthread then run
export LD_LIBRARY_PATH+=:/opt/libs/ncurses/6.1/lib
make
make install
CMAKE_SHARED_LINKER_FLAGS="-Wl,-Bsymbolic"
when links are messed up
- Ubuntu may make
$PREFIX/lib
CMAKE_INSTALL_LIBDIR:PATH=lib64
- This might not be cmake or environment issue. May try again disabling employed options
- When labeling fails in add_test() or matching name doesn't exist, this error message may appear. Fix all the grammar in cmake file.
- This needs openssl 1.0.2. 1.1 or higher will not work as some struct definition is deprecated
- openssl 1.0.2 install
- upack source
./config --prefix=/opt/openssl/1.0.2 shared
make -j10; make install
- cmake 3.6
export PKG_CONFIG_PATH+=:/opt/openssl/1.0.2/lib/pkgconfig
export LD_LIBRARY_PATH+=:/opt/openssl/1.0.2/lib
./bootstrap --prefix=/opt/cmake/3.6.2 --parallel=8
- May need to delete CMakeCache.txt beforehand
- Check newly prodcued CMakeCache.txt has openssl at the given location
make -j 20; make install
env CC=icc CXX=icpc ./bootstrap --prefix=//opt/cmake/3.23.1_intel18 --parallel-10; make -j 40; make install
- cmake 3.20 didn't recognize icpc. 3.23 worked OK