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 headers and libraries, when porting to Android
Qt 6.11 is out! See what's new in the release blog

Using headers and libraries, when porting to Android

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 924 Views 1 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 a newbie in cross-platforming programming with Qt 5. Now I'm trying to compile project for Android. Please, help me with several questions:

    • I got a problem with net function ntohs(); as I considered because of using headers from host platform (Ubuntu 64-bit), not target. What should I do to use target headers?

    • I must link several libraries (in gcc flags: -lX11 -lm -ldl -lpthread). What should I do to use it in Android?

    If you have some links referred to above questions, please share.
    Thanks!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stereomatching
      wrote on last edited by
      #2

      Hi, I don't familiar with Ubuntu, but there are something I could tell you

      1 : the function ntohs() may not support android platform, if you need network function, try the network module provide by Qt5.2

      2 : Have you setup the paths correctly?
      You have to download ndk, sdk, ant and jdk before you could develop the apps.

      "tutorial":http://doc-snapshot.qt-project.org/qdoc/android-support.html

      some example on mac
      "setting on mac":http://qtandopencv.blogspot.com/2013/11/deploy-qt-apps-to-android-phone-on-mac.html

      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