Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Project ERROR: Unknown module(s) in QT: script

Project ERROR: Unknown module(s) in QT: script

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
qt5.7.0buildqtcreatorsource
14 Posts 2 Posters 23.3k 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.
  • A Offline
    A Offline
    Aras
    wrote on 16 Aug 2016, 16:59 last edited by
    #1

    I have build Qt from source and now I am trying to build Qt Creator from source and get the following error: Project ERROR: Unknown module(s) in QT: script. I found a similar thread that suggested building qtscript libraty by running make module-qtscript manually. I did that from the Qt source folder and the build for the script library finished without any errors. However, I still get the same error when I try to prepare Qt Creator for build:

    $ qmake -r ../qt-creator/qtcreator.pro
    Reading /home/aras/Projects/qt-creator/src/src.pro [/home/aras/Projects/qt-creator-build/src]
     Reading /home/aras/Projects/qt-creator/src/shared/qbs/src/lib/corelib/corelib.pro [/home/aras/Projects/qt-creator-build/src/shared/qbs/src/lib/corelib]
    Project ERROR: Unknown module(s) in QT: script
    

    Locating libQt5Script.so finds it in my Qt source directory but not installed anywhere else on the system:

    $ locate libQt5Script.so
    /home/aras/Projects/qt-everywhere-opensource-src-5.7.0/qtbase/lib/libQt5Script.so
    /home/aras/Projects/qt-everywhere-opensource-src-5.7.0/qtbase/lib/libQt5Script.so.5
    /home/aras/Projects/qt-everywhere-opensource-src-5.7.0/qtbase/lib/libQt5Script.so.5.7
    /home/aras/Projects/qt-everywhere-opensource-src-5.7.0/qtbase/lib/libQt5Script.so.5.7.0
    

    Here is my Qt version:

    $ qmake -v
    QMake version 3.0
    Using Qt version 5.7.0 in /usr/local/Qt-5.7.0/lib
    

    I am following this guide. What else do I need to do to get past this error and build Qt Creator?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 16 Aug 2016, 20:57 last edited by SGaist
      #2

      Hi,

      Did you call make install after you built the QtScript module ?

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

      A 1 Reply Last reply 16 Aug 2016, 21:12
      1
      • S SGaist
        16 Aug 2016, 20:57

        Hi,

        Did you call make install after you built the QtScript module ?

        A Offline
        A Offline
        Aras
        wrote on 16 Aug 2016, 21:12 last edited by
        #3

        @SGaist yes I ran sudo make install module-qtscript
        I also just tried doing a fresh build of qt from source using external build directory. I still get the same error :(

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 16 Aug 2016, 21:16 last edited by
          #4

          Ok, then, did you re-run qmake after you installed qtscript ?

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

          A 1 Reply Last reply 16 Aug 2016, 21:36
          0
          • S SGaist
            16 Aug 2016, 21:16

            Ok, then, did you re-run qmake after you installed qtscript ?

            A Offline
            A Offline
            Aras
            wrote on 16 Aug 2016, 21:36 last edited by
            #5

            @SGaist let me back track a bit. The first time I tried this I ran sudo make install module-qscript and once that was over I went back to my qt creator build directory and tried configuring the project again and I got this error:

            :~/Projects/qt-creator-build$ qmake -r ../qt-creator/qtcreator.pro
            Reading /home/aras/Projects/qt-creator/src/src.pro [/home/aras/Projects/qt-creator-build/src]
             Reading /home/aras/Projects/qt-creator/src/shared/qbs/src/lib/corelib/corelib.pro [/home/aras/Projects/qt-creator-build/src/shared/qbs/src/lib/corelib]
            Project ERROR: Unknown module(s) in QT: script
            

            Now I removed my old qt source folder and downloaded a new one and built it from scratch again. Then I build the qscript module without error. However, just now I tried installing it using sudo make install module-qtscript and after some time I got this new error:

            /home/aras/Projects/qt-everywhere-opensource-src-5.7.0/qtwayland/src/shared/qwaylandinputmethodeventbuilder.cpp
            /home/aras/Projects/qt-everywhere-opensource-src-5.7.0/qtwayland/src/shared/qwaylandinputmethodeventbuilder.cpp:46:80: fatal error: QtWaylandCompositor/private/qwayland-server-text-input-unstable-v2.h: No such file or directory
            compilation terminated.
            Makefile:8100: recipe for target '.obj/qwaylandinputmethodeventbuilder.o' failed
            make[3]: *** [.obj/qwaylandinputmethodeventbuilder.o] Error 1
            make[3]: Leaving directory '/home/aras/Projects/shared-build-qt5.7.0/qtwayland/src/compositor'
            Makefile:83: recipe for target 'sub-compositor-install_subtargets' failed
            make[2]: *** [sub-compositor-install_subtargets] Error 2
            make[2]: Leaving directory '/home/aras/Projects/shared-build-qt5.7.0/qtwayland/src'
            Makefile:56: recipe for target 'sub-src-install_subtargets' failed
            make[1]: *** [sub-src-install_subtargets] Error 2
            make[1]: Leaving directory '/home/aras/Projects/shared-build-qt5.7.0/qtwayland'
            Makefile:497: recipe for target 'module-qtwayland-install_subtargets' failed
            make: *** [module-qtwayland-install_subtargets] Error 2
            

            The build is really not cooperating with me. Do you have any suggestions?

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 16 Aug 2016, 21:53 last edited by
              #6

              Did you do a complete build before qtscript ?

              On a side note, if you want to avoid having to uncompress the sources each time. Just do an out of source build.

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

              A 1 Reply Last reply 16 Aug 2016, 21:56
              1
              • S SGaist
                16 Aug 2016, 21:53

                Did you do a complete build before qtscript ?

                On a side note, if you want to avoid having to uncompress the sources each time. Just do an out of source build.

                A Offline
                A Offline
                Aras
                wrote on 16 Aug 2016, 21:56 last edited by Aras
                #7

                @SGaist yes as far as I know, I did a complete build. In my last build after I deleted the initial source folder, I did an out of source build as someone else had also recommended that to me.

                I still am not able to install the qtscript module. What do you think I might be missing?

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 16 Aug 2016, 22:06 last edited by
                  #8

                  Check the size of the library files created and try to build a dummy project using the QtScript module.

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

                  A 1 Reply Last reply 16 Aug 2016, 22:25
                  1
                  • S SGaist
                    16 Aug 2016, 22:06

                    Check the size of the library files created and try to build a dummy project using the QtScript module.

                    A Offline
                    A Offline
                    Aras
                    wrote on 16 Aug 2016, 22:25 last edited by
                    #9

                    @SGaist here is a list of library files in my build folder (since they are not installed yet):

                    $ ls -sl /home/aras/Projects/shared-build-qt5.7.0/qtscript/lib/
                    total 4072
                       4 drwxrwxr-x 4 aras aras    4096 Aug 16 14:11 cmake
                       4 -rw-rw-r-- 1 aras aras     716 Aug 16 14:10 libQt5Script.la
                       4 -rw-rw-r-- 1 aras aras    1206 Aug 16 14:10 libQt5Script.prl
                       0 lrwxrwxrwx 1 aras aras      21 Aug 16 14:11 libQt5Script.so -> libQt5Script.so.5.7.0
                       0 lrwxrwxrwx 1 aras aras      21 Aug 16 14:11 libQt5Script.so.5 -> libQt5Script.so.5.7.0
                       0 lrwxrwxrwx 1 aras aras      21 Aug 16 14:11 libQt5Script.so.5.7 -> libQt5Script.so.5.7.0
                    2912 -rwxrwxr-x 1 aras aras 2979368 Aug 16 14:11 libQt5Script.so.5.7.0
                       4 -rw-rw-r-- 1 aras aras     751 Aug 16 14:11 libQt5ScriptTools.la
                       4 -rw-rw-r-- 1 aras aras    1221 Aug 16 14:11 libQt5ScriptTools.prl
                       0 lrwxrwxrwx 1 aras aras      26 Aug 16 14:11 libQt5ScriptTools.so -> libQt5ScriptTools.so.5.7.0
                       0 lrwxrwxrwx 1 aras aras      26 Aug 16 14:11 libQt5ScriptTools.so.5 -> libQt5ScriptTools.so.5.7.0
                       0 lrwxrwxrwx 1 aras aras      26 Aug 16 14:11 libQt5ScriptTools.so.5.7 -> libQt5ScriptTools.so.5.7.0
                    1136 -rwxrwxr-x 1 aras aras 1162304 Aug 16 14:11 libQt5ScriptTools.so.5.7.0
                       4 drwxrwxr-x 2 aras aras    4096 Aug 16 14:11 pkgconfig
                    
                    

                    Can you explain more how I make a dummy project to test the lib? Remember I am trying to build Qt Creator, so I don't have it yet. Should I just make a simple C++ file and try to build it in command line with qcc? Or do I need to configure it with qmake?

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 16 Aug 2016, 22:30 last edited by
                      #10

                      You can either use your distribution provided Qt Creator or the one from the installer.

                      Or just build one of QtScript examples.

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

                      A 1 Reply Last reply 16 Aug 2016, 22:35
                      1
                      • S SGaist
                        16 Aug 2016, 22:30

                        You can either use your distribution provided Qt Creator or the one from the installer.

                        Or just build one of QtScript examples.

                        A Offline
                        A Offline
                        Aras
                        wrote on 16 Aug 2016, 22:35 last edited by Aras
                        #11

                        @SGaist I rather not install the distro provided qt. I did that on another machine and it gets pretty confusing with multiple versions of Qt installed in parallel. I see if I can find a QtScript example, is there one that you know?

                        Edit: I found a bunch of script example projects in ~/Projects/qt-everywhere-opensource-src-5.7.0/qtscript/examples/script. The readme refers to docs, so I do not know how to build them yet, but will try to find out. But I tried just running qmake in one of the example folders and I get this error:

                        .../examples/script/calculator$ qmake
                        Info: creating stash file /home/aras/Projects/qt-everywhere-opensource-src-5.7.0/qtscript/.qmake.stash
                        Project ERROR: Unknown module(s) in QT: script uitools
                        
                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 24 Aug 2016, 21:51 last edited by
                          #12

                          Did you call make install after you built the module ?

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

                          A 1 Reply Last reply 24 Aug 2016, 21:56
                          1
                          • S SGaist
                            24 Aug 2016, 21:51

                            Did you call make install after you built the module ?

                            A Offline
                            A Offline
                            Aras
                            wrote on 24 Aug 2016, 21:56 last edited by
                            #13

                            I don't think I ran make install because qmake gave me that error above. Usually it says to run install if there are no errors.

                            I have since installed the binary distribution of Qt so that I am not blocked by this. But I still would like to learn how to do a full install of Qt and Qt Creator from source.

                            1 Reply Last reply
                            0
                            • S Offline
                              S Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on 24 Aug 2016, 22:17 last edited by
                              #14

                              Looks like you built the qtscript module successfully, that's why I'm asking whether you ran make install before trying to build the example.

                              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