fpoussin / QStlink2

Cross-platform STLink v2 GUI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not build on Qt 4

Lanchon opened this issue · comments

Qt 4 version: 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1
branch: master

$ make
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ui/mainwindow.ui -o ui_mainwindow.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic ui/dialog.ui -o ui_dialog.h
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -D__QSTL_VER__="\"1.2.1\"" -DQUSB_LIBRARY -DQLIBUSB -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -Iinc -IQtUsb/src -I. -I. -o main.o src/main.cpp
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -D__QSTL_VER__="\"1.2.1\"" -DQUSB_LIBRARY -DQLIBUSB -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -Iinc -IQtUsb/src -I. -I. -o mainwindow.o src/mainwindow.cpp
In file included from /usr/include/qt4/QtCore/QThread:1:0,
                 from inc/stlinkv2.h:21,
                 from inc/mainwindow.h:27,
                 from src/mainwindow.cpp:17:
/usr/include/qt4/QtCore/qthread.h: In member function ‘void MainWindow::haltMCU()’:
/usr/include/qt4/QtCore/qthread.h:116:17: error: ‘static void QThread::msleep(long unsigned int)’ is protected
     static void msleep(unsigned long);
                 ^
src/mainwindow.cpp:337:24: error: within this context
     QThread::msleep(100);
                        ^
In file included from /usr/include/qt4/QtCore/QThread:1:0,
                 from inc/stlinkv2.h:21,
                 from inc/mainwindow.h:27,
                 from src/mainwindow.cpp:17:
/usr/include/qt4/QtCore/qthread.h: In member function ‘void MainWindow::runMCU()’:
/usr/include/qt4/QtCore/qthread.h:116:17: error: ‘static void QThread::msleep(long unsigned int)’ is protected
     static void msleep(unsigned long);
                 ^
src/mainwindow.cpp:345:24: error: within this context
     QThread::msleep(100);
                        ^
In file included from /usr/include/qt4/QtCore/QThread:1:0,
                 from inc/stlinkv2.h:21,
                 from inc/mainwindow.h:27,
                 from src/mainwindow.cpp:17:
/usr/include/qt4/QtCore/qthread.h: In member function ‘void MainWindow::resetMCU()’:
/usr/include/qt4/QtCore/qthread.h:116:17: error: ‘static void QThread::msleep(long unsigned int)’ is protected
     static void msleep(unsigned long);
                 ^
src/mainwindow.cpp:353:24: error: within this context
     QThread::msleep(100);
                        ^
In file included from /usr/include/qt4/QtCore/QThread:1:0,
                 from inc/stlinkv2.h:21,
                 from inc/mainwindow.h:27,
                 from src/mainwindow.cpp:17:
/usr/include/qt4/QtCore/qthread.h: In member function ‘void MainWindow::hardReset()’:
/usr/include/qt4/QtCore/qthread.h:116:17: error: ‘static void QThread::msleep(long unsigned int)’ is protected
     static void msleep(unsigned long);
                 ^
src/mainwindow.cpp:361:24: error: within this context
     QThread::msleep(100);
                        ^
In file included from /usr/include/qt4/QtCore/QThread:1:0,
                 from inc/stlinkv2.h:21,
                 from inc/mainwindow.h:27,
                 from src/mainwindow.cpp:17:
/usr/include/qt4/QtCore/qthread.h: In member function ‘void MainWindow::setModeJTAG()’:
/usr/include/qt4/QtCore/qthread.h:116:17: error: ‘static void QThread::msleep(long unsigned int)’ is protected
     static void msleep(unsigned long);
                 ^
src/mainwindow.cpp:371:24: error: within this context
     QThread::msleep(100);
                        ^
In file included from /usr/include/qt4/QtCore/QThread:1:0,
                 from inc/stlinkv2.h:21,
                 from inc/mainwindow.h:27,
                 from src/mainwindow.cpp:17:
/usr/include/qt4/QtCore/qthread.h: In member function ‘void MainWindow::setModeSWD()’:
/usr/include/qt4/QtCore/qthread.h:116:17: error: ‘static void QThread::msleep(long unsigned int)’ is protected
     static void msleep(unsigned long);
                 ^
src/mainwindow.cpp:381:24: error: within this context
     QThread::msleep(100);
                        ^
make: *** [mainwindow.o] Error 1

see:
http://www.qtcentre.org/archive/index.php/t-10964.html
https://groups.google.com/forum/#!topic/golden-cheetah-developers/9kZKJs1Mv3k

Thanks, I just fixed it.

Thank you!