Results 1 to 6 of 6

Thread: Build QSerialPort with QT5.02 and mingw error

  1. #1
    Join Date
    Jan 2012
    Location
    ShangHai, PRC of China
    Posts
    14
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Build QSerialPort with QT5.02 and mingw error

    Newbie to QSerialPort.

    I'v gotten QSerialPrt code from git: git clone git://gitorious.org/qt/qtserialport.git
    The directory tree:

    G:\GNU\QSerialPort

    013/04/24 07:24 <DIR> .
    013/04/24 07:24 <DIR> ..
    013/04/24 07:09 <DIR> qtserialport
    013/04/24 07:24 <DIR> serialport-build


    qtserialport is src
    I create serial-build for objects output.

    Perl installed with msys+mingw32, I added it to the PATH.

    build steps:

    G:\GNU\QSerialPort\serialport-build>qmake ..\qtserialport\qtserialport.pro
    Info: creating cache file G:/GNU/QSerialPort/serialport-build/.qmake.cache

    G:\GNU\QSerialPort\serialport-build>mingw32-make
    cd src/ && ( test -e Makefile || C:/Qt/Qt5.0.2/5.0.2/mingw47_32/bin/qmake.exe G:
    /GNU/QSerialPort/qtserialport/src/src.pro -o Makefile ) && mingw32-make -f Makef
    ile
    mingw32-make[1]: Entering directory 'g:/GNU/QSerialPort/serialport-build/src'
    cd serialport/ && ( test -e Makefile || c:/Qt/Qt5.0.2/5.0.2/mingw47_32/bin/qmake
    .exe G:/GNU/QSerialPort/qtserialport/src/serialport/serialport.pro -o Makefile )
    && c:/Qt/Qt5.0.2/Tools/MinGW/bin/mingw32-make -f Makefile
    Project MESSAGE: C:/Qt/Qt5.0.2/5.0.2/mingw47_32/bin/syncqt.bat -module QtSerialP
    ort -version 5.1.0 -outdir G:/GNU/QSerialPort/serialport-build G:/GNU/QSerialPor
    t/qtserialport
    <srcbase> = g:/GNU/QSerialPort/qtserialport
    <outbase> = G:/GNU/QSerialPort/serialport-build
    QtSerialPort: created fwd-include header(s) for <srcbase>/src/serialport/ { qser
    ialport.h (2), qserialport_p.h (1), qserialport_symbian_p.h (1), qserialport_uni
    x_p.h (1), qserialport_win_p.h (1), qserialportglobal.h (1), qserialportinfo.h (
    2), qserialportinfo_p.h (1), qttylocker_unix_p.h (1) }
    QtSerialPort: created fwd-include header(s) for <srcbase>/src/serialport/qt4supp
    ort/ { qringbuffer_p.h (1), qwineventnotifier_p.h (1) }
    QtSerialPort: created headers.pri file
    mingw32-make[2]: Entering directory 'g:/GNU/QSerialPort/serialport-build/src/ser
    ialport'
    c:/Qt/Qt5.0.2/Tools/MinGW/bin/mingw32-make -f Makefile.Release all
    mingw32-make[3]: Entering directory 'g:/GNU/QSerialPort/serialport-build/src/ser
    ialport'
    g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=c++0x -fno-exceptions -frtti -W
    all -Wextra -DUNICODE -DQT_BUILD_SERIALPORT_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO
    _ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEP
    RECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -D_USE_MATH_DEFINES -DQ
    T_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_CORE_LIB -IG:/GNU/QSerialPort/qtserialport/sr
    c/serialport -I'G:/GNU/QSerialPort/qtserialport/src/serialport' -I'../../include
    ' -I'../../include/QtSerialPort' -I'../../include/QtSerialPort/5.1.0' -I'../../i
    nclude/QtSerialPort/5.1.0/QtSerialPort' -I'tmp' -I'C:/Qt/Qt5.0.2/5.0.2/mingw47_3
    2/include' -I'C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/QtCore' -I'C:/Qt/Qt5.0.2/5.
    0.2/mingw47_32/include/QtCore/5.0.2' -I'C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/Q
    tCore/5.0.2/QtCore' -I'.moc/release_shared' -I'.' -I'C:/Qt/Qt5.0.2/5.0.2/mingw47
    _32/mkspecs/win32-g++' -o .obj/release_shared/qserialport.o G:/GNU/QSerialPort/q
    tserialport/src/serialport/qserialport.cpp
    In file included from G:/GNU/QSerialPort/qtserialport/src/serialport/qserialport
    .h:48:0,
    from G:/GNU/QSerialPort/qtserialport/src/serialport/qserialport
    .cpp:45:
    ../../include/QtSerialPort/qserialportglobal.h:1:96: fatal error: ../../include/
    QtSerialPort/../../../../../../g:/GNU/QSerialPort/qtserialport/src/serialport/qs
    erialportglobal.h: Invalid argument
    compilation terminated.

    Makefile.Release:288: recipe for target '.obj/release_shared/qserialport.o' fail
    ed
    mingw32-make[3]: *** [.obj/release_shared/qserialport.o] Error 1
    mingw32-make[3]: Leaving directory 'g:/GNU/QSerialPort/serialport-build/src/seri
    alport'
    Makefile:38: recipe for target 'release-all' failed
    mingw32-make[2]: *** [release-all] Error 2
    mingw32-make[2]: Leaving directory 'g:/GNU/QSerialPort/serialport-build/src/seri
    alport'
    Makefile:38: recipe for target 'sub-serialport-make_first' failed
    mingw32-make[1]: *** [sub-serialport-make_first] Error 2
    mingw32-make[1]: Leaving directory 'g:/GNU/QSerialPort/serialport-build/src'
    makefile:40: recipe for target 'sub-src-make_first' failed
    mingw32-make: *** [sub-src-make_first] Error 2

    G:\GNU\QSerialPort\serialport-build\include\QtSerialPort\qserialportglobal.h was created by the build script
    Who can help me?

  2. #2
    Join Date
    Jan 2009
    Location
    Russia
    Posts
    309
    Thanks
    2
    Thanked 43 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Build QSerialPort with QT5.02 and mingw error

    You have the wrong Perl version.

    It is necessary to install it: http://www.activestate.com/activeperl

    PS: See Qt5 requirements

  3. #3
    Join Date
    Jan 2012
    Location
    ShangHai, PRC of China
    Posts
    14
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Build QSerialPort with QT5.02 and mingw error

    It's not OK with the perl in msys? How do you find the wrong perl version?

  4. #4
    Join Date
    Jan 2009
    Location
    Russia
    Posts
    309
    Thanks
    2
    Thanked 43 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Build QSerialPort with QT5.02 and mingw error


  5. #5
    Join Date
    Jan 2012
    Location
    ShangHai, PRC of China
    Posts
    14
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Build QSerialPort with QT5.02 and mingw error

    I install the latest activeperl and activepython.
    The error is still.

  6. #6
    Join Date
    Jan 2009
    Location
    Russia
    Posts
    309
    Thanks
    2
    Thanked 43 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Build QSerialPort with QT5.02 and mingw error


Similar Threads

  1. Qt 5.0.0 Build Issues Mingw
    By Sajjmon in forum Installation and Deployment
    Replies: 0
    Last Post: 23rd January 2013, 10:31
  2. Qt Creator How to build QtCreator with mingw?
    By FinderCheng in forum Qt Tools
    Replies: 0
    Last Post: 28th August 2011, 01:41
  3. How to build boost for MinGW?
    By pl01 in forum General Programming
    Replies: 15
    Last Post: 17th May 2011, 11:21
  4. Build ncreport using mingw qt
    By rivci in forum Qt Programming
    Replies: 0
    Last Post: 5th April 2011, 13:57
  5. Unable to build Qt 4.4.0 debug libs with MinGW (pch error)
    By AlGaN in forum Installation and Deployment
    Replies: 2
    Last Post: 7th June 2008, 14:24

Tags for this Thread

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.