Re: [Qt-creator] Qt Creator portable for Windows

2010-06-08 Thread Coda Highland
Holy crap, I forgot all about subst. It's been forever since I've used it.

Yeah, that'll work. That'll work beautifully. Just create a subst'ed
virtual drive, install Qt on it, and then modify qtvars.bat to make
sure the subst is in place.

/s/ Adam

On Tue, Jun 8, 2010 at 7:08 PM, M. Bashir Al-Noimi  wrote:
> Hello,
>
> As Coda said, it's easy to make Qt Creator portable but what about Qt?
> Qt installer in windows needs absolute paths (at the end of installing
> process you'll find that the installer execute patches for absolute paths)
> so making Qt it self portable is exhausted procedure but I fixed this issue
> easy when I used TrueCrypt because it's creating virtual hard drive on your
> portable media thus you can install Qt and Qt Creator on you portable media
> then you can load it anywhere you go.
>
> If you don't want to use TrueCrypt try this instead:
> Create patch file (*.bat) and include "subst" command for creating virtual
> drive from specific folder (you can point to relative path of folder by
> using %CD% constant).
>
> On 08/06/2010 11:46 م, Coda Highland wrote:
>
>  Qt looks for plugins in a path predetermined at build time. I think
> you can override this behavior with a qt.conf file in the same
> directory as the .exe file, but I don't know the syntax of this file
> and you'd have to put that file alongside every .exe generated by
> Creator as well. (It may be possible to do this by hacking on qt.prf?
> I'm not sure.)
>
> /s/ Adam
>
> On Tue, Jun 8, 2010 at 4:27 PM, Sergio de la Cruz Rodriguez
>  wrote:
>
>
> Hi:
>
> I'm using Qt/QtCreator to teach Medical Informatics to about 50
> students. They are working these days in their final project. Some of
> them can only use PC's without admin rights at college facilities. If
> they are lucky they can find someone with admin rights that can install
> Qt Creator for them but when they log in their guest accounts they find
> that they have to tweak the environment variables for the guest account
> (as in qtcreatordist/bin/qtenv.bat) so Qt Creator can successfully
> compile a project. This seems to happen whatever version of Qt Creator
> you use. Why there is no "Install for all users" checkbox in the Qt
> Creator installer? It would be very useful.
>
> I have tried to make for them a portable version of Qt Creator (copying
> the folder Qt/20xx.xx/ and its subfolders). Even after changing the
> environment variables Qt Creator doesn't run (complains about
> misconfigured settings), neither does Qt Assistant (could not load
> sqlite module), neither does Qt Demo (memory at 000 not writable). The
> Qt Designer runs OK. If you run the "portable" version in a PC that
> already has Qt Creator installed it runs OK too. Am I missing something?
> Can you help me with this?
>
> I have other concerns about using Qt/Qt Creator in education but I will
> address them later.
>
> Regards,
>
> Sergio
>
> Participe en la 15 Convención Científica de Ingeniería y Arquitectura, del
> 29 de noviembre al 3 de diciembre de 2010
> La Ingeniería y la Arquitectura por un Futuro Sustentable
>
> Palacio de Convenciones, La Habana, Cuba
> http://www.cujae.edu.cu/eventos/convencion
>
>
> --
> Best Regards
> Muhammad Bashir Al-Noimi
> My Blog: http://mbnoimi.net
>
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Qt Creator portable for Windows

2010-06-08 Thread M. Bashir Al-Noimi

Hello,

As Coda said, it's easy to make Qt Creator portable but what about Qt?
Qt installer in windows needs absolute paths (at the end of installing 
process you'll find that the installer execute patches for absolute 
paths) so making Qt it self portable is exhausted procedure but I fixed 
this issue easy when I used TrueCrypt  
because it's creating virtual hard drive on your portable media thus you 
can install Qt and Qt Creator on you portable media then you can load it 
anywhere you go.


If you don't want to use TrueCrypt try this instead:
Create patch file (*.bat) and include "*subst*" command for creating 
virtual drive from specific folder (you can point to relative path of 
folder by using %CD% constant).


On 08/06/2010 11:46 م, Coda Highland wrote:

Qt looks for plugins in a path predetermined at build time. I think
you can override this behavior with a qt.conf file in the same
directory as the .exe file, but I don't know the syntax of this file
and you'd have to put that file alongside every .exe generated by
Creator as well. (It may be possible to do this by hacking on qt.prf?
I'm not sure.)

/s/ Adam

On Tue, Jun 8, 2010 at 4:27 PM, Sergio de la Cruz Rodriguez
  wrote:
   

Hi:

I'm using Qt/QtCreator to teach Medical Informatics to about 50
students. They are working these days in their final project. Some of
them can only use PC's without admin rights at college facilities. If
they are lucky they can find someone with admin rights that can install
Qt Creator for them but when they log in their guest accounts they find
that they have to tweak the environment variables for the guest account
(as in qtcreatordist/bin/qtenv.bat) so Qt Creator can successfully
compile a project. This seems to happen whatever version of Qt Creator
you use. Why there is no "Install for all users" checkbox in the Qt
Creator installer? It would be very useful.

I have tried to make for them a portable version of Qt Creator (copying
the folder Qt/20xx.xx/ and its subfolders). Even after changing the
environment variables Qt Creator doesn't run (complains about
misconfigured settings), neither does Qt Assistant (could not load
sqlite module), neither does Qt Demo (memory at 000 not writable). The
Qt Designer runs OK. If you run the "portable" version in a PC that
already has Qt Creator installed it runs OK too. Am I missing something?
Can you help me with this?

I have other concerns about using Qt/Qt Creator in education but I will
address them later.

Regards,

Sergio

Participe en la 15 Convención Científica de Ingeniería y Arquitectura, del 29 
de noviembre al 3 de diciembre de 2010
La Ingeniería y la Arquitectura por un Futuro Sustentable

Palacio de Convenciones, La Habana, Cuba
http://www.cujae.edu.cu/eventos/convencion
 


--
Best Regards
Muhammad Bashir Al-Noimi
My Blog: http://mbnoimi.net

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Qt Creator portable for Windows

2010-06-08 Thread Coda Highland
Qt looks for plugins in a path predetermined at build time. I think
you can override this behavior with a qt.conf file in the same
directory as the .exe file, but I don't know the syntax of this file
and you'd have to put that file alongside every .exe generated by
Creator as well. (It may be possible to do this by hacking on qt.prf?
I'm not sure.)

/s/ Adam

On Tue, Jun 8, 2010 at 4:27 PM, Sergio de la Cruz Rodriguez
 wrote:
> Hi:
>
> I'm using Qt/QtCreator to teach Medical Informatics to about 50
> students. They are working these days in their final project. Some of
> them can only use PC's without admin rights at college facilities. If
> they are lucky they can find someone with admin rights that can install
> Qt Creator for them but when they log in their guest accounts they find
> that they have to tweak the environment variables for the guest account
> (as in qtcreatordist/bin/qtenv.bat) so Qt Creator can successfully
> compile a project. This seems to happen whatever version of Qt Creator
> you use. Why there is no "Install for all users" checkbox in the Qt
> Creator installer? It would be very useful.
>
> I have tried to make for them a portable version of Qt Creator (copying
> the folder Qt/20xx.xx/ and its subfolders). Even after changing the
> environment variables Qt Creator doesn't run (complains about
> misconfigured settings), neither does Qt Assistant (could not load
> sqlite module), neither does Qt Demo (memory at 000 not writable). The
> Qt Designer runs OK. If you run the "portable" version in a PC that
> already has Qt Creator installed it runs OK too. Am I missing something?
> Can you help me with this?
>
> I have other concerns about using Qt/Qt Creator in education but I will
> address them later.
>
> Regards,
>
> Sergio
>
> Participe en la 15 Convención Científica de Ingeniería y Arquitectura, del 29 
> de noviembre al 3 de diciembre de 2010
> La Ingeniería y la Arquitectura por un Futuro Sustentable
>
> Palacio de Convenciones, La Habana, Cuba
> http://www.cujae.edu.cu/eventos/convencion
>
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Qt Creator portable for Windows

2010-06-08 Thread Sergio de la Cruz Rodriguez
Hi:

I'm using Qt/QtCreator to teach Medical Informatics to about 50
students. They are working these days in their final project. Some of
them can only use PC's without admin rights at college facilities. If
they are lucky they can find someone with admin rights that can install
Qt Creator for them but when they log in their guest accounts they find
that they have to tweak the environment variables for the guest account
(as in qtcreatordist/bin/qtenv.bat) so Qt Creator can successfully
compile a project. This seems to happen whatever version of Qt Creator
you use. Why there is no "Install for all users" checkbox in the Qt
Creator installer? It would be very useful.

I have tried to make for them a portable version of Qt Creator (copying
the folder Qt/20xx.xx/ and its subfolders). Even after changing the
environment variables Qt Creator doesn't run (complains about
misconfigured settings), neither does Qt Assistant (could not load
sqlite module), neither does Qt Demo (memory at 000 not writable). The
Qt Designer runs OK. If you run the "portable" version in a PC that
already has Qt Creator installed it runs OK too. Am I missing something?
Can you help me with this?

I have other concerns about using Qt/Qt Creator in education but I will
address them later.

Regards,

Sergio

Participe en la 15 Convención Científica de Ingeniería y Arquitectura, del 
29 de noviembre al 3 de diciembre de 2010
La Ingeniería y la Arquitectura por un Futuro Sustentable

Palacio de Convenciones, La Habana, Cuba
http://www.cujae.edu.cu/eventos/convencion 
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Disassemble output with source code?

2010-06-08 Thread Stephen Chu
On 6/8/10 10:54 AM, André Pönitz wrote:
> On Tuesday 08 June 2010 15:28:11 ext Stephen Chu wrote:
>> Here's the debugger log. It's done with snapshot 201006070030 in OS X
>> 10.5.8.
>
> It says "Apple version gdb-967."
>
> Does this support mixed disassembler/source code at all?

I don't know if it supports it or not. My guess is it doesn't. But 
that's the version that comes with Xcode 3.1.4 which is the highest 
version compatible with OS X 10.5.

I guess I am out of luck. :)

-- 
Stephen Chu


___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Exception debugging

2010-06-08 Thread Laurent Desmecht
On Tue, 8 Jun 2010 16:37:54 +0200  André_Pönitz  
wrote

> On Tuesday 08 June 2010 15:07:38 ext Laurent Desmecht wrote:
> > Hi everybody
> >
> > I am debugging some code in qtcreator, this issue is that the debugger
> > don't
> > stop when an exception is thrown. Because of this it's quite difficult to
> > debug
> > one crash.
> 
> > In gdb, it is possible to add a break point with the command "catch throw"
> > but
> > I have not found any way to do this in qtcreator.
> 
> Break View, context menu, "Set Breakpoint at "throw"".
> 
> If it's not there, set a breakpoint on the function "__cxa_throw".
> 
> Andre'

Thank you, it is exactly what I was looking for.

Laurent


___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Disassemble output with source code?

2010-06-08 Thread André Pönitz
On Tuesday 08 June 2010 15:28:11 ext Stephen Chu wrote:
> Here's the debugger log. It's done with snapshot 201006070030 in OS X 
> 10.5.8.

It says "Apple version gdb-967."

Does this support mixed disassembler/source code at all?

I.e. can you get such output from this version of gdb 
when run "manually" from a terminal?

Andre'
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Exception debugging

2010-06-08 Thread André Pönitz
On Tuesday 08 June 2010 15:07:38 ext Laurent Desmecht wrote:
> Hi everybody
> 
> I am debugging some code in qtcreator, this issue is that the debugger don't
> stop when an exception is thrown. Because of this it's quite difficult to 
> debug 
> one crash.

> In gdb, it is possible to add a break point with the command "catch throw" but
> I have not found any way to do this in qtcreator.

Break View, context menu, "Set Breakpoint at "throw"".

If it's not there, set a breakpoint on the function "__cxa_throw".

Andre'
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Debugger interruptions

2010-06-08 Thread André Pönitz
On Tuesday 08 June 2010 14:55:14 ext Gena Cid wrote:
> 
> Tue, 8 Jun 2010 14:15:47 +0200 письмо от AndrИ PЖnitz 
> :
> 
> > On Tuesday 08 June 2010 13:15:49 ext Gena Cid wrote:
> > >  #include 
> > > 2 
> > > 3 int main()
> > > 4 {
> > > 5   int i = 10;
> > > 6   std::string str("boo");
> > > 7   return 0;
> > > 8 }
> > 
> > Works here, also with gdb 7.0.1.
> > 
> > The log indicates you've switched on 'Enable reverse debugging'.
> > Does it make a difference if you switch that off?
> > 
> 
> You were right! After switching this option off, I am able to continue 
> debugging.
> 
> However some time ago, when I was testing this feature (may be a month ago), 
> debugger worked fine..

Right now I have the impression that gdb's reverse execution is too slow 
and not robust enough for daily work, even in 7.1. So it's nice to have
the option, but it should be used very consciously ;-)

Andre'

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Exception debugging

2010-06-08 Thread Laurent Desmecht
Hi everybody

I am debugging some code in qtcreator, this issue is that the debugger don't
stop when an exception is thrown. Because of this it's quite difficult to debug 
one crash.
In gdb, it is possible to add a break point with the command "catch throw" but
I have not found any way to do this in qtcreator.

Laurent


___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] 64-bit debugging helper on OS X 10.5?

2010-06-08 Thread Eike Ziller
Hi,

On Jun 2, 2010, at 4:23 PM, ext Stephen Chu wrote:

> Now I can't debug 64-bit code with the last few snapshots, even without 
> debugger helper.
> 
> It looks like gdb is not set to x86_64 when debugging. I got this error:
> 
> A handler for the OS ABI "Darwin" is not built into this configuration
> of GDB.  Attempting to continue with the default i386:x86-64 settings.

I had this problem before as well, but was never able to reproduce it again, in 
the end:
http://bugreports.qt.nokia.com/browse/QTCREATORBUG-430

++ Eike

> 
> I attached the debugger log. I use this project setting to force Creator 
> to build x86_64 on OS X 10.5:
> 
>   CONFIG(debug, debug|release) {
>   CONFIG += x86_64
>   CONFIG -= x86
>   }
> 
> It does build a 64-bit binary. I just can not debug it. And I was able 
> to a week or 2 ago.
> 
> Is 64-bit development only supported in OS X 10.6 now?
> 
> -- 
> Stephen Chu
> 
> 
> <64bitdebuglog.txt>

-- 
Eike Ziller
Software Engineer
Nokia, Qt Development Frameworks

Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori




___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Debugger interruptions

2010-06-08 Thread Gena Cid

Tue, 8 Jun 2010 14:15:47 +0200 письмо от AndrИ PЖnitz :

> On Tuesday 08 June 2010 13:15:49 ext Gena Cid wrote:
> >  #include 
> > 2 
> > 3 int main()
> > 4 {
> > 5   int i = 10;
> > 6   std::string str("boo");
> > 7   return 0;
> > 8 }
> 
> Works here, also with gdb 7.0.1.
> 
> The log indicates you've switched on 'Enable reverse debugging'.
> Does it make a difference if you switch that off?
> 

You were right! After switching this option off, I am able to continue 
debugging.

However some time ago, when I was testing this feature (may be a month ago), 
debugger worked fine..


-|-
Gena.
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Debugger interruptions

2010-06-08 Thread André Pönitz
On Tuesday 08 June 2010 13:15:49 ext Gena Cid wrote:
>  #include 
> 2 
> 3 int main()
> 4 {
> 5   int i = 10;
> 6   std::string str("boo");
> 7   return 0;
> 8 }

Works here, also with gdb 7.0.1.

The log indicates you've switched on 'Enable reverse debugging'.
Does it make a difference if you switch that off?

Andre'
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Deploying multiple files to Maemo device?

2010-06-08 Thread Christian Kandeler
On 06/07/2010 11:16 PM, ext Christoph Keller wrote:

> I tried the latest QtCreator snapshot. Like you wrote, it allows me to
> deploy the package the the device. Unfortunately QtCreator only builds
> new packages. I already have my package settings which I don't want to
> change.
> Will there be a way to "just build" the package and tell QtCreator which
> executable it should run on the device?

Hm, I don't think I quite understand your scenario. What kind of 
"package settings" do you have where? And what exactly should Creator do 
and not do for you?


Christian
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator