Re: Sigil
On Sunday, August 24, 2014 9:20:02 PM UTC+5:30, Steve Litt wrote:
> On Sat, 23 Aug 2014 23:42:16 -0700 (PDT)
> Rusi Mody wrote:
> > On Saturday, August 23, 2014 8:30:01 PM UTC+5:30, Steve Litt wrote:
> > > Hi all,
> > > If any of you writes ePubs, you're probably familiar with Sigil, at
> > > least for partial conversions and touchups. But if you haven't used
> > > Sigil for awhile, you might not be aware that it's really grown up
> > > in the past two years, to the point where it's a reasonable ePub
> > > authoring environment.
> > Thanks for the info.
> > However compiling from source seems to be a major project
> > How are you installing?
> I'm glad you mentioned that, Rusi.
> The latest and greatest, 0.7.4, demands qt5. Ummm, no. Not on Wheezy,
> not now, at least.
> So I just downloaded 0.6.2, the last version that is satisfied with
> qt4.8, and compiled and installed it according to the instructions.
> Here are some generalized tips for compiling 0.6.2 specifically:
> * Install cmake, 2.8.0 or better
> * You might need to install some -dev packages: errors will tell you
> * mkdir -p ~/sigil-0.6.2/src; cd ~/sigil-0.6.2; mkdir run; mkdir build
> * cd ~/sigil-0.6.2/build
> NOTE: This qualifies as a folder *outside* the source
> distribution as discussed in INSTALL.txt
> * cmake -G "Unix Makefiles" \
> -DCMAKE_BUILD_TYPE=Release $HOME/sigil-0.6.2/src
> * cmake -G "Unix Makefiles" \
> -DCMAKE_INSTALL_PREFIX=$HOME/sigil-0.6.2/src \
> -DCMAKE_BUILD_TYPE=Release $HOME/sigil-0.6.2/run
> * make
> * make install
> Note that the preceding make install puts the executables in
> $HOME/sigil-0.6.2/run, which seems to be the "sigilesque" way of doing
> things. No sudo required on the make install, and deinstalling the
> whole thing is a matter of rm -rf $HOME/sigil-0.6.2/run.
> You access $HOME/sigil-0.6.2/run/bin/sigil with the following
> shellscript:
> =========================================
> #!/bin/bash
> $HOME/sigil-0.6.2/run/bin/sigil $@
> =========================================
> Obviously, if this is a sigil installation meant to serve many users,
> you'd probably leave out the cmake line that forced it to
> $HOME/sigil-0.6.2/run/, and do your make install as root.
> The instructions in INSTALL.txt aren't all that good. The phrase
> "/path/to/extracted/folder" is ambiguous and undefined, but it means
> the src directory. They tell you about changing the make install
> destination *after* telling you to make install, doohhhhh! By the way,
> you change the destination after a failed (because normal user can't
> write to /opt or whatever) make install, and do another make install,
> and it will work just fine.
> Like most Open Source problems, difficulty installing Sigil isn't
> defective code or defective packaging, it's defective documentation.
> Once you understand what INSTALL.txt is really saying, installing a
> Sigil requiring the qt version you already have is pretty easy.
Ok
I tried getting the latest (from git) and building.
[I am on testing]
It seems to have made it past 50% (69% to be exact -- see below)
The error seems to be a C++ error
Below is make output (1)
Also a snippet of cmake (2)
$ make
[ 4%] Built target tidyLib
[ 10%] Built target BoostParts
[ 11%] Built target minizip
[ 50%] Built target Xerces
[ 51%] Built target hunspell
[ 53%] Built target pcre
[ 53%] Built target XercesExtensions
[ 54%] Built target gccPCH_fc
[ 69%] Built target FlightCrew
[ 69%] Automoc for target sigil
[ 69%] Built target sigil_automoc
[ 69%] Building CXX object src/Sigil/CMakeFiles/sigil.dir/Dialogs/PluginRunner.cpp.o
In file included from /src/pdsw/Sigil/src/Sigil/Dialogs/PluginRunner.cpp:18:0:
/src/pdsw/Sigil/src/Sigil/Dialogs/PluginRunner.h: In constructor 'PluginRunner::PluginRunner(QString, TabManager*, QWidget*)':
/src/pdsw/Sigil/src/Sigil/Dialogs/PluginRunner.h:113:13: warning: 'PluginRunner::m_pluginName' will be initialized after [-Wreorder]
QString m_pluginName;
^
/src/pdsw/Sigil/src/Sigil/Dialogs/PluginRunner.h:108:13: warning: 'QString PluginRunner::m_outputDir' [-Wreorder]
QString m_outputDir;
^
/src/pdsw/Sigil/src/Sigil/Dialogs/PluginRunner.cpp:29:1: warning: when initialized here [-Wreorder]
PluginRunner::PluginRunner(QString name, TabManager* tabMgr, QWidget * parent)
^
In file included from /src/pdsw/Sigil/src/Sigil/Dialogs/PluginRunner.cpp:18:0:
/src/pdsw/Sigil/src/Sigil/Dialogs/PluginRunner.h:126:9: warning: 'PluginRunner::m_xhtml_net_change' will be initialized after [-Wreorder]
int m_xhtml_net_change;
^
/src/pdsw/Sigil/src/Sigil/Dialogs/PluginRunner.h:102:18: warning: 'MainWindow* PluginRunner::m_mainWindow' [-Wreorder]
MainWindow * m_mainWindow;
^
/src/pdsw/Sigil/src/Sigil/Dialogs/PluginRunner.cpp:29:1: warning: when initialized here [-Wreorder]
PluginRunner::PluginRunner(QString name, TabManager* tabMgr, QWidget * parent)
^
In file included from /src/pdsw/Sigil/src/Sigil/Dialogs/PluginRunner.cpp:11:0:
/src/pdsw/Sigil/src/Sigil/MainUI/MainWindow.h: In member function 'bool PluginRunner::addFiles(const QStringList&)':
/src/pdsw/Sigil/src/Sigil/MainUI/MainWindow.h:688:10: error: 'void MainWindow::LoadFile(const QString&)' is private
void LoadFile(const QString &fullfilepath);
^
/src/pdsw/Sigil/src/Sigil/Dialogs/PluginRunner.cpp:487:44: error: within this context
m_mainWindow->LoadFile(epubPath);
^
src/Sigil/CMakeFiles/sigil.dir/build.make:1997: recipe for target 'src/Sigil/CMakeFiles/sigil.dir/Dialogs/PluginRunner.cpp.o' failed
make[2]: *** [src/Sigil/CMakeFiles/sigil.dir/Dialogs/PluginRunner.cpp.o] Error 1
CMakeFiles/Makefile2:524: recipe for target 'src/Sigil/CMakeFiles/sigil.dir/all' failed
make[1]: *** [src/Sigil/CMakeFiles/sigil.dir/all] Error 2
Makefile:113: recipe for target 'all' failed
make: *** [all] Error 2
----------------
cmake snippet
/src/pdsw/Sigil/CMakeFiles/CMakeTmp/CheckIncludeFile.cxx:1:30: fatal error: bits/type_traits.h: No such file or directory
#include <bits/type_traits.h>
No idea which dev provides this!!
Reply to:
- Follow-Ups:
- Re: Sigil
- From: Steve Litt <slitt@troubleshooters.com>
- References:
- Sigil
- From: Steve Litt <slitt@troubleshooters.com>
- Re: Sigil
- From: Rusi Mody <rustompmody@gmail.com>
- Re: Sigil
- From: Steve Litt <slitt@troubleshooters.com>