{"id":527,"date":"2009-12-03T00:42:56","date_gmt":"2009-12-02T22:42:56","guid":{"rendered":"http:\/\/www.instruyete.org\/?p=128"},"modified":"2009-12-03T00:42:56","modified_gmt":"2009-12-02T22:42:56","slug":"qt-und-jpeg-support-auf-mac-os-x","status":"publish","type":"post","link":"https:\/\/www.instruyete.org\/?p=527","title":{"rendered":"Qt und jpeg Support auf Mac OS X"},"content":{"rendered":"<p>Wer auf einem Mac das (mitterweile von Nokia stammende) <a href=\"http:\/\/qt.nokia.com\/downloads\/sdk-mac-os-cpp\" title=\"Qt SDK download\"><strong>Qt SDK<\/strong><\/a> installiert und in seinem Programm jpeg Support ben\u00f6tigt wird schnell feststellen, dass dieser abhanden kommt, wenn man in seine Applikation <em>Qt-Frameworks<\/em> einbindet.<\/p>\n<p><a href=\"http:\/\/qt.nokia.com\/doc\/4.6\/qimagewriter.html#supportedImageFormats\">QImageWriter::supportedImageFormats<\/a>() wird <strong>.jpg\/.jpeg<\/strong> nicht mehr aufz\u00e4hlen.<\/p>\n<p><strong>qconfig.pri<\/strong> welches die Qt Konfiguration beschreibt, listet <em>jpeg<\/em> Support in <strong>QT_CONFIG<\/strong> nicht auf &#8211; weder als system-jpeg noch als einkompiliertes Modul. Die Datei befindet sich \u00fcbrigens (bei Qt 4.5) unter <strong>\/usr\/local\/Qt4.5\/mkspecs<\/strong><\/p>\n<p>Die L\u00f6sung ist eine plugin Library: <strong>libqjpeg.dylib<\/strong> welche sich unter<\/p>\n<p><strong>\/Developer\/Applications\/Qt\/plugins\/imageformats<\/strong><\/p>\n<p>befindet. Auch diese Datei muss in das <em>Applikation Bundle<\/em> mitaufgenommen werden, die Referenz\u00a0 mit <strong>install_name_tool<\/strong> ge\u00e4ndert werden, und <strong>QApplication<\/strong> muss der plugin Pfad mitgeteilt werden.<\/p>\n<p>Eine genaue Anleitungung dazu findet sich in der ausgezeichneten Qt Hilfe unter dem Stichwort:<\/p>\n<p><strong>Deploying an Application on Mac OS X <\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wer auf einem Mac das (mitterweile von Nokia stammende) Qt SDK installiert und in seinem Programm jpeg Support ben\u00f6tigt wird schnell feststellen, dass dieser abhanden kommt, wenn man in seine Applikation Qt-Frameworks einbindet. QImageWriter::supportedImageFormats() wird .jpg\/.jpeg nicht mehr aufz\u00e4hlen. qconfig.pri welches die Qt Konfiguration beschreibt, listet jpeg Support in QT_CONFIG nicht auf &#8211; weder als &hellip; <a href=\"https:\/\/www.instruyete.org\/?p=527\" class=\"more-link\"><span class=\"screen-reader-text\">Qt und jpeg Support auf Mac OS X<\/span> weiterlesen<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,7],"tags":[],"class_list":["post-527","post","type-post","status-publish","format-standard","hentry","category-macos","category-unix"],"_links":{"self":[{"href":"https:\/\/www.instruyete.org\/index.php?rest_route=\/wp\/v2\/posts\/527","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.instruyete.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.instruyete.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.instruyete.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.instruyete.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=527"}],"version-history":[{"count":0,"href":"https:\/\/www.instruyete.org\/index.php?rest_route=\/wp\/v2\/posts\/527\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.instruyete.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.instruyete.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=527"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.instruyete.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}