Hi, I have some very useful app that calculates some water/steam properties (engineering stuff). Now I thought I might just build it for android and run it on my android phone so I don't have to take my laptop with me all the time.

But it doesn't build. It fails with the error:
Qt Code:
  1. #error Bionic header ctype.h does not define either _U nor _CTYPE_U
To copy to clipboard, switch view to plain text mode 
.

Now I'm suspecting this might have something to do with the gnu scientific library, because this app needs to link to it (and another lib called freesteam). It runs fine when I choose the desktop option from the debug menu.

I've checked online and the qt documentation but I didn't find anything that kinda lists all the steps I need to follow to make an app run on android if any other libraries are needed.

Some additional info. I'm using Qt5.4/qtcreator in a Linux Mint x64 machine.
I know (at least I think) that Qt5.4 is setup correctly because I can build/run programs, that do not need additional libraries, on my android device.

Here's my .pro file. Maybe it gives any clues about what I'm doing wrong.

Qt Code:
  1. TEMPLATE = app
  2.  
  3. QT += qml quick
  4.  
  5. SOURCES += main.cpp \
  6. mysteamclass.cpp
  7.  
  8. RESOURCES += qml.qrc
  9.  
  10. # Additional import path used to resolve QML modules in Qt Creator's code model
  11. QML_IMPORT_PATH =
  12.  
  13. # Default rules for deployment.
  14. include(deployment.pri)
  15.  
  16. DISTFILES +=
  17.  
  18. HEADERS += \
  19. mysteamclass.h
  20. #--------------------------------ME= C++11 AND LIBRARIES-----------------#
  21.  
  22. CONFIG+=c++11
  23.  
  24.  
  25. INCLUDEPATH += /usr/local/include
  26. INCLUDEPATH += /usr/local/freesteam
  27.  
  28. DEPENDPATH += /usr/local/include
  29.  
  30.  
  31. LIBS += -L/usr/local/include/
  32.  
  33. LIBS += -L/usr/local/include -lgsl
  34.  
  35. LIBS += -L/usr/local/include -libfreesteam
  36. LIBS += -L/usr/local/include -lgslcblas
  37.  
  38. LIBS+= -L/usr/lib/freesteam
  39.  
  40.  
  41.  
  42. win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../usr/lib/release/ -lfreesteam
  43. else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../usr/lib/debug/ -lfreesteam
  44. else:unix: LIBS += -L$$PWD/../../../../usr/lib/ -lfreesteam
  45.  
  46. INCLUDEPATH += $$PWD/../../../../usr/include
  47. DEPENDPATH += $$PWD/../../../../usr/include
To copy to clipboard, switch view to plain text mode 


Thank you for your time.