Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Error building qt-everywhere-opensource-4.8.3

    Installation and Deployment
    2
    5
    2949
    Loading More Posts
    • 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
      albeo last edited by

      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 Reply Quote 0
      • sierdzio
        sierdzio Moderators last edited by

        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 Reply Quote 0
        • A
          albeo last edited by

          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 Reply Quote 0
          • sierdzio
            sierdzio Moderators last edited by

            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 Reply Quote 0
            • A
              albeo last edited by

              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 Reply Quote 0
              • First post
                Last post