Compile TransciberAG on Ubuntu Oneiric

Step-by-Step descriptions of how to do things.
Post Reply
User avatar
^rooker
Site Admin
Posts: 1481
Joined: Fri Aug 29, 2003 8:39 pm

Compile TransciberAG on Ubuntu Oneiric

Post by ^rooker »

I've just found out that my favorite transcription tool "transcriber" is now officially considered discontinued - and therefore removed from the repositories (for Ubuntu: since Oneiric Ocelot).

Fortunately, "TranscriberAG" is considered to be its successor.

Unfortunately, it's not yet packaged in Debian (RFP #655060), so we'll have to wait.

Until then, it has to be compiled by hand.

Well, here we go:
Following installation instructions on TranscriberAG's website, I've installed the following packages:

Code: Select all

apt-get install build-essentials cmake libz-dev libxerces-c2-dev libgtk-3-dev libglibmm-2.4-dev libgtkmm-2.4-dev libsndfile1-dev libportaudio-dev libavcodec-dev libavformat-dev libswscale-dev
IMPORTANT: I've not yet managed to successfully compile TranscriberAG with the current Ubuntu version of FFmpeg (v0.7), because it seems that TranscriberAG was built against an older version - and the code needs to be adapted.
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
User avatar
^rooker
Site Admin
Posts: 1481
Joined: Fri Aug 29, 2003 8:39 pm

Problems encountered #1

Post by ^rooker »

Here's one problem I've encountered when running:

Code: Select all

cmake ../
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindZLIB.cmake:70 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
aglib-2.0.1/CMakeLists.txt:45 (find_package)

-- Configuring incomplete, errors occurred!
Problem was that the libz developer package was missing. Installing it make cmake happy:

Code: Select all

apt-get install libz-dev
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
User avatar
^rooker
Site Admin
Posts: 1481
Joined: Fri Aug 29, 2003 8:39 pm

Re: Compile TransciberAG on Ubuntu Oneiric

Post by ^rooker »

Another error I've encountered was:
In file included from /home/pb/Downloads/install/v2.0.0-b1/libs/aglib-2.0.1/src/formats/AG/AG.cc:13:0:
/home/pb/Downloads/install/v2.0.0-b1/libs/aglib-2.0.1/src/formats/AG/AG.h:13:41: fatal error: xercesc/parsers/SAXParser.hpp: No such file or directory
compilation terminated.
make[2]: *** [aglib-2.0.1/src/formats/AG/CMakeFiles/agfio_plugin_AG.dir/AG.cc.o] Error 1
make[1]: *** [aglib-2.0.1/src/formats/AG/CMakeFiles/agfio_plugin_AG.dir/all] Error 2
make: *** [all] Error 2
After trying to install "libxerces-c-dev" package, it didn't really get any better:
libs/aglib-2.0.1/src/formats/AG/agfXercesUtils.cc: In function ‘void agfSAXParse(xercesc_3_1::HandlerBase*, const string&, const bool&, const string&)’:
/home/pb/Downloads/install/v2.0.0-b1/libs/aglib-2.0.1/src/formats/AG/agfXercesUtils.cc:84:12: error: ‘class xercesc_3_1::SAXParser’ has no member named ‘setDoValidation’
/home/pb/Downloads/install/v2.0.0-b1/libs/aglib-2.0.1/src/formats/AG/agfXercesUtils.cc:89:12: error: ‘class xercesc_3_1::SAXParser’ has no member named ‘setDoValidation’
make[2]: *** [aglib-2.0.1/src/formats/AG/CMakeFiles/agfio_plugin_AG.dir/agfXercesUtils.cc.o] Error 1
make[1]: *** [aglib-2.0.1/src/formats/AG/CMakeFiles/agfio_plugin_AG.dir/all] Error 2
make: *** [all] Error 2
Well, it seems to require "libxerces-c2-dev", so:

Code: Select all

apt-get install libxerces-c2-dev
This will automatically replace libxerces-c-dev to avoid conflicts :)
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
User avatar
^rooker
Site Admin
Posts: 1481
Joined: Fri Aug 29, 2003 8:39 pm

Re: Compile TransciberAG on Ubuntu Oneiric

Post by ^rooker »

Compiling "sources/build", brought another nice error message:
CMake Error at /usr/share/cmake-2.8/Modules/FindX11.cmake:381 (MESSAGE):
Could not find X11
Call Stack (most recent call first):
CMakeLists.txt:38 (find_package)
Installing the GTK libraries fixed this:

Code: Select all

apt-get install libgtk-3-dev
Afterwards, it's happily finding X11:
-- Found X11: /usr/lib/i386-linux-gnu/libX11.so
-- checking for module 'glibmm-2.4'
-- package 'glibmm-2.4' not found
-- checking for module 'gtkmm-2.4'
-- package 'gtkmm-2.4' not found
-- checking for module 'sndfile'
-- package 'sndfile' not found
-- checking for module 'portaudio-2.0'
-- package 'portaudio-2.0' not found
...and the packages listed here as missing, can be installed:

Code: Select all

apt-get install libglibmm-2.4-dev libgtkmm-2.4-dev libsndfile1-dev libportaudio-dev 
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
User avatar
^rooker
Site Admin
Posts: 1481
Joined: Fri Aug 29, 2003 8:39 pm

Re: Compile TransciberAG on Ubuntu Oneiric

Post by ^rooker »

Dependencies, dependencies...
source/src/Common/externals/sendpraat.cpp:56:28: fatal error: X11/Intrinsic.h: No such file or directory
compilation terminated.
make[2]: *** [src/Common/CMakeFiles/CommonWidgets.dir/externals/sendpraat.cpp.o] Error 1
make[1]: *** [src/Common/CMakeFiles/CommonWidgets.dir/all] Error 2
make: *** [all] Error 2
As usual, information is out there in the web - a mailing list entry pointed me in a promising direction:

Code: Select all

apt-get install libxt-dev
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
User avatar
^rooker
Site Admin
Posts: 1481
Joined: Fri Aug 29, 2003 8:39 pm

Re: Compile TransciberAG on Ubuntu Oneiric

Post by ^rooker »

source/src/Formats/HTML/HTMLWriter.cpp: In member function ‘int HTMLWriter::write(std::ostream&, tag::DataModel*)’:
/home/pb/Downloads/install/v2.0.0-b1/source/src/Formats/HTML/HTMLWriter.cpp:157:88: error: cannot call constructor ‘FormatTime::FormatTime’ directly [-fpermissive]
/home/pb/Downloads/install/v2.0.0-b1/source/src/Formats/HTML/HTMLWriter.cpp:157:88: error: for a function-style cast, remove the redundant ‘::FormatTime’ [-fpermissive]
make[2]: *** [src/Formats/HTML/CMakeFiles/agfio_plugin_HTML.dir/HTMLWriter.cpp.o] Error 1
make[1]: *** [src/Formats/HTML/CMakeFiles/agfio_plugin_HTML.dir/all] Error 2
make: *** [all] Error 2
As the compiler suggested, I've removed the redundant "FormatTime::" in the affected line in Formats/HTML/HTMLWriter.cpp, as well as in Formats/TXT/TXTWriter.cpp - and it seemed to be fine...
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
User avatar
^rooker
Site Admin
Posts: 1481
Joined: Fri Aug 29, 2003 8:39 pm

Re: Compile TransciberAG on Ubuntu Oneiric

Post by ^rooker »

Building CXX object src/MediaComponent/CMakeFiles/MediaComponent.dir/base/Guesser.cpp.o
In file included from /home/pb/Downloads/install/v2.0.0-b1/source/src/MediaComponent/base/Guesser.h:14:0,
from /home/pb/Downloads/install/v2.0.0-b1/source/src/MediaComponent/base/Guesser.cpp:10:
/home/pb/Downloads/install/v2.0.0-b1/source/src/MediaComponent/io/FFMpegHandler.h:14:0: warning: "__STDC_CONSTANT_MACROS" redefined [enabled by default]
<command-line>:0:0: note: this is the location of the previous definition
In file included from /home/pb/Downloads/install/v2.0.0-b1/source/src/MediaComponent/base/Guesser.h:14:0,
from /home/pb/Downloads/install/v2.0.0-b1/source/src/MediaComponent/base/Guesser.cpp:10:
/home/pb/Downloads/install/v2.0.0-b1/source/src/MediaComponent/io/FFMpegHandler.h:21:33: fatal error: libavcodec/avcodec.h: No such file or directory
compilation terminated.
make[2]: *** [src/MediaComponent/CMakeFiles/MediaComponent.dir/base/Guesser.cpp.o] Error 1
make[1]: *** [src/MediaComponent/CMakeFiles/MediaComponent.dir/all] Error 2
make: *** [all] Error 2
...solved by installing libavcodec-dev:

Code: Select all

apt-get install libavcodec-dev
followed by:
In file included from /home/pb/Downloads/install/v2.0.0-b1/source/src/MediaComponent/base/Guesser.h:14:0,
from /home/pb/Downloads/install/v2.0.0-b1/source/src/MediaComponent/base/Guesser.cpp:10:
/home/pb/Downloads/install/v2.0.0-b1/source/src/MediaComponent/io/FFMpegHandler.h:14:0: warning: "__STDC_CONSTANT_MACROS" redefined [enabled by default]
<command-line>:0:0: note: this is the location of the previous definition
In file included from /home/pb/Downloads/install/v2.0.0-b1/source/src/MediaComponent/base/Guesser.h:14:0,
from /home/pb/Downloads/install/v2.0.0-b1/source/src/MediaComponent/base/Guesser.cpp:10:
/home/pb/Downloads/install/v2.0.0-b1/source/src/MediaComponent/io/FFMpegHandler.h:22:35: fatal error: libavformat/avformat.h: No such file or directory
compilation terminated.
make[2]: *** [src/MediaComponent/CMakeFiles/MediaComponent.dir/base/Guesser.cpp.o] Error 1
make[1]: *** [src/MediaComponent/CMakeFiles/MediaComponent.dir/all] Error 2
make: *** [all] Error 2
Solved by installing libavformat-dev:

Code: Select all

apt-get install libavformat-dev
Followed by:
In file included from /home/pb/Downloads/install/v2.0.0-b1/source/src/MediaComponent/base/Guesser.h:14:0,
from /home/pb/Downloads/install/v2.0.0-b1/source/src/MediaComponent/base/Guesser.cpp:10:
/home/pb/Downloads/install/v2.0.0-b1/source/src/MediaComponent/io/FFMpegHandler.h:14:0: warning: "__STDC_CONSTANT_MACROS" redefined [enabled by default]
<command-line>:0:0: note: this is the location of the previous definition
In file included from /home/pb/Downloads/install/v2.0.0-b1/source/src/MediaComponent/base/Guesser.h:14:0,
from /home/pb/Downloads/install/v2.0.0-b1/source/src/MediaComponent/base/Guesser.cpp:10:
/home/pb/Downloads/install/v2.0.0-b1/source/src/MediaComponent/io/FFMpegHandler.h:23:33: fatal error: libswscale/swscale.h: No such file or directory
compilation terminated.
make[2]: *** [src/MediaComponent/CMakeFiles/MediaComponent.dir/base/Guesser.cpp.o] Error 1
make[1]: *** [src/MediaComponent/CMakeFiles/MediaComponent.dir/all] Error 2
make: *** [all] Error 2
Solved by installing libswscale-dev:

Code: Select all

apt-get install libswscale-dev
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply