Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Using VPF on Android
Forum Updated to NodeBB v4.3 + New Features

Using VPF on Android

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 3 Posters 4.1k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alan73
    wrote on last edited by
    #1

    Hello!

    I'm trying to use "-mfloat-abi=hard" option of compiler for using VPF on Android. So I made a standard widget-based project and added to project file this option. I got these linker errors:

    error: main.o uses VFP register arguments, output does not
    error: mainwindow.o uses VFP register arguments, output does not
    error: moc_mainwindow.o uses VFP register arguments, output does not
    collect2: error: ld returned 1 exit status

    My project file:

    @QT += core gui

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    TARGET = test_VPF
    TEMPLATE = app

    QMAKE_CXXFLAGS += -mfloat-abi=hard

    SOURCES += main.cpp
    mainwindow.cpp

    HEADERS += mainwindow.h

    FORMS += mainwindow.ui

    CONFIG += mobility
    MOBILITY = @

    Using: Qt 5.2.0; Compiler: armeabi_v7a; Ubuntu 13.10
    Any suggestions?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      AFAIK, Qt is built for softfp, so you would need to build Qt yourself first modifying the android mkspec

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        AFAIK, Qt is built for softfp, so you would need to build Qt yourself first modifying the android mkspec

        A Offline
        A Offline
        Abin
        wrote on last edited by Abin
        #3

        @SGaist Hi,

        I have similar issue, when I tried to add a library, built for my android device, is included in my project. I get error "aaa.so uses VFP register arguments, output does not".

        So I need to build Qt for hardfp.

        I found qmake.conf in the path C:\Qt\Qt5.5.1\5.5\Src\qtbase\mkspecs\android-g++, but not sure what to specify to make it hardfp.

        Refering to Build Qt5.5 for Beaglebone I found to comment some part in COMPILER_FLAGS. But same is not found in android mkspec.

        Could you help to know what should I change to build it for hardfp.

        Thanks in advance :)

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          AFAIK, you need to change -mfloat-abi from softfp to hard. Note that I don't have tested it.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          A 1 Reply Last reply
          0
          • SGaistS SGaist

            Hi,

            AFAIK, you need to change -mfloat-abi from softfp to hard. Note that I don't have tested it.

            A Offline
            A Offline
            Abin
            wrote on last edited by
            #5

            @SGaist Thanks... I will update if it starts working...

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved