Qt-jambi-interest Archive, February 2007
QT_PLUGIN_PATH set/unset problem
Message 1 in thread
Hello,
I have a problem with the environment variable QT_PLUGIN_PATH and the access
to the jpg and gif image formats.
1) the first time I did set QT_PLUGIN_PATH, I could see that jpg and gid
were handled by qt jambi properly.
2) I did unset QT_PLUGIN_PATH just to experiment other stuffs. I lost
jpg/gif handling which was expected.
3) I did set it again, and I can´t find any way to get the jpg/gif handling
to come back!
I checked the registry, tried to reinstall things, but nothing works.
How to proceed to clean my config and get jpg/gif handling again ?
Regards
--
[ signature omitted ]
Message 2 in thread
Hi, Bruno.
Bruno Janvier wrote:
> Hello,
>
> I have a problem with the environment variable QT_PLUGIN_PATH and the
> access to the jpg and gif image formats.
>
> 1) the first time I did set QT_PLUGIN_PATH, I could see that jpg and
> gid were handled by qt jambi properly.
> 2) I did unset QT_PLUGIN_PATH just to experiment other stuffs. I lost
> jpg/gif handling which was expected.
> 3) I did set it again, and I can´t find any way to get the jpg/gif
> handling to come back!
Qt keeps a cache of plugins it has been unable to load in the registry.
The location is
HKEY_CURRENT_USER\Software\Trolltech\OrganizationDefaults\Qt Plugin
Cache 4.3 (false)
If you e.g. have run a regular Qt application against the same
QT_PLUGIN_PATH, then it will most likely have detected that the plugins
there are incompatible with its own Qt version and marked them as such
in the registry. Could you try deleting the above entry to see if this
resolves the problem?
-- Eskil
Message 3 in thread
no, it didn't really solved the problem.
sorry I have a hard time now to explain everything I have done to help you
to find an answer.
But I know that:
1) QT_PLUGIN_PATH environment variable is properly set
2) the entry
HKEY_CURRENT_USER\Software\Trolltech\OrganizationDefaults\Qt Plugin Cache
4.3.false
was deleted
and still I do not get the qt jambi to handle jpeg/gif.
something with eclipse?
some files cached on disk that I could delete ?
On 2/21/07, Eskil A. Blomfeldt <eblomfel@xxxxxxxxxxxxx> wrote:
>
> Hi, Bruno.
>
> Bruno Janvier wrote:
>
> > Hello,
> >
> > I have a problem with the environment variable QT_PLUGIN_PATH and the
> > access to the jpg and gif image formats.
> >
> > 1) the first time I did set QT_PLUGIN_PATH, I could see that jpg and
> > gid were handled by qt jambi properly.
> > 2) I did unset QT_PLUGIN_PATH just to experiment other stuffs. I lost
> > jpg/gif handling which was expected.
> > 3) I did set it again, and I can´t find any way to get the jpg/gif
> > handling to come back!
>
>
> Qt keeps a cache of plugins it has been unable to load in the registry.
> The location is
> HKEY_CURRENT_USER\Software\Trolltech\OrganizationDefaults\Qt Plugin
> Cache 4.3 (false)
>
> If you e.g. have run a regular Qt application against the same
> QT_PLUGIN_PATH, then it will most likely have detected that the plugins
> there are incompatible with its own Qt version and marked them as such
> in the registry. Could you try deleting the above entry to see if this
> resolves the problem?
>
> -- Eskil
>
--
[ signature omitted ]
Message 4 in thread
Hi, Bruno.
Bruno Janvier wrote:
> no, it didn't really solved the problem.
> sorry I have a hard time now to explain everything I have done to help
> you to find an answer.
>
> But I know that:
> 1) QT_PLUGIN_PATH environment variable is properly set
What exactly is the QT_PLUGIN_PATH set to, please? And does the PATH
environment variable by any chance contain an installation of Qt?
> and still I do not get the qt jambi to handle jpeg/gif.
> something with eclipse?
Are you running your application from within Eclipse, or is this a
problem in the Eclipse integration?
> some files cached on disk that I could delete ?
>
No, there shouldn't be.
-- Eskil
Message 5 in thread
here are my information:
QT_PLUGIN_PATH=C:\qtjambi-win-1.0.0-beta\plugins
PATH=..stuffs..;C:\qtjambi-win-1.0.0-beta\bin
I got no other qt installation in the path.
I run the application from eclipse F11
any hints?
On 2/22/07, Eskil A. Blomfeldt <eblomfel@xxxxxxxxxxxxx> wrote:
>
> Hi, Bruno.
>
> Bruno Janvier wrote:
>
> > no, it didn't really solved the problem.
> > sorry I have a hard time now to explain everything I have done to help
> > you to find an answer.
> >
> > But I know that:
> > 1) QT_PLUGIN_PATH environment variable is properly set
>
>
> What exactly is the QT_PLUGIN_PATH set to, please? And does the PATH
> environment variable by any chance contain an installation of Qt?
>
> > and still I do not get the qt jambi to handle jpeg/gif.
> > something with eclipse?
>
> Are you running your application from within Eclipse, or is this a
> problem in the Eclipse integration?
>
> > some files cached on disk that I could delete ?
> >
>
> No, there shouldn't be.
>
> -- Eskil
>
--
[ signature omitted ]
Message 6 in thread
Hello Eskil,
This problem seems to be solved for me. Sorry I still can´t explain what has
happened for the plugins to come back.
Just for you to know, I noticed:
- the image plugins were found by the image viewer run via qtjambi.exe but
for a while not by my own program run from eclipse
- I made a downgrade from java6 to java5 prior to the problem
- In the process of finding a solution I deleted some old qt libraries
located in the JWS cache.
- I did rebuild the jar of my program via the export function of eclipe, and
just after that the plugins were found again... strange isn´t it...
This really leads me to believe that there is something related to eclipse
there....
Regards,
Bruno
On 2/22/07, Bruno Janvier <brunojanvier@xxxxxxxxx > wrote:
>
> here are my information:
>
> QT_PLUGIN_PATH=C:\qtjambi-win-1.0.0-beta\plugins
> PATH=..stuffs..;C:\qtjambi-win-1.0.0-beta\bin
>
> I got no other qt installation in the path.
> I run the application from eclipse F11
>
> any hints?
>
>
> On 2/22/07, Eskil A. Blomfeldt < eblomfel@xxxxxxxxxxxxx> wrote:
> >
> > Hi, Bruno.
> >
> > Bruno Janvier wrote:
> >
> > > no, it didn't really solved the problem.
> > > sorry I have a hard time now to explain everything I have done to help
> > > you to find an answer.
> > >
> > > But I know that:
> > > 1) QT_PLUGIN_PATH environment variable is properly set
> >
> >
> > What exactly is the QT_PLUGIN_PATH set to, please? And does the PATH
> > environment variable by any chance contain an installation of Qt?
> >
> > > and still I do not get the qt jambi to handle jpeg/gif.
> > > something with eclipse?
> >
> > Are you running your application from within Eclipse, or is this a
> > problem in the Eclipse integration?
> >
> > > some files cached on disk that I could delete ?
> > >
> >
> > No, there shouldn't be.
> >
> > -- Eskil
> >
>
>
>
> --
> Bruno Janvier PhD
> Software Engineer
>
> inRiver AB - Vindeln lab
> Karlsgårdsv 22
> S-922 32 Vindeln
> Sweden
> Phone: +46 (0)933 109 00
>
--
[ signature omitted ]