[Bug 954] New: Finding readline on OSX 10.7

http://bugs.orocos.org/show_bug.cgi?id=954

Summary: Finding readline on OSX 10.7
Product: Toolchain
Version: master
Platform: Intel 64bit
OS/Version: Mac OS X
Status: NEW
Severity: major
Priority: P3
Component: OCL
AssignedTo: orocos-dev [..] ...
ReportedBy: jfdupuis00 [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

The error message is:

Undefined symbols for architecture x86_64:
"_rl_resize_terminal", referenced from:
OCL::TaskBrowser::rl_sigwinch_handler(int, __siginfo*, void*) in
TaskBrowser.cpp.o
"_rl_set_signals", referenced from:
OCL::TaskBrowser::rl_gets() in TaskBrowser.cpp.o
OCL::TaskBrowser::loop() in TaskBrowser.cpp.o
"_rl_catch_sigwinch", referenced from:
OCL::TaskBrowser::TaskBrowser(RTT::TaskContext*) in TaskBrowser.cpp.o

Reason, the provided version of readline on OSX is outdated.

Solution, install newer version using brew: $ brew install readline.

Remaining problem: Finding the new readline in /usr/local/Cellar.

Hack: Modify orocos_toolchain/ocl/config/check_depend.cmake and insert the
following line:
set(READLINE_H /usr/local/Cellar/readline/6.2.2/include)
set(READLINE_LIBRARY /usr/local/Cellar/readline/6.2.2/lib/libreadline.dylib)

Todo: Better implementation of the search path for readline to include the
homebrew path

Ruben Smits's picture

[Bug 954] Finding readline on OSX 10.7

http://bugs.orocos.org/show_bug.cgi?id=954

Ruben Smits <ruben [dot] smits [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |ruben.smits@intermodalics.e
| |u