Results 1 to 10 of 10

Thread: Platform plugins and XCB question

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2014
    Posts
    11
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Platform plugins and XCB question

    ok, i am close to giving up. I guess i am not enough familiar with compiling for linux devices.
    I understand that i have to rebuild my qt5, what i already did but it doesn't work for me.

    I tried to do the following steps:


    1) configure:
    Using the option -qt-xcb:
    Qt Code:
    1. niki@debian:~/opt/qt5/qtbase$ sudo ./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/rasp-pi-rootfs -opensource -confirm-license -optimized-qmake -reduce-relocations -reduce-exports -release -make libs -prefix /usr/local/qt5pi -qt-xcb -v > outputConfigure.txt
    To copy to clipboard, switch view to plain text mode 

    2) make & make install
    Qt Code:
    1. sudo make
    2. sudo make install
    To copy to clipboard, switch view to plain text mode 
    Then i would expect to find the platform plugin XCB in the folder: /usr/local/qt5pi/plugins/platforms/ -> but it's not!!
    There are a bunch of errors and warnings, but these were also there when i compiled qt5 the first time.


    3) Copy to sd-card
    After the steps above i would copy the rasp-pi-rootfs folder to my sd-card of the raspbery.

    4) install xcb dependencies
    On my raspberry i would: sudo apt-get install libxcb1-dev

    5) compile and deploy my code to the raspberry using QTcreator

    6) run
    ./myApp -platform xcb


    I really appreciate your help!
    I know it's not easy to work through my problem description.

    Ben
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Platform plugins and XCB question

    How the libxcb1-dev package can be available in step 1 when you installed it in step 3? Did you check what is in file outputConfigure.txt? First of all it said that configuring failed so builind Qt then was pointless. Then it said:
    Qt Code:
    1. The test for linking against libxcb failed!
    2. You might need to install dependency packages for libxcb.
    3. See src/plugins/platforms/xcb/README.
    To copy to clipboard, switch view to plain text mode 
    Did you checked this file?

    And remember to install packages first on the RPi and then copy the sdcard to your sysroot dir, because they are needed in the compile time.
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

Similar Threads

  1. Replies: 2
    Last Post: 18th October 2011, 15:54
  2. Replies: 1
    Last Post: 10th March 2011, 15:37
  3. Replies: 3
    Last Post: 13th October 2009, 15:31
  4. Newbie question regarding multi platform development
    By bronkopavel in forum Installation and Deployment
    Replies: 2
    Last Post: 15th September 2008, 10:08
  5. Plugins question/problem
    By Royceybaby in forum Qt Programming
    Replies: 1
    Last Post: 10th October 2006, 15:45

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
  •  
Qt is a trademark of The Qt Company.