KDReport on Android



  • Hello,

    Do you know if it's possible to compile KDReport for Android ?

    Thank.

    Charlie


  • Lifetime Qt Champion

    Hi,

    IIRC, that project is purely Qt based so I don't see anything that would not allow it to build on Android.



  • Hi,

    Precisely that is what I hoped, but I have this error:

    MBPdeChrlesElie:KDReports charlie$ python autogen.py -shared -release -qmake /Applications/Qt/Qt5.8.0/5.8/android/bin/qmake -prefix /Applications/Qt/Qt5.8.0/5.8/android -hostqmake /Applications/Qt/Qt5.8.0/5.8/clang_64/bin/qmake
    -- Using source directory: /Users/charlie/KDReports
    -- Using repository information: revision=53085bb9 isTagged=False
    -- Auto-generation done.
    -- License marked as accepted.
    -- Wrote build files to: /Users/charlie/KDReports
    -- Now running configure script.
    
    KD Reports v1.7.50 configuration:
      Install Prefix.............: /Applications/Qt/Qt5.8.0/5.8/android
        (default: /usr/local/KDAB/KDReports-1.7.50)
      Debug......................: no (default: no)
      Release....................: yes (default: yes)
      Shared build...............: yes (default: yes)
      Host qmake................: /Applications/Qt/Qt5.8.0/5.8/clang_64/bin/qmake
      Compiled-In Unit Tests.....: no (default: no)
      Restricted symbol export
        (shared build only)......: yes (default: yes)
    
    Project MESSAGE: Install prefix is /Applications/Qt/Qt5.8.0/5.8/android
    Project MESSAGE: This is KD Reports version 1.7.50
    Reading /Users/charlie/KDReports/src/src.pro
    Project MESSAGE: WARNING: kdchart not found. Please set KDCHARTDIR either as an environment variable or on the qmake command line if you want kdchart support
    Reading /Users/charlie/KDReports/examples/examples.pro
     Reading /Users/charlie/KDReports/examples/tools/tools.pro
     Reading /Users/charlie/KDReports/examples/Letter/Letter.pro
     Reading /Users/charlie/KDReports/examples/HelloWorld/HelloWorld.pro
     Reading /Users/charlie/KDReports/examples/ReferenceReport/ReferenceReport.pro
     Reading /Users/charlie/KDReports/examples/PriceList/PriceList.pro
     Reading /Users/charlie/KDReports/examples/Database/Database.pro
     Reading /Users/charlie/KDReports/examples/HelloWorldXML/HelloWorldXML.pro
     Reading /Users/charlie/KDReports/examples/PriceListXML/PriceListXML.pro
     Reading /Users/charlie/KDReports/examples/DatabaseXML/DatabaseXML.pro
     Reading /Users/charlie/KDReports/examples/LongReport/LongReport.pro
     Reading /Users/charlie/KDReports/examples/LongTextReport/LongTextReport.pro
     Reading /Users/charlie/KDReports/examples/BigImage/BigImage.pro
     Reading /Users/charlie/KDReports/examples/MailMergeXML/MailMergeXML.pro
     Reading /Users/charlie/KDReports/examples/ReportSection/ReportSection.pro
     Reading /Users/charlie/KDReports/examples/Labels/Labels.pro
    Reading /Users/charlie/KDReports/include/include.pro
     Reading /Users/charlie/KDReports/include/KDReports/KDReports.pro
    Ok, now run make, then make install to install into /Applications/Qt/Qt5.8.0/5.8/android
    MBPdeChrlesElie:KDReports charlie$ make
    cd src/ && ( test -e Makefile || /Applications/Qt/Qt5.8.0/5.8/android/bin/qmake -o Makefile /Users/charlie/KDReports/src/src.pro VERSION=1.7.50 CONFIG+=kdreports_target CONFIG+=release CONFIG-=debug CONFIG-=debug_and_release CONFIG+=hide_symbols CONFIG-=static CONFIG-=staticlib CONFIG+=shared KDREPORTS_INSTALL_PREFIX=/Applications/Qt/Qt5.8.0/5.8/android CONFIG+=crosscompiling KDREPORTS_BASE=/Users/charlie/KDReports ) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile 
    rm -f libkdreports.so
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/Users/charlie/Library/Android/sdk/ndk-bundle/platforms/android-16/arch-arm/ -Wl,-no-undefined -Wl,-rpath=/Applications/Qt/Qt5.8.0/5.8/android/lib -Wl,--no-undefined -Wl,-z,noexecstack -shared -Wl,-soname,libkdreports.so -o libkdreports.so .obj/KDReportsReport.o .obj/KDReportsElement.o .obj/KDReportsChartElement.o .obj/KDReportsTextElement.o .obj/KDReportsHtmlElement.o .obj/KDReportsTableElement.o .obj/KDReportsAutoTableElement.o .obj/KDReportsAbstractTableElement.o .obj/KDReportsImageElement.o .obj/KDReportsReportBuilder.o .obj/KDReportsPreviewDialog.o .obj/KDReportsPreviewWidget.o .obj/KDReportsLayoutHelper.o .obj/KDReportsHeader.o .obj/KDReportsTextDocument.o .obj/KDReportsTextDocumentData.o .obj/KDReportsCell.o .obj/KDReportsFrame.o .obj/KDReportsXmlParser.o .obj/KDReportsTableBreakingSettingsDialog.o .obj/KDReportsXmlElementHandler.o .obj/KDReportsErrorDetails.o .obj/KDReportsTableBreakingLogic.o .obj/KDReportsFontScaler.o .obj/KDReportsHLineTextObject.o .obj/KDReportsHLineElement.o .obj/KDReportsChartTextObject.o .obj/KDReportsMainTable.o .obj/KDReportsAbstractReportLayout.o .obj/KDReportsTextDocReportLayout.o .obj/KDReportsSpreadsheetReportLayout.o .obj/KDReportsTableLayout.o .obj/KDReportsXmlElementHandlerV2.o .obj/KDReportsXmlHelper.o .obj/qrc_pics.o .obj/moc_KDReportsHLineTextObject_p.o .obj/moc_KDReportsChartTextObject_p.o  -L/Users/charlie/Library/Android/sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a -L/Users/charlie/Library/Android/sdk/ndk-bundle/platforms/android-16/arch-arm//usr/lib -L/Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x -L/Applications/Qt/Qt5.8.0/5.8/android/lib -lQt5PrintSupport -lQt5Widgets -lQt5Gui -lQt5Xml -lQt5Core -lGLESv2 -lgnustl_shared -llog -lz -lm -ldl -lc -lgcc 
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsReport.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsElement.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsChartElement.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsTextElement.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsHtmlElement.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsTableElement.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsAutoTableElement.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsAbstractTableElement.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsImageElement.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsReportBuilder.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsPreviewDialog.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsPreviewWidget.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsLayoutHelper.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsHeader.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsTextDocument.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsTextDocumentData.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsCell.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsFrame.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsXmlParser.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsTableBreakingSettingsDialog.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsXmlElementHandler.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsErrorDetails.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsTableBreakingLogic.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsFontScaler.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsHLineTextObject.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsHLineElement.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsChartTextObject.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsMainTable.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsAbstractReportLayout.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsTextDocReportLayout.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsSpreadsheetReportLayout.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsTableLayout.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsXmlElementHandlerV2.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/KDReportsXmlHelper.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/qrc_pics.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/moc_KDReportsHLineTextObject_p.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/moc_KDReportsChartTextObject_p.o:1:1: invalid character
    collect2: error: ld returned 1 exit status
    make[1]: *** [../lib/libkdreports.so] Error 1
    make: *** [sub-src-make_first-ordered] Error 2
    

    I'm going to take a look at the KDAB mailing list ... I'll probably find help, but if you has an idea, it's welcome :)


Log in to reply
 

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