Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Error building qt-everywhere-opensource-4.8.3
Forum Update on Monday, May 27th 2025

Error building qt-everywhere-opensource-4.8.3

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 2 Posters 3.2k 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.
  • A Offline
    A Offline
    albeo
    wrote on 26 Nov 2012, 15:28 last edited by
    #1

    I've trying to build qt-everywhere-opensource-4.8.3 for FreeBSD using the next configuration

    ./configure -platform freebsd-g++ -I /usr/local/mysql/include -L /usr/local/lib -plugin-sql-mysql -prefix /usr/local/Qt -prefix-install -no-qt3support

    The building fail with the next error

    g++ -c -pipe -I/usr/local/mysql/include -I/usr/local/include/gstreamer-0.10 -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/include/libxml2 -I/usr/local/include -O2 -fvisibility=hidden -fvisibility-inlines-hidden -pthread -D_THREAD_SAFE -Wall -W -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PHONON_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../mkspecs/freebsd-g++ -I. -I../../../../include/QtCore -I../../../../include/QtGui -I../../../../include/QtOpenGL -I../../../../include/phonon -I../../../../include -I. -I../../../../include/phonon_compat -I/usr/X11R6/include -I.moc/release-shared -I/usr/local/include -o .obj/release-shared/audiodataoutput.o ../../../3rdparty/phonon/gstreamer/audiodataoutput.cpp
    In file included from ../../../3rdparty/phonon/gstreamer/audiodataoutput.h:29,
    from ../../../3rdparty/phonon/gstreamer/audiodataoutput.cpp:24:
    /usr/local/include/phonon/audiodataoutput.h:55: error: ISO C++ forbids declaration of 'P_DECLARE_PRIVATE' with no type
    /usr/local/include/phonon/audiodataoutput.h:58: error: expected ';' before 'public'
    In file included from /usr/local/include/phonon/mediaobject.h:26,
    from /usr/local/include/phonon/mediaobjectinterface.h:26,
    from ../../../3rdparty/phonon/gstreamer/mediaobject.h:24,
    from ../../../3rdparty/phonon/gstreamer/audiodataoutput.cpp:27:
    /usr/local/include/phonon/mediasource.h:164: error: expected ',' or '...' before '&' token
    /usr/local/include/phonon/mediasource.h:164: error: ISO C++ forbids declaration of 'VideoCaptureDevice' with no type
    /usr/local/include/phonon/mediasource.h:286: error: ISO C++ forbids declaration of 'DeviceAccessList' with no type
    /usr/local/include/phonon/mediasource.h:286: error: expected ';' before '&' token
    /usr/local/include/phonon/mediasource.h:313: error: 'VideoCaptureDevice' does not name a type
    /usr/local/include/phonon/mediasource.h:330: error: expected ',' or '...' before '&' token
    /usr/local/include/phonon/mediasource.h:330: error: ISO C++ forbids declaration of 'DeviceAccess' with no type
    /usr/local/include/phonon/mediasource.h:330: error: 'Phonon::MediaSource::MediaSource(int)' cannot be overloaded
    /usr/local/include/phonon/mediasource.h:164: error: with 'Phonon::MediaSource::MediaSource(int)'
    In file included from /usr/local/include/phonon/mediaobjectinterface.h:26,
    from ../../../3rdparty/phonon/gstreamer/mediaobject.h:24,
    from ../../../3rdparty/phonon/gstreamer/audiodataoutput.cpp:27:
    /usr/local/include/phonon/mediaobject.h:102: error: ISO C++ forbids declaration of 'P_DECLARE_PRIVATE' with no type
    /usr/local/include/phonon/mediaobject.h:103: error: expected ';' before 'public'
    In file included from ../../../3rdparty/phonon/gstreamer/audiodataoutput.cpp:30:
    /usr/local/include/phonon/audiooutput.h:55: error: ISO C++ forbids declaration of 'P_DECLARE_PRIVATE' with no type
    /usr/local/include/phonon/audiooutput.h:99: error: expected ';' before 'public'
    gmake[3]: *** [.obj/release-shared/audiodataoutput.o] Error 1
    gmake[3]: se sale del directorio /usr/home/albeo/qt-everywhere-opensource-src-4.8.3/src/plugins/phonon/gstreamer' gmake[2]: *** [sub-gstreamer-make_default] Error 2 gmake[2]: se sale del directorio /usr/home/albeo/qt-everywhere-opensource-src-4.8.3/src/plugins/phonon'
    gmake[1]: *** [sub-phonon-make_default] Error 2
    gmake[1]: se sale del directorio `/usr/home/albeo/qt-everywhere-opensource-src-4.8.3/src/plugins'
    gmake: *** [sub-plugins-make_default-ordered] Error 2

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 27 Nov 2012, 07:50 last edited by
      #2

      Which version of g++ is it? I suspect it might be a conflict between C++98 and C++11. If you can spare enough time, try reconfiguring with -no-c++11.

      (Z(:^

      1 Reply Last reply
      0
      • A Offline
        A Offline
        albeo
        wrote on 28 Nov 2012, 22:26 last edited by
        #3

        The gcc version is:

        Using built-in specs.
        Target: amd64-undermydesk-freebsd
        Configured with: FreeBSD/amd64 system compiler
        Thread model: posix
        gcc version 4.2.1 20070831 patched [FreeBSD]

        I tried to reconfigure with -no-c++11 the output was

        -no-c++11: invalid command-line switch

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sierdzio
          Moderators
          wrote on 29 Nov 2012, 05:27 last edited by
          #4

          Ah yes, it comes with configure Qt 5, my error.

          GCC 4.2 is an old beast. It is possible to force usage of c++98 (by setting CFLAGS), but I also think it's used by default on 4.8.

          (Z(:^

          1 Reply Last reply
          0
          • A Offline
            A Offline
            albeo
            wrote on 2 Dec 2012, 04:37 last edited by
            #5

            I've compiled with gcc 4.8 using the option ansi for c++, I modify the platform for freebsd-g++46 with the settings g++47 -ansi, however when I try to install it, print some errors:

            ../../../../src/3rdparty/clucene/src/CLucene/document/DateField.cpp: In static member function 'static int64_t lucene::document::DateField::stringToTime(const wchar_t*)':
            ../../../../src/3rdparty/clucene/src/CLucene/document/DateField.cpp:57:33: error: 'wcstoll' was not declared in this scope

            1 Reply Last reply
            0

            1/5

            26 Nov 2012, 15:28

            • Login

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