Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QTime::elapsed() deprecated - replace with something else #73

Open
sanderdatema opened this issue Jun 20, 2021 · 1 comment
Open

QTime::elapsed() deprecated - replace with something else #73

sanderdatema opened this issue Jun 20, 2021 · 1 comment
Labels

Comments

@sanderdatema
Copy link

I followed the steps in the readme, already had Xcode installed and added QT. But this is the error I get:

cd extplane-server/ && ( test -e Makefile || /usr/local/bin/qmake -o Makefile /Users/sander/Downloads/ExtPlane/extplane-server/extplane-server.pro ) && /Library/Developer/CommandLineTools/usr/bin/make -f Makefile
/Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -fPIC -std=gnu++1z  -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wall -Wextra -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../util -I/usr/local/Cellar/qt/6.1.0_1/lib/QtNetwork.framework/Headers -I/usr/local/Cellar/qt/6.1.0_1/lib/QtCore.framework/Headers -I. -I/usr/local/Cellar/qt/6.1.0_1/share/qt/mkspecs/macx-clang -F/usr/local/Cellar/qt/6.1.0_1/lib -o datadataref.o datarefs/datadataref.cpp
datarefs/datadataref.cpp:9:18: error: no member named 'restart' in 'QTime'
    m_lastUpdate.restart();
    ~~~~~~~~~~~~ ^
datarefs/datadataref.cpp:22:47: error: no member named 'elapsed' in 'QTime'
    if(this->accuracy() == 0 || (m_lastUpdate.elapsed() > this->accuracy() ) ) {
                                 ~~~~~~~~~~~~ ^
datarefs/datadataref.cpp:28:26: error: no member named 'restart' in 'QTime'
            m_lastUpdate.restart();
            ~~~~~~~~~~~~ ^
3 errors generated.
make[1]: *** [datadataref.o] Error 1
make: *** [sub-extplane-server-make_first-ordered] Error 2
@vranki
Copy link
Owner

vranki commented Jun 21, 2021

Looks like QTime::elapsed() is deprecated: https://doc.qt.io/qt-5/qtime-obsolete.html#elapsed

I'll rename this ticket to match this and mark it as a bug. Thanks for spotting this!

@vranki vranki changed the title Compiling on Mac shows errors (no member named 'something' in 'QTime' QTime::elapsed() deprecated - replace with something else Jun 21, 2021
@vranki vranki added the bug label Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants