Opened 12 years ago

Closed 12 years ago

#34874 closed enhancement (worksforme)

okular @4.8.3 - failing to open Document Archive

Reported by: jan.deluxe@… Owned by: NicosPavlov
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: Cc:
Port: okular

Description

Hello,

I observed that okular failes to open the "Document Archive" filetype one can create from within the application by selecting "File -> Export As -> Document Archive".

The error message presented by okular is "Could not open /Path/to/file.ext" (where /Path/to/file.ext is an arbitrary filename). The message being displayed in Console.app reads

okular(1263)/okular (app) Okular::Document::openDocument: No plugin for mimetype '"application/zip"'.

This format is used to exchange pdf documents with annotations created by okular between okular users.

However, okular.app is able to produce that filetype following the procedure mentioned above and it opens fine using okular on a linux box.

I think providing the ability to read .okular files would be a great enhancement for users working with pdf annotations on different OS which do not support the Acrobat Reader X.

Maybe introducing a variant would be a feasible solution until popplers pdf annotation support becomes stable?

Thank your for keeping up the excellent work on macports!

OS: Mac OS 10.6.8 / Xcode 3.2.6

Attachments (1)

test.okular (76.6 KB) - added by jan.deluxe@… 12 years ago.
okular document archive file

Download all attachments as: .zip

Change History (11)

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

Owner: changed from macports-tickets@… to nicos@…

Sounds to me like a bug in okular, which should be reported to and fixed by the developers of okular (not MacPorts maintainers).

comment:2 Changed 12 years ago by NicosPavlov

I rapidly tested the annotation functionality of okular (highlight, notes), and saved it in .okular format. It could then be opened again without any issues with the latest ports, and also OS 10.6.8, XCode 3.2.6.

As I can't reproduce the issue, I am wondering if there is a specific thing which triggers the problem.

Changed 12 years ago by jan.deluxe@…

Attachment: test.okular added

okular document archive file

comment:3 Changed 12 years ago by jan.deluxe@…

@nicos: strange. below you'll find a list of the variants of okulars dependencies and the ontent of my variants.conf. Could you check that for differences with yours? I also attached a file test.okular to verify that the file itself is not broken.

$ cat /opt/local/etc/macports/variants.conf
+quartz +qt4
$ port variants rdepof:okular
aspell has the variants:
   ispell: Install ispell emulation script
   nls: National Language Support
     * conflicts with nonls
[+]nonls: Don't include natural language support (default on Mac OS X)
     * conflicts with nls
   universal: Build for multiple architectures
aspell-dict-en has no variants
atk has the variants:
   universal: Build for multiple architectures
attica has the variants:
   debug: Enable debug binaries
   docs: Build documentation
   universal: Build for multiple architectures
autoconf has no variants
automake has no variants
automoc has the variants:
   debug: Enable debug binaries
   docs: Build documentation
   universal: Build for multiple architectures
avahi has the variants:
[+]gtk: Build with GTK2
   mono: Enable Mono support
   python25: Use python 2.5
     * conflicts with python26 python27
   python26: Use python 2.6
     * conflicts with python25 python27
[+]python27: Use python 2.7
     * conflicts with python25 python26
   test: Build tests
   universal: Build for multiple architectures
bzip2 has the variants:
   universal: Build for multiple architectures
cairo has the variants:
   no_x11: Legacy compatibility variant
     * conflicts with opengl x11 x11_xcb
   opengl: Add OpenGL graphics interface
     * conflicts with no_x11
     * requires x11
(+)quartz: Support for native Mac OS X graphics
   universal: Build for multiple architectures
[+]x11: Enable X11 support
     * conflicts with no_x11
   x11_xcb: Legacy compatibility variant
     * conflicts with no_x11
     * requires x11
chmlib has the variants:
   universal: Build for multiple architectures
clucene has the variants:
   universal: Build for multiple architectures
cmake has the variants:
   gui: Qt4 based cmake-gui
   universal: Build for multiple architectures
convertlit has the variants:
   universal: Build for multiple architectures
cppunit has the variants:
   universal: Build for multiple architectures
curl has the variants:
   ares: Add support for resolving names asynchronously
   gnutls: Allow secure connections using GNU TLS
     * conflicts with ssl
   gss: Support the Generic Security Service API
   openldap: Support performing Lightweight Directory Access Protocol queries
             with OpenLDAP
   sftp_scp: Add SFTP/SCP support via libssh2
   spnego: Enable SPNEGO authentication support
[+]ssl: Allow secure connections using OpenSSL
   universal: Build for multiple architectures
curl-ca-bundle has no variants
cyrus-sasl2 has the variants:
[+]kerberos: Enable Kerberos support
   sql: Enable SQL support
   universal: Build for multiple architectures
db46 has the variants:
[+]java: Build the Java API
     * conflicts with no_java
   no_java: Legacy compatibility variant
     * conflicts with java
   tcl: build Tcl API
   universal: Build for multiple architectures
dbus has the variants:
   no_root: Run the DBUS daemon as MacPorts install user.
[+]startupitem: Install startup files.
   test: enable tests
   universal: Build for multiple architectures
dbus-glib has the variants:
   test: Enable building of test code
   universal: Build for multiple architectures
dbus-python27 has the variants:
   universal: Build for multiple architectures
dbusmenu-qt has the variants:
   debug: Enable debug binaries
   docs: Build documentation
   universal: Build for multiple architectures
dirac has the variants:
   doc: Build Dirac reference documentation
   universal: Build for multiple architectures
djvulibre has the variants:
   djview3: Obsolete. Djview is now a separate port. Stub variant.
   universal: Build for multiple architectures
docbook-xml has no variants
docbook-xml-4.1.2 has no variants
docbook-xml-4.2 has no variants
docbook-xml-4.3 has no variants
docbook-xml-4.4 has no variants
docbook-xml-4.5 has no variants
docbook-xml-5.0 has no variants
docbook-xsl has no variants
docbook-xsl-ns has no variants
ebook-tools has the variants:
   debug: Enable debug binaries
   universal: Build for multiple architectures
enchant has the variants:
   universal: Build for multiple architectures
expat has the variants:
   universal: Build for multiple architectures
ffmpeg has the variants:
[+]mmx: enable all supported x86 asm optimizations
   no_gpl: disallow use of GPL code, license will be LGPL
     * conflicts with nonfree
   nonfree: enable nonfree code, libraries and binaries will not be
            redistributable
     * conflicts with no_gpl
   universal
fftw-3 has the variants:
   g95: create Fortran wrappers using f95
     * conflicts with gcc42 gcc43 gcc44 gcc45 gcc46
   gcc42: create Fortran wrappers using gcc42
     * conflicts with g95 gcc43 gcc44 gcc45 gcc46 gcc47
   gcc43: create Fortran wrappers using gcc43
     * conflicts with g95 gcc42 gcc44 gcc45 gcc46 gcc47
   gcc44: create Fortran wrappers using gcc44
     * conflicts with g95 gcc42 gcc43 gcc45 gcc46 gcc47
   gcc45: create Fortran wrappers using gcc45
     * conflicts with g95 gcc42 gcc43 gcc44 gcc46 gcc47
   gcc46: create Fortran wrappers using gcc46
     * conflicts with g95 gcc42 gcc43 gcc44 gcc45 gcc47
   gcc47: create Fortran wrappers using gcc47
     * conflicts with g95 gcc42 gcc43 gcc44 gcc45 gcc46
   mpich2: compile FFTW MPI library with MPICH2
     * conflicts with openmpi
   openmpi: compile FFTW MPI library with OpenMPI
     * conflicts with mpich2
   universal: Build for multiple architectures
flex has the variants:
   universal: Build for multiple architectures
fontconfig has the variants:
   universal: Build for multiple architectures
freetype has the variants:
   universal: Build for multiple architectures
gawk has the variants:
   universal: Build for multiple architectures
gdbm has the variants:
   compat: Install dbm/ndbm compatibility files
   universal: Build for multiple architectures
gdk-pixbuf2 has the variants:
   universal: Build for multiple architectures
getopt has the variants:
   universal: Build for multiple architectures
gettext has the variants:
   universal: Build for multiple architectures
ghostscript has the variants:
   cups: Enable CUPS driver
   no_x11
   universal: Build for multiple architectures
giflib has the variants:
   doc: Install HTML documentation
   no_x11: Legacy compatibility variant
     * conflicts with x11
   universal: Build for multiple architectures
[+]x11: Enable X11 support
git-core has the variants:
   bash_completion: Completion support for bash
[+]credential_osxkeychain: Install git credential-osxkeychain utility from
                           contrib
[+]doc: Install HTML and plaintext documentation
   gitweb: Install gitweb.cgi
[+]pcre
   python26: Use Python 2.6
     * conflicts with python27
[+]python27: Use Python 2.7
     * conflicts with python26
   svn: Bi-directional subversion repository support
   universal: Build for multiple architectures
glib2 has the variants:
   universal: Build for multiple architectures
gmake has the variants:
   universal: Build for multiple architectures
gmp has the variants:
   universal: Build for multiple architectures
gnome-common has no variants
gnome-doc-utils has the variants:
   python25: Use python 2.5
     * conflicts with python26 python27
   python26: Use python 2.6
     * conflicts with python25 python27
[+]python27: Use python 2.7
     * conflicts with python25 python26
gperf has the variants:
   universal: Build for multiple architectures
grantlee has the variants:
   debug: Enable debug binaries
   docs: Build documentation
   universal: Build for multiple architectures
gsed has the variants:
   universal: Build for multiple architectures
gtk-doc has the variants:
   python25: Use python 2.5
     * conflicts with python26 python27
   python26: Use python 2.6
     * conflicts with python25 python27
[+]python27: Use python 2.7
     * conflicts with python25 python26
gtk2 has the variants:
   no_x11: Disable X11 support
(+)quartz: Support for native Mac OS X graphics
     * conflicts with x11
     * requires no_x11
   universal: Build for multiple architectures
[+]x11: Enable X11 support
     * conflicts with quartz
help2man has the variants:
   universal: Build for multiple architectures
hicolor-icon-theme has no variants
hunspell has the variants:
   universal: Build for multiple architectures
ilmbase has the variants:
   universal: Build for multiple architectures
ImageMagick has the variants:
   graphviz: Support Graphviz
   hdri: Support High Dynamic Range Imaging using OpenEXR
   jbig: Support JBIG
   jpeg2: Support JPEG-2000 using JasPer
   lqr: Support Liquid Rescale (experimental)
   mpeg: Support MPEG-1 and MPEG-2 video
   no_plus_plus: Do not install Magick++
   no_x11
   pango: Support Pango
   perl: Install PerlMagick
[+]q16: Use 16 bits per pixel quantum
     * conflicts with q32 q8
   q32: Use 32 bits per pixel quantum
     * conflicts with q16 q8
   q8: Use 8 bits per pixel quantum
     * conflicts with q16 q32
   rsvg: Support SVG using librsvg
   universal: Build for multiple architectures
   wmf: Support the Windows Metafile Format
intltool has no variants
iso-codes has no variants
jasper has the variants:
   jiv: build a basic viewer as well
   universal: Build for multiple architectures
jbig2dec has the variants:
   universal: Build for multiple architectures
jbigkit has the variants:
   universal: Build for multiple architectures
jpeg has the variants:
   universal: Build for multiple architectures
kdelibs4 has the variants:
   debug: Enable debug binaries
   docs: Build documentation
   universal: Build for multiple architectures
kerberos5 has the variants:
   universal: Build for multiple architectures
lame has the variants:
   universal: Build for multiple architectures
lcms has the variants:
   universal: Build for multiple architectures
lcms2 has the variants:
   universal: Build for multiple architectures
libart_lgpl has the variants:
   universal: Build for multiple architectures
libdaemon has the variants:
   universal: Build for multiple architectures
libedit has the variants:
   universal: Build for multiple architectures
libffi has the variants:
   universal: Build for multiple architectures
libglade2 has the variants:
(+)quartz: Support for native Mac OS X graphics
   universal: Build for multiple architectures
libiconv has the variants:
   cp932fix: Apply a patch to fix the conversion problem between Shift-JIS and
             Unicode (See Microsoft KB Q170559)
   enable_cp932fix: Legacy compatibility variant
     * requires cp932fix
   universal: Build for multiple architectures
libidn has the variants:
   universal: Build for multiple architectures
libiodbc has the variants:
   universal: Build for multiple architectures
liblzma has the variants:
   universal: Build for multiple architectures
libmng has the variants:
   universal: Build for multiple architectures
libogg has the variants:
   universal: Build for multiple architectures
libpaper has the variants:
   universal: Build for multiple architectures
libpixman has the variants:
   universal: Build for multiple architectures
libpng has the variants:
   universal: Build for multiple architectures
libsdl has the variants:
   no_x11: Legacy compatibility variant
     * conflicts with x11
   universal: Build for multiple architectures
[+]x11: Enable X11 support
     * conflicts with no_x11
libspectre has the variants:
   docs: Build documentation
   universal: Build for multiple architectures
libtheora has the variants:
   universal: Build for multiple architectures
libtommath has the variants:
   universal: Build for multiple architectures
libtool has the variants:
   universal: Build for multiple architectures
libvorbis has the variants:
   universal: Build for multiple architectures
libvpx has the variants:
   universal: Build for multiple architectures
libxml2 has the variants:
   debug: Enable debug build
   universal: Build for multiple architectures
libxslt has the variants:
   debug: Enable debug support
   doc: Install extra documentation
   universal: Build for multiple architectures
libzip has the variants:
   universal: Build for multiple architectures
m4 has the variants:
   universal: Build for multiple architectures
mhash has the variants:
   universal: Build for multiple architectures
mpfr has the variants:
   universal: Build for multiple architectures
ncurses has the variants:
   universal: Build for multiple architectures
nosetests_select has no variants
openexr has the variants:
   universal: Build for multiple architectures
openjpeg has the variants:
   universal: Build for multiple architectures
openssl has the variants:
   rfc3779: enable RFC 3779: X.509 Extensions for IP Addresses and AS
            Identifiers
   universal: Build for multiple architectures
orc has the variants:
   universal: Build for multiple architectures
oxygen-icons has the variants:
   debug: Enable debug binaries
   docs: Build documentation
p5.12-error has no variants
p5.12-getopt-long has no variants
p5.12-locale-gettext has the variants:
   universal: Build for multiple architectures
p5.12-pathtools has the variants:
   universal: Build for multiple architectures
p5.12-scalar-list-utils has the variants:
   universal: Build for multiple architectures
p5.12-term-readkey has the variants:
   universal: Build for multiple architectures
p5.12-xml-parser has the variants:
   universal: Build for multiple architectures
pango has the variants:
   builtin_modules: Build the modules into Pango statically (most users do not
                    need this variant)
   no_x11: Legacy compatibility variant
     * conflicts with x11
(+)quartz: Support for native Mac OS X graphics
   universal: Build for multiple architectures
[+]x11: Enable X11 support
pcre has the variants:
   doc: Install extra documentation
   universal: Build for multiple architectures
perl5 has the variants:
   perl5_10: use perl 5.10
     * conflicts with perl5_12 perl5_14 perl5_16 perl5_8
[+]perl5_12: use perl 5.12
     * conflicts with perl5_10 perl5_14 perl5_16 perl5_8
   perl5_14: use perl 5.14
     * conflicts with perl5_10 perl5_12 perl5_16 perl5_8
   perl5_16: use perl 5.16
     * conflicts with perl5_10 perl5_12 perl5_14 perl5_8
   perl5_8: use perl 5.8
     * conflicts with perl5_10 perl5_12 perl5_14 perl5_16
perl5.12 has the variants:
   dtrace: Build with DTrace probes
   shared: Build shared perl library
   threads: Build with thread support
   universal: Build for multiple architectures
phonon has the variants:
   debug: Enable debug binaries
   universal: Build for multiple architectures
pkgconfig has the variants:
   universal: Build for multiple architectures
poppler has the variants:
   docs: Build gtk-doc documentation
     * conflicts with universal
(+)qt4: Support for the QT4 toolkit
(+)quartz: Support for native Mac OS X graphics
   universal: Build for multiple architectures
poppler-data has no variants
popt has the variants:
   universal: Build for multiple architectures
py27-cairo has the variants:
   universal: Build for multiple architectures
py27-distribute has the variants:
   universal: Build for multiple architectures
py27-gdbm has the variants:
   universal: Build for multiple architectures
py27-gobject has the variants:
   universal: Build for multiple architectures
py27-gtk has the variants:
(+)quartz: Support for native Mac OS X graphics
     * conflicts with x11
   universal: Build for multiple architectures
[+]x11: Enable X11 support
     * conflicts with quartz
py27-libxml2 has the variants:
   universal: Build for multiple architectures
py27-nose has no variants
py27-numpy has the variants:
   atlas: Use the MacPorts' ATLAS libraries  instead of Apple's Accelerate
          framework
   universal: Build for multiple architectures
py27-py has the variants:
   universal: Build for multiple architectures
python27 has the variants:
   ucs4: Enable support for UCS4
   universal: Build for multiple architectures
python_select has no variants
qca has the variants:
   debug: Build both release and debug library
   examples: Include examples in install
   universal: Build for multiple architectures
qimageblitz has the variants:
   debug: Enable debug binaries
   docs: Build documentation
   universal: Build for multiple architectures
qjson has the variants:
   debug: Enable debug binaries
   docs: Build documentation
   universal: Build for multiple architectures
qt4-mac has the variants:
   debug: Build both release and debug library
   demos: Build demos
   examples: Build examples
   framework: Build as Frameworks
   mysql: Enable MySQL SQL Driver
   odbc: Enable iODBC SQL Driver
   psql83: Enable Postgre SQL Driver version 8.3
     * conflicts with psql84 psql90 psql91
   psql84: Enable Postgre SQL Driver version 8.4
     * conflicts with psql83 psql90 psql91
   psql90: Enable Postgre SQL Driver version 9.0
     * conflicts with psql83 psql84 psql91
   psql91: Enable Postgre SQL Driver version 9.1
     * conflicts with psql83 psql84 psql90
(+)quartz: Build for Native OSX Quartz GUI, not X11 (default)
   raster: Use raster graphics system by default
   sqlite2: Enable SQLite version 2 SQL Driver
   universal: Build for multiple architectures
raptor2 has the variants:
   universal: Build for multiple architectures
rarian has the variants:
   universal: Build for multiple architectures
rasqal has the variants:
   universal: Build for multiple architectures
readline has the variants:
   universal: Build for multiple architectures
redland has the variants:
   db44
     * conflicts with db46 db47
[+]db46
     * conflicts with db44 db47
   db47
     * conflicts with db44 db46
   mysql4
     * conflicts with mysql5
   mysql5
     * conflicts with mysql4
   postgresql7
     * conflicts with postgresql80 postgresql81 postgresql82 postgresql83
   postgresql80
     * conflicts with postgresql7 postgresql81 postgresql82 postgresql83
   postgresql81
     * conflicts with postgresql7 postgresql80 postgresql82 postgresql83
   postgresql82
     * conflicts with postgresql7 postgresql80 postgresql81 postgresql83
   postgresql83
     * conflicts with postgresql7 postgresql80 postgresql81 postgresql82
   sqlite3
   universal: Build for multiple architectures
rsync has the variants:
   universal: Build for multiple architectures
schroedinger has the variants:
   universal: Build for multiple architectures
shared-desktop-ontologies has the variants:
   debug: Enable debug binaries
   docs: Build documentation
shared-mime-info has the variants:
   universal: Build for multiple architectures
soprano has the variants:
   debug: Enable debug binaries
   docs: Build documentation
   universal: Build for multiple architectures
speex has the variants:
   universal: Build for multiple architectures
sqlite3 has the variants:
   universal: Build for multiple architectures
strigi has the variants:
   debug: Enable debug binaries
   docs: Build documentation
   universal: Build for multiple architectures
texi2html has no variants
texinfo has the variants:
   universal: Build for multiple architectures
tiff has the variants:
   jbig: Enable JBIG support
   universal: Build for multiple architectures
unzip has the variants:
   universal: Build for multiple architectures
urw-fonts has no variants
virtuoso has the variants:
   universal: Build for multiple architectures
webp has the variants:
   debug: Compile with debugging information and reduce optimization level
   universal: Build for multiple architectures
x264 has the variants:
   asm: enable intel assembler optimizations (experimental)
   universal: Build for multiple architectures
Xft2 has the variants:
   universal: Build for multiple architectures
xmlcatmgr has the variants:
   universal: Build for multiple architectures
xorg-bigreqsproto has the variants:
   docs: Install extra documentation
xorg-inputproto has no variants
xorg-kbproto has no variants
xorg-libice has the variants:
   docs: Install extra documentation
   universal: Build for multiple architectures
xorg-libpthread-stubs has no variants
xorg-libsm has the variants:
   docs: Install extra documentation
   universal: Build for multiple architectures
xorg-libX11 has the variants:
   docs: Install extra documentation
   universal: Build for multiple architectures
xorg-libXau has the variants:
   universal: Build for multiple architectures
xorg-libxcb has the variants:
   docs: Install extra documentation
   python25: Use python 2.5
     * conflicts with python26 python27 python31 python32
   python26: Use python 2.6
     * conflicts with python25 python27 python31 python32
[+]python27: Use python 2.7
     * conflicts with python25 python26 python31 python32
   python31: Use python 3.1
     * conflicts with python25 python26 python27 python32
   python32: Use python 3.2
     * conflicts with python25 python26 python27 python31
   universal: Build for multiple architectures
xorg-libXdmcp has the variants:
   docs: Install extra documentation
   universal: Build for multiple architectures
xorg-libXext has the variants:
   docs: Install extra documentation
   universal: Build for multiple architectures
xorg-libXrandr has the variants:
   universal: Build for multiple architectures
xorg-libXt has the variants:
   universal: Build for multiple architectures
xorg-randrproto has no variants
xorg-renderproto has no variants
xorg-util-macros has no variants
xorg-xcb-proto has the variants:
   python25: Use python 2.5
     * conflicts with python26 python27 python31 python32
   python26: Use python 2.6
     * conflicts with python25 python27 python31 python32
[+]python27: Use python 2.7
     * conflicts with python25 python26 python31 python32
   python31: Use python 3.1
     * conflicts with python25 python26 python27 python32
   python32: Use python 3.2
     * conflicts with python25 python26 python27 python31
xorg-xcb-util has the variants:
   universal: Build for multiple architectures
xorg-xcmiscproto has the variants:
   docs: Install extra documentation
xorg-xextproto has the variants:
   docs: Install extra documentation
xorg-xf86bigfontproto has no variants
xorg-xproto has the variants:
   docs: Install extra documentation
xorg-xtrans has the variants:
   docs: Install extra documentation
xrender has the variants:
   universal: Build for multiple architectures
XviD has the variants:
   universal: Build for multiple architectures
xz has the variants:
   universal: Build for multiple architectures
yasm has the variants:
   universal: Build for multiple architectures
zlib has the variants:
   universal: Build for multiple architectures

comment:4 Changed 12 years ago by NicosPavlov

The uploaded file could be opened without any issue, and it indeed had a test annotation.

The only difference I can see in the dependencies is that I have by default the +no_x11 variant set, even though it is supposed to be a legacy one. (+no_foo variants are supposed to be replaced by -foo variants)

comment:5 Changed 12 years ago by jan.deluxe@…

Thank you for testing the file and checking your variants. Maybe the +no_x11/-x11 variant is the culprit then. I'm currently rebuilding okular and all of it's dependencies and will report back to you when it's done and hopefully working ;-).

comment:6 Changed 12 years ago by jan.deluxe@…

I don't get it. Still no luck. I did a clean install this time of kdegraphics4 in order to pull packages that might trigger the problem if not being installed. The variants are set to +qt4 +quartz -x11. If I build okular with the debug flag

port -d install okular

I get a message claiming that all available plugins are enabled (pdf, djvu, dvi, etc.).

I also executed

/opt/local/bin/kbuildsycoca4 --noincremental

deleted my ~/Library/Preferences/KDE directory, tried it with a newly created user account... nothing.

I don't know where to look anymore, any clues?

comment:7 Changed 12 years ago by NicosPavlov

Although it should not be the source of the issue, we never know: the +no_x11 may still influence some ports which did not do the transition yet.

Then, building okular with +debug may provide more information about the issue in the log.

Finally, sometimes launching the application from the terminal with command line may reveal another behaviour.

comment:8 in reply to:  7 Changed 12 years ago by jan.deluxe@…

Thank you for your suggestions, I'll try moving my /opt/local away and start with a fresh install issuing the +debug and +no_x11 variants. I tried launching from command line already but it didn't reveal anything new, but who knows, maybe the debug flag helps ;-). I won't be able to do it until next week. I Will report back to you then.

comment:9 in reply to:  7 Changed 12 years ago by jan.deluxe@…

I finally got it working! Here is what I did:

Building the application with the debug flag and starting it from command line revealed that it was looking for mime information in /opt/local/share/mime. First I had the same behavior as always (e.g. it didn't work). Then I issued the following commands

# make sure to have a clean environment
$ rm -r ~/Library/Preferences/KDE
$ rm -r /var/tmp/kdecache-username
# update the mime databse cache, ignore errors
$ sudo update-mime-database /opt/local/share/mime/
# rebuild the system configuration cache
$ kbuildsycoca4 --noincremental

I got the hint for looking at the update-mime-db command from here http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html#s2_layout after googleing for mime types and kde.

I can confirm now that okular works as expected with only the +quartz +qt4 -x11 variants set. Maybe the kde-builds should issue the update-mime-db-command after install?

Special thanks to nicos for staying tuned and providing many useful hints!

comment:10 Changed 12 years ago by NicosPavlov

Resolution: worksforme
Status: newclosed

Thank you for reporting this, it is nice to know that you could find a solution. While it is nice to know the solution to this issue, I doubt it should be necessary to run update mime db after each kde install. One simple reason is that if it was the case, there should have been far more reports about similar issues, while I have knowledge of no others.

Note: See TracTickets for help on using tickets.