Results 1 to 3 of 3

Thread: Problem with QT-Everywhere when compiling phonon

  1. #1
    Join Date
    Nov 2009
    Posts
    68
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded

    Default Re: Problem with QT-Everywhere when compiling phonon

    I am trying to set up a cross compiler for arm on my Ubuntu box. When I do a configure and make with the -phonon option on I get an error that makes it look like libglib.so is not getting linked in (I am guessing). But it looks like the file is in the lib part. Here is my output. I would appreciate some help, I am kind of new at this.

    ================================================== ===============
    Qt Code:
    1. .obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlib::wakeUp()':
    2. qeventdispatcher_glib.cpp:(.text+0x100): undefined reference to `g_main_context_wakeup'
    3. .obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlib::hasPendingEvents()':
    4. qeventdispatcher_glib.cpp:(.text+0x1c8): undefined reference to `g_main_context_pending'
    5. .obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)':
    6. qeventdispatcher_glib.cpp:(.text+0x224): undefined reference to `g_main_context_iteration'
    7. qeventdispatcher_glib.cpp:(.text+0x240): undefined reference to `g_main_context_iteration'
    8. .obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate(_GMainContext*)':
    9. qeventdispatcher_glib.cpp:(.text+0x78c): undefined reference to `g_main_context_ref'
    10. qeventdispatcher_glib.cpp:(.text+0x79c): undefined reference to `g_source_new'
    11. qeventdispatcher_glib.cpp:(.text+0x7ac): undefined reference to `g_source_set_can_recurse'
    12. qeventdispatcher_glib.cpp:(.text+0x7b8): undefined reference to `g_source_attach'
    13. qeventdispatcher_glib.cpp:(.text+0x7c8): undefined reference to `g_source_new'
    14. qeventdispatcher_glib.cpp:(.text+0x80c): undefined reference to `g_source_set_can_recurse'
    15. qeventdispatcher_glib.cpp:(.text+0x818): undefined reference to `g_source_attach'
    16. qeventdispatcher_glib.cpp:(.text+0x828): undefined reference to `g_source_new'
    17. qeventdispatcher_glib.cpp:(.text+0x858): undefined reference to `g_source_set_can_recurse'
    18. qeventdispatcher_glib.cpp:(.text+0x864): undefined reference to `g_source_attach'
    19. qeventdispatcher_glib.cpp:(.text+0x874): undefined reference to `g_source_new'
    20. qeventdispatcher_glib.cpp:(.text+0x888): undefined reference to `g_source_set_can_recurse'
    21. qeventdispatcher_glib.cpp:(.text+0x894): undefined reference to `g_source_set_priority'
    22. qeventdispatcher_glib.cpp:(.text+0x8a0): undefined reference to `g_source_attach'
    23. qeventdispatcher_glib.cpp:(.text+0x8dc): undefined reference to `g_main_context_new'
    24. qeventdispatcher_glib.cpp:(.text+0x964): undefined reference to `g_main_context_default'
    25. qeventdispatcher_glib.cpp:(.text+0x9a0): undefined reference to `g_threads_got_initialized'
    26. .obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlib::unregisterSocketNotifier(QSocketNotifier*)':
    27. qeventdispatcher_glib.cpp:(.text+0xa6c): undefined reference to `g_source_remove_poll'
    28. .obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate(_GMainContext*)':
    29. qeventdispatcher_glib.cpp:(.text+0xc00): undefined reference to `g_main_context_ref'
    30. qeventdispatcher_glib.cpp:(.text+0xc10): undefined reference to `g_source_new'
    31. qeventdispatcher_glib.cpp:(.text+0xc20): undefined reference to `g_source_set_can_recurse'
    32. qeventdispatcher_glib.cpp:(.text+0xc2c): undefined reference to `g_source_attach'
    33. qeventdispatcher_glib.cpp:(.text+0xc3c): undefined reference to `g_source_new'
    34. qeventdispatcher_glib.cpp:(.text+0xc80): undefined reference to `g_source_set_can_recurse'
    35. qeventdispatcher_glib.cpp:(.text+0xc8c): undefined reference to `g_source_attach'
    36. qeventdispatcher_glib.cpp:(.text+0xc9c): undefined reference to `g_source_new'
    37. qeventdispatcher_glib.cpp:(.text+0xccc): undefined reference to `g_source_set_can_recurse'
    38. qeventdispatcher_glib.cpp:(.text+0xcd8): undefined reference to `g_source_attach'
    39. qeventdispatcher_glib.cpp:(.text+0xce8): undefined reference to `g_source_new'
    40. qeventdispatcher_glib.cpp:(.text+0xcfc): undefined reference to `g_source_set_can_recurse'
    41. qeventdispatcher_glib.cpp:(.text+0xd08): undefined reference to `g_source_set_priority'
    42. qeventdispatcher_glib.cpp:(.text+0xd14): undefined reference to `g_source_attach'
    43. qeventdispatcher_glib.cpp:(.text+0xd50): undefined reference to `g_main_context_new'
    44. qeventdispatcher_glib.cpp:(.text+0xdd8): undefined reference to `g_main_context_default'
    45. qeventdispatcher_glib.cpp:(.text+0xe14): undefined reference to `g_threads_got_initialized'
    46. .obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlib::~QEventDispatcherGlib()':
    47. qeventdispatcher_glib.cpp:(.text+0x11d0): undefined reference to `g_source_destroy'
    48. qeventdispatcher_glib.cpp:(.text+0x11d8): undefined reference to `g_source_unref'
    49. qeventdispatcher_glib.cpp:(.text+0x11e8): undefined reference to `g_source_destroy'
    50. qeventdispatcher_glib.cpp:(.text+0x11f0): undefined reference to `g_source_unref'
    51. qeventdispatcher_glib.cpp:(.text+0x12f0): undefined reference to `g_source_remove_poll'
    52. qeventdispatcher_glib.cpp:(.text+0x1358): undefined reference to `g_source_destroy'
    53. qeventdispatcher_glib.cpp:(.text+0x1360): undefined reference to `g_source_unref'
    54. qeventdispatcher_glib.cpp:(.text+0x1370): undefined reference to `g_source_destroy'
    55. qeventdispatcher_glib.cpp:(.text+0x1378): undefined reference to `g_source_unref'
    56. qeventdispatcher_glib.cpp:(.text+0x1384): undefined reference to `g_main_context_unref'
    57. .obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlib::~QEventDispatcherGlib()':
    58. qeventdispatcher_glib.cpp:(.text+0x14a4): undefined reference to `g_source_destroy'
    59. qeventdispatcher_glib.cpp:(.text+0x14ac): undefined reference to `g_source_unref'
    60. qeventdispatcher_glib.cpp:(.text+0x14bc): undefined reference to `g_source_destroy'
    61. qeventdispatcher_glib.cpp:(.text+0x14c4): undefined reference to `g_source_unref'
    62. qeventdispatcher_glib.cpp:(.text+0x15c4): undefined reference to `g_source_remove_poll'
    63. qeventdispatcher_glib.cpp:(.text+0x162c): undefined reference to `g_source_destroy'
    64. qeventdispatcher_glib.cpp:(.text+0x1634): undefined reference to `g_source_unref'
    65. qeventdispatcher_glib.cpp:(.text+0x1644): undefined reference to `g_source_destroy'
    66. qeventdispatcher_glib.cpp:(.text+0x164c): undefined reference to `g_source_unref'
    67. qeventdispatcher_glib.cpp:(.text+0x1658): undefined reference to `g_main_context_unref'
    68. .obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlib::~QEventDispatcherGlib()':
    69. qeventdispatcher_glib.cpp:(.text+0x1780): undefined reference to `g_source_destroy'
    70. qeventdispatcher_glib.cpp:(.text+0x1788): undefined reference to `g_source_unref'
    71. qeventdispatcher_glib.cpp:(.text+0x1798): undefined reference to `g_source_destroy'
    72. qeventdispatcher_glib.cpp:(.text+0x17a0): undefined reference to `g_source_unref'
    73. qeventdispatcher_glib.cpp:(.text+0x18a0): undefined reference to `g_source_remove_poll'
    74. qeventdispatcher_glib.cpp:(.text+0x1908): undefined reference to `g_source_destroy'
    75. qeventdispatcher_glib.cpp:(.text+0x1910): undefined reference to `g_source_unref'
    76. qeventdispatcher_glib.cpp:(.text+0x1920): undefined reference to `g_source_destroy'
    77. qeventdispatcher_glib.cpp:(.text+0x1928): undefined reference to `g_source_unref'
    78. qeventdispatcher_glib.cpp:(.text+0x1934): undefined reference to `g_main_context_unref'
    79. .obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlib::registerSocketNotifier(QSocketNotifier*)':
    80. qeventdispatcher_glib.cpp:(.text+0x1ac4): undefined reference to `g_source_add_poll'
    81. collect2: ld returned 1 exit status
    82. make[1]: *** [../../lib/libQtCoreE.so.4.6.2] Error 1
    83. make[1]: Leaving directory `/home/trey/Development/BeagleBoard/QT-Tools/qt-everywhere-opensource-src-4.6.2/src/corelib'
    84. make: *** [sub-corelib-make_default-ordered] Error 2
    To copy to clipboard, switch view to plain text mode 

    I forgot to include my make.conf file.
    ====================================
    #
    # qmake configuration for building with arm-linux-g++
    #

    include(../../common/g++.conf)
    include(../../common/linux.conf)
    include(../../common/qws.conf)

    # modifications to g++.conf
    #Toolchain

    #Compiler Flags to take advantage of the ARM architecture
    QMAKE_CFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -lgthread-2.0
    QMAKE_CXXFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -lgthread-2.0

    QMAKE_CC = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/gcc
    QMAKE_CXX = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++
    QMAKE_LINK = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++
    QMAKE_LINK_SHLIB = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++

    # modifications to linux.conf
    QMAKE_AR = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/ar cqs
    QMAKE_OBJCOPY = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/objcopy
    QMAKE_STRIP = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/strip

    QMAKE_INCDIR += /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/include
    QMAKE_INCDIR += /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/include/glib-2.0
    QMAKE_INCDIR += /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/lib/glib-2.0/include
    QMAKE_INCDIR += /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/include/gstreamer-0.10
    QMAKE_INCDIR += /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/include/libxml2

    QMAKE_LIBDIR += /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/lib /
    /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/lib

    QMAKE_LIBS += -lgthread-2.0 -v

    QT_CFLAGS_GLIB = -lgthread-2.0 -v
    QT_LIBS_GLIB = -lgthread-2.0 -v

    load(qt_config)

  2. #2
    Join Date
    Jun 2010
    Posts
    102
    Thanks
    3
    Qt products
    Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Problem with QT-Everywhere when compiling phonon

    yeah, i also have issue as you

    Qt Code:
    1. /configure \
    2. -opensource \
    3. -prefix $(INSTALL_DIR) \
    4. -$(QT_BUILD_TYPE) \
    5. -embedded mips \
    6. -multimedia \
    7. -qt-libpng \
    8. -qt-libtiff \
    9. -qt-libjpeg \
    10. -qt-libmng \
    11. -I /tango3/v4.8.0-gst-lpb-cehtml-dev/install_gstreamer/include/glib-2.0 \
    12. -I /tango3/v4.8.0-gst-lpb-cehtml-dev/install_gstreamer/lib/glib-2.0/include \
    13. -I /tango3/v4.8.0-gst-lpb-cehtml-dev/install_gstreamer/include/gstreamer-0.10 \
    14. -L /tango3/v4.8.0-gst-lpb-cehtml-dev/install_gstreamer/lib \
    15. -L /tango3/v4.8.0-gst-lpb-cehtml-dev/install_gstreamer/lib/gstreamer-0.10 \
    16. -phonon \
    17. -webkit \
    18. -xplatform $(QT_PLATFORM) \
    19. -little-endian \
    20. -reduce-relocations \
    21. -no-nis \
    22. -no-cups \
    23. -no-dbus \
    24. -openssl-linked \
    25. -qt-freetype \
    26. -plugin-gfx-directfb \
    27. -plugin-gfx-vnc \
    28. -qt-kbd-tty \
    29. -qt-kbd-linuxinput \
    30. -qt-mouse-pc \
    31. -qt-mouse-linuxinput \
    32. -no-gfx-transformed \
    33. -no-gfx-multiscreen \
    34. -no-qt3support \
    35. -no-accessibility \
    36. -no-xmlpatterns \
    37. -nomake tools \
    38. -nomake docs \
    39. -nomake examples \
    40. -nomake translations \
    41. -fast
    To copy to clipboard, switch view to plain text mode 
    my error messsage:


    You have not explicitly asked to use pkg-config and are cross-compiling.
    pkg-config will not be used to automatically query cflag/lib parameters for
    dependencies

    ../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/floatmath/floatmath.cpp:44: warning: unused parameter 'argc'
    ../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/floatmath/floatmath.cpp:44: warning: unused parameter 'argv'
    cc1plus: error: unrecognized command line option "-mmmx"
    make[1]: *** [mmx.o] Error 1
    cc1plus: error: unrecognized command line option "-m3dnow"
    make[1]: *** [3dnow.o] Error 1
    cc1plus: error: unrecognized command line option "-msse"
    make[1]: *** [sse.o] Error 1
    cc1plus: error: unrecognized command line option "-msse2"
    make[1]: *** [sse2.o] Error 1
    cc1plus: error: unrecognized command line option "-msse3"
    make[1]: *** [sse3.o] Error 1
    cc1plus: error: unrecognized command line option "-mssse3"
    make[1]: *** [ssse3.o] Error 1
    cc1plus: error: unrecognized command line option "-msse4.1"
    make[1]: *** [sse4_1.o] Error 1
    cc1plus: error: unrecognized command line option "-msse4.2"
    make[1]: *** [sse4_2.o] Error 1
    cc1plus: error: unrecognized command line option "-mavx"
    make[1]: *** [avx.o] Error 1
    ../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/db2/db2.cpp:42:20: error: sqlcli.h: No such file or directory
    ../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/db2/db2.cpp:43:21: error: sqlcli1.h: No such file or directory
    make[1]: *** [db2.o] Error 1
    ../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/ibase/ibase.cpp:42:19: error: ibase.h: No such file or directory
    make[1]: *** [ibase.o] Error 1
    ../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/mysql/mysql.cpp:42:19: error: mysql.h: No such file or directory
    make[1]: *** [mysql.o] Error 1
    ../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/mysql/mysql.cpp:42:19: error: mysql.h: No such file or directory
    make[1]: *** [mysql.o] Error 1
    ../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/oci/oci.cpp:42:17: error: oci.h: No such file or directory
    make[1]: *** [oci.o] Error 1
    ../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/odbc/odbc.cpp:45:17: error: sql.h: No such file or directory
    ../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/odbc/odbc.cpp:46:20: error: sqlext.h: No such file or directory
    make[1]: *** [odbc.o] Error 1
    ../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/iodbc/iodbc.cpp:42:17: error: sql.h: No such file or directory
    ../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/iodbc/iodbc.cpp:43:20: error: sqlext.h: No such file or directory
    make[1]: *** [iodbc.o] Error 1
    ../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/psql/psql.cpp:42:22: error: libpq-fe.h: No such file or directory
    ../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/psql/psql.cpp: In function 'int main(int, char**)':
    ../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/psql/psql.cpp:46: error: 'PQescapeBytea' was not declared in this scope
    ../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/psql/psql.cpp:47: error: 'PQunescapeBytea' was not declared in this scope
    make[1]: *** [psql.o] Error 1
    ../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/sqlite2/sqlite2.cpp:42:20: error: sqlite.h: No such file or directory
    make[1]: *** [sqlite2.o] Error 1
    ../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/tds/tds.cpp:42:22: error: sybfront.h: No such file or directory
    ../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/tds/tds.cpp:43:19: error: sybdb.h: No such file or directory
    make[1]: *** [tds.o] Error 1
    ../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/glib/glib.cpp: In function 'int main(int, char**)':
    ../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/glib/glib.cpp:55: warning: 'pollfd' is used uninitialized in this function
    glib.o: In function `main':
    /tango3/qt-build-release/config.tests/unix/glib/../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/glib/glib.cpp:51: undefined reference to `g_threads_got_initialized'
    /tango3/qt-build-release/config.tests/unix/glib/../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/glib/glib.cpp:51: undefined reference to `g_threads_got_initialized'
    /tango3/qt-build-release/config.tests/unix/glib/../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/glib/glib.cpp:52: undefined reference to `g_thread_init'
    /tango3/qt-build-release/config.tests/unix/glib/../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/glib/glib.cpp:52: undefined reference to `g_thread_init'
    /tango3/qt-build-release/config.tests/unix/glib/../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/glib/glib.cpp:53: undefined reference to `g_main_context_default'
    /tango3/qt-build-release/config.tests/unix/glib/../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/glib/glib.cpp:53: undefined reference to `g_main_context_default'
    /tango3/qt-build-release/config.tests/unix/glib/../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/glib/glib.cpp:54: undefined reference to `g_source_new'
    /tango3/qt-build-release/config.tests/unix/glib/../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/glib/glib.cpp:54: undefined reference to `g_source_new'
    /tango3/qt-build-release/config.tests/unix/glib/../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/glib/glib.cpp:55: undefined reference to `g_source_add_poll'
    /tango3/qt-build-release/config.tests/unix/glib/../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/glib/glib.cpp:55: undefined reference to `g_source_add_poll'
    collect2: ld returned 1 exit status
    make[1]: *** [glib] Error 1
    make: *** [/tango3/v4.8.0-gst-lpb-cehtml-dev/../qt-build-release/.configured] Error 1
    Contact: Skype: sonnh89
    Yahoo: nhs_0702@yahoo.com

    Liên hệ SKype: sonnh89

  3. #3
    Join Date
    Mar 2012
    Posts
    1
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Problem with QT-Everywhere when compiling phonon

    hey, did you guys figure them out? i got the same problem too...

Similar Threads

  1. Problem using Phonon
    By Sismetic in forum Newbie
    Replies: 1
    Last Post: 1st September 2010, 14:33
  2. Does Phonon need building or compiling?
    By Sismetic in forum Newbie
    Replies: 0
    Last Post: 31st August 2010, 21:35
  3. problem with phonon
    By mismael85 in forum Qt Programming
    Replies: 2
    Last Post: 30th January 2010, 20:25
  4. Compiling wih phonon on windows
    By deca5423 in forum Installation and Deployment
    Replies: 1
    Last Post: 16th July 2009, 16:42
  5. Problem with compiling qt on windows xp with phonon
    By junky in forum Installation and Deployment
    Replies: 3
    Last Post: 13th April 2009, 08:13

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.