MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sigil (https://www.mobileread.com/forums/forumdisplay.php?f=203)
-   -   Building Sigil under Linux (https://www.mobileread.com/forums/showthread.php?t=145605)

st_albert 08-06-2011 10:03 PM

Building Sigil under Linux
 
OK, since we penguins are about to be turned out into the cold, cruel world, I am trying to build Sigil 0.3.4 from the source code zip file, following the directions included.

All proceeds well until the following:

Code:

Linking CXX static library ../../lib/libXerces.a                                                                                                               
[ 57%] Built target Xerces                                                                                                                                     
Scanning dependencies of target XercesExtensions
[ 58%] Building CXX object src/XercesExtensions/CMakeFiles/XercesExtensions.dir/LocationAwareDOMParser.cpp.o                                                   
/home/u838190/sigil-build/Sigil-0.3.4-Code/src/XercesExtensions/LocationAwareDOMParser.cpp:32:49: error: uninitialized const ‘LOCATION_DATA_HANDLER’ [-fpermissive]
/home/u838190/sigil-build/Sigil-0.3.4-Code/src/XercesExtensions/LocationInfoDataHandler.h:32:7: note: ‘const class XercesExt::LocationInfoDataHandler’ has no user-provided default constructor
make[2]: *** [src/XercesExtensions/CMakeFiles/XercesExtensions.dir/LocationAwareDOMParser.cpp.o] Error 1
make[1]: *** [src/XercesExtensions/CMakeFiles/XercesExtensions.dir/all] Error 2
make: *** [all] Error 2

My system is Debian Sid, with KDE desktop environment. It already had most of the dependencies, and I only had to install cmake, libqt4-dev and libqtwebkit-dev.

From the error messages, it seems that the problem is in the Xerces (eta: actually XercesExtensions) source code, yes?

So, what now?

st_albert 08-07-2011 04:19 PM

OK, nevermind. I was able to get it to work by editing CmakeCache.txt to add the -fpermissive compiler flag to the release build flags.

Not sure if that's what was really needed, but it seems to work.


All times are GMT -4. The time now is 06:47 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.