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. TeamSpeak on Qt android
Forum Updated to NodeBB v4.3 + New Features

TeamSpeak on Qt android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
17 Posts 3 Posters 4.0k 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.
  • M Offline
    M Offline
    mvuori
    wrote on last edited by
    #2

    Judging by the name of your library you are trying to use a Windows library on Android.

    1 Reply Last reply
    0
    • AmrCoderA Offline
      AmrCoderA Offline
      AmrCoder
      wrote on last edited by
      #3

      but TeamSpeak supports Android and it's a cross platform the SDK folder I download contain a folder for android has this .so lib
      I think if I can link this lib to android it should work, is that right ? if so what I should do ?
      and Thanks for your reply

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #4

        Hi,

        You have to link you application against the android version of the library.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • AmrCoderA Offline
          AmrCoderA Offline
          AmrCoder
          wrote on last edited by AmrCoder
          #5

          is .so file not the android lib for the TeamSpeak ? there're no other links on TeamSpeak website only this file for TeamSpeak SDK and contain folder have a .so lib for armav7 and x86 so i think if i link it it should work is that right ?

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #6

            From what I can see, you added the library to the list of files to deploy. However you're not linking to it i.e LIBS += -lts3client_android in and android scope.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1
            • AmrCoderA Offline
              AmrCoderA Offline
              AmrCoder
              wrote on last edited by
              #7

              what i try

              #-------------------------------------------------
              #
              # Project created by QtCreator 2016-10-02T22:34:45
              #
              #-------------------------------------------------
              
              QT       += core gui
              
              greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
              
              TARGET = TeamSpeakClientTest
              TEMPLATE = app
              
              
              SOURCES += main.cpp\
                      mainwindow.cpp
              
              HEADERS  += mainwindow.h
              
              FORMS    += mainwindow.ui
              
              CONFIG += mobility
              MOBILITY = 
              
              #INCLUDEPATH += $$PWD/include
              #LIBS += $$PWD/lib/ts3client_win32.lib
              
              DISTFILES += \
                  android/AndroidManifest.xml \
                  android/gradle/wrapper/gradle-wrapper.jar \
                  android/gradlew \
                  android/res/values/libs.xml \
                  android/build.gradle \
                  android/gradle/wrapper/gradle-wrapper.properties \
                  android/gradlew.bat
              
              ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
              
              LIBS += -L"D:/WorkPlace/c++ Projects/TeamSpeakClientTest/android/libs" -llibts3client_android.so
              
              

              i got

              :-1: error: error: Projects/TeamSpeakClientTest/android/libs: No such file or directory
              

              please help what should i do and why this error ?

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #8

                Avoid spaces in the path.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                1
                • AmrCoderA Offline
                  AmrCoderA Offline
                  AmrCoder
                  wrote on last edited by AmrCoder
                  #9

                  all the project path or the Lib ?

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    To avoid all troubles, all.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    1
                    • AmrCoderA Offline
                      AmrCoderA Offline
                      AmrCoder
                      wrote on last edited by
                      #11

                      ok i Avoid spaces in the path for the whole project now i got this error
                      from compile output

                      23:52:03: Running steps for project TeamSpeakClientTest...
                      23:52:03: Configuration unchanged, skipping qmake step.
                      23:52:03: Starting: "C:\Qt\Qt5.6.1_Android\Tools\mingw492_32\bin\mingw32-make.exe" 
                      mingw32-make: Nothing to be done for 'first'.
                      23:52:03: The process "C:\Qt\Qt5.6.1_Android\Tools\mingw492_32\bin\mingw32-make.exe" exited normally.
                      23:52:03: Removing directory D:\TRYTHELIB\android-build
                      23:52:03: Starting: "C:\Qt\Qt5.6.1_Android\Tools\mingw492_32\bin\mingw32-make.exe" "INSTALL_ROOT=D:\TRYTHELIB\android-build" install
                      copy /y libTeamSpeakClientTest.so D:\TRYTHELIB\android-build\libs\armeabi-v7a\libTeamSpeakClientTest.so
                              1 file(s) copied.
                      23:52:04: The process "C:\Qt\Qt5.6.1_Android\Tools\mingw492_32\bin\mingw32-make.exe" exited normally.
                      23:52:04: Starting: "C:\Qt\Qt5.7.0_Android\5.7\android_armv7\bin\androiddeployqt.exe" --input D:/TRYTHELIB/android-libTeamSpeakClientTest.so-deployment-settings.json --output D:/TRYTHELIB/android-build --deployment bundled --android-platform android-23 --jdk "C:/Program Files (x86)/Java/jdk1.8.0_91" --ant C:/QTAndroid/apache-ant-1.9.7/bin/ant.bat
                      Generating Android Package
                        Input file: D:/TRYTHELIB/android-libTeamSpeakClientTest.so-deployment-settings.json
                        Output directory: D:/TRYTHELIB/android-build/
                        Application binary: D:/TRYTHELIB/libTeamSpeakClientTest.so
                        Android build platform: android-23
                        Install to device: No
                      Cannot find android sources in D:/TRYTHELIB/android23:52:05: The process "C:\Qt\Qt5.7.0_Android\5.7\android_armv7\bin\androiddeployqt.exe" exited with code 11.
                      Error while building/deploying project TeamSpeakClientTest (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.7.0))
                      When executing step "Build Android APK"
                      23:52:05: Elapsed time: 00:02.
                      

                      the .pro file

                      #-------------------------------------------------
                      #
                      # Project created by QtCreator 2016-10-02T22:34:45
                      #
                      #-------------------------------------------------
                      
                      QT       += core gui
                      
                      greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
                      
                      TARGET = TeamSpeakClientTest
                      TEMPLATE = app
                      
                      
                      SOURCES += main.cpp\
                              mainwindow.cpp
                      
                      HEADERS  += mainwindow.h
                      
                      FORMS    += mainwindow.ui
                      
                      CONFIG += mobility
                      MOBILITY = 
                      
                      INCLUDEPATH += $$PWD/include
                      LIBS += $$PWD/lib/ts3client_win32.lib
                      
                      DISTFILES += \
                          android/AndroidManifest.xml \
                          android/gradle/wrapper/gradle-wrapper.jar \
                          android/gradlew \
                          android/res/values/libs.xml \
                          android/build.gradle \
                          android/gradle/wrapper/gradle-wrapper.properties \
                          android/gradlew.bat \
                          android/libs/libts3client_android.so
                      
                      ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
                      
                      LIBS += $$PWD/libts3client_android.so
                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #12

                        Shouldn't android/libs/libts3client_android.so rather be $$PWD/libts3client_android.so ?

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        1
                        • AmrCoderA Offline
                          AmrCoderA Offline
                          AmrCoder
                          wrote on last edited by AmrCoder
                          #13

                          Thank you it compile ok and release a .apk file but when i start app it give me

                          unfortunately app has stopped
                          

                          what cause this problem what i have reach in .pro file

                          #-------------------------------------------------
                          #
                          # Project created by QtCreator 2016-10-02T22:34:45
                          #
                          #-------------------------------------------------
                          
                          QT += core gui
                          
                          greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
                          
                          TARGET = TeamSpeakClientTest
                          TEMPLATE = app
                          
                          
                          SOURCES += main.cpp\
                            mainwindow.cpp
                          
                          HEADERS += mainwindow.h
                          
                          FORMS += mainwindow.ui
                          
                          CONFIG += mobility
                          MOBILITY = 
                          
                          INCLUDEPATH += $$PWD/include
                          LIBS += $$PWD/lib/ts3client_win32.lib
                          
                          ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
                          
                          LIBS += $$PWD/android/libs/libts3client_android.so
                          
                          DISTFILES += \
                            android/AndroidManifest.xml \
                            android/gradle/wrapper/gradle-wrapper.jar \
                            android/gradlew \
                            android/res/values/libs.xml \
                            android/build.gradle \
                            android/gradle/wrapper/gradle-wrapper.properties \
                            android/gradlew.bat \
                            android/libs/libts3client_android.so
                          
                          

                          on window this error occurs when i don't but the .dll file in the path of .exe file the application crash and i get
                          The program has unexpectedly finished
                          but this on windows but what make this crash on android ?

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #14

                            Something's not clear, does it crash when you are running on Windows or on Android ?

                            In any case, the full error log is needed.

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 Reply Last reply
                            1
                            • AmrCoderA Offline
                              AmrCoderA Offline
                              AmrCoder
                              wrote on last edited by
                              #15

                              The error after installing the app on android when I start the app on my phone it crashes give this message

                              unfortunately, TeamSpeakClientTest has stopped
                              
                              1 Reply Last reply
                              0
                              • SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #16

                                You should have some more lines in the output panel when starting your application. By the way are you using a debug build ?

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                1 Reply Last reply
                                1
                                • AmrCoderA Offline
                                  AmrCoderA Offline
                                  AmrCoder
                                  wrote on last edited by
                                  #17

                                  no, i have a problem in debug so I release an APK file and install it direct on my phone

                                  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