An ncurses compile issue has appeared when using gcc version 4.8.2 20140120 (Red Hat 4.8.2-15) and cmake version 2.8.12.2. As shown by the following error:
/opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/ld: ../../../Core/source/libPaassCoreStatic.a(CTerminal.cpp.o): undefined reference to symbol 'halfdelay'
/opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/ld: note: 'halfdelay' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line
/lib64/libtinfo.so.5: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [Acquisition/Poll/source/poll2] Error 1
make[1]: *** [Acquisition/Poll/source/CMakeFiles/poll2.dir/all] Error 2
make: *** [all] Error 2
This can be resolved by add the following line after find_package(Curses REQUIRED)
An ncurses compile issue has appeared when using gcc version 4.8.2 20140120 (Red Hat 4.8.2-15) and cmake version 2.8.12.2. As shown by the following error:
This can be resolved by add the following line after
find_package(Curses REQUIRED)