Qt-interest Archive, January 2007
ssh forwarding of GUI
Message 1 in thread
Hello,
I have a Qt-program up and running on my local machine without
problems. However, I would like to run it on a remote system (which
is way faster than mine) but still be able to control and see it from
my laptop.
Normally, I would simply use
ssh -X me@iphere
which works very well with X11 applications. The system I am trying
to run the program on is a mac pro with OS X (Tiger) installed and my
Laptop is a powerbook with Tiger installed as well. If now I try to
start a Qt application on the remote machine it does not, as with
normal X11 applications, pipe the visual output to my screen but
opens it at the remote computer's screen (which is naturally not what
I want).
To come to my question: How do I set up Qt in order to be able to run
and see (!) qt applications run on a remote computer? I guess it
could be because I compiled Qt on the remote machine under OS X and
now it uses Carbon and not X11? Do I have to recompile Qt in order to
work with X11 and should it then work without problems?
Thanks a lot in advance, I am looking forward to hearing from you.
Greetings
Tim
--
[ signature omitted ]
Message 2 in thread
Tim Kietzmann schrieb:
> Hello,
> ..
> To come to my question: How do I set up Qt in order to be able to run
> and see (!) qt applications run on a remote computer? I guess it could
> be because I compiled Qt on the remote machine under OS X and now it
> uses Carbon and not X11?
If you have compiled the native Qt Mac version, then it uses indeed the
native API as to draw its widgets (I believe it's what you call
"Carbon", but not sure).
So the question is hence: can you re-display other Carbon-based (non-Qt)
applications using ssh, or does ssh only support X11 based applications
(what I strongly suspect)?
If not, then...
> Do I have to recompile Qt in order to work with
> X11 and should it then work without problems?
... you could try and use the X11 (Unix) version of Qt which then off
course depends on a running X11 server on your Mac as to display your Qt
X11 apps.
I believe the X11 Qt version should also be compileable on OSX, if you
have the proper development libraries installed (X11-devel etc. or
whatever the packages are called on OSX).
Good luck, Oliver
--
[ signature omitted ]
Message 3 in thread
On 1/16/07, Tim Kietzmann <tkietzma@xxxxxx> wrote:
> To come to my question: How do I set up Qt in order to be able to run
> and see (!) qt applications run on a remote computer? I guess it
> could be because I compiled Qt on the remote machine under OS X and
> now it uses Carbon and not X11? Do I have to recompile Qt in order to
> work with X11 and should it then work without problems?
SSH X-forwarding supports only X11 applications. It can't do anything
with native Mac OS X apps. If you want to use X-forwarding, you will
have to install the X11 version of Qt on your Mac and build your
application against that.
--
[ signature omitted ]
Message 4 in thread
Thanks for the information, I will try to get qt for X11 up and
running (hoping that I will see what I am doing :) )
For now, I tried to ./configure the X11 version of Qt and got the
following result:
Users/tim/Desktop/qt/qt-x11-opensource-src-4.2.2/src/corelib/global/
qglobal.cpp:1481:33: error: private/qcore_mac_p.h: No such file or
directory
/Users/tim/Desktop/qt/qt-x11-opensource-src-4.2.2/src/corelib/global/
qglobal.cpp:1486: error: 'OSErr' does not name a type
/Users/tim/Desktop/qt/qt-x11-opensource-src-4.2.2/src/corelib/global/
qglobal.cpp:1496: error: 'Str255' has not been declared
/Users/tim/Desktop/qt/qt-x11-opensource-src-4.2.2/src/corelib/global/
qglobal.cpp:1496: error: 'TextEncoding' has not been declared
... etc etc....
I know this is kind of off-topic, but could anybody tell me what to
do to get the X11 version compiled on a mac?
Thanks once more for your quick help, it is highly appreciated :)
Greetings
Tim
On 16.01.2007, at 19:38, Andrew Medico wrote:
> On 1/16/07, Tim Kietzmann <tkietzma@xxxxxx> wrote:
>
>> To come to my question: How do I set up Qt in order to be able to run
>> and see (!) qt applications run on a remote computer? I guess it
>> could be because I compiled Qt on the remote machine under OS X and
>> now it uses Carbon and not X11? Do I have to recompile Qt in order to
>> work with X11 and should it then work without problems?
>
> SSH X-forwarding supports only X11 applications. It can't do anything
> with native Mac OS X apps. If you want to use X-forwarding, you will
> have to install the X11 version of Qt on your Mac and build your
> application against that.
>
> --
> Andrew Medico <a.medico@xxxxxxxxx>
>
--
[ signature omitted ]
Message 5 in thread
On 1/16/07, Tim Kietzmann <tkietzma@xxxxxx> wrote:
> Thanks for the information, I will try to get qt for X11 up and
> running (hoping that I will see what I am doing :) )
>
> For now, I tried to ./configure the X11 version of Qt and got the
> following result:
>
> Users/tim/Desktop/qt/qt-x11-opensource-src-4.2.2/src/corelib/global/
> qglobal.cpp:1481:33: error: private/qcore_mac_p.h: No such file or
> directory
I get the same error (on 10.4.8). Try a different point release. The
Mac X11 Opensource distribution has been broken before.
--
[ signature omitted ]
Message 6 in thread
Hi,
> For now, I tried to ./configure the X11 version of Qt and got the
> following result:
Unfortunately Qt/X11 is not supported on Mac. If I recall correctly,
you'll have to tweak "configure" so that it recognizes your platform as
an X11 platform in addition to using:
./configure -platform darwin-g++
Look for the PLATFORM_X11 and PLATFORM_MAC variables and check how they
are initialized in the "configure" script.
--
[ signature omitted ]