Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 02-19-2016, 03:22 PM   #31
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 682
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
I believe I have, but maybe I missed something?

3.4.0-0ubuntu2 amd64 header files and a static library for Python (default)
ii libpython3.4-dev:amd64 3.4.3-1ubuntu1~14.04.3 amd64 Header files and a static library for Python (v3.4)
ii python3-dev 3.4.0-0ubuntu2 amd64 header files and a static library for Python (default)
ii python3.4-dev 3.4.3-1ubuntu1~14.04.3 amd64 Header files and a static library for Python (v3.4)
patrik is offline   Reply With Quote
Old 02-19-2016, 03:28 PM   #32
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 682
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
Ah, I pointed to /usr/lib/python3.4 instead of /usr/lib/python3.4m.

Make now goes all the way to 100%, but then I get:

...
[100%] Building CXX object src/CMakeFiles/sigil.dir/sigil_automoc.cpp.o
make[2]: *** No rule to make target `/usr/lib/python3.4m', needed by `bin/sigil'. Stop.
make[1]: *** [src/CMakeFiles/sigil.dir/all] Error 2
make: *** [all] Error 2
patrik is offline   Reply With Quote
Advert
Old 02-19-2016, 03:29 PM   #33
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,570
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Also note that your value for -DPYTHON_LIBRARY is not valid. I looks like you've supplied a directory instead of the path to the actual library file. You might also need to supply the path to your Python.h file (as Kevin noted) with -DPYTHON_INCLUDE.

I'm a little surprised you need specify those paths at all, quite frankly. You seem to be using the standard system Python 3.4.3 that Mint 17.2 supplies, so there should be no need to use any of the -DPYTHON cmake overrides. If you have all the necessary python34 packages installed, cmake should find them with no problem.

Make sure you have the python34-dev package installed (as Kevin mentioned), and in addition, make sure you have the libpython3.4 and libpython3.4-dev packages installed (as per the Building on Linux documentation). Then try running the cmake command without all the -DPYTHON overrides (you may need to wipe out your build directory and start over, though).
DiapDealer is offline   Reply With Quote
Old 02-19-2016, 03:33 PM   #34
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,570
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by patrik View Post
I believe I have, but maybe I missed something?

3.4.0-0ubuntu2 amd64 header files and a static library for Python (default)
ii libpython3.4-dev:amd64 3.4.3-1ubuntu1~14.04.3 amd64 Header files and a static library for Python (v3.4)
ii python3-dev 3.4.0-0ubuntu2 amd64 header files and a static library for Python (default)
ii python3.4-dev 3.4.3-1ubuntu1~14.04.3 amd64 Header files and a static library for Python (v3.4)
As I suspected in my previous post, you're missing the libpython34 package. Did you check out the Building on Linux document? These dependencies are all mentioned there.

Last edited by DiapDealer; 02-19-2016 at 03:38 PM.
DiapDealer is offline   Reply With Quote
Old 02-19-2016, 03:34 PM   #35
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 682
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
Quote:
Originally Posted by DiapDealer View Post
Also note that your value for -DPYTHON_LIBRARY is not valid. I looks like you've supplied a directory instead of the path to the actual library file. You might also need to supply the path to your Python.h file (as Kevin noted) with -DPYTHON_INCLUDE.

I'm a little surprised you need specify those paths at all, quite frankly. You seem to be using the standard system Python 3.4.3 that Mint 17.2 supplies, so there should be no need to use any of the -DPYTHON cmake overrides. If you have all the necessary python34 packages installed, cmake should find them with no problem.

Make sure you have the python34-dev package installed (as Kevin mentioned), and in addition, make sure you have the libpython3.4 and libpython3.4-dev packages installed (as per the Building on Linux documentation). Then try running the cmake command without all the -DPYTHON overrides (you may need to wipe out your build directory and start over, though).
I started out doing exactly that, but then I got:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
PYTHON_LIBRARY (ADVANCED)
linked by target "sigil" in directory /home/patrik/Downloads/Sigil/Sigil-0.9.3_src/src

-- Configuring incomplete, errors occurred!

That's when I started to add the paths.
patrik is offline   Reply With Quote
Advert
Old 02-19-2016, 03:39 PM   #36
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 682
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
Quote:
Originally Posted by DiapDealer View Post
As I suspected in my previous post, you're missing the libpython34 package. Did you check out the Building on Linux document? These dependencies are all mentioned there.
Yes, I followed the document.

I believe I do have python34 and -dev installed.
Just to be sure I tried to install it again, and the system said it was already installed.

edit:
The only thing that wasn't installed is python3.4-six which couldn't be found. (but python3-six is installed)

Last edited by patrik; 02-19-2016 at 03:43 PM.
patrik is offline   Reply With Quote
Old 02-19-2016, 03:41 PM   #37
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,570
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
If you installed any python packages after that initial cmake command, you may need to delete your build directory before running the cmake command again.

Mint 17.2 with the system python 3.4.3 is the exact same system I build on.

Quote:
Originally Posted by patrik View Post
Ah, I pointed to /usr/lib/python3.4 instead of /usr/lib/python3.4m.
That's still not a valid library file. If you must specify the library with -DPYTHON_LIBRARY, the correct file will start with "lib" and end in a ".so" extension. On My Mint 17.2 system the python library path would be -DPYTHON_LIBRARY= /usr/lib/x86_64-linux-gnu/libpython34m.so. But you really shouldn't need to specify it manually.

Last edited by DiapDealer; 02-19-2016 at 03:53 PM.
DiapDealer is offline   Reply With Quote
Old 02-19-2016, 03:59 PM   #38
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,570
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by patrik View Post
edit:
The only thing that wasn't installed is python3.4-six which couldn't be found. (but python3-six is installed)
Same - same. I really think you should delete everything in your cmake sigil build directory and start over at this point. If cmake still can't find everything on its own, then make sure the -DPYTHON_LIBRARY path points to a valid library similar to the one I indicated in my previous post (and that the file exists).
DiapDealer is offline   Reply With Quote
Old 02-19-2016, 04:13 PM   #39
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 682
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
Ok, I deleted everything and started over. After all the cmake and make'ing, I still got to 100% and then the error (as shown above).

Did it again, but now with no LIB-path set to cmake. Exactly the same.

Ok... did it all again, this time setting LIB-path to libpython3.4m.so.
Yes, success!

Continued following the doc-file, downloaded the testplugin_v11.zip. Error.... not valid plugin file.... Argh..... what did i do wrong this time....
Downloaded the flightcrew-plugin, and that installed just fine! Puh....

Thanks for the help!
patrik is offline   Reply With Quote
Old 02-19-2016, 04:28 PM   #40
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,570
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by patrik View Post
Continued following the doc-file, downloaded the testplugin_v11.zip. Error.... not valid plugin file.... Argh..... what did i do wrong this time....
Downloaded the flightcrew-plugin, and that installed just fine! Puh....
Sounds like you got a bad download. But you don't have to download the test plugin. It should already be located in the 'doc' folder of the Sigil source code. Be sure you don't rename the zip file before installing it. Plugin file names are very specific.
DiapDealer is offline   Reply With Quote
Old 02-19-2016, 04:44 PM   #41
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 682
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
I guess, but I did download it several times.... Oh well, installed the one that was in the src. All passed!
patrik is offline   Reply With Quote
Old 02-19-2016, 05:57 PM   #42
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,570
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by patrik View Post
I guess, but I did download it several times.... Oh well, installed the one that was in the src. All passed!
Glad to hear it!
DiapDealer is offline   Reply With Quote
Old 02-19-2016, 07:55 PM   #43
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Hi

A suggestion: when we create a new EPUB3, it lacks any language spec (xml:lang="x"). Wouldn't be useful to provide it with one according to the Preferences/Language settings?
roger64 is offline   Reply With Quote
Old 02-19-2016, 09:02 PM   #44
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,764
Karma: 6000000
Join Date: Nov 2009
Device: many
The default language (or languages) are defined in the content.opf, making the need for lang or xml:lang on the html tag redundant. In pure standalone html files that are not part of an epub (i.e. without a content.opf), it is good practice to add those attributes for reading by assistive technologies. In epubs they are not required and it is up to the ebook developer to decide to add them or not.

If this is something you want, you can esily use a plugin like DiapDealers newest addition to add anything here you want or even a simple search and replace of the html tags.

KevinH
KevinH is offline   Reply With Quote
Old 02-19-2016, 11:26 PM   #45
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
It's like raincoat and umbrella. Some people take both.

I just had a look to the content.opf file of a new EPUB3 and this information seems to be missing as well. I have no personal problem about it, but this seems a bit curious. Who does not need any language?
Attached Thumbnails
Click image for larger version

Name:	opf.png
Views:	238
Size:	73.7 KB
ID:	146514  
roger64 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil-0.8.900 released for testing - Wait for Sigil-0.8.901 KevinH Sigil 106 10-04-2015 10:41 AM
Sigil 0.8.3 Released user_none Sigil 10 02-02-2015 04:32 PM
Sigil 0.8.1 Released user_none Sigil 33 10-16-2014 05:04 PM
Sigil 0.7.4 Released user_none Sigil 47 01-05-2014 02:31 PM


All times are GMT -4. The time now is 05:16 AM.


MobileRead.com is a privately owned, operated and funded community.