MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sigil (https://www.mobileread.com/forums/forumdisplay.php?f=203)
-   -   Sigil v0.1.2 (https://www.mobileread.com/forums/showthread.php?t=53331)

HarryT 08-13-2009 11:07 AM

Quote:

Originally Posted by mtravellerh (Post 553140)
Don't we all? But there is no chance that there will ever be a tool like that. PDF is so locked in that easy conversion is just not viable without losing a lot of the formatting.

The fundamental problem with PDF files is that they do not contain things like paragraphs, lines, or even words. They simply have drawing command for placing individual letters at certain coordinates on the page. A conversion program can attempt to "reconstruct" the text from that, but it's a damned difficult job.

The best way to "convert" PDFs is often to print them and OCR the printed output.

roger64 08-13-2009 11:12 AM

Installing Sigil

I am one of these ugly pesky Linux Ubuntu jaunty users who failed in his "trivial" task. But I will not trouble you with my problems. :D

My guess is just that the percentage of your Linux users will very probably soon drop from 9% to much less. So, don't bother about it...:rolleyes:

I wish you good luck.

Valloric 08-13-2009 11:47 AM

Quote:

Originally Posted by roger64 (Post 553179)
I am one of these ugly pesky Linux Ubuntu jaunty users who failed in his "trivial" task. But I will not trouble you with my problems. :D

Feel free to trouble me with your problems, I will be glad to help. I never said I wouldn't be. If the build process can be improved / streamlined / simplified in any way, I will do my best to do that.

Again, if you have some specific problem with building Sigil, I'd be happy to help... but you will have to provide more information than just "I failed".

Quote:

Originally Posted by roger64 (Post 553179)
My guess is just that the percentage of your Linux users will very probably soon drop from 9% to much less. So, don't care...:rolleyes:

I wish you good luck.

Excuse me, but when exactly did I say I didn't care about my Linux users? The entire build system was simplified for them specifically. The install target is also present only on Linux systems.

If what you are complaining about is the lack of packaged binaries, then I'm sorry, but I do not have the time, resources or even the desire to package 10 - 15 different versions for all possible package managers, distros and architectures.

The practice of providing installers for Windows, DMG's for Mac and source archives for Linux is very widespread. I'll just name a few of the major applications, ok?

Inkscape, GIMP, Wireshark... Hell, even GCC. All of these are provided for Linux in source form only, and are provided as packages by your distribution's package maintainers, not by the developers. And they are all applications with years of history and tens if not hundereds of developers behind them.

There are many, many more examples. So spare me the sarcasm.

roger64 08-13-2009 11:59 AM

Quote:

Originally Posted by roger64 (Post 553179)
Installing Sigil

My guess is just that the percentage of your Linux users will very probably soon drop from 9% to much less.

Sorry. Sarcasm spared. Thanks for your reply.

zelda_pinwheel 08-13-2009 12:07 PM

hi roger,
i'm very sorry you're having trouble installing sigil, but let's not forget that valloric is spending unbelievable amounts of his own free time and effort to make a brilliant application for us for free. that is an incredibly generous initiative and i think it's worth a bit of appreciation and understanding, and maybe trying to meet him halfway so that he can spend more time making big improvements to sigil which will benefit everyone.

not only is he making the extra effort to make sigil cross-plateform (not a negligeable task !), he has already said he is more than willing to try to talk you through the installation process on linux. in addition there are several linux users here who have apparently managed to install it without trouble, and i'm sure they'd also be more than willing to help you if you give more information about your problem (like the precise disto you're using, etc.).

in any case i think valloric is to be applauded, and perhaps we can try to keep the appreciation to snark ratio a little more reasonable when posting here. it seems like the least we can do, under the circumstances.

Jellby 08-13-2009 12:21 PM

In a computer where I don't have recent enough Qt libraries, I was able to compile and run Sigil in this way:

1. Download and compile the latest Qt libraries. No need to actually install them, but then I used "./configure -prefix .", so that qmake would use the libraries from that directory, and not the system installed ones.

2. Dowload the binary cmake

3. Download the Sigil sources. Now I have under a single directory, these subdirectories:
qt-x11-opensource-src-4.5.2, cmake-2.6.4-Linux-i386, Sigil_code_0.1.2

4. Switch into Sigil_code_0.1.2 and run:
Code:

PATH=../qt-x11-opensource-src-4.5.2/bin:$PATH LD_LIBRARY_PATH=../qt-x11-opensource-src-4.5.2/lib/ ../cmake-2.6.4-Linux-i386/bin/cmake -G "Unix Makefiles"
(that's to make it pick the "right" Qt libraries and binaries).

5. Run make.

6. If I didn't miss anything, now I have a working sigil binary under Sigil_code_0.1.2/bin.

Valloric 08-13-2009 12:27 PM

Quote:

Originally Posted by Jellby (Post 553294)
In a computer where I don't have recent enough Qt libraries, I was able to compile and run Sigil in this way
<long process>

I'd just like to mention that this is a very unconventional way of building Sigil. As Jellby said, he has to jump through hoops a bit because he uses an old system with old Qt libraries.

On any modern distro this process is greatly simplified. Detailed instructions are in the source package and on the website.

Usually it boils down to this:
Code:

sudo apt-get install libqt4-gui libqt4-svg libqt4-webkit libqt4-xml libqt4-dev
cmake -G "Unix Makefiles" /path/to/source/folder
make
sudo make install

That's it. Four lines in terminal. 10 seconds of work.

Teyrnon 08-13-2009 12:35 PM

Quote:

Originally Posted by Teyrnon (Post 553026)
Sorry, I'm running Ubuntu Intrepid with what the package manager says are the latest versions of everything. That's likely my problem. Thanks. I've been meaning to move to Jaunty shortly.

Okay, it builds fine in Ubuntu Jaunty. My problem was that I was running Intrepid and the latest versions in the repository were not the latest versions available.

Valloric 08-13-2009 12:39 PM

Quote:

Originally Posted by Teyrnon (Post 553304)
Okay, it builds fine in Ubuntu Jaunty. My problem was that I was running Intrepid and the latest versions in the repository were not the latest versions available.

I'm glad you got it all sorted out.

Teyrnon 08-13-2009 01:21 PM

Quote:

Originally Posted by Valloric (Post 553307)
I'm glad you got it all sorted out.

I can be an imbecile sometimes. I should have figured it out last night. I've gotten too dependent on the package manager. It's been a long time since I've tried to build someone else's code.

It looks very nice. Great work, I've got a small project I can test it with and I'll do that this evening. Thanks!

Valloric 08-13-2009 01:30 PM

Quote:

Originally Posted by Teyrnon (Post 553356)
I've gotten too dependent on the package manager. It's been a long time since I've tried to build someone else's code.

Hopefully the package maintainers will pick up on it soon. There's already a package on MacPorts.

roger64 08-13-2009 04:31 PM

@Valloric

Sorry for giving you trouble.

Quote:

Originally Posted by Valloric (Post 553297)
Code:

sudo apt-get install libqt4-gui libqt4-svg libqt4-webkit libqt4-xml libqt4-dev
cmake -G "Unix Makefiles" /path/to/source/folder
make
sudo make install

That's it. Four lines in terminal. 10 seconds of work.

Thank you for providing this evening the name of the last two libraries that i did not have installed. After adding them, compilation went smoothly on Ubuntu jaunty 32 bits.

I replaced the last command (sudo make install), by sudo checkinstall to get a deb to be able to do a clean uninstall if needed, or allow a future smooth upgrade.

I hope to be able soon to provide you with comments on the use of your software.

Thanks (and karma ) for providing a tool which will be of the greatest use to a PRS-505 owner.:thanks::)

Valloric 08-13-2009 05:12 PM

Quote:

Originally Posted by roger64 (Post 553629)
Thank you for providing this evening the name of the last two libraries that i did not have installed. After adding them, compilation went smoothly on Ubuntu jaunty 32 bits.

Now I can't help but ask: why didn't you read the building instructions before trying to build Sigil from source? The lines I provided in my previous post are present both in the INSTALL.txt file that is provided in the source distribution (in the archive and in the repository, and is also explicitly referenced in the README.txt file) and on the Sigil website as a wiki page linked to directly from the home page of Sigil (in two places I believe).

So all of your build problems stemmed from the fact that you didn't read the very specific and easy to follow instructions, that you flat-out can't miss.

Valloric 08-13-2009 05:17 PM

Quote:

Originally Posted by roger64 (Post 553629)
I replaced the last command (sudo make install), by sudo checkinstall to get a deb to be able to do a clean uninstall if needed, or allow a future smooth upgrade.

You are free to do so, but this is rather unnecessary. Making a deb with checkinstall is useful when the install process puts many different files in many different places. Sigil's install process installs only one file: "sigil", which is placed in /usr/local/bin (this path can be changed, see the build instructions for more info).

roger64 08-13-2009 06:20 PM

1 Attachment(s)
Quote:

Originally Posted by Valloric (Post 553671)

So all of your build problems stemmed from the fact that you didn't read the very specific and easy to follow instructions, that you flat-out can't miss.

You're right.

I just read the google code page here which is the first hit when you type on google "sigil install linux". I thought it was enough. Maybe, it could also be completed with libqt4-dev.
http://code.google.com/p/sigil/wiki/...onInstructions


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

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