Re: [poppler] building 0.68 and 0.69

2018-09-26 Thread Valerio Messina

On 09/26/18 00:35, Albert Astals Cid wrote:

If you don't need libopenjpeg-dev i suggest you to uninstall it,
maybe that helps.


yes, it has no dependent packages, and removing it solved most of the
cmake trouble.

On 18.04 still complaint for missing:
/usr/lib/x86_64-linux-gnu/libopenjp2.a
/usr/lib/x86_64-linux-gnu/libopenjpip_server.a
but cmake continue without -DENABLE_LIBOPENJPEG option, and build right.

On 16.04 complaint for many other missing packages, so I installed:
package 'libopenjp2-tools' for binaries: opj_compress, opj_decompress,
opj_dump
and package 'libopenjp2-tools' instead of 'openjpip-dec-server' for
binaries: opj_jpip_addxml, opj_jpip_transcode, opj_jpip_test
Now still complaint for missing:
/usr/lib/x86_64-linux-gnu/libopenjpip_server.a
but cmake continue without -DENABLE_LIBOPENJPEG option, and build right.


For Cygwin build, Qt5 core include files are in:
/usr/include/qt5/
and not in:
/include/qt5/

--
Valerio
___
poppler mailing list
poppler@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/poppler


Re: [poppler] building 0.68 and 0.69

2018-09-25 Thread Albert Astals Cid
El dimarts, 25 de setembre de 2018, a les 0:41:11 CEST, Valerio Messina va 
escriure:
> On 09/25/18 00:19, Jason Crain wrote:
> > The issue could be that poppler requires openjpeg > 2, while for some
> > reason cmake is using the openjpeg-1.5 files.
> 
> on 18.04 related packages are:
> libopenjpip7 - 2.3.0-1
> libopenjp2-7 - 2.3.0-1
> libopenjp2-7-dev - 2.3.0-1
> libopenjp2-tools - 2.3.0-1
> libopenjpeg-dev - 1.5.2-3-1

If you don't need libopenjpeg-dev i suggest you to uninstall it, maybe that 
helps.

Cheers,
  Albert

> libopenjpeg-java - 1.5.2-3-1
> libopenjpeg5 - 1.5.2-3-1
> libopenjpip-dec-server - 2.3.0-1
> libopenjpip-server - 2.3.0-1
> libopenjpip7 - 2.3.0-12.3.0-1
> openjpeg-tools - 1.5.2-3-1
> 
> 
> on 16.04 related packages are:
> libopenjpip7 - 2.1.2-1.1+deb9u2build0.1
> libopenjp2-7 - 2.1.2-1.1+deb9u2build0.1
> libopenjp2-7-dev - 2.1.2-1.1+deb9u2build0.1
> libopenjp2-tools - 2.1.2-1.1+deb9u2build0.1
> libopenjpeg-dev - 1.5.2-3.1
> libopenjpeg-java - 1.5.2-3.1
> libopenjpeg5 - 1.5.2-3.1
> libopenjpip-dec-server - 2.1.2-1.1+deb9u2build0.1
> libopenjpip-server - 2.1.2-1.1+deb9u2build0.1
> libopenjpip7 - 2.1.2-1.1+deb9u2build0.1
> openjpeg-tools - 1.5.2-3.1
> 
> 
> Building 0.67 work, so something changed in 0.68 generate this trouble.
> 
> 




___
poppler mailing list
poppler@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/poppler


Re: [poppler] building 0.68 and 0.69

2018-09-25 Thread Valerio Messina

On 09/25/18 00:07, Valerio Messina wrote:

https://bugs.launchpad.net/ubuntu/+source/openjpeg2/+bug/1794194


using:
cmake -DENABLE_LIBOPENJPEG=unmaintained ..
0.69 build well on Ubuntu 16.04



I made a test with same command on Cygwin64 (Win7), here the result:

...
CMake Error at /lib/cmake/Qt5Core/Qt5CoreConfig.cmake:27 (message):
  The imported target "Qt5::Core" references the file

 "//include/qt5/"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

 "/lib/cmake/Qt5Core/Qt5CoreConfig.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /lib/cmake/Qt5Core/Qt5CoreConfig.cmake:68 (_qt5_Core_check_file_exists)
  CMakeLists.txt:151 (find_package)


-- Configuring incomplete, errors occurred!
See also 
"/cygdrive/d/AMBIENTE/Documents/c/poppler-0.69.0/build/CMakeFiles/CMakeOutput.log".



seems crash something in cmake.


I had the following related packages installed:
libQt5Core-devel - 5.9.4-2
libQt5Core   - 5.9.4-2


Once build correctly in Cygwin, will try again with Mingw64.


--
Valerio
___
poppler mailing list
poppler@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/poppler


Re: [poppler] building 0.68 and 0.69

2018-09-24 Thread Jason Crain
On 2018-09-25, Valerio Messina  wrote:
> Building 0.67 work, so something changed in 0.68 generate this trouble.

Poppler switched from using its own cmake module to find OpenJPEG to
using the one that ships with cmake.
___
poppler mailing list
poppler@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/poppler


Re: [poppler] building 0.68 and 0.69

2018-09-24 Thread Valerio Messina

On 09/25/18 00:19, Jason Crain wrote:

The issue could be that poppler requires openjpeg > 2, while for some
reason cmake is using the openjpeg-1.5 files.


on 18.04 related packages are:
libopenjpip7 - 2.3.0-1
libopenjp2-7 - 2.3.0-1
libopenjp2-7-dev - 2.3.0-1
libopenjp2-tools - 2.3.0-1
libopenjpeg-dev - 1.5.2-3-1
libopenjpeg-java - 1.5.2-3-1
libopenjpeg5 - 1.5.2-3-1
libopenjpip-dec-server - 2.3.0-1
libopenjpip-server - 2.3.0-1
libopenjpip7 - 2.3.0-12.3.0-1
openjpeg-tools - 1.5.2-3-1


on 16.04 related packages are:
libopenjpip7 - 2.1.2-1.1+deb9u2build0.1
libopenjp2-7 - 2.1.2-1.1+deb9u2build0.1
libopenjp2-7-dev - 2.1.2-1.1+deb9u2build0.1
libopenjp2-tools - 2.1.2-1.1+deb9u2build0.1
libopenjpeg-dev - 1.5.2-3.1
libopenjpeg-java - 1.5.2-3.1
libopenjpeg5 - 1.5.2-3.1
libopenjpip-dec-server - 2.1.2-1.1+deb9u2build0.1
libopenjpip-server - 2.1.2-1.1+deb9u2build0.1
libopenjpip7 - 2.1.2-1.1+deb9u2build0.1
openjpeg-tools - 1.5.2-3.1


Building 0.67 work, so something changed in 0.68 generate this trouble.

--
Valerio
___
poppler mailing list
poppler@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/poppler


Re: [poppler] building 0.68 and 0.69

2018-09-24 Thread Jason Crain
On 2018-09-24, Valerio Messina  wrote:
> -- The imported target "openjpip_server" references the file
>"/usr/lib/x86_64-linux-gnu/libopenjpip_server.a"
> but this file does not exist.  Possible reasons include:
> * The file was deleted, renamed, or moved to another location.
> * An install or uninstall procedure did not complete successfully.
> * The installation package was faulty and contained
>"/usr/lib/x86_64-linux-gnu/openjpeg-1.5/OpenJPEGTargets.cmake"
> but not all the files it references.

The issue could be that poppler requires openjpeg > 2, while for some
reason cmake is using the openjpeg-1.5 files.

> In the mean time, how to switch to "internal unmaintained JPX decoder"
> or to disable support for Jpeg2000/Jpip at all?

Use -DENABLE_LIBOPENJPEG=none or -DENABLE_LIBOPENJPEG=unmaintained.
___
poppler mailing list
poppler@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/poppler


Re: [poppler] building 0.68 and 0.69

2018-09-24 Thread Valerio Messina

On 09/24/18 20:01, Albert Astals Cid wrote:

in the openjp packages, if they are not there, it means the ubuntu
packages are broken.

Open a bug in their tracker.


sure:
https://bugs.launchpad.net/ubuntu/+source/openjpeg2/+bug/1794194
18.04 seems more broken than 16.04 in openjpeg2 support.


On 09/24/18 20:21, Adam Reichold wrote:
I do see similar errors when building on Debian unstable or Ubuntu 
18.04, but CMake and hence the build do not fail, please have a look
at the attached log of building Poppler 0.69 using the current 
ubuntu:bionic Docker image which also contains a list of all

install ed dependencies. (Make sure to enable the source code
repositories so that "apt build-dep" works.)


yesterday build was on Ubuntu 16.04 xenial.

Today I made a test on Ubuntu 18.04 and I got three more similar errors,
see below.

jpip_to_jp2
jpip_to_j2k
addXMLinJP2

that are provided in openjpip-dec-server package with Ubuntu 16.04,
completely miss on 18.04 bionic, see:
http://packages.ubuntu.com/


I saw from your log report, more missing packages than mine, I had:
libopenjpip.so.2.3.0
opj_decompress
opj_compress
opj_dump
opj_jpip_addxml
opj_server
opj_dec_server
opj_jpip_transcode
opj_jpip_test
but differently than your Docker image, on both my systems, cmake stop.

I haven't:
/usr/lib/x86_64-linux-gnu/libopenjp2.a
but doesn't complaint for it on my cmake.


In the mean time, how to switch to "internal unmaintained JPX decoder"
or to disable support for Jpeg2000/Jpip at all?

thank you,
Valerio


on Ubuntu 18.04:
---
...
-- Performing Test ICONV_SECOND_ARGUMENT_IS_CONST
-- Performing Test ICONV_SECOND_ARGUMENT_IS_CONST - Failed
-- Found Iconv: /usr/lib/x86_64-linux-gnu/libc.so
-- The imported target "openjpip_local" references the file
   "/usr/lib/x86_64-linux-gnu/libopenjpip_local.a"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/openjpeg-1.5/OpenJPEGTargets.cmake"
but not all the files it references.

-- The imported target "openjpip_server" references the file
   "/usr/lib/x86_64-linux-gnu/libopenjpip_server.a"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/openjpeg-1.5/OpenJPEGTargets.cmake"
but not all the files it references.

-- The imported target "addXMLinJP2" references the file
   "/usr/bin/addXMLinJP2"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/openjpeg-1.5/OpenJPEGTargets.cmake"
but not all the files it references.

-- The imported target "jpip_to_jp2" references the file
   "/usr/bin/jpip_to_jp2"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/openjpeg-1.5/OpenJPEGTargets.cmake"
but not all the files it references.

-- The imported target "jpip_to_j2k" references the file
   "/usr/bin/jpip_to_j2k"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/x86_64-linux-gnu/openjpeg-1.5/OpenJPEGTargets.cmake"
but not all the files it references.

CMake Error at CMakeLists.txt:207 (message):
  Install libopenjpeg2 before trying to build poppler.  You can also decide
  to use the internal unmaintained JPX decoder or none at all.


-- Configuring incomplete, errors occurred!
See also "/home/efa/c/poppler-0.69.0/build/CMakeFiles/CMakeOutput.log".
See also "/home/efa/c/poppler-0.69.0/build/CMakeFiles/CMakeError.log".




/home/efa/c/poppler-0.69.0/build/CMakeFiles/CMakeError.log

Determining if the pthread_create exist failed with the following output:
Change Dir: /home/efa/c/poppler-0.69.0/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_23d84/fast"
/usr/bin/make -f CMakeFiles/cmTC_23d84.dir/build.make 
CMakeFiles/cmTC_23d84.dir/build
make[1]: Entering directory 
'/home/efa/c/poppler-0.69.0/build/CMakeFiles/CMakeTmp'

Building C object CMakeFiles/cmTC_23d84.dir/CheckSymbolExists.c.o
/usr/bin/cc   -std=c99 -D_DEFAULT_SOURCE-o 
CMakeFiles/cmTC_23d84.dir/CheckSymbolExists.c.o   -c 

Re: [poppler] building 0.68 and 0.69

2018-09-24 Thread Albert Astals Cid
El dilluns, 24 de setembre de 2018, a les 14:26:21 CEST, Valerio Messina va 
escriure:
> hi,
> I'm trying to build the 0.69 on Ubuntu.
> I got this error in 'build $ cmake ..' phase:
> 
> 
> ...
> -- The imported target "openjpip_local" references the file
> "/usr/lib/x86_64-linux-gnu/libopenjpip_local.a"
> but this file does not exist.  Possible reasons include:
> * The file was deleted, renamed, or moved to another location.
> * An install or uninstall procedure did not complete successfully.
> * The installation package was faulty and contained
> "/usr/lib/x86_64-linux-gnu/openjpeg-1.5/OpenJPEGTargets.cmake"
> but not all the files it references.
> 
> -- The imported target "openjpip_server" references the file
> "/usr/lib/x86_64-linux-gnu/libopenjpip_server.a"
> but this file does not exist.  Possible reasons include:
> * The file was deleted, renamed, or moved to another location.
> * An install or uninstall procedure did not complete successfully.
> * The installation package was faulty and contained
> "/usr/lib/x86_64-linux-gnu/openjpeg-1.5/OpenJPEGTargets.cmake"
> but not all the files it references.
> 
> CMake Error at CMakeLists.txt:207 (message):
>Install libopenjpeg2 before trying to build poppler.  You can also decide
>to use the internal unmaintained JPX decoder or none at all.
> 
> 
> so files:
> /usr/lib/x86_64-linux-gnu/libopenjpip_local.a
> /usr/lib/x86_64-linux-gnu/libopenjpip_server.a
> are missing.
> In what package are supposed to be those files?

in the openjp packages, if they are not there, it means the ubuntu packages are 
broken.

Open a bug in their tracker.

FWIW this is how the arch linux people fixed their package
https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/openjpeg2=1dab13cb0449da1f62157475a0350b86dc4e0369

Cheers,
  Albert

> 
> 
> I had all the following packages already installed:
> libopenjp2-7-dev
> libopenjpeg-dev
> openjpeg-tools : j2k_dump,j2k_to_image,image_to_j2k
> libopenjpip-server : opj_server
> libopenjpeg-java   : libopenjpegjni.so
> openjpip-dec-server: jpip_to_jp2,jpip_to_j2k,addXMLinJP2
> 
> 
> Note: Building 0.68 generate same error, while 0.67 work
> I also tried to build 0.69 on Windows with both Cygwin64 and 
> Mingw64(Msys2), fail also there.
> 
> Someone can help me to generate the last version of the library and tools?
> 
> 
> thank you
> 




___
poppler mailing list
poppler@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/poppler