Re: new icons in master are not found by the LyX executable

2015-03-22 Thread Enrico Forestieri
On Wed, Mar 18, 2015 at 05:01:11PM +0100, Enrico Forestieri wrote:

 On Wed, Mar 18, 2015 at 11:20:49AM +0400, Uwe Stöhr wrote:
  I just compiled master and started the resulting LyX.exe. As result
  I get tons of these warnings:
  
  ..\..\..\..\src\frontends\qt4\GuiApplication.cpp (612): Cannot load
  icon C:/LyXGit/Master/lib/images/index-insert.svgz please verify
  resource system!
  
  I use CMake. The icons are in the directory so it is not clear to me
  why they are not found. Naybe it is a problem with the slashes in
  the folder?
 
 No, you need gunzip in the PATH. You can download it from
 http://www.gzip.org/gzip124xN.zip
 
 Simply rename gzip.exe as gunzip.exe and put it in the PATH.

This should not be necessary anymore after 7da981b3.
However, gunzip is still used to uncompress other gzipped files and
it would be better to include it with the installer, otherwise the
Windows version would not be able to deal with compressed files.

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-22 Thread Enrico Forestieri
On Thu, Mar 19, 2015 at 11:24:16PM +0100, Enrico Forestieri wrote:

 On Wed, Mar 18, 2015 at 08:53:53PM -0400, Richard Heck wrote:
  On 03/18/2015 07:43 PM, Enrico Forestieri wrote:
  On Wed, Mar 18, 2015 at 09:42:58PM +0100, Jean-Marc Lasgouttes wrote:
  Le 18/03/15 19:14, Enrico Forestieri a écrit :
  LyX uses gunzip for uncompressing a gzipped file. Most probably, that
  could be also directly done in memory by using zlib, but I don't know
  if that's a bigger problem in the native Windows world ;)
  We have support/gzstream.h for that, and I would be surprised if Qt
  could not do it too.
  You are very correct. I tried replacing gunzip -c with cat in
  filetools.cpp and the result is simply that lyx now starts up
  a bit faster than before...
  
  Is it worth our replacing the gunzip call, then? Since we'll now be
  relying upon it more?
 
 I think it would be even better avoiding this path for the icons,
 i.e., do not even try to uncompress them.

I pushed a change at 7da981b3 that achieves that goal.

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-22 Thread Enrico Forestieri
On Thu, Mar 19, 2015 at 11:24:16PM +0100, Enrico Forestieri wrote:

> On Wed, Mar 18, 2015 at 08:53:53PM -0400, Richard Heck wrote:
> > On 03/18/2015 07:43 PM, Enrico Forestieri wrote:
> > >On Wed, Mar 18, 2015 at 09:42:58PM +0100, Jean-Marc Lasgouttes wrote:
> > >>Le 18/03/15 19:14, Enrico Forestieri a écrit :
> > >>>LyX uses gunzip for uncompressing a gzipped file. Most probably, that
> > >>>could be also directly done in memory by using zlib, but I don't know
> > >>>if that's a bigger problem in the native Windows world ;)
> > >>We have support/gzstream.h for that, and I would be surprised if Qt
> > >>could not do it too.
> > >You are very correct. I tried replacing "gunzip -c" with "cat" in
> > >filetools.cpp and the result is simply that lyx now starts up
> > >a bit faster than before...
> > 
> > Is it worth our replacing the gunzip call, then? Since we'll now be
> > relying upon it more?
> 
> I think it would be even better avoiding this path for the icons,
> i.e., do not even try to uncompress them.

I pushed a change at 7da981b3 that achieves that goal.

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-22 Thread Enrico Forestieri
On Wed, Mar 18, 2015 at 05:01:11PM +0100, Enrico Forestieri wrote:

> On Wed, Mar 18, 2015 at 11:20:49AM +0400, Uwe Stöhr wrote:
> > I just compiled master and started the resulting LyX.exe. As result
> > I get tons of these warnings:
> > 
> > ..\..\..\..\src\frontends\qt4\GuiApplication.cpp (612): Cannot load
> > icon C:/LyXGit/Master/lib/images/index-insert.svgz please verify
> > resource system!
> > 
> > I use CMake. The icons are in the directory so it is not clear to me
> > why they are not found. Naybe it is a problem with the slashes in
> > the folder?
> 
> No, you need gunzip in the PATH. You can download it from
> http://www.gzip.org/gzip124xN.zip
> 
> Simply rename gzip.exe as gunzip.exe and put it in the PATH.

This should not be necessary anymore after 7da981b3.
However, gunzip is still used to uncompress other gzipped files and
it would be better to include it with the installer, otherwise the
Windows version would not be able to deal with compressed files.

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-19 Thread Enrico Forestieri
On Wed, Mar 18, 2015 at 08:53:53PM -0400, Richard Heck wrote:
 On 03/18/2015 07:43 PM, Enrico Forestieri wrote:
 On Wed, Mar 18, 2015 at 09:42:58PM +0100, Jean-Marc Lasgouttes wrote:
 Le 18/03/15 19:14, Enrico Forestieri a écrit :
 LyX uses gunzip for uncompressing a gzipped file. Most probably, that
 could be also directly done in memory by using zlib, but I don't know
 if that's a bigger problem in the native Windows world ;)
 We have support/gzstream.h for that, and I would be surprised if Qt
 could not do it too.
 You are very correct. I tried replacing gunzip -c with cat in
 filetools.cpp and the result is simply that lyx now starts up
 a bit faster than before...
 
 Is it worth our replacing the gunzip call, then? Since we'll now be
 relying upon it more?

I think it would be even better avoiding this path for the icons,
i.e., do not even try to uncompress them.

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-19 Thread Enrico Forestieri
On Wed, Mar 18, 2015 at 08:53:53PM -0400, Richard Heck wrote:
> On 03/18/2015 07:43 PM, Enrico Forestieri wrote:
> >On Wed, Mar 18, 2015 at 09:42:58PM +0100, Jean-Marc Lasgouttes wrote:
> >>Le 18/03/15 19:14, Enrico Forestieri a écrit :
> >>>LyX uses gunzip for uncompressing a gzipped file. Most probably, that
> >>>could be also directly done in memory by using zlib, but I don't know
> >>>if that's a bigger problem in the native Windows world ;)
> >>We have support/gzstream.h for that, and I would be surprised if Qt
> >>could not do it too.
> >You are very correct. I tried replacing "gunzip -c" with "cat" in
> >filetools.cpp and the result is simply that lyx now starts up
> >a bit faster than before...
> 
> Is it worth our replacing the gunzip call, then? Since we'll now be
> relying upon it more?

I think it would be even better avoiding this path for the icons,
i.e., do not even try to uncompress them.

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Jürgen Spitzmüller
2015-03-18 8:53 GMT+01:00 Uwe Stöhr:

 Qt 4.8.6


Does your qt build contain the qtsvg headers?

Jürgen




 regards Uwe



Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Jürgen Spitzmüller
2015-03-18 17:32 GMT+01:00 Scott Kostyshak:

 And for Linux is there something I need in PATH? I have installed
 libqt5svg5 but that did not help (note that I am using a compiled Qt
 5). Do I need to install libqt5svg5-dev and recompile Qt 5?


Yes, you need the qt5svg headers (where ever they are packed by your
distro).

Jürgen



 Scott



Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Enrico Forestieri
On Wed, Mar 18, 2015 at 11:20:49AM +0400, Uwe Stöhr wrote:
 I just compiled master and started the resulting LyX.exe. As result
 I get tons of these warnings:
 
 ..\..\..\..\src\frontends\qt4\GuiApplication.cpp (612): Cannot load
 icon C:/LyXGit/Master/lib/images/index-insert.svgz please verify
 resource system!
 
 I use CMake. The icons are in the directory so it is not clear to me
 why they are not found. Naybe it is a problem with the slashes in
 the folder?

No, you need gunzip in the PATH. You can download it from
http://www.gzip.org/gzip124xN.zip

Simply rename gzip.exe as gunzip.exe and put it in the PATH.

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Kornel Benko
Am Mittwoch, 18. März 2015 um 12:32:54, schrieb Scott Kostyshak 
skost...@lyx.org
 On Wed, Mar 18, 2015 at 12:01 PM, Enrico Forestieri for...@lyx.org wrote:
  On Wed, Mar 18, 2015 at 11:20:49AM +0400, Uwe Stöhr wrote:
  I just compiled master and started the resulting LyX.exe. As result
  I get tons of these warnings:
 
  ..\..\..\..\src\frontends\qt4\GuiApplication.cpp (612): Cannot load
  icon C:/LyXGit/Master/lib/images/index-insert.svgz please verify
  resource system!
 
  I use CMake. The icons are in the directory so it is not clear to me
  why they are not found. Naybe it is a problem with the slashes in
  the folder?
 
  No, you need gunzip in the PATH. You can download it from
  http://www.gzip.org/gzip124xN.zip
 
  Simply rename gzip.exe as gunzip.exe and put it in the PATH.
 
 And for Linux is there something I need in PATH? I have installed
 libqt5svg5 but that did not help (note that I am using a compiled Qt
 5).

I suppose you have Qt5-Build-Dir/qtbase/bin in your PATH already?
Other than this I don't know.

 Do I need to install libqt5svg5-dev and recompile Qt 5?

Definitely no. I used compiled Qt5 without libqt5svg5-dev, and the icons were 
still OK.
But check, if you have Qt5-Build-Dir/qtbase/plugins/imageformats/libqsvg.so.
For your self compiled Qt5 you even don't need package libqt5svg5 installed.

 Scott

Kornel

signature.asc
Description: This is a digitally signed message part.


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Scott Kostyshak
On Wed, Mar 18, 2015 at 12:01 PM, Enrico Forestieri for...@lyx.org wrote:
 On Wed, Mar 18, 2015 at 11:20:49AM +0400, Uwe Stöhr wrote:
 I just compiled master and started the resulting LyX.exe. As result
 I get tons of these warnings:

 ..\..\..\..\src\frontends\qt4\GuiApplication.cpp (612): Cannot load
 icon C:/LyXGit/Master/lib/images/index-insert.svgz please verify
 resource system!

 I use CMake. The icons are in the directory so it is not clear to me
 why they are not found. Naybe it is a problem with the slashes in
 the folder?

 No, you need gunzip in the PATH. You can download it from
 http://www.gzip.org/gzip124xN.zip

 Simply rename gzip.exe as gunzip.exe and put it in the PATH.

And for Linux is there something I need in PATH? I have installed
libqt5svg5 but that did not help (note that I am using a compiled Qt
5). Do I need to install libqt5svg5-dev and recompile Qt 5?

Scott


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Jean-Marc Lasgouttes

Le 18/03/2015 17:01, Enrico Forestieri a écrit :

I use CMake. The icons are in the directory so it is not clear to me
why they are not found. Naybe it is a problem with the slashes in
the folder?


No, you need gunzip in the PATH. You can download it from
http://www.gzip.org/gzip124xN.zip

Simply rename gzip.exe as gunzip.exe and put it in the PATH.


Is this needed at build time or at run time?

JMarc



Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Stephan Witt
Am 18.03.2015 um 18:05 schrieb Jean-Marc Lasgouttes lasgout...@lyx.org:

 Le 18/03/2015 17:01, Enrico Forestieri a écrit :
 I use CMake. The icons are in the directory so it is not clear to me
 why they are not found. Naybe it is a problem with the slashes in
 the folder?
 
 No, you need gunzip in the PATH. You can download it from
 http://www.gzip.org/gzip124xN.zip
 
 Simply rename gzip.exe as gunzip.exe and put it in the PATH.
 
 Is this needed at build time or at run time?

At runtime - unless the SVG files were installed uncompressed.

Stephan

Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Kornel Benko
Am Mittwoch, 18. März 2015 um 13:09:09, schrieb Scott Kostyshak 
skost...@lyx.org
 On Wed, Mar 18, 2015 at 12:50 PM, Kornel Benko kor...@lyx.org wrote:
 
  I suppose you have Qt5-Build-Dir/qtbase/bin in your PATH already?
 
 No I did not. I added this and recompiled and now the icons seem to
 show correctly.
 
  Other than this I don't know.
 
  Do I need to install libqt5svg5-dev and recompile Qt 5?
 
  Definitely no. I used compiled Qt5 without libqt5svg5-dev, and the icons 
  were still OK.
  But check, if you have 
  Qt5-Build-Dir/qtbase/plugins/imageformats/libqsvg.so.
  For your self compiled Qt5 you even don't need package libqt5svg5 installed.
 
 I do not. I have only:
 
 $ ls /usr/BUILD/BuildQt5-dev/qtbase/plugins/imageformats
 libqdds.so  libqgif.so  libqicns.so  libqico.so  libqjp2.so
 libqjpeg.so  libqmng.so  libqtga.so  libqtiff.so  libqwbmp.so
 libqwebp.so
 
 I think I should do a fresh Qt build and then libqsvg.so should be
 there or I will inspect build logs.
 
 Thanks,
 
 Scott

I just downloaded a pre-compiled version 5.4.1 directly from 
http://www.qt.io/download-open-source/
NO Problems with this version. Far better than my own compile of 5.5.

The bin and lib path are changed slightly, e.g.
downloaded  
self compiled
bin: /usr/BUILD/BuildQt5/5.4/gcc_64/bin /usr/BUILD/BuildQt5/qtbase/bin
lib: /usr/BUILD/BuildQt5/5.4/gcc_64/lib 
/usr/BUILD/BuildQt5.not/qtbase/lib

So I had to adapt PATH and /etc/ld.so.conf.d/qt5.conf

Now recompiled lyx (removing first the CMakeCache.txt of course)
Works well.

Kornel


signature.asc
Description: This is a digitally signed message part.


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Scott Kostyshak
On Wed, Mar 18, 2015 at 1:40 PM, Kornel Benko kor...@lyx.org wrote:
 Am Mittwoch, 18. März 2015 um 13:09:09, schrieb Scott Kostyshak 
 skost...@lyx.org
 On Wed, Mar 18, 2015 at 12:50 PM, Kornel Benko kor...@lyx.org wrote:

  I suppose you have Qt5-Build-Dir/qtbase/bin in your PATH already?

 No I did not. I added this and recompiled and now the icons seem to
 show correctly.

  Other than this I don't know.
 
  Do I need to install libqt5svg5-dev and recompile Qt 5?
 
  Definitely no. I used compiled Qt5 without libqt5svg5-dev, and the icons 
  were still OK.
  But check, if you have 
  Qt5-Build-Dir/qtbase/plugins/imageformats/libqsvg.so.
  For your self compiled Qt5 you even don't need package libqt5svg5 
  installed.

 I do not. I have only:

 $ ls /usr/BUILD/BuildQt5-dev/qtbase/plugins/imageformats
 libqdds.so  libqgif.so  libqicns.so  libqico.so  libqjp2.so
 libqjpeg.so  libqmng.so  libqtga.so  libqtiff.so  libqwbmp.so
 libqwebp.so

 I think I should do a fresh Qt build and then libqsvg.so should be
 there or I will inspect build logs.

 Thanks,

 Scott

 I just downloaded a pre-compiled version 5.4.1 directly from 
 http://www.qt.io/download-open-source/
 NO Problems with this version. Far better than my own compile of 5.5.

 The bin and lib path are changed slightly, e.g.
 downloaded
   self compiled
 bin: /usr/BUILD/BuildQt5/5.4/gcc_64/bin /usr/BUILD/BuildQt5/qtbase/bin
 lib: /usr/BUILD/BuildQt5/5.4/gcc_64/lib 
 /usr/BUILD/BuildQt5.not/qtbase/lib

 So I had to adapt PATH and /etc/ld.so.conf.d/qt5.conf

 Now recompiled lyx (removing first the CMakeCache.txt of course)
 Works well.

Ah good idea. I will look into this.

Scott


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Enrico Forestieri
On Wed, Mar 18, 2015 at 05:40:54PM +0100, Jürgen Spitzmüller wrote:
 2015-03-18 17:32 GMT+01:00 Scott Kostyshak:
 
  And for Linux is there something I need in PATH? I have installed
  libqt5svg5 but that did not help (note that I am using a compiled Qt
  5). Do I need to install libqt5svg5-dev and recompile Qt 5?
 
 
 Yes, you need the qt5svg headers (where ever they are packed by your
 distro).

Hmm... I think that by installing the headers you simply triggered the
installation of the svg plugin, which is a dependency.

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Scott Kostyshak
On Wed, Mar 18, 2015 at 12:50 PM, Kornel Benko kor...@lyx.org wrote:

 I suppose you have Qt5-Build-Dir/qtbase/bin in your PATH already?

No I did not. I added this and recompiled and now the icons seem to
show correctly.

 Other than this I don't know.

 Do I need to install libqt5svg5-dev and recompile Qt 5?

 Definitely no. I used compiled Qt5 without libqt5svg5-dev, and the icons were 
 still OK.
 But check, if you have Qt5-Build-Dir/qtbase/plugins/imageformats/libqsvg.so.
 For your self compiled Qt5 you even don't need package libqt5svg5 installed.

I do not. I have only:

$ ls /usr/BUILD/BuildQt5-dev/qtbase/plugins/imageformats
libqdds.so  libqgif.so  libqicns.so  libqico.so  libqjp2.so
libqjpeg.so  libqmng.so  libqtga.so  libqtiff.so  libqwbmp.so
libqwebp.so

I think I should do a fresh Qt build and then libqsvg.so should be
there or I will inspect build logs.

Thanks,

Scott


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Enrico Forestieri
On Wed, Mar 18, 2015 at 01:09:09PM -0400, Scott Kostyshak wrote:
 On Wed, Mar 18, 2015 at 12:50 PM, Kornel Benko kor...@lyx.org wrote:
 
  I suppose you have Qt5-Build-Dir/qtbase/bin in your PATH already?
 
 No I did not. I added this and recompiled and now the icons seem to
 show correctly.
 
  Other than this I don't know.
 
  Do I need to install libqt5svg5-dev and recompile Qt 5?
 
  Definitely no. I used compiled Qt5 without libqt5svg5-dev, and the icons 
  were still OK.
  But check, if you have 
  Qt5-Build-Dir/qtbase/plugins/imageformats/libqsvg.so.
  For your self compiled Qt5 you even don't need package libqt5svg5 installed.
 
 I do not. I have only:
 
 $ ls /usr/BUILD/BuildQt5-dev/qtbase/plugins/imageformats
 libqdds.so  libqgif.so  libqicns.so  libqico.so  libqjp2.so
 libqjpeg.so  libqmng.so  libqtga.so  libqtiff.so  libqwbmp.so
 libqwebp.so
 
 I think I should do a fresh Qt build and then libqsvg.so should be
 there or I will inspect build logs.

Note that the svg plugin is not included in the QtBase sources.
You have to compile the QtSvg module. This is actually very simple:

$ tar xvf qtsvg-opensource-src-5.4.1.tar.xz
$ cd qtsvg-opensource-src-5.4.1/
$ mkdir build
$ cd build
$ env PATH=qt5_install_dir/bin:$PATH qmake ../
$ make
$ make install

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Scott Kostyshak
On Wed, Mar 18, 2015 at 2:08 PM, Enrico Forestieri for...@lyx.org wrote:
 On Wed, Mar 18, 2015 at 01:09:09PM -0400, Scott Kostyshak wrote:
 On Wed, Mar 18, 2015 at 12:50 PM, Kornel Benko kor...@lyx.org wrote:

  I suppose you have Qt5-Build-Dir/qtbase/bin in your PATH already?

 No I did not. I added this and recompiled and now the icons seem to
 show correctly.

  Other than this I don't know.
 
  Do I need to install libqt5svg5-dev and recompile Qt 5?
 
  Definitely no. I used compiled Qt5 without libqt5svg5-dev, and the icons 
  were still OK.
  But check, if you have 
  Qt5-Build-Dir/qtbase/plugins/imageformats/libqsvg.so.
  For your self compiled Qt5 you even don't need package libqt5svg5 
  installed.

 I do not. I have only:

 $ ls /usr/BUILD/BuildQt5-dev/qtbase/plugins/imageformats
 libqdds.so  libqgif.so  libqicns.so  libqico.so  libqjp2.so
 libqjpeg.so  libqmng.so  libqtga.so  libqtiff.so  libqwbmp.so
 libqwebp.so

 I think I should do a fresh Qt build and then libqsvg.so should be
 there or I will inspect build logs.

 Note that the svg plugin is not included in the QtBase sources.
 You have to compile the QtSvg module. This is actually very simple:

 $ tar xvf qtsvg-opensource-src-5.4.1.tar.xz
 $ cd qtsvg-opensource-src-5.4.1/
 $ mkdir build
 $ cd build
 $ env PATH=qt5_install_dir/bin:$PATH qmake ../
 $ make
 $ make install

Ah this is useful.

Thanks,

Scott


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Enrico Forestieri
On Wed, Mar 18, 2015 at 06:22:52PM +0100, Stephan Witt wrote:
 Am 18.03.2015 um 18:05 schrieb Jean-Marc Lasgouttes lasgout...@lyx.org:
 
  Le 18/03/2015 17:01, Enrico Forestieri a écrit :
  I use CMake. The icons are in the directory so it is not clear to me
  why they are not found. Naybe it is a problem with the slashes in
  the folder?
  
  No, you need gunzip in the PATH. You can download it from
  http://www.gzip.org/gzip124xN.zip
  
  Simply rename gzip.exe as gunzip.exe and put it in the PATH.
  
  Is this needed at build time or at run time?
 
 At runtime - unless the SVG files were installed uncompressed.

LyX uses gunzip for uncompressing a gzipped file. Most probably, that
could be also directly done in memory by using zlib, but I don't know
if that's a bigger problem in the native Windows world ;)

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Jean-Marc Lasgouttes

Le 18/03/15 19:14, Enrico Forestieri a écrit :

LyX uses gunzip for uncompressing a gzipped file. Most probably, that
could be also directly done in memory by using zlib, but I don't know
if that's a bigger problem in the native Windows world ;)


We have support/gzstream.h for that, and I would be surprised if Qt 
could not do it too.


JMarc



new icons in master are not found by the LyX executable

2015-03-18 Thread Uwe Stöhr
I just compiled master and started the resulting LyX.exe. As result I 
get tons of these warnings:


..\..\..\..\src\frontends\qt4\GuiApplication.cpp (612): Cannot load icon 
C:/LyXGit/Master/lib/images/index-insert.svgz please verify resource system!


I use CMake. The icons are in the directory so it is not clear to me why 
they are not found. Naybe it is a problem with the slashes in the folder?

Enrico, could you please have a look?

thanks and regards
Uwe


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Jürgen Spitzmüller
2015-03-18 8:20 GMT+01:00 Uwe Stöhr:

 I just compiled master and started the resulting LyX.exe. As result I get
 tons of these warnings:

 ..\..\..\..\src\frontends\qt4\GuiApplication.cpp (612): Cannot load icon
 C:/LyXGit/Master/lib/images/index-insert.svgz please verify resource
 system!

 I use CMake. The icons are in the directory so it is not clear to me why
 they are not found. Naybe it is a problem with the slashes in the folder?
 Enrico, could you please have a look?


Which qt version?

Jürgen



 thanks and regards
 Uwe



Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Uwe Stöhr

Am 18.03.2015 um 11:39 schrieb Jürgen Spitzmüller:

2015-03-18 8:20 GMT+01:00 Uwe Stöhr:

I just compiled master and started the resulting LyX.exe. As result
I get tons of these warnings:

..\..\..\..\src\frontends\qt4\__GuiApplication.cpp (612): Cannot
load icon C:/LyXGit/Master/lib/images/__index-insert.svgz please
verify resource system!


Which qt version?


Qt 4.8.6

regards Uwe


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Enrico Forestieri
On Wed, Mar 18, 2015 at 09:42:58PM +0100, Jean-Marc Lasgouttes wrote:
 Le 18/03/15 19:14, Enrico Forestieri a écrit :
 LyX uses gunzip for uncompressing a gzipped file. Most probably, that
 could be also directly done in memory by using zlib, but I don't know
 if that's a bigger problem in the native Windows world ;)
 
 We have support/gzstream.h for that, and I would be surprised if Qt
 could not do it too.

You are very correct. I tried replacing gunzip -c with cat in
filetools.cpp and the result is simply that lyx now starts up
a bit faster than before...

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Richard Heck

On 03/18/2015 07:43 PM, Enrico Forestieri wrote:

On Wed, Mar 18, 2015 at 09:42:58PM +0100, Jean-Marc Lasgouttes wrote:

Le 18/03/15 19:14, Enrico Forestieri a écrit :

LyX uses gunzip for uncompressing a gzipped file. Most probably, that
could be also directly done in memory by using zlib, but I don't know
if that's a bigger problem in the native Windows world ;)

We have support/gzstream.h for that, and I would be surprised if Qt
could not do it too.

You are very correct. I tried replacing gunzip -c with cat in
filetools.cpp and the result is simply that lyx now starts up
a bit faster than before...


Is it worth our replacing the gunzip call, then? Since we'll now be 
relying upon it more?


Richard



new icons in master are not found by the LyX executable

2015-03-18 Thread Uwe Stöhr
I just compiled master and started the resulting LyX.exe. As result I 
get tons of these warnings:


..\..\..\..\src\frontends\qt4\GuiApplication.cpp (612): Cannot load icon 
C:/LyXGit/Master/lib/images/index-insert.svgz please verify resource system!


I use CMake. The icons are in the directory so it is not clear to me why 
they are not found. Naybe it is a problem with the slashes in the folder?

Enrico, could you please have a look?

thanks and regards
Uwe


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Jürgen Spitzmüller
2015-03-18 8:20 GMT+01:00 Uwe Stöhr:

> I just compiled master and started the resulting LyX.exe. As result I get
> tons of these warnings:
>
> ..\..\..\..\src\frontends\qt4\GuiApplication.cpp (612): Cannot load icon
> C:/LyXGit/Master/lib/images/index-insert.svgz please verify resource
> system!
>
> I use CMake. The icons are in the directory so it is not clear to me why
> they are not found. Naybe it is a problem with the slashes in the folder?
> Enrico, could you please have a look?
>

Which qt version?

Jürgen


>
> thanks and regards
> Uwe
>


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Uwe Stöhr

Am 18.03.2015 um 11:39 schrieb Jürgen Spitzmüller:

2015-03-18 8:20 GMT+01:00 Uwe Stöhr:

I just compiled master and started the resulting LyX.exe. As result
I get tons of these warnings:

..\..\..\..\src\frontends\qt4\__GuiApplication.cpp (612): Cannot
load icon C:/LyXGit/Master/lib/images/__index-insert.svgz please
verify resource system!


Which qt version?


Qt 4.8.6

regards Uwe


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Jürgen Spitzmüller
2015-03-18 8:53 GMT+01:00 Uwe Stöhr:

> Qt 4.8.6
>

Does your qt build contain the qtsvg headers?

Jürgen



>
> regards Uwe
>


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Enrico Forestieri
On Wed, Mar 18, 2015 at 11:20:49AM +0400, Uwe Stöhr wrote:
> I just compiled master and started the resulting LyX.exe. As result
> I get tons of these warnings:
> 
> ..\..\..\..\src\frontends\qt4\GuiApplication.cpp (612): Cannot load
> icon C:/LyXGit/Master/lib/images/index-insert.svgz please verify
> resource system!
> 
> I use CMake. The icons are in the directory so it is not clear to me
> why they are not found. Naybe it is a problem with the slashes in
> the folder?

No, you need gunzip in the PATH. You can download it from
http://www.gzip.org/gzip124xN.zip

Simply rename gzip.exe as gunzip.exe and put it in the PATH.

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Scott Kostyshak
On Wed, Mar 18, 2015 at 12:01 PM, Enrico Forestieri  wrote:
> On Wed, Mar 18, 2015 at 11:20:49AM +0400, Uwe Stöhr wrote:
>> I just compiled master and started the resulting LyX.exe. As result
>> I get tons of these warnings:
>>
>> ..\..\..\..\src\frontends\qt4\GuiApplication.cpp (612): Cannot load
>> icon C:/LyXGit/Master/lib/images/index-insert.svgz please verify
>> resource system!
>>
>> I use CMake. The icons are in the directory so it is not clear to me
>> why they are not found. Naybe it is a problem with the slashes in
>> the folder?
>
> No, you need gunzip in the PATH. You can download it from
> http://www.gzip.org/gzip124xN.zip
>
> Simply rename gzip.exe as gunzip.exe and put it in the PATH.

And for Linux is there something I need in PATH? I have installed
libqt5svg5 but that did not help (note that I am using a compiled Qt
5). Do I need to install libqt5svg5-dev and recompile Qt 5?

Scott


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Jürgen Spitzmüller
2015-03-18 17:32 GMT+01:00 Scott Kostyshak:

> And for Linux is there something I need in PATH? I have installed
> libqt5svg5 but that did not help (note that I am using a compiled Qt
> 5). Do I need to install libqt5svg5-dev and recompile Qt 5?
>

Yes, you need the qt5svg headers (where ever they are packed by your
distro).

Jürgen


>
> Scott
>


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Kornel Benko
Am Mittwoch, 18. März 2015 um 12:32:54, schrieb Scott Kostyshak 

> On Wed, Mar 18, 2015 at 12:01 PM, Enrico Forestieri  wrote:
> > On Wed, Mar 18, 2015 at 11:20:49AM +0400, Uwe Stöhr wrote:
> >> I just compiled master and started the resulting LyX.exe. As result
> >> I get tons of these warnings:
> >>
> >> ..\..\..\..\src\frontends\qt4\GuiApplication.cpp (612): Cannot load
> >> icon C:/LyXGit/Master/lib/images/index-insert.svgz please verify
> >> resource system!
> >>
> >> I use CMake. The icons are in the directory so it is not clear to me
> >> why they are not found. Naybe it is a problem with the slashes in
> >> the folder?
> >
> > No, you need gunzip in the PATH. You can download it from
> > http://www.gzip.org/gzip124xN.zip
> >
> > Simply rename gzip.exe as gunzip.exe and put it in the PATH.
> 
> And for Linux is there something I need in PATH? I have installed
> libqt5svg5 but that did not help (note that I am using a compiled Qt
> 5).

I suppose you have /qtbase/bin in your PATH already?
Other than this I don't know.

> Do I need to install libqt5svg5-dev and recompile Qt 5?

Definitely no. I used compiled Qt5 without libqt5svg5-dev, and the icons were 
still OK.
But check, if you have /qtbase/plugins/imageformats/libqsvg.so.
For your self compiled Qt5 you even don't need package libqt5svg5 installed.

> Scott

Kornel

signature.asc
Description: This is a digitally signed message part.


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Jean-Marc Lasgouttes

Le 18/03/2015 17:01, Enrico Forestieri a écrit :

I use CMake. The icons are in the directory so it is not clear to me
why they are not found. Naybe it is a problem with the slashes in
the folder?


No, you need gunzip in the PATH. You can download it from
http://www.gzip.org/gzip124xN.zip

Simply rename gzip.exe as gunzip.exe and put it in the PATH.


Is this needed at build time or at run time?

JMarc



Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Scott Kostyshak
On Wed, Mar 18, 2015 at 12:50 PM, Kornel Benko  wrote:

> I suppose you have /qtbase/bin in your PATH already?

No I did not. I added this and recompiled and now the icons seem to
show correctly.

> Other than this I don't know.
>
>> Do I need to install libqt5svg5-dev and recompile Qt 5?
>
> Definitely no. I used compiled Qt5 without libqt5svg5-dev, and the icons were 
> still OK.
> But check, if you have /qtbase/plugins/imageformats/libqsvg.so.
> For your self compiled Qt5 you even don't need package libqt5svg5 installed.

I do not. I have only:

$ ls /usr/BUILD/BuildQt5-dev/qtbase/plugins/imageformats
libqdds.so  libqgif.so  libqicns.so  libqico.so  libqjp2.so
libqjpeg.so  libqmng.so  libqtga.so  libqtiff.so  libqwbmp.so
libqwebp.so

I think I should do a fresh Qt build and then libqsvg.so should be
there or I will inspect build logs.

Thanks,

Scott


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Stephan Witt
Am 18.03.2015 um 18:05 schrieb Jean-Marc Lasgouttes :

> Le 18/03/2015 17:01, Enrico Forestieri a écrit :
>>> I use CMake. The icons are in the directory so it is not clear to me
>>> why they are not found. Naybe it is a problem with the slashes in
>>> the folder?
>> 
>> No, you need gunzip in the PATH. You can download it from
>> http://www.gzip.org/gzip124xN.zip
>> 
>> Simply rename gzip.exe as gunzip.exe and put it in the PATH.
> 
> Is this needed at build time or at run time?

At runtime - unless the SVG files were installed uncompressed.

Stephan

Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Kornel Benko
Am Mittwoch, 18. März 2015 um 13:09:09, schrieb Scott Kostyshak 

> On Wed, Mar 18, 2015 at 12:50 PM, Kornel Benko  wrote:
> 
> > I suppose you have /qtbase/bin in your PATH already?
> 
> No I did not. I added this and recompiled and now the icons seem to
> show correctly.
> 
> > Other than this I don't know.
> >
> >> Do I need to install libqt5svg5-dev and recompile Qt 5?
> >
> > Definitely no. I used compiled Qt5 without libqt5svg5-dev, and the icons 
> > were still OK.
> > But check, if you have 
> > /qtbase/plugins/imageformats/libqsvg.so.
> > For your self compiled Qt5 you even don't need package libqt5svg5 installed.
> 
> I do not. I have only:
> 
> $ ls /usr/BUILD/BuildQt5-dev/qtbase/plugins/imageformats
> libqdds.so  libqgif.so  libqicns.so  libqico.so  libqjp2.so
> libqjpeg.so  libqmng.so  libqtga.so  libqtiff.so  libqwbmp.so
> libqwebp.so
> 
> I think I should do a fresh Qt build and then libqsvg.so should be
> there or I will inspect build logs.
> 
> Thanks,
> 
> Scott

I just downloaded a pre-compiled version 5.4.1 directly from 
http://www.qt.io/download-open-source/
NO Problems with this version. Far better than my own compile of 5.5.

The bin and lib path are changed slightly, e.g.
downloaded  
self compiled
bin: /usr/BUILD/BuildQt5/5.4/gcc_64/bin /usr/BUILD/BuildQt5/qtbase/bin
lib: /usr/BUILD/BuildQt5/5.4/gcc_64/lib 
/usr/BUILD/BuildQt5.not/qtbase/lib

So I had to adapt PATH and /etc/ld.so.conf.d/qt5.conf

Now recompiled lyx (removing first the CMakeCache.txt of course)
Works well.

Kornel


signature.asc
Description: This is a digitally signed message part.


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Scott Kostyshak
On Wed, Mar 18, 2015 at 1:40 PM, Kornel Benko  wrote:
> Am Mittwoch, 18. März 2015 um 13:09:09, schrieb Scott Kostyshak 
> 
>> On Wed, Mar 18, 2015 at 12:50 PM, Kornel Benko  wrote:
>>
>> > I suppose you have /qtbase/bin in your PATH already?
>>
>> No I did not. I added this and recompiled and now the icons seem to
>> show correctly.
>>
>> > Other than this I don't know.
>> >
>> >> Do I need to install libqt5svg5-dev and recompile Qt 5?
>> >
>> > Definitely no. I used compiled Qt5 without libqt5svg5-dev, and the icons 
>> > were still OK.
>> > But check, if you have 
>> > /qtbase/plugins/imageformats/libqsvg.so.
>> > For your self compiled Qt5 you even don't need package libqt5svg5 
>> > installed.
>>
>> I do not. I have only:
>>
>> $ ls /usr/BUILD/BuildQt5-dev/qtbase/plugins/imageformats
>> libqdds.so  libqgif.so  libqicns.so  libqico.so  libqjp2.so
>> libqjpeg.so  libqmng.so  libqtga.so  libqtiff.so  libqwbmp.so
>> libqwebp.so
>>
>> I think I should do a fresh Qt build and then libqsvg.so should be
>> there or I will inspect build logs.
>>
>> Thanks,
>>
>> Scott
>
> I just downloaded a pre-compiled version 5.4.1 directly from 
> http://www.qt.io/download-open-source/
> NO Problems with this version. Far better than my own compile of 5.5.
>
> The bin and lib path are changed slightly, e.g.
> downloaded
>   self compiled
> bin: /usr/BUILD/BuildQt5/5.4/gcc_64/bin /usr/BUILD/BuildQt5/qtbase/bin
> lib: /usr/BUILD/BuildQt5/5.4/gcc_64/lib 
> /usr/BUILD/BuildQt5.not/qtbase/lib
>
> So I had to adapt PATH and /etc/ld.so.conf.d/qt5.conf
>
> Now recompiled lyx (removing first the CMakeCache.txt of course)
> Works well.

Ah good idea. I will look into this.

Scott


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Enrico Forestieri
On Wed, Mar 18, 2015 at 01:09:09PM -0400, Scott Kostyshak wrote:
> On Wed, Mar 18, 2015 at 12:50 PM, Kornel Benko  wrote:
> 
> > I suppose you have /qtbase/bin in your PATH already?
> 
> No I did not. I added this and recompiled and now the icons seem to
> show correctly.
> 
> > Other than this I don't know.
> >
> >> Do I need to install libqt5svg5-dev and recompile Qt 5?
> >
> > Definitely no. I used compiled Qt5 without libqt5svg5-dev, and the icons 
> > were still OK.
> > But check, if you have 
> > /qtbase/plugins/imageformats/libqsvg.so.
> > For your self compiled Qt5 you even don't need package libqt5svg5 installed.
> 
> I do not. I have only:
> 
> $ ls /usr/BUILD/BuildQt5-dev/qtbase/plugins/imageformats
> libqdds.so  libqgif.so  libqicns.so  libqico.so  libqjp2.so
> libqjpeg.so  libqmng.so  libqtga.so  libqtiff.so  libqwbmp.so
> libqwebp.so
> 
> I think I should do a fresh Qt build and then libqsvg.so should be
> there or I will inspect build logs.

Note that the svg plugin is not included in the QtBase sources.
You have to compile the QtSvg module. This is actually very simple:

$ tar xvf qtsvg-opensource-src-5.4.1.tar.xz
$ cd qtsvg-opensource-src-5.4.1/
$ mkdir build
$ cd build
$ env PATH=/bin:$PATH qmake ../
$ make
$ make install

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Scott Kostyshak
On Wed, Mar 18, 2015 at 2:08 PM, Enrico Forestieri  wrote:
> On Wed, Mar 18, 2015 at 01:09:09PM -0400, Scott Kostyshak wrote:
>> On Wed, Mar 18, 2015 at 12:50 PM, Kornel Benko  wrote:
>>
>> > I suppose you have /qtbase/bin in your PATH already?
>>
>> No I did not. I added this and recompiled and now the icons seem to
>> show correctly.
>>
>> > Other than this I don't know.
>> >
>> >> Do I need to install libqt5svg5-dev and recompile Qt 5?
>> >
>> > Definitely no. I used compiled Qt5 without libqt5svg5-dev, and the icons 
>> > were still OK.
>> > But check, if you have 
>> > /qtbase/plugins/imageformats/libqsvg.so.
>> > For your self compiled Qt5 you even don't need package libqt5svg5 
>> > installed.
>>
>> I do not. I have only:
>>
>> $ ls /usr/BUILD/BuildQt5-dev/qtbase/plugins/imageformats
>> libqdds.so  libqgif.so  libqicns.so  libqico.so  libqjp2.so
>> libqjpeg.so  libqmng.so  libqtga.so  libqtiff.so  libqwbmp.so
>> libqwebp.so
>>
>> I think I should do a fresh Qt build and then libqsvg.so should be
>> there or I will inspect build logs.
>
> Note that the svg plugin is not included in the QtBase sources.
> You have to compile the QtSvg module. This is actually very simple:
>
> $ tar xvf qtsvg-opensource-src-5.4.1.tar.xz
> $ cd qtsvg-opensource-src-5.4.1/
> $ mkdir build
> $ cd build
> $ env PATH=/bin:$PATH qmake ../
> $ make
> $ make install

Ah this is useful.

Thanks,

Scott


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Enrico Forestieri
On Wed, Mar 18, 2015 at 06:22:52PM +0100, Stephan Witt wrote:
> Am 18.03.2015 um 18:05 schrieb Jean-Marc Lasgouttes :
> 
> > Le 18/03/2015 17:01, Enrico Forestieri a écrit :
> >>> I use CMake. The icons are in the directory so it is not clear to me
> >>> why they are not found. Naybe it is a problem with the slashes in
> >>> the folder?
> >> 
> >> No, you need gunzip in the PATH. You can download it from
> >> http://www.gzip.org/gzip124xN.zip
> >> 
> >> Simply rename gzip.exe as gunzip.exe and put it in the PATH.
> > 
> > Is this needed at build time or at run time?
> 
> At runtime - unless the SVG files were installed uncompressed.

LyX uses gunzip for uncompressing a gzipped file. Most probably, that
could be also directly done in memory by using zlib, but I don't know
if that's a bigger problem in the native Windows world ;)

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Enrico Forestieri
On Wed, Mar 18, 2015 at 05:40:54PM +0100, Jürgen Spitzmüller wrote:
> 2015-03-18 17:32 GMT+01:00 Scott Kostyshak:
> 
> > And for Linux is there something I need in PATH? I have installed
> > libqt5svg5 but that did not help (note that I am using a compiled Qt
> > 5). Do I need to install libqt5svg5-dev and recompile Qt 5?
> >
> 
> Yes, you need the qt5svg headers (where ever they are packed by your
> distro).

Hmm... I think that by installing the headers you simply triggered the
installation of the svg plugin, which is a dependency.

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Jean-Marc Lasgouttes

Le 18/03/15 19:14, Enrico Forestieri a écrit :

LyX uses gunzip for uncompressing a gzipped file. Most probably, that
could be also directly done in memory by using zlib, but I don't know
if that's a bigger problem in the native Windows world ;)


We have support/gzstream.h for that, and I would be surprised if Qt 
could not do it too.


JMarc



Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Enrico Forestieri
On Wed, Mar 18, 2015 at 09:42:58PM +0100, Jean-Marc Lasgouttes wrote:
> Le 18/03/15 19:14, Enrico Forestieri a écrit :
> >LyX uses gunzip for uncompressing a gzipped file. Most probably, that
> >could be also directly done in memory by using zlib, but I don't know
> >if that's a bigger problem in the native Windows world ;)
> 
> We have support/gzstream.h for that, and I would be surprised if Qt
> could not do it too.

You are very correct. I tried replacing "gunzip -c" with "cat" in
filetools.cpp and the result is simply that lyx now starts up
a bit faster than before...

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Richard Heck

On 03/18/2015 07:43 PM, Enrico Forestieri wrote:

On Wed, Mar 18, 2015 at 09:42:58PM +0100, Jean-Marc Lasgouttes wrote:

Le 18/03/15 19:14, Enrico Forestieri a écrit :

LyX uses gunzip for uncompressing a gzipped file. Most probably, that
could be also directly done in memory by using zlib, but I don't know
if that's a bigger problem in the native Windows world ;)

We have support/gzstream.h for that, and I would be surprised if Qt
could not do it too.

You are very correct. I tried replacing "gunzip -c" with "cat" in
filetools.cpp and the result is simply that lyx now starts up
a bit faster than before...


Is it worth our replacing the gunzip call, then? Since we'll now be 
relying upon it more?


Richard