Results 1 to 4 of 4

Thread: Can't get qvfb to work on Mac OS X

  1. #1
    Join Date
    Mar 2010
    Posts
    2
    Qt products
    Qt/Embedded

    Default Can't get qvfb to work on Mac OS X

    Hi,

    I'm trying to run the examples/widgets/wiggly using qvfb on Mac OS X.

    No matter what I do qvfb starts and opens a empty window and
    when I start wiggly it starts in a window of its own as a native Mac OS
    application using Mac graphics pipeline instead of the qvfb, I presume.

    Here is what I do.

    I've installed the full Qt SDK from

    http://qt.nokia.com/downloads/sdk-mac-os-cpp

    I then downloaded this file:

    qt-everywhere-opensource-src-4.6.2.tar

    and extracted the contents to this dir:

    /qt-qvfb-4.6.2

    I then 'cd' into that dir and configure as follows:

    ./configure -qt-gfx-qvfb -qt-kbd-qvfb -qt-mouse-qvfb -prefix /qt-qvfb-4.6.2/

    and 'make' it, which takes long time but finishes without errors.

    I then 'sudo make install' which copies a lot of files
    and to my surprise also compiles lots of stuff.

    Is that normal?

    further the compilation fails with:


    make[2]: [install_target] Error 1 (ignored)
    sed -e "s,/qt-qvfb-4.6.2/include,/qt-qvfb-4.6.2//include,g" -e "s,/qt-qvfb-4.6.2/lib,/qt-qvfb-4.6.2//lib,g" "../../lib/Qt3Support.framework/Qt3Support.prl" >"/qt-qvfb-4.6.2/lib/Qt3Support.framework/Qt3Support.prl"
    sed -e "s,/qt-qvfb-4.6.2/include,/qt-qvfb-4.6.2//include,g" -e "s,/qt-qvfb-4.6.2/lib,/qt-qvfb-4.6.2//lib,g" "../../lib/Qt3Support.la" >"/qt-qvfb-4.6.2/lib/Qt3Support.la"
    sed -e "s,/qt-qvfb-4.6.2/include,/qt-qvfb-4.6.2//include,g" -e "s,/qt-qvfb-4.6.2/lib,/qt-qvfb-4.6.2//lib,g" -e "s,/qt-qvfb-4.6.2,/qt-qvfb-4.6.2/,g" "../../lib/pkgconfig/Qt3Support.pc" >"/qt-qvfb-4.6.2/lib/pkgconfig/Qt3Support.pc"
    cd src/tools/uic3/ && make -f Makefile install
    make[1]: *** No rule to make target `../../../lib/QtCore.framework/Versions/4/Headers/qglobal.h', needed by `.obj/release-shared/customwidgetsinfo.o'. Stop.
    make: *** [sub-uic3-install_subtargets-ordered] Error 2


    doing 'make' again, it succeeds.

    Then I qmake wiggly from wiithin it's directory as follows:

    /qt-qvfb-4.6.2/bin/qmake

    and make it, which succeeds.

    I then start qvfb as follows:

    /qt-qvfb-4.6.2/bin/qvfb

    which again succeeds and opens an empty window,
    but when I start wiggly with

    ./wiggly -qws

    it starts in a native Mac OS Window not using the qvfb virtual frame buffer.

    And looking at the compilation I see that it seems to compile with some Qt
    framework on Mac, which to indicates that it is most likely compiling with
    the Mac Qt SDK, not with the Qt that I configured for qvfb.

    So, what am I doing wrong?

    br Kusti

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: Can't get qvfb to work on Mac OS X

    Qvfb is only meant to be used together with Qt Embedded. You will have to compile both a native Qt for the qvfb application and compile a qt embedded with qvfb backend to be able to run applications in that provided virtual framebuffer. I had no success so far in compiling qt embedded on mac os.
    It's nice to be important but it's more important to be nice.

  3. #3
    Join Date
    Mar 2010
    Posts
    2
    Qt products
    Qt/Embedded

    Default Re: Can't get qvfb to work on Mac OS X

    Hi axeljaeger,

    thanks for answering.

    I take you point that it should be easier to get this going with/on Linux.

    However, according to this thread it seems that someone, more knowledgeable
    than me, did this almost casually on Mac:

    http://labs.trolltech.com/blogs/2007...mming-on-os-x/

    But I'm not bent on doing this on Mac, I can do this on Linux. So I re-did what
    I described I my post this time on Linux, and the result is just the same. The application
    runs native to Linux/Q11, not in/with qvfb-frame buffer.

    So I must be doing something elementary wrong, but can't spot it.

    I've tried to follow these instructions to the letter:

    http://thelins.se/learnqt/category/embedded-linux/

    Very frustrating when compiling takes hours an a 2.8 GHz/4GB/1067Mhz/9200rpm machine...

    I wish someone would look through my process and point out
    what I'm doing wrong...

    br Kusti

  4. #4
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: Can't get qvfb to work on Mac OS X

    In both cases, you should have two versions of Qt installed: The native one and Qt embedded. The application that shall run inside the qvfb has to be linked against Qt embedded, not the native version. From your description, it looks like your application is linked agains the native Qt. When installing two versions of Qt, be sure to invoke the right qmake that was built together with that particular version of Qt, e.g. run qmake from Qt embedded before compiling your application. This will make sure the generated Makefile links agains that version of Qt.
    It's nice to be important but it's more important to be nice.

Similar Threads

  1. where is qvfb?
    By yagabey in forum Qt for Embedded and Mobile
    Replies: 5
    Last Post: 8th November 2010, 03:37
  2. qvfb
    By henk in forum Qt for Embedded and Mobile
    Replies: 7
    Last Post: 9th August 2009, 16:16
  3. pb with qvfb
    By bruno in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 26th November 2008, 10:53
  4. QVFB problem.
    By hvreddy1110 in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 19th October 2006, 16:16
  5. why qvfb don't work
    By screen in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 31st May 2006, 10:20

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.