Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 5.6 and GLIB (event loop)
Forum Updated to NodeBB v4.3 + New Features

Qt 5.6 and GLIB (event loop)

Scheduled Pinned Locked Moved Unsolved General and Desktop
glibgstreamerqtmultimedia
1 Posts 1 Posters 2.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lolopolosko
    wrote on 28 Oct 2016, 18:11 last edited by
    #1

    Hi all,

    I have a little problem, but I think I can fix it with community :)

    I try porting my Windows Qt application on Linux.
    My application use QCamera, and as I can see QCamera on linux works with gstreamer

    Ok, I build Qt on linux (Ubuntu 10.04) with GCC/G++ 4.8.1 and gstreamer 0.10, and when I run my program I see that GLIB is not initialized correctly because Qt doesn't call init function glib (g_object_init), but this function is deprecated in glib 2.36 (maybe less). After this error my app is hanging

    Now, I try build glib 2.50.1 on Ubuntu 10.04 and distribute my app with this version (My application started with LD_LIBRARY_PATH=<path to Qt>:<path to newer version GLIB>). And now I have new trouble, that my application QDesktopService::openUrl() doesnt work, and I don't understand why, but I think its trouble in GLIB. I have another problem too. When I run my app on another PC that have another build Qt version without GLIB support it doesnt start because QCoreApplication Glib event loop doesn't find in QtCore. But why? I use LD_LIBRARY_PATH and link with my Qt version that support Glib.

    Of course, I can distribute my app without my GLIB version, but how I can fix trouble with g_object_init and gstreamer.

    I think I have to call g_object_init in main function but I must check GLIB version before.

    Maybe someone have the same trouble in the past and tell me how I can fix it or tell me how I can use v4l instead of gstreamer in QtMultimedia.

    Sorry for my poor English

    1 Reply Last reply
    0

    1/1

    28 Oct 2016, 18:11

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved