Re: [blfs-support] Building Poppler

2014-04-02 Thread Christopher Gregory

On 01/04/14 09:09, Fernando de Oliveira wrote:
 Em 30-03-2014 19:18, Fernando de Oliveira escreveu:
 Em 30-03-2014 14:08, m...@pc-networking-services.com escreveu:

 I have double checked and yes both get built and installed.

 output of locate:

 /usr/lib/libpoppler-qt5.so
 /usr/lib/libpoppler-qt5.so.1
 /usr/lib/libpoppler-qt5.so.1.0.0

 /usr/lib/libpoppler-qt4.so
 /usr/lib/libpoppler-qt4.so.4
 /usr/lib/libpoppler-qt4.so.4.3.0

 Regards,

 Christopher

 Christopher,

 Thanks for the info and for your time. Motivated by them, I studied more
 the subject. As ĸen, I prefer autotools and found out how to build both
 with them.

 Will create a ticket and fix the page.

 Fixed at r12922. Ticket #4880.

 Thanks, Christopher for reporting and investigating this issue and
 helping to solve it.


Hello Fernando,

I am glad that I was able to assist with the resolution.

I am one of these people who hates to give up on a problem.  It was just 
shear pig headedness on my part that caused me to try cmake.

I just refused to believe that the upstream maintainers would create a 
product that would not install both wrappers at the same time.

I look forward to seeing the fix that you made with auto-tools.  As of 
last checking the svn book I did not see the changes.

There was no point in you and the other developers wasting time on it, 
if you were not certain that it would work.

For what ever reason the configure script as it was in the original is 
broken.

Also there was a warning about not being able to create the 
documentation with cmake, though that could well be solved by adding 
another module to cmake.

Regards,

Christopher
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Building Poppler

2014-03-31 Thread Fernando de Oliveira
Em 30-03-2014 19:18, Fernando de Oliveira escreveu:
 Em 30-03-2014 14:08, m...@pc-networking-services.com escreveu:
 
 I have double checked and yes both get built and installed.

 output of locate:

 /usr/lib/libpoppler-qt5.so
 /usr/lib/libpoppler-qt5.so.1
 /usr/lib/libpoppler-qt5.so.1.0.0

 /usr/lib/libpoppler-qt4.so
 /usr/lib/libpoppler-qt4.so.4
 /usr/lib/libpoppler-qt4.so.4.3.0

 Regards,

 Christopher

 
 Christopher,
 
 Thanks for the info and for your time. Motivated by them, I studied more
 the subject. As ĸen, I prefer autotools and found out how to build both
 with them.
 
 Will create a ticket and fix the page.
 

Fixed at r12922. Ticket #4880.

Thanks, Christopher for reporting and investigating this issue and
helping to solve it.

-- 
[]s,
Fernando
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Building Poppler

2014-03-30 Thread Merell L. Matlock, Jr.
On 03/30/14 10:15, m...@pc-networking-services.com wrote:
 Hello,
 
 I found that the configure for poppler to enable both qt4 and qt5 seems to
 be broken even with the sed fix applied as per the instructions.
 
 Out of shear frustration I deleted the extracted poppler directory and
 re-extracted a fresh copy.  I created a build directory within it and
 typed:
 
 cmake prefix=/usr ..
 
 After it created the make files I checked and saw that it had detected
 both qt4 and qt5.
 
 I typed make and it went through the entire build without any errors and
 both qt4 and qt5 gets built.
 
 Would it be possible for one of the developers to check this out and
 provide instructions for using cmake instead of the broken configure?
 
 I have not installed it, just built it because I am not entirely sure how
 to specify the sysconfdir and disabling of static when using cmake.
 
 You get moc errors when using the sed when it comes to building the qt5
 module.
 
 Regards,
 
 Christopher.
 
If you have X up and running and QT4 installed (I don't have QT5, so I
can't address that), you could try:

cmake-gui

It's pretty nifty.

Merell

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Building Poppler

2014-03-30 Thread Fernando de Oliveira
Em 30-03-2014 11:15, m...@pc-networking-services.com escreveu:
 Hello,
 
 I found that the configure for poppler to enable both qt4 and qt5 seems to
 be broken even with the sed fix applied as per the instructions.

I may be wrong, but the fix is to build with qt5, not both. If I am
wrong, someone, please correct me.

 
 Out of shear frustration I deleted the extracted poppler directory and
 re-extracted a fresh copy.  I created a build directory within it and
 typed:
 
 cmake prefix=/usr ..
 
 After it created the make files I checked and saw that it had detected
 both qt4 and qt5.
 
 I typed make and it went through the entire build without any errors and
 both qt4 and qt5 gets built.

I know nothing about building poppler with cmake.
 
 Would it be possible for one of the developers to check this out and
 provide instructions for using cmake instead of the broken configure?
 
 I have not installed it, just built it because I am not entirely sure how
 to specify the sysconfdir and disabling of static when using cmake.
 
 You get moc errors when using the sed when it comes to building the qt5
 module.

Will be waiting to have some reply from other developers here, please.

Meanwhile, you can build with qt5 if it is selected as in the qt5 page
instructions and use the following sed, instead of the one in the book:

  sed -e s:grep \Qt 5\:grep \ 5.\:g \
  -i configure

If I do not hear from other devs about this, will assume I am right and
will modify the book accordingly, tomorrow.

-- 
[]s,
Fernando
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Building Poppler

2014-03-30 Thread me
 Hello,

 I found that the configure for poppler to enable both qt4 and qt5 seems to
 be broken even with the sed fix applied as per the instructions.

 Out of shear frustration I deleted the extracted poppler directory and
 re-extracted a fresh copy.  I created a build directory within it and
 typed:

 cmake prefix=/usr ..

 After it created the make files I checked and saw that it had detected
 both qt4 and qt5.

 I typed make and it went through the entire build without any errors and
 both qt4 and qt5 gets built.

 Would it be possible for one of the developers to check this out and
 provide instructions for using cmake instead of the broken configure?

 I have not installed it, just built it because I am not entirely sure how
 to specify the sysconfdir and disabling of static when using cmake.

 You get moc errors when using the sed when it comes to building the qt5
 module.

 Regards,

 Christopher.

 --
 http://linuxfromscratch.org/mailman/listinfo/blfs-support
 FAQ: http://www.linuxfromscratch.org/blfs/faq.html
 Unsubscribe: See the above information page

Hello Again,

Well I have managed to work out how to change the instructions to using
cmake:

mkdir build 
cdbuild 

cmake -DBUILD_SHARED_LIBS=ON \
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DENABLE_XPDF_HEADERS:BOOL=ON \
  -DENABLE_LIBCURL:BOOL=ON \
  -Wno-dev .. 
   make

I was not able to get it to do anything with the sysconfdir.  I tried:

-DSYSCONF_INSTALL_DIR=/etc

and after generating the make files it said that, that option was unused
in the project.  There is no mention of that directory in the
CMakeCache.txt file so it may well be that it has not been added.

Regards,

Christopher


-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Building Poppler

2014-03-30 Thread Fernando de Oliveira
Em 30-03-2014 12:34, m...@pc-networking-services.com escreveu:

 After it created the make files I checked and saw that it had detected
 both qt4 and qt5.

I have, with autotools that it detects both qt4 and 5, but only builds
the wrapper for the first one in the path.


 I typed make and it went through the entire build without any errors and
 both qt4 and qt5 gets built.

Do you mean that both libpoppler-qt4.so and libpoppler-qt5.so are built
and installed?


 Well I have managed to work out how to change the instructions to using
 cmake:
 
 mkdir build 
 cdbuild 
 
 cmake -DBUILD_SHARED_LIBS=ON \
   -DCMAKE_INSTALL_PREFIX=/usr \
   -DENABLE_XPDF_HEADERS:BOOL=ON \
   -DENABLE_LIBCURL:BOOL=ON \
   -Wno-dev .. 
make
 
 I was not able to get it to do anything with the sysconfdir.  I tried:
 
 -DSYSCONF_INSTALL_DIR=/etc
 
 and after generating the make files it said that, that option was unused
 in the project.  There is no mention of that directory in the
 CMakeCache.txt file so it may well be that it has not been added.

Interesting.

Please, I would like to know what I asked above.

Meanwhile, I just found that CMake build system was introduced in
2008, so, I am wondering why devs in the book kept considering only
autotools build. I've seen a comment about problems with glib-side
developers of poppler regarding cmake, but these are old, from 2010.

-- 
[]s,
Fernando
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Building Poppler

2014-03-30 Thread Ken Moffat
On Sun, Mar 30, 2014 at 01:06:34PM -0300, Fernando de Oliveira wrote:
 
 Meanwhile, I just found that CMake build system was introduced in
 2008, so, I am wondering why devs in the book kept considering only
 autotools build. I've seen a comment about problems with glib-side
 developers of poppler regarding cmake, but these are old, from 2010.
 
 At that time, cmake was not only weird to use (just as it is now),
it also had obscure dependencies such as xmlrpc which was needed if
you wanted t make cmake use the system libs - at that time it needed
all of the system libs, or else it would use its own versions for
all of them.

 Also, at that time the only thing in BLFS which required cmake was
kde4.  Personally, I've only recently started to use cmake in my
normal builds (for graphite2).

ĸen
-- 
das eine Mal als Tragödie, dieses Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Building Poppler

2014-03-30 Thread me
 Em 30-03-2014 12:34, m...@pc-networking-services.com escreveu:

 After it created the make files I checked and saw that it had detected
 both qt4 and qt5.

 I have, with autotools that it detects both qt4 and 5, but only builds
 the wrapper for the first one in the path.


 I typed make and it went through the entire build without any errors
 and
 both qt4 and qt5 gets built.

 Do you mean that both libpoppler-qt4.so and libpoppler-qt5.so are built
 and installed?


 Well I have managed to work out how to change the instructions to using
 cmake:

 mkdir build 
 cdbuild 

 cmake -DBUILD_SHARED_LIBS=ON \
   -DCMAKE_INSTALL_PREFIX=/usr \
   -DENABLE_XPDF_HEADERS:BOOL=ON \
   -DENABLE_LIBCURL:BOOL=ON \
   -Wno-dev .. 
make

 I was not able to get it to do anything with the sysconfdir.  I tried:

 -DSYSCONF_INSTALL_DIR=/etc

 and after generating the make files it said that, that option was unused
 in the project.  There is no mention of that directory in the
 CMakeCache.txt file so it may well be that it has not been added.

 Interesting.

 Please, I would like to know what I asked above.

 Meanwhile, I just found that CMake build system was introduced in
 2008, so, I am wondering why devs in the book kept considering only
 autotools build. I've seen a comment about problems with glib-side
 developers of poppler regarding cmake, but these are old, from 2010.

 --
 []s,
 Fernando
 --
 http://linuxfromscratch.org/mailman/listinfo/blfs-support
 FAQ: http://www.linuxfromscratch.org/blfs/faq.html
 Unsubscribe: See the above information page

Hello Fernando,

I have double checked and yes both get built and installed.

output of locate:

/usr/lib/libpoppler-qt5.so
/usr/lib/libpoppler-qt5.so.1
/usr/lib/libpoppler-qt5.so.1.0.0

/usr/lib/libpoppler-qt4.so
/usr/lib/libpoppler-qt4.so.4
/usr/lib/libpoppler-qt4.so.4.3.0

Regards,

Christopher

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Building Poppler

2014-03-30 Thread Fernando de Oliveira
Em 30-03-2014 13:27, Ken Moffat escreveu:
 On Sun, Mar 30, 2014 at 01:06:34PM -0300, Fernando de Oliveira wrote:

 Meanwhile, I just found that CMake build system was introduced in
 2008, so, I am wondering why devs in the book kept considering only
 autotools build. I've seen a comment about problems with glib-side
 developers of poppler regarding cmake, but these are old, from 2010.

  At that time, cmake was not only weird to use (just as it is now),
 it also had obscure dependencies such as xmlrpc which was needed if
 you wanted t make cmake use the system libs - at that time it needed
 all of the system libs, or else it would use its own versions for
 all of them.
 
  Also, at that time the only thing in BLFS which required cmake was
 kde4.  Personally, I've only recently started to use cmake in my
 normal builds (for graphite2).


Thanks, ĸen.

It seems that both qt4 and 5 wrappers are not incompatible.

I found a solution to build both of them with autotools, not very
elegant, but with not much increase in build time. Will create a ticket
to expose the method.

-- 
[]s,
Fernando
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Building Poppler

2014-03-30 Thread Fernando de Oliveira
Em 30-03-2014 14:08, m...@pc-networking-services.com escreveu:

 I have double checked and yes both get built and installed.
 
 output of locate:
 
 /usr/lib/libpoppler-qt5.so
 /usr/lib/libpoppler-qt5.so.1
 /usr/lib/libpoppler-qt5.so.1.0.0
 
 /usr/lib/libpoppler-qt4.so
 /usr/lib/libpoppler-qt4.so.4
 /usr/lib/libpoppler-qt4.so.4.3.0
 
 Regards,
 
 Christopher
 

Christopher,

Thanks for the info and for your time. Motivated by them, I studied more
the subject. As ĸen, I prefer autotools and found out how to build both
with them.

Will create a ticket and fix the page.

-- 
[]s,
Fernando
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page