[SOLVED] makefile fail



  • I get these errors and don't know what to do now.

    @10:18:07: Running steps for project sbs2brain3d...
    10:18:07: Configuration unchanged, skipping qmake step.
    10:18:07: Starting: "C:\Qt\Tools\mingw48_32\bin\mingw32-make.exe"
    C:\Users\Darrel\android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++ --sysroot=C:\Users\Darrel\android-ndk-r9d/platforms/android-9/arch-arm/ -Wl,-soname,libsbs2brain3d.so -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libsbs2brain3d.so main.obj mainwindow.obj glwidget.obj glm.obj model.obj mycallback.obj qmlapplicationviewer.obj FFTReal.obj Rijndael.obj sbs2common.obj sbs2filehandler.obj sbs2filter.obj sbs2networkhandler.obj sbs2packet.obj sbs2region.obj sbs2spectrogram.obj sbs2timer.obj sbs2callback.obj sbs2datahandler.obj sbs2datareader.obj sbs2hardwaremounter.obj sbs2emocapmounter.obj sbs2emocapdatareader.obj sbs2emocappacket.obj sbs2emocap28mounter.obj sbs2emocap28datareader.obj sbs2emocap28packet.obj sbs2emotivmounter.obj sbs2emotivdatareader.obj sbs2emotivpacket.obj math_utilities.obj sbs2sourcereconstruction_sparse.obj sbs2sourcereconstruction_loreta.obj sbs2sourcereconstruction.obj qrc_resources.obj moc_qmlapplicationviewer.obj moc_sbs2filehandler.obj moc_sbs2filter.obj moc_sbs2networkhandler.obj moc_sbs2packet.obj moc_sbs2region.obj moc_sbs2spectrogram.obj moc_sbs2timer.obj moc_sbs2callback.obj moc_sbs2datahandler.obj moc_sbs2datareader.obj moc_sbs2hardwaremounter.obj moc_sbs2emocapmounter.obj moc_sbs2emocapdatareader.obj moc_sbs2emocappacket.obj moc_sbs2emocap28mounter.obj moc_sbs2emocap28datareader.obj moc_sbs2emocap28packet.obj moc_sbs2emotivmounter.obj moc_sbs2emotivdatareader.obj moc_sbs2emotivpacket.obj moc_sbs2emotivdecryptor.obj moc_sbs2sourcereconstruction_sparse.obj moc_sbs2sourcereconstruction_loreta.obj moc_sbs2sourcereconstruction.obj moc_mainwindow.obj moc_glwidget.obj moc_mycallback.obj -LC:\Users\Darrel\android-ndk-r9d/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a -LC:\Users\Darrel\android-ndk-r9d/platforms/android-9/arch-arm//usr/lib -LC:/Users/Darrel/Desktop/QT-5/smartphonebrainscanner2-Brain3D/../decryptor_libraries/ -lsbs2emotivdecryptor_android -LC:\Qt\5.2.1\android_armv7\lib -lQt5Quick -Lc:\Utils\android\ndk/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a -Lc:\Utils\android\ndk/platforms/android-9/arch-arm//usr/lib -LC:\Utils\icu32_51_1_mingw48\lib -LC:\utils\postgresql\pgsql\lib -LC:\utils\mysql\mysql\lib -LC:\Utils\pgsql\lib -LC:\temp\opensll-android-master\openssl-android-master\lib -LC:\Qt\5.2.1\android_armv7/lib -lQt5OpenGL -lQt5Qml -lQt5Widgets -lQt5Concurrent -lQt5Network -lQt5Gui -lQt5Core -lGLESv2 -lgnustl_shared -llog -lz -lm -ldl -lc -lgcc
    ../sbs2emotivdecryptor/sbs2emotivdecryptor.cpp:29: error: undefined reference to 'QChar::toAscii() const'
    collect2.exe: error: ld returned 1 exit status
    makefile:298: recipe for target 'libsbs2brain3d.so' failed
    mingw32-make: *** [libsbs2brain3d.so] Error 1
    10:18:08: The process "C:\Qt\Tools\mingw48_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project sbs2brain3d (kit: Android for armeabi-v7a (GCC 4.8, Qt 5.2.1))
    When executing step 'Make'
    10:18:08: Elapsed time: 00:01.@


  • Lifetime Qt Champion

    Hi,

    Might sound silly but don't use a function that doesn't exists ?

    If it's not your code, you might need to port it to Qt 5



  • It's not my code :-(

    I thought this was the version that was already ported to Qt 5.

    https://github.com/SmartphoneBrainScanner/smartphonebrainscanner2-core/tree/qt5-devel



  • How did you recognize it wasn't for Qt 5?


  • Lifetime Qt Champion

    qt5-devel <- devel is the keyword, things might break in a devel branch.

    Because QChar doesn't have a toAscii method in Qt 5


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.