[Qt-interest] Building JPEG2000 image plugin

Cole, Derek dcole at integrity-apps.com
Tue Jun 7 17:53:52 CEST 2011


Sorry..prematurely sent that last email.

Anyhow..I added the line

include(./qtjp2imageformat/qtjp2imageformat.pro)

to my actual project's .pro file

And tried to follow the simple example with sometjhing like:

    if(filename.endsWith("jp2", Qt::CaseInsensitive))
    {

        qDebug("Image is a JPEG2000");
        QPixmap pixmap;
        if(!pixmap.load(filename))
            qDebug("Could not load jpeg2000 image");
   }

but it never does recognize the format.

What do I need to do to be able to use this image format?

Thanks!
________________________________
From: Cole, Derek
Sent: Tuesday, June 07, 2011 11:51 AM
To: qt-interest at qt.nokia.com
Subject: Building JPEG2000 image plugin

    Hello,

I am trying to use images in the jpeg2000 format in my software. I fiound http://qt.gitorious.org/qt-solutions/qt-solutions/trees/master/qtjp2imageformat


How exactly to I add a plugin to QT though? I read the build instructions for this, and I saw I needed jasper. I downloaded jasper, and installed it in my local home directory (dont have full rights to let it install in /usr anywhere).

I then edited the qtjpimageformat.pri file to add in the location to the include and lib folders of my jasper install. I then loaded the qtjp2imageformat.pro file into QTCreator, and commented out the line: include(common.pri) since I have no idea where that is coming from.

Then I tried to build the project, and it is acting like it cant see jasper at all.


I also just tried just copying the entire qtjp2imageformat folder under my actual project folder, and added the line



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110607/fc3de789/attachment.html 


More information about the Qt-interest-old mailing list