Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Target pattern error (Qt4.85 on Mojave 10.14.6)
Forum Updated to NodeBB v4.3 + New Features

Target pattern error (Qt4.85 on Mojave 10.14.6)

Scheduled Pinned Locked Moved Solved General and Desktop
24 Posts 2 Posters 2.9k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    I do not know exactly but using the bundle name in TARGET does look fishy.

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

    M 1 Reply Last reply
    0
    • SGaistS SGaist

      Hi,

      I do not know exactly but using the bundle name in TARGET does look fishy.

      M Offline
      M Offline
      marvic
      wrote on last edited by
      #3

      @SGaist said in Target pattern error (Qt4.85 on Mojave 10.14.6):

      Hi,

      I do not know exactly but using the bundle name in TARGET does look fishy.

      Changed TARGET = One.app/Contents/MacOS/One in.pro instead of One.

      and in 111 line changed to One instead of One.app/Contents/MacOS/One

      This is what your suggesting bundle name in Target.

      But still same error.

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

        What I meant is that you should not use the full bundle name in your TARGET.

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

        M 1 Reply Last reply
        0
        • SGaistS SGaist

          What I meant is that you should not use the full bundle name in your TARGET.

          M Offline
          M Offline
          marvic
          wrote on last edited by
          #5

          @SGaist said in Target pattern error (Qt4.85 on Mojave 10.14.6):

          What I meant is that you should not use the full bundle name if your TARGET.

          This way, TARGET = One, in Makefile.

          Possible to show, how to write in TARGET.

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

            Please show your current .pro file.

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

            M 1 Reply Last reply
            0
            • SGaistS SGaist

              Please show your current .pro file.

              M Offline
              M Offline
              marvic
              wrote on last edited by marvic
              #7

              @SGaist said in Target pattern error (Qt4.85 on Mojave 10.14.6):

              Please show your current .pro file.

              Original .pro

              QT       += core gui
              
              greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
              
              TARGET = One
              TEMPLATE = app
              
              
              SOURCES += main.cpp\
                      mainwindow.cpp
              
              HEADERS  += mainwindow.h
              
              FORMS    += mainwindow.ui
              
              

              This is kits selection, It says Mkspec not fond, I gave the full path in Qt mkspec.

              9482781e-edeb-45fc-a9d1-101d55acfad8-image.png

              M 1 Reply Last reply
              0
              • M marvic

                @SGaist said in Target pattern error (Qt4.85 on Mojave 10.14.6):

                Please show your current .pro file.

                Original .pro

                QT       += core gui
                
                greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
                
                TARGET = One
                TEMPLATE = app
                
                
                SOURCES += main.cpp\
                        mainwindow.cpp
                
                HEADERS  += mainwindow.h
                
                FORMS    += mainwindow.ui
                
                

                This is kits selection, It says Mkspec not fond, I gave the full path in Qt mkspec.

                9482781e-edeb-45fc-a9d1-101d55acfad8-image.png

                M Offline
                M Offline
                marvic
                wrote on last edited by marvic
                #8

                @marvic

                This is compile output

                Makefile:111: target `all' doesn't match the target pattern
                Makefile:117: *** target pattern contains no `%'.  Stop.
                18:36:58: The process "/usr/bin/make" exited with code 2.
                Error while building/deploying project Sample43 (kit: 4.85)
                When executing step "Make"
                

                I think there is : in Makefile 117 line, at this place /Makefile:

                /%{JS:\ Util.asciify(build-Sample43-4_85-Release)}/Makefile: ../Sample43/Sample43.pro
                
                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #9

                  I would first fix the mkspecs error.

                  But seeing the size of your project, you should really consider moving to Qt 5 or even 6 for that matter. Qt 4 has reached end of life a long time ago.

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

                  M 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    I would first fix the mkspecs error.

                    But seeing the size of your project, you should really consider moving to Qt 5 or even 6 for that matter. Qt 4 has reached end of life a long time ago.

                    M Offline
                    M Offline
                    marvic
                    wrote on last edited by
                    #10

                    @SGaist said in Target pattern error (Qt4.85 on Mojave 10.14.6):

                    I would first fix the mkspecs error.

                    But seeing the size of your project, you should really consider moving to Qt 5 or even 6 for that matter. Qt 4 has reached end of life a long time ago.

                    This app having qt4 API, on qt5 and over this API changed to QMultimedia,
                    Need to test this app without porting.

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      marvic
                      wrote on last edited by
                      #11

                      Other details

                      b678b795-3cff-4a50-a795-cffaee779c64-image.png
                      fd524978-9459-46a9-8c93-c074e70f134d-image.png

                      ABI shows unknown

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

                        Did you try to build your application directly on the command line ?

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

                        M 1 Reply Last reply
                        0
                        • SGaistS SGaist

                          Did you try to build your application directly on the command line ?

                          M Offline
                          M Offline
                          marvic
                          wrote on last edited by marvic
                          #13

                          @SGaist
                          Yes, did qmake and make, but got errors.

                          /bin/sh: One.app/Contents: No such file or directory
                          /bin/sh: One.app/Contents: No such file or directory
                          make: *** [One.app/Contents/PkgInfo] Error 127
                          
                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            marvic
                            wrote on last edited by marvic
                            #14

                            Made the build directory and project directory same, now door is different.

                            /usr/local/bin/uic mainwindow.ui -o ui_mainwindow.h
                            make: /usr/local/bin/uic: No such file or directory
                            make: *** [ui_mainwindow.h] Error 1
                            09:16:04: The process "/usr/bin/make" exited with code 2.
                            Error while building/deploying project One (kit: 4.85)
                            When executing step "Make"
                            

                            Copied the pic in /usr/local/bin, Now, I get.

                            /Users/vm/Documents/Qt-Apps/One/mainwindow.h:4: error: 'QMainWindow' file not found
                            #include <QMainWindow>
                                     ^~~~~~~~~~~~~
                            

                            Tried with , this also same error.

                            #include <QtGui/QMainWindow>
                            
                            1 Reply Last reply
                            0
                            • M Offline
                              M Offline
                              marvic
                              wrote on last edited by marvic
                              #15

                              How set these paths, using qmake?

                              QT_INSTALL_LIBS
                              QT_INSTALL_HEADERS
                              

                              This also

                              ld: library not found for -lQtGui
                              
                              1 Reply Last reply
                              0
                              • SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #16

                                Your Qt installation seems to be broken. Are you sure you selected the correct package from brew ?

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

                                M 2 Replies Last reply
                                0
                                • SGaistS SGaist

                                  Your Qt installation seems to be broken. Are you sure you selected the correct package from brew ?

                                  M Offline
                                  M Offline
                                  marvic
                                  wrote on last edited by
                                  #17

                                  @SGaist Yes, it's broken, installed using this command brew install cartr/qt4/qt@4

                                  Tried to compile source code 4.8.7, but it is not compiling on Mojave.

                                  1 Reply Last reply
                                  0
                                  • SGaistS SGaist

                                    Your Qt installation seems to be broken. Are you sure you selected the correct package from brew ?

                                    M Offline
                                    M Offline
                                    marvic
                                    wrote on last edited by
                                    #18

                                    @SGaist
                                    The app is based on Phonon API, Need to run on Mojave.
                                    This app gives Segmentation fault 11 error, crashes on Mojave.
                                    This app source code need to recompile on Mojave to run.

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

                                      Did you check what this segmentation fault is about ?

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

                                      M 1 Reply Last reply
                                      0
                                      • SGaistS SGaist

                                        Did you check what this segmentation fault is about ?

                                        M Offline
                                        M Offline
                                        marvic
                                        wrote on last edited by marvic
                                        #20

                                        @SGaist
                                        $ ./randomimage
                                        "Creating tile at index 0"
                                        2020-12-26 15:55:10.821 randomimage[1161:44993] modalSession has been exited prematurely - check for a reentrant call to endModalSession:
                                        "MediaTile::setMediaName: /Users/vk/Downloads/one/randomimage.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui"
                                        Segmentation fault: 11

                                        Do you think tweak is possible or Phonon4Qt5 will help in porting.

                                        Able to compiled Phonon4Qt5 on Mojave, in .pro added

                                        QT       += core gui phonon4qt5
                                        LIBS +=  /Users/vk/Documents/port-qt4/phonon-master/build5/bin
                                        INCLUDEPATH += /Users/vk/Documents/port-qt4/phonon-master/phonon
                                        

                                        but raised error,
                                        Project ERROR: Unknown module(s) in QT: phonon4qt5

                                        1 Reply Last reply
                                        0
                                        • M Offline
                                          M Offline
                                          marvic
                                          wrote on last edited by marvic
                                          #21

                                          @SGaist
                                          After changing the lib, include paths and with qt_phonon4qt5.pri coping to modules.

                                          able to compile, but it crashes,

                                          This is happing because of

                                           QKeySequence key = shortcut_it.key();
                                          
                                                  // Connect every shortcut with the setFocus slot, to ensure proper focus.
                                                  connect( shortcut, SIGNAL( activated() ), this , SLOT( setFocus() ), Qt::UniqueConnection );
                                          
                                                  switch ( key )
                                          
                                          /src/main/mainwindow.cpp:223: error: statement requires expression of integer type ('QKeySequence' invalid)
                                                  switch ( key )
                                                  ^        ~~~
                                          
                                          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