Tuesday, January 19, 2010

Tora 2.1.1 on slackware

Compiling TOra 2.1.1 from source on multilib Slackware64-13.0, with cmake version 2.6.2 patched.
./configure script does not detect QScintilla even though it is installed. Cmake does, however,
cmake_policy(SET CMP0011 NEW)
in cmakelists.txt will cause it to break.
Workaround:
Change above line to
#cmake_policy(SET CMP0011 NEW) #comment the line out
Change
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.5 FATAL_ERROR)
to
#CMAKE_MINIMUM_REQUIRED(VERSION 2.4.5 FATAL_ERROR) #commented
Just below the line where previous change was made, add the lines from the work around link
cmake_minimum_required(VERSION 2.6.2)
if(POLICY CMP0011)
cmake_policy(SET CMP0011 OLD) # or even better, NEW
endif(POLICY CMP0011)
Save the file.
Installing for without Oracle and PostgreSQL support (I intend to use it with MySQL).
cmake -DENABLE_PGSQL=0 -DENABLE_ORACLE=0 .
make
make install

Edit: On 64 bit system, TOra looks for
/usr/lib64/libqscintilla2.so.5
However, qscintilla does not install the shared library in the path it is looking at. Solution make a symlink!
bash-3.1# ln -s /usr/lib64/qt/lib/libqscintilla2.so.5 /usr/lib64/libqscintilla2.so.5

Pinpointed the error by using (StackTrace)
strace /usr/local/bin/tora

No comments: