| Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 2 | |
Hi
I am trying to build a stand alone application for my software on Windows platform. For that I configured my QT v 4.1.1 from its command prompt by running the command
C:\Qt\4.1.1>configure -debug -static -qt-gif -system-libjpeg
and also
C:\Qt\4.1.1>configure -debug -static -qt-gif -qt-libjpeg
But even after running both the methods (Ran the second when First didn't work), it WAS NOT ABLE TO TAKE JPEG IMAGES in the stand alone application. The exe executes fine on the system (with Windows OS) and is taking .png images but not getting .jpeg files even if I keep the actual images also with the exe.
Can anyone plzz help me to figure out what mistake I m doing ?? I am using VC++ 6.0 for IDE
Regards
Ritzz
---------------------------------
Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when.
Did you use the Q_IMPORT_PLUGIN() to include the "static plugin" in your application? Regards, Malte Raja Raja <lallu1901@xxxxxxxxx> schrieb am 09.07.2007 16:35:57: > Hi > I am trying to build a stand alone application for my software on > Windows platform. For that I configured my QT v 4.1.1 from its > command prompt by running the command > > C:\Qt\4.1.1>configure -debug -static -qt-gif -system-libjpeg > > and also > > C:\Qt\4.1.1>configure -debug -static -qt-gif -qt-libjpeg > > But even after running both the methods (Ran the second when First > didn't work), it WAS NOT ABLE TO TAKE JPEG IMAGES in the stand alone > application. The exe executes fine on the system (with Windows OS) > and is taking .png images but not getting .jpeg files even if I keep > the actual images also with the exe. > > Can anyone plzz help me to figure out what mistake I m doing ?? I am > using VC++ 6.0 for IDE > > Regards > Ritzz > Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see > what's on, when. -- [ signature omitted ]
Hi,
I havent used Q_IMPORT_PLUGIN() and the application builded is static in nature - I mean to say that the application is running fine on PC where QT is not installed. The only problem is that it i not taking .Jpeg images.
I even included "#include <QPluginLoader>" in my code this time and then again rebuilded but to no use.
Reagrds,
Ritzzz
Malte Witt <malte.witt@xxxxxxxxxxxxx> wrote:
Did you use the Q_IMPORT_PLUGIN() to include the "static plugin" in your
application?
Regards,
Malte
Raja Raja schrieb am 09.07.2007 16:35:57:
> Hi
> I am trying to build a stand alone application for my software on
> Windows platform. For that I configured my QT v 4.1.1 from its
> command prompt by running the command
>
> C:\Qt\4.1.1>configure -debug -static -qt-gif -system-libjpeg
>
> and also
>
> C:\Qt\4.1.1>configure -debug -static -qt-gif -qt-libjpeg
>
> But even after running both the methods (Ran the second when First
> didn't work), it WAS NOT ABLE TO TAKE JPEG IMAGES in the stand alone
> application. The exe executes fine on the system (with Windows OS)
> and is taking .png images but not getting .jpeg files even if I keep
> the actual images also with the exe.
>
> Can anyone plzz help me to figure out what mistake I m doing ?? I am
> using VC++ 6.0 for IDE
>
> Regards
> Ritzz
> Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see
> what's on, when.
--
[ signature omitted ]
Message 4 in thread
> I havent used Q_IMPORT_PLUGIN() and the application builded is > static in nature - I mean to say that the application is running > fine on PC where QT is not installed. The only problem is that it i not taking .Jpeg images. > I even included "#include <QPluginLoader>" in my code this time > and then again rebuilded but to no use. Add to any .cpp: #include <QtPlugin> Q_IMPORT_PLUGIN(qjpeg) add to .pro: QTPLUGIN += qjpeg qmake, nmake, test. -- [ signature omitted ]
Hey Dear
Thanks a Lot ... It worked .. Thanks again :)
@Ritzz
Ivan Kharin <korsar.akvis@xxxxxxxxx> wrote:
> I havent used Q_IMPORT_PLUGIN() and the application builded is
> static in nature - I mean to say that the application is running
> fine on PC where QT is not installed. The only problem is that it i not taking .Jpeg images.
> I even included "#include " in my code this time
> and then again rebuilded but to no use.
Add to any .cpp:
#include
Q_IMPORT_PLUGIN(qjpeg)
add to .pro:
QTPLUGIN += qjpeg
qmake, nmake, test.
--
[ signature omitted ]
Message 6 in thread
Hi
The code started working after making the change as suggested but now the problem is that it is taking .jpeg and .jpg on the systems where QT is NOT installed, whereas the same exe is not taking images on the systems where QT is installed.
THIS PROBLM IS WHEN TRYING TO LOAD IMAGE IN THE RUNNING (loaded) EXE (like selecting some image and then displaying it in a label from the exe). It takes the images (.jpeg and .png) which are given to be loaded in the exe at its compile time.
Also the code has now stopped taking .png files when loaded at run time!!
I am writting the code that I added -
In "Main.cpp" ->
#include <QtPlugin>
Q_IMPORT_PLUGIN(qjpeg)
Q_IMPORT_PLUGIN(qgif)
In ".pro" file
QTPLUGIN += qjpeg qgif qmng
And in "Makefile.Debug" ->
QMAKE_LFLAGS += -L$$[QT_INSTALL_PLUGINS]/imageformats
Can anybody Please help me out what wrong I m doing now ???
Regards,
@Ritzz
Raja Raja <lallu1901@xxxxxxxxx> wrote:
Hey Dear
Thanks a Lot ... It worked .. Thanks again :)
@Ritzz
Ivan Kharin <korsar.akvis@xxxxxxxxx> wrote:
> I havent used Q_IMPORT_PLUGIN() and the application builded is
> static in nature - I mean to say that the application is running
> fine on PC where QT is not installed. The only problem is that it i not taking .Jpeg images.
> I even included "#include " in my code this time
> and then again rebuilded but to no use.
Add to any .cpp:
#include
Q_IMPORT_PLUGIN(qjpeg)
add to .pro:
QTPLUGIN += qjpeg
qmake, nmake, test.
--
[ signature omitted ]
Message 7 in thread
Hey Dear
Thanks a Lot ... It worked .. Thanks again :)
@Ritzz
Ivan Kharin <korsar.akvis@xxxxxxxxx> wrote:
> I havent used Q_IMPORT_PLUGIN() and the application builded is
> static in nature - I mean to say that the application is running
> fine on PC where QT is not installed. The only problem is that it i not taking .Jpeg images.
> I even included "#include " in my code this time
> and then again rebuilded but to no use.
Add to any .cpp:
#include
Q_IMPORT_PLUGIN(qjpeg)
add to .pro:
QTPLUGIN += qjpeg
qmake, nmake, test.
--
[ signature omitted ]