Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#41712 closed defect (invalid)

poppler @0.24.4_0: fatal error: 'openjpeg.h' file not found

Reported by: jsaucier@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: poppler

Description

The upgrade from poppler 0.24.3_0 to 0.24.4_0 failed on both of my system. I will attach the main.log after doing a port clean --all poppler. I also tried to uninstall poppler but I have package depending on it (gimp2).

Attachments (1)

main.log (118.1 KB) - added by jsaucier@… 10 years ago.

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by jsaucier@…

Attachment: main.log added

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Owner: changed from macports-tickets@… to devans@…
Summary: poppler upgrade from 0.24.3_0 to 0.24.4_0 failedpoppler @0.24.4_0: fatal error: 'openjpeg.h' file not found

I see you are on Mavericks. It builds fine for me on Mavericks. What version of Xcode and clang do you have?

The log says:

:info:build ./JPEG2000Stream.h:19:10: fatal error: 'openjpeg.h' file not found
:info:build #include <openjpeg.h>
:info:build          ^
:info:build 1 error generated.

/opt/local/include/openjpeg.h should be there; it's part of the openjpeg15 port on which the poppler port does declare a dependency. Does the file exist on your system?

comment:2 Changed 10 years ago by jsaucier@…

Oh, I see for openjpeg.h. The resolution for me for bug #41216 was to remove /opt/local/include/openjpeg.h in favour of /opt/local/include/openjpeg-1.5/openjpeg.h and /opt/local/include/openjpeg-2.0/openjpeg.h.

So, if I leave this file, I cannot upgrade openjpeg 2.0, if I remove this file I cannot upgrade poppler...

So, here is what I did :

- Force uninstall of openjpeg 1.5
- Upgrade openjpeg 2.0 correctly
- Reinstall openjpeg 1.5
- Upgrade poppler correctly
Last edited 10 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

comment:4 Changed 10 years ago by info@…

Thanks for the report jsaucier! Solving the issue turned out to be even easier for me. Just running

port uninstall -f openjpeg15
port upgrade openjpeg

did the job for me. Upgrading openjpeg even triggered the rebuild of poppler.

Note: openjpeg 2.0 was not outdated on my system. Probably because I already upgraded it before... If openjpeg 2.0 is outdated on you system, you can try running

port upgrade openjpeg@2.0

prior to the above two commands. Hope this saves someone some time ;)

Last edited 10 years ago by info@… (previous) (diff)

comment:5 in reply to:  4 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to info@…:

port upgrade openjpeg@2.0

FYI you cannot specify a version to upgrade or install. MacPorts will upgrade to or install the version that is available regardless of what you specify. See #24520. So the above command is equivalent to:

port upgrade openjpeg
Note: See TracTickets for help on using tickets.