Error when building: fromAscii' is not a member of 'QString'

Bug #1333012 reported by Hans Schmidt on 2014-06-22
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
igotu2gpx
Undecided
Unassigned

Bug Description

I am trying to compile igotu2gpx on Arch Linux.

I get the following error when starting make:

compiling commands.cpp
commands.cpp: In member function 'virtual QByteArray igotu::ModelCommand::sendAndReceive()':
commands.cpp:110:49: error: 'fromAscii' is not a member of 'QString'
     name = IgotuCommand::tr("Unknown (%1)").arg(QString::fromAscii
Makefile:494: recipe for target '.build/debug/commands.o' failed
make[1]: *** [.build/debug/commands.o] Error 1

Do you have any idea how to fix this? Thanks :)

Hallo Hans,

could it be that you are trying to compile it with qt 5?

Cheers
Michael

2014-06-22 21:49 GMT+02:00 Hans Schmidt <email address hidden>:
> Public bug reported:
>
> I am trying to compile igotu2gpx on Arch Linux.
>
> I get the following error when starting make:
>
> compiling commands.cpp
> commands.cpp: In member function 'virtual QByteArray igotu::ModelCommand::sendAndReceive()':
> commands.cpp:110:49: error: 'fromAscii' is not a member of 'QString'
> name = IgotuCommand::tr("Unknown (%1)").arg(QString::fromAscii
> Makefile:494: recipe for target '.build/debug/commands.o' failed
> make[1]: *** [.build/debug/commands.o] Error 1
>
>
> Do you have any idea how to fix this? Thanks :)
>
> ** Affects: igotu2gpx
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of
> MobileAction i-gotU USB GPS travel logger Mac/Linux developers, which is
> subscribed to igotu2gpx.
> https://bugs.launchpad.net/bugs/1333012
>
> Title:
> Error when building: fromAscii' is not a member of 'QString'
>
> Status in MobileAction i-gotU USB GPS travel logger Mac/Linux support:
> New
>
> Bug description:
> I am trying to compile igotu2gpx on Arch Linux.
>
> I get the following error when starting make:
>
> compiling commands.cpp
> commands.cpp: In member function 'virtual QByteArray igotu::ModelCommand::sendAndReceive()':
> commands.cpp:110:49: error: 'fromAscii' is not a member of 'QString'
> name = IgotuCommand::tr("Unknown (%1)").arg(QString::fromAscii
> Makefile:494: recipe for target '.build/debug/commands.o' failed
> make[1]: *** [.build/debug/commands.o] Error 1
>
>
> Do you have any idea how to fix this? Thanks :)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/igotu2gpx/+bug/1333012/+subscriptions
>

Hans Schmidt (hansschmidt5) wrote :

Yes, that was the problem. I used Arch, which uses Qt5 as its default Qt.

When I use qmake-qt4 it works. I also needed to change lrelease to lrelease-qt4 in igotu2gpx.pro. I have updated the PKGBUILD file in the Arch User Repository, so now it compiles without problems.

Thank you!

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers