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

Qt5 build fail #34

Closed
demmm opened this issue May 16, 2014 · 1 comment
Closed

Qt5 build fail #34

demmm opened this issue May 16, 2014 · 1 comment

Comments

@demmm
Copy link
Contributor

demmm commented May 16, 2014

Latest commit 2efc5d4 fails with:

qt5/QtGui -I/usr/include/qt5/QtCore -Ibuild -Ibuild -o build/treeviewpackagesitemdelegate.o src/treeviewpackagesitemdelegate.cpp
src/unixcommand.cpp: In static member function 'static QByteArray UnixCommand::getYaourtPackageList(const QString&)':
src/unixcommand.cpp:231:16: error: 'class QString' has no member named 'toAscii'
return res.toAscii();
^
g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIE -DOCTOPI_EXTENSIONS -DQT_WIDGETS_LIB -DQT_DBUS_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt5/mkspecs/linux-g++ -I. -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtDBus -I/usr/include/qt5/QtXml -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -Ibuild -Ibuild -o build/mainwindow_init.o src/mainwindow_init.cpp
Makefile:4049: recipe for target 'build/unixcommand.o' failed
make: *** [build/unixcommand.o] Error 1
make: *** Waiting for unfinished jobs....

Seems 'toAscii' is depreciated in Qt5?

@aarnt
Copy link
Owner

aarnt commented May 16, 2014

Sorry Anke. I'm testing in Qt 4.8 only.
In fact toAsci() is not to be used anymore. toLatin1() is the replacement.

Can you change and test?

@aarnt aarnt closed this as completed May 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants