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. https://github.com/qt/qtcloudmessaging example does not compile
QtWS25 Last Chance

https://github.com/qt/qtcloudmessaging example does not compile

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
33 Posts 5 Posters 3.0k Views
  • 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #24

    Same as all Qt sources, on https://code.qt.io/

    For QtCloudMessaging: https://code.qt.io/cgit/qt/qtcloudmessaging.git/

    As for building, you can use Qt Creator but don't forget to mingw32-install once you're done building.

    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
    • R Offline
      R Offline
      Robin Hood
      wrote on last edited by
      #25

      I have now downloaded this Git project.
      See link: qtcloudmessaging

      What did I do:

      • I filled the google-service.json with content
      • Added the SERVER_API_KEY to the pushnotification.cpp
      • Since I can't set any environment variables, I set in .pro file the path to GOOGLE_FIREBASE_SDK and let ENV_GOOGLE_FIREBASE_SDK point to that path as well.
      • "CONFIG += firebase" inserted (see picture)

      Screenshot (32).png

      I do not get an error message that Qt modules are missing (very good), but now I get a different error message.

      Here is the complete compiler log:

      17:52:29: Führe Schritte für Projekt qtcloudmessaging aus...
      17:52:29: Starte: "D:\Qt\Tools\mingw730_32\bin\mingw32-make.exe" clean -j4
      cd src\ && ( if not exist Makefile D:\Qt\5.12.5\mingw73_32\bin\qmake.exe -o Makefile C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\src.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" "CONFIG += firebase" ) && D:/Qt/Tools/mingw730_32/bin/mingw32-make -f Makefile clean
      mingw32-make[1]: Entering directory 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/src'
      cd cloudmessaging\ && ( if not exist Makefile D:\Qt\5.12.5\mingw73_32\bin\qmake.exe -o Makefile C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\cloudmessaging\cloudmessaging.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" "CONFIG += firebase" ) && D:/Qt/Tools/mingw730_32/bin/mingw32-make -f Makefile clean
      cd cloudmessagingfirebase\ && ( if not exist Makefile D:\Qt\5.12.5\mingw73_32\bin\qmake.exe -o Makefile C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\cloudmessagingfirebase\cloudmessagingfirebase.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" "CONFIG += firebase" ) && D:/Qt/Tools/mingw730_32/bin/mingw32-make -f Makefile clean
      mingw32-make[2]: Entering directory 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/src/cloudmessaging'
      D:/Qt/Tools/mingw730_32/bin/mingw32-make -f Makefile.Debug clean
      D:/Qt/Tools/mingw730_32/bin/mingw32-make -f Makefile.Release clean
      mingw32-make[2]: Entering directory 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/src/cloudmessagingfirebase'
      D:/Qt/Tools/mingw730_32/bin/mingw32-make -f Makefile.Debug clean
      D:/Qt/Tools/mingw730_32/bin/mingw32-make -f Makefile.Release clean
      mingw32-make[3]: Entering directory 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/src/cloudmessaging'
      del .moc\debug\moc_predefs.h
      mingw32-make[3]: Entering directory 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/src/cloudmessaging'
      del .moc\release\moc_predefs.h
      mingw32-make[3]: Entering directory 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/src/cloudmessagingfirebase'
      del .moc\debug\moc_predefs.h
      C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug\src\cloudmessagingfirebase\.moc\debug\moc_predefs.h konnte nicht gefunden werden
      C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug\src\cloudmessaging\.moc\debug\moc_predefs.h konnte nicht gefunden werden
      
      ...
      
      17:52:40: Der Prozess "D:\Qt\Tools\mingw730_32\bin\mingw32-make.exe" wurde normal beendet.
      17:52:40: Starte: "D:\Qt\5.12.5\mingw73_32\bin\qmake.exe" C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\qtcloudmessaging.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" "CONFIG += firebase"
      17:52:40: Der Prozess "D:\Qt\5.12.5\mingw73_32\bin\qmake.exe" wurde normal beendet.
      17:52:40: Starte: "D:\Qt\Tools\mingw730_32\bin\mingw32-make.exe" -f C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/Makefile qmake_all
      cd src\ && D:\Qt\5.12.5\mingw73_32\bin\qmake.exe -o Makefile C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\src.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" "CONFIG += firebase"
      cd src\ && D:/Qt/Tools/mingw730_32/bin/mingw32-make -f Makefile qmake_all
      mingw32-make[1]: Entering directory 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/src'
      cd cloudmessaging\ && D:\Qt\5.12.5\mingw73_32\bin\qmake.exe -o Makefile C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\cloudmessaging\cloudmessaging.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" "CONFIG += firebase"
      cd cloudmessaging\ && D:/Qt/Tools/mingw730_32/bin/mingw32-make -f Makefile qmake_all
      mingw32-make[2]: Entering directory 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/src/cloudmessaging'
      mingw32-make[2]: Nothing to be done for 'qmake_all'.
      mingw32-make[2]: Leaving directory 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/src/cloudmessaging'
      cd cloudmessagingfirebase\ && D:\Qt\5.12.5\mingw73_32\bin\qmake.exe -o Makefile C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\cloudmessagingfirebase\cloudmessagingfirebase.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" "CONFIG += firebase"
      cd cloudmessagingfirebase\ && D:/Qt/Tools/mingw730_32/bin/mingw32-make -f Makefile qmake_all
      mingw32-make[2]: Entering directory 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/src/cloudmessagingfirebase'
      mingw32-make[2]: Nothing to be done for 'qmake_all'.
      mingw32-make[2]: Leaving directory 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/src/cloudmessagingfirebase'
      mingw32-make[1]: Leaving directory 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/src'
      cd examples\ && D:\Qt\5.12.5\mingw73_32\bin\qmake.exe -o Makefile C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\examples\examples.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" "CONFIG += firebase"
      cd examples\ && D:/Qt/Tools/mingw730_32/bin/mingw32-make -f Makefile qmake_all
      mingw32-make[1]: Entering directory 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/examples'
      cd firebase\ && D:\Qt\5.12.5\mingw73_32\bin\qmake.exe -o Makefile C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\examples\firebase\firebase.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" "CONFIG += firebase"
      cd firebase\ && D:/Qt/Tools/mingw730_32/bin/mingw32-make -f Makefile qmake_all
      mingw32-make[2]: Entering directory 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/examples/firebase'
      cd pushnotification\ && D:\Qt\5.12.5\mingw73_32\bin\qmake.exe -o Makefile C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\examples\firebase\pushnotification\pushnotification.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" "CONFIG += firebase"
      cd pushnotification\ && D:/Qt/Tools/mingw730_32/bin/mingw32-make -f Makefile qmake_all
      mingw32-make[3]: Entering directory 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/examples/firebase/pushnotification'
      mingw32-make[3]: Nothing to be done for 'qmake_all'.
      mingw32-make[3]: Leaving directory 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/examples/firebase/pushnotification'
      mingw32-make[2]: Leaving directory 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/examples/firebase'
      mingw32-make[1]: Leaving directory 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/examples'
      cd tests\ && D:\Qt\5.12.5\mingw73_32\bin\qmake.exe -o Makefile C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\tests\tests.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" "CONFIG += firebase"
      cd tests\ && D:/Qt/Tools/mingw730_32/bin/mingw32-make -f Makefile qmake_all
      mingw32-make[1]: Entering directory 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/tests'
      mingw32-make[1]: Nothing to be done for 'qmake_all'.
      mingw32-make[1]: Leaving directory 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/tests'
      17:52:59: Der Prozess "D:\Qt\Tools\mingw730_32\bin\mingw32-make.exe" wurde normal beendet.
      17:52:59: Starte: "D:\Qt\Tools\mingw730_32\bin\mingw32-make.exe" -j4
      cd src\ && ( if not exist Makefile D:\Qt\5.12.5\mingw73_32\bin\qmake.exe -o Makefile C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\src.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" "CONFIG += firebase" ) && D:/Qt/Tools/mingw730_32/bin/mingw32-make -f Makefile 
      mingw32-make[1]: Entering directory 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/src'
      cd cloudmessaging\ && ( if not exist Makefile D:\Qt\5.12.5\mingw73_32\bin\qmake.exe -o Makefile C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\cloudmessaging\cloudmessaging.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" "CONFIG += firebase" ) && D:/Qt/Tools/mingw730_32/bin/mingw32-make -f Makefile 
      cd cloudmessagingfirebase\ && ( if not exist Makefile D:\Qt\5.12.5\mingw73_32\bin\qmake.exe -o Makefile C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\cloudmessagingfirebase\cloudmessagingfirebase.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" "CONFIG += firebase" ) && D:/Qt/Tools/mingw730_32/bin/mingw32-make -f Makefile 
      mingw32-make[2]: Entering directory 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/src/cloudmessaging'
      D:/Qt/Tools/mingw730_32/bin/mingw32-make -f Makefile.Debug all
      D:/Qt/Tools/mingw730_32/bin/mingw32-make -f Makefile.Release all
      mingw32-make[2]: Entering directory 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/src/cloudmessagingfirebase'
      D:/Qt/Tools/mingw730_32/bin/mingw32-make -f Makefile.Debug all
      D:/Qt/Tools/mingw730_32/bin/mingw32-make -f Makefile.Release all
      mingw32-make[3]: Entering directory 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/src/cloudmessagingfirebase'
      mingw32-make[3]: *** No rule to make target 'C:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/build-qtcloudmessaging-Desktop_Qt_5_12_5_MinGW_32_bit-Debug/lib/libQt5CloudMessagingd.a', needed by '../../lib/libQt5CloudMessagingFirebased.a'.  Stop.
      
      ...
      
      mingw32-make[2]: *** [Makefile:42: debug-all] Error 2
      mingw32-make[2]: *** Waiting for unfinished jobs....
      mingw32-make[2]: *** [Makefile:56: release-all] Error 2
      mingw32-make[1]: *** [Makefile:69: sub-cloudmessagingfirebase-make_first] Error 2
      mingw32-make[1]: *** Waiting for unfinished jobs....
      
      ...
      
      In file included from C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\cloudmessaging\qcloudmessaging.cpp:29:0:
      C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\cloudmessaging\qcloudmessaging.h:32:10: fatal error: QtCloudMessaging/qtcloudmessagingglobal.h: No such file or directory
       #include <QtCloudMessaging/qtcloudmessagingglobal.h>
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      compilation terminated.
      In file included from C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\cloudmessaging\qcloudmessaging.cpp:29:0:
      C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\cloudmessaging\qcloudmessaging.h:32:10: fatal error: QtCloudMessaging/qtcloudmessagingglobal.h: No such file or directory
       #include <QtCloudMessaging/qtcloudmessagingglobal.h>
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      compilation terminated.
      mingw32-make[3]: *** [Makefile.Debug:548: .obj/debug/qcloudmessaging.o] Error 1
      mingw32-make[3]: *** Waiting for unfinished jobs....
      
      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #26

        .pro files do not create environnement variables.

        Did you install the module after building it ?

        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
        • R Offline
          R Offline
          Robin Hood
          wrote on last edited by
          #27

          Yes, I think it built the special modules. See pictures.

          Screenshot (33).png

          Screenshot (34).png

          What would you suggest now?

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Robin Hood
            wrote on last edited by
            #28

            D:\Qt\5.12.5\mingw73_64\bin>qtenv2.bat
            Setting up environment for Qt usage...

            D:\Qt\5.12.5\mingw73_64>D:\Qt\5.12.5\mingw73_32\bin\qmake.exe C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\qtcloudmessaging.pro "CONFIG += firebase" && D:/Qt/Tools/mingw730_32/bin/mingw32-make.exe && D:/Qt/Tools/mingw730_32/bin/mingw32-make.exe
            Info: creating cache file D:\Qt\5.12.5\mingw73_64.qmake.cache
            cd src\ && ( if not exist Makefile D:\Qt\5.12.5\mingw73_32\bin\qmake.exe -o Makefile C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\src.pro "CONFIG += firebase" ) && D:/Qt/Tools/mingw730_32/bin/mingw32-make.exe -f Makefile
            mingw32-make.exe[1]: Entering directory 'D:/Qt/5.12.5/mingw73_64/src'
            cd cloudmessaging\ && ( if not exist Makefile D:\Qt\5.12.5\mingw73_32\bin\qmake.exe -o Makefile C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\cloudmessaging\cloudmessaging.pro "CONFIG += firebase" ) && D:/Qt/Tools/mingw730_32/bin/mingw32-make.exe -f Makefile
            mingw32-make.exe[2]: Entering directory 'D:/Qt/5.12.5/mingw73_64/src/cloudmessaging'
            D:/Qt/Tools/mingw730_32/bin/mingw32-make.exe -f Makefile.Release all
            mingw32-make.exe[3]: Entering directory 'D:/Qt/5.12.5/mingw73_64/src/cloudmessaging'
            g++ -c -fno-keep-inline-dllexport -msse2 -mstackrealign -mfpmath=sse -O2 -std=c++1z -fno-exceptions -Wall -W -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_CLOUDMESSAGING_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -IC:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\cloudmessaging -I. -IC:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/qtcloudmessaging/include -IC:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/qtcloudmessaging/include/QtCloudMessaging -I....\include -I....\include\QtCloudMessaging -IC:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/qtcloudmessaging/include/QtCloudMessaging/5.11.0 -IC:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/qtcloudmessaging/include/QtCloudMessaging/5.11.0/QtCloudMessaging -Itmp -ID:\Qt\5.12.5\mingw73_32\include -ID:\Qt\5.12.5\mingw73_32\include\QtNetwork -ID:\Qt\5.12.5\mingw73_32\include\QtCore -I.moc\release -IC:\openssl\include -IC:\Utils\my_sql\mysql-5.6.11-win32\include -IC:\Utils\postgresql\pgsql\include -I....\mkspecs\win32-g++ -o .obj\release\qcloudmessaging.o C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\cloudmessaging\qcloudmessaging.cpp
            In file included from C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\cloudmessaging\qcloudmessaging.cpp:29:0:
            C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\cloudmessaging\qcloudmessaging.h:32:10: fatal error: QtCloudMessaging/qtcloudmessagingglobal.h: No such file or directory
            #include <QtCloudMessaging/qtcloudmessagingglobal.h>
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            compilation terminated.
            mingw32-make.exe[3]: *** [Makefile.Release:548: .obj/release/qcloudmessaging.o] Error 1
            mingw32-make.exe[3]: Leaving directory 'D:/Qt/5.12.5/mingw73_64/src/cloudmessaging'
            mingw32-make.exe[2]: *** [Makefile:42: release-all] Error 2
            mingw32-make.exe[2]: Leaving directory 'D:/Qt/5.12.5/mingw73_64/src/cloudmessaging'
            mingw32-make.exe[1]: *** [Makefile:44: sub-cloudmessaging-make_first] Error 2
            mingw32-make.exe[1]: Leaving directory 'D:/Qt/5.12.5/mingw73_64/src'
            mingw32-make.exe: *** [Makefile:45: sub-src-make_first] Error 2

            jsulmJ 1 Reply Last reply
            0
            • R Robin Hood

              D:\Qt\5.12.5\mingw73_64\bin>qtenv2.bat
              Setting up environment for Qt usage...

              D:\Qt\5.12.5\mingw73_64>D:\Qt\5.12.5\mingw73_32\bin\qmake.exe C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\qtcloudmessaging.pro "CONFIG += firebase" && D:/Qt/Tools/mingw730_32/bin/mingw32-make.exe && D:/Qt/Tools/mingw730_32/bin/mingw32-make.exe
              Info: creating cache file D:\Qt\5.12.5\mingw73_64.qmake.cache
              cd src\ && ( if not exist Makefile D:\Qt\5.12.5\mingw73_32\bin\qmake.exe -o Makefile C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\src.pro "CONFIG += firebase" ) && D:/Qt/Tools/mingw730_32/bin/mingw32-make.exe -f Makefile
              mingw32-make.exe[1]: Entering directory 'D:/Qt/5.12.5/mingw73_64/src'
              cd cloudmessaging\ && ( if not exist Makefile D:\Qt\5.12.5\mingw73_32\bin\qmake.exe -o Makefile C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\cloudmessaging\cloudmessaging.pro "CONFIG += firebase" ) && D:/Qt/Tools/mingw730_32/bin/mingw32-make.exe -f Makefile
              mingw32-make.exe[2]: Entering directory 'D:/Qt/5.12.5/mingw73_64/src/cloudmessaging'
              D:/Qt/Tools/mingw730_32/bin/mingw32-make.exe -f Makefile.Release all
              mingw32-make.exe[3]: Entering directory 'D:/Qt/5.12.5/mingw73_64/src/cloudmessaging'
              g++ -c -fno-keep-inline-dllexport -msse2 -mstackrealign -mfpmath=sse -O2 -std=c++1z -fno-exceptions -Wall -W -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_CLOUDMESSAGING_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -IC:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\cloudmessaging -I. -IC:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/qtcloudmessaging/include -IC:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/qtcloudmessaging/include/QtCloudMessaging -I....\include -I....\include\QtCloudMessaging -IC:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/qtcloudmessaging/include/QtCloudMessaging/5.11.0 -IC:/Users/rjung/Desktop/Beispiel-Projekte/Push-Projekte/qtcloudmessaging/include/QtCloudMessaging/5.11.0/QtCloudMessaging -Itmp -ID:\Qt\5.12.5\mingw73_32\include -ID:\Qt\5.12.5\mingw73_32\include\QtNetwork -ID:\Qt\5.12.5\mingw73_32\include\QtCore -I.moc\release -IC:\openssl\include -IC:\Utils\my_sql\mysql-5.6.11-win32\include -IC:\Utils\postgresql\pgsql\include -I....\mkspecs\win32-g++ -o .obj\release\qcloudmessaging.o C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\cloudmessaging\qcloudmessaging.cpp
              In file included from C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\cloudmessaging\qcloudmessaging.cpp:29:0:
              C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\src\cloudmessaging\qcloudmessaging.h:32:10: fatal error: QtCloudMessaging/qtcloudmessagingglobal.h: No such file or directory
              #include <QtCloudMessaging/qtcloudmessagingglobal.h>
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              compilation terminated.
              mingw32-make.exe[3]: *** [Makefile.Release:548: .obj/release/qcloudmessaging.o] Error 1
              mingw32-make.exe[3]: Leaving directory 'D:/Qt/5.12.5/mingw73_64/src/cloudmessaging'
              mingw32-make.exe[2]: *** [Makefile:42: release-all] Error 2
              mingw32-make.exe[2]: Leaving directory 'D:/Qt/5.12.5/mingw73_64/src/cloudmessaging'
              mingw32-make.exe[1]: *** [Makefile:44: sub-cloudmessaging-make_first] Error 2
              mingw32-make.exe[1]: Leaving directory 'D:/Qt/5.12.5/mingw73_64/src'
              mingw32-make.exe: *** [Makefile:45: sub-src-make_first] Error 2

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #29

              @Robin-Hood I think what @SGaist asked was: did you call "make install" after building the module?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • R Offline
                R Offline
                Robin Hood
                wrote on last edited by
                #30

                How after building?? I can not build.

                I made this commands like I posted. Here look please:

                D:\Qt\5.12.5\mingw73_64>D:\Qt\5.12.5\mingw73_32\bin\qmake.exe C:\Users\rjung\Desktop\Beispiel-Projekte\Push-Projekte\qtcloudmessaging\qtcloudmessaging.pro "CONFIG += firebase" && D:/Qt/Tools/mingw730_32/bin/mingw32-make.exe && D:/Qt/Tools/mingw730_32/bin/mingw32-make.exe
                

                So I do not call the command "make install". I do not know how. Here in this directory is no file with the name ... install ... what ever (like mingw32-make.exe)

                D:\Qt\Tools\mingw730_32\bin>dir
                 Datenträger in Laufwerk D: ist DATEN
                 Volumeseriennummer: C4E7-E6B6
                
                 Verzeichnis von D:\Qt\Tools\mingw730_32\bin
                
                04.09.2019  12:04    <DIR>          .
                04.09.2019  12:04    <DIR>          ..
                19.03.2018  14:07           888.334 addr2line.exe
                19.03.2018  14:07           913.422 ar.exe
                19.03.2018  14:07         1.684.494 as.exe
                19.03.2018  15:11         1.913.870 c++.exe
                19.03.2018  14:07           886.286 c++filt.exe
                19.03.2018  15:11         1.911.822 cpp.exe
                19.03.2018  14:07           944.142 dlltool.exe
                19.03.2018  14:07            53.774 dllwrap.exe
                19.03.2018  14:07         3.505.166 dwp.exe
                19.03.2018  14:07            38.414 elfedit.exe
                19.03.2018  15:11         1.913.870 g++.exe
                19.03.2018  15:11            65.038 gcc-ar.exe
                19.03.2018  15:11            65.038 gcc-nm.exe
                19.03.2018  15:11            65.038 gcc-ranlib.exe
                19.03.2018  15:11         1.911.310 gcc.exe
                19.03.2018  15:11         1.430.030 gcov-dump.exe
                19.03.2018  15:11         1.488.398 gcov-tool.exe
                19.03.2018  15:11         1.564.686 gcov.exe
                19.03.2018  15:53            52.976 gdb.exe
                19.03.2018  15:53         9.073.600 gdborig.exe
                19.03.2018  15:53           487.802 gdbserver.exe
                19.03.2018  15:12            56.334 gendef.exe
                19.03.2018  15:13            76.302 genidl.exe
                19.03.2018  15:13            29.710 genpeimg.exe
                19.03.2018  15:11         1.913.358 gfortran.exe
                19.03.2018  14:07           951.822 gprof.exe
                19.03.2018  15:11         1.913.870 i686-w64-mingw32-c++.exe
                19.03.2018  15:11         1.913.870 i686-w64-mingw32-g++.exe
                19.03.2018  15:11         1.911.310 i686-w64-mingw32-gcc-7.3.0.exe
                19.03.2018  15:11            65.038 i686-w64-mingw32-gcc-ar.exe
                19.03.2018  15:11            65.038 i686-w64-mingw32-gcc-nm.exe
                19.03.2018  15:11            65.038 i686-w64-mingw32-gcc-ranlib.exe
                19.03.2018  15:11         1.911.310 i686-w64-mingw32-gcc.exe
                19.03.2018  15:11         1.913.358 i686-w64-mingw32-gfortran.exe
                19.03.2018  14:07         1.216.526 ld.bfd.exe
                19.03.2018  14:07         1.216.526 ld.exe
                19.03.2018  14:07         5.653.006 ld.gold.exe
                19.03.2018  15:12            33.294 libatomic-1.dll
                19.03.2018  15:12           113.678 libgcc_s_dw2-1.dll
                19.03.2018  15:12         1.885.198 libgfortran-4.dll
                19.03.2018  15:12           168.974 libgomp-1.dll
                19.03.2018  15:12           484.878 libquadmath-0.dll
                19.03.2018  15:12            16.398 libssp-0.dll
                19.03.2018  15:12         1.542.158 libstdc++-6.dll
                19.03.2018  15:12            47.104 libwinpthread-1.dll
                19.03.2018  15:54           233.998 mingw32-make.exe
                19.03.2018  14:07           900.622 nm.exe
                19.03.2018  14:07         1.071.118 objcopy.exe
                19.03.2018  14:07         1.705.486 objdump.exe
                19.03.2018  14:07           913.422 ranlib.exe
                19.03.2018  14:07           555.534 readelf.exe
                19.03.2018  14:07           889.358 size.exe
                19.03.2018  14:07           889.870 strings.exe
                19.03.2018  14:07         1.071.118 strip.exe
                19.03.2018  15:13           441.358 widl.exe
                19.03.2018  14:07           912.398 windmc.exe
                19.03.2018  14:07         1.002.510 windres.exe
                              57 Datei(en),     66.608.400 Bytes
                               2 Verzeichnis(se), 253.148.708.864 Bytes frei
                
                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #31

                  Why are you building the module within the pre-built installation of Qt ?

                  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
                  • R Offline
                    R Offline
                    Robin Hood
                    wrote on last edited by Robin Hood
                    #32

                    So I tried to compile on Linux (for android) but same problem.
                    Here you can see my command on terminal:

                    I already did this, of course:

                    Download and unzip google firebase c++ SDK:
                    https://firebase.google.com/docs/cpp/setup
                    To use firebase as backend, define the following ENVIRONMENT variable (GOOGLE_FIREBASE_SDK = PATH) and make it to point to your firebase sdk root
                    

                    Step 1: 1. qmake "CONFIG += firebase"

                    export ANDROID_SDK_ROOT=/Users/jenkins/Library/Android/sdk; export ANDROID_HOME=/Users/jenkins/Library/Android/sdk; export ANDROID_NDK_ROOT=\"" + ndkpath + "\"; export GOOGLE_FIREBASE_SDK=${sdkpath}; ${qtpath}/${qtversion}/android_armv7/bin/qmake ${path}/${profile} -spec android-clang CONFIG+=qtquickcompiler CONFIG+=embedded-kaltiot CONFIG+=firebase
                    

                    Step 2: make qmake_all

                    export ANDROID_SDK_ROOT=/Users/jenkins/Library/Android/sdk; export ANDROID_HOME=/Users/jenkins/Library/Android/sdk; export ANDROID_NDK_ROOT=\"" + ndkpath + "\"; export GOOGLE_FIREBASE_SDK=${sdkpath}; ${ndkpath}/prebuilt/darwin-x86_64/bin/make -f ${abapath}/BASE/${projectRubrik}/build-${projectName}-Android_f_r_armeabi_v7a_Clang_Qt_${buildversion}_for_Android_ARMv7-Release/Makefile qmake_all
                    

                    Step 3: make

                    export ANDROID_SDK_ROOT=/Users/jenkins/Library/Android/sdk; export ANDROID_HOME=/Users/jenkins/Library/Android/sdk; export ANDROID_NDK_ROOT=\"" + ndkpath + "\"; export GOOGLE_FIREBASE_SDK=${sdkpath}; ${ndkpath}/prebuilt/darwin-x86_64/bin/make -j16
                    

                    Step 4: make install

                    export ANDROID_SDK_ROOT=/Users/jenkins/Library/Android/sdk; export ANDROID_HOME=/Users/jenkins/Library/Android/sdk; export ANDROID_NDK_ROOT=\"" + ndkpath + "\"; export GOOGLE_FIREBASE_SDK=${sdkpath}; ${ndkpath}/prebuilt/darwin-x86_64/bin/make INSTALL_ROOT=${abapath}/BASE/${projectRubrik}/build-${projectName}-Android_f_r_armeabi_v7a_Clang_Qt_${buildversion}_for_Android_ARMv7-Release/android-build install
                    

                    After step 3 it goes in FAILURE

                    ...
                    In file included from /Users/jenkins/ABA/BASE/PGM_Devel/qtcloudmessaging/src/cloudmessagingembeddedkaltiot/qcloudmessagingembeddedkaltiotclient.cpp:29:
                    /Users/jenkins/ABA/BASE/PGM_Devel/qtcloudmessaging/src/cloudmessagingembeddedkaltiot/qcloudmessagingembeddedkaltiotclient.h:32:10: fatal error: 'QtCloudMessaging/QtCloudMessaging' file not found
                    #include <QtCloudMessaging/QtCloudMessaging>
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    ...
                    

                    He can NOT find a single QtCloudMessaging/... file.

                    Please, can somebody help me ???

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

                      You do realize that I am going to ask the same question again ? Did you build the QtCloudMessaging module for that platform ?

                      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

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved