MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sigil (https://www.mobileread.com/forums/forumdisplay.php?f=203)
-   -   Problems compiling (https://www.mobileread.com/forums/showthread.php?t=56420)

unkilbeeg 09-13-2009 12:33 PM

Problems compiling
 
I had a fair amount of trouble building from source. The issues were simple (and obvious in retrospect) but they need to be mentioned.

Included in the Sigil archive are the source for two libraries, tidyLib and ZipArchive. If you just follow the instructions on the wiki, your make will fail when it tries to link these libraries. Each must be built separately using the same instructions as the wiki tells you for the main program, but they do not have a "make install" target. You must hand copy the created libraries (libtidyLib.a and libZipArchive.a) to /usr/lib. I tried sending them to /usr/local/lib, but it didn't help. Last, build Sigil according to the instructions and it should build fine.

I'm not reall happy about having to put them in the main library directory (I'd have preferred /usr/local) but this seems to work.

Valloric 09-13-2009 02:49 PM

I have responded on the wiki.

Quote:

I am sorry unkilbeeg, but you are wrong on this. Building with CMake from the top source directory (as specified in the instructions) will build tidyLib and ZipArchive automatically. It will place the libraries in the /lib subdirectory in the build folder, and will not pollute your system.

Everything is linked to correctly.

Your problem is that you are using the path to <topfolder>/src/Sigil in the cmake call, instead of just <topfolder>.
Quote:

I'll change the line from "/path/to/source/folder" to "/path/to/extracted/folder". There should be no possible confusion with this second version.
While I believe the instructions were perfectly clear before, I have changed the word "source" to the word "extracted". There shouldn't be any ambiguity left.


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

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