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:
#error Bionic header ctype.h does not define either _U nor _CTYPE_U
#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.
TEMPLATE = app
QT += qml quick
SOURCES += main.cpp \
mysteamclass.cpp
RESOURCES += qml.qrc
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =
# Default rules for deployment.
include(deployment.pri)
DISTFILES +=
HEADERS += \
mysteamclass.h
#--------------------------------ME= C++11 AND LIBRARIES-----------------#
CONFIG+=c++11
INCLUDEPATH += /usr/local/include
INCLUDEPATH += /usr/local/freesteam
DEPENDPATH += /usr/local/include
LIBS += -L/usr/local/include/
LIBS += -L/usr/local/include -lgsl
LIBS += -L/usr/local/include -libfreesteam
LIBS += -L/usr/local/include -lgslcblas
LIBS+= -L/usr/lib/freesteam
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../usr/lib/release/ -lfreesteam
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../usr/lib/debug/ -lfreesteam
else:unix: LIBS += -L$$PWD/../../../../usr/lib/ -lfreesteam
INCLUDEPATH += $$PWD/../../../../usr/include
DEPENDPATH += $$PWD/../../../../usr/include
TEMPLATE = app
QT += qml quick
SOURCES += main.cpp \
mysteamclass.cpp
RESOURCES += qml.qrc
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =
# Default rules for deployment.
include(deployment.pri)
DISTFILES +=
HEADERS += \
mysteamclass.h
#--------------------------------ME= C++11 AND LIBRARIES-----------------#
CONFIG+=c++11
INCLUDEPATH += /usr/local/include
INCLUDEPATH += /usr/local/freesteam
DEPENDPATH += /usr/local/include
LIBS += -L/usr/local/include/
LIBS += -L/usr/local/include -lgsl
LIBS += -L/usr/local/include -libfreesteam
LIBS += -L/usr/local/include -lgslcblas
LIBS+= -L/usr/lib/freesteam
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../usr/lib/release/ -lfreesteam
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../usr/lib/debug/ -lfreesteam
else:unix: LIBS += -L$$PWD/../../../../usr/lib/ -lfreesteam
INCLUDEPATH += $$PWD/../../../../usr/include
DEPENDPATH += $$PWD/../../../../usr/include
To copy to clipboard, switch view to plain text mode
Thank you for your time.
Bookmarks