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. Building the Qt Creator plugin Bookmarks
Forum Update on Monday, May 27th 2025

Building the Qt Creator plugin Bookmarks

Scheduled Pinned Locked Moved Solved General and Desktop
12 Posts 3 Posters 2.8k 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.
  • mrjjM Offline
    mrjjM Offline
    mrjj
    Lifetime Qt Champion
    wrote on last edited by
    #1

    Hi
    Trying to build my own Creator plugin Bookmarks.
    The build fails with
    fatal error LNK1181: cannot open input file 'ProjectExplorer4.lib'

    alt text

    
    So question is. I must build these dependencies by hand/first ?
    
    From the generated files, it seems
    "Dependencies" : [
            { "Name" : "ProjectExplorer", "Version" : "4.4.1" },
            { "Name" : "Core", "Version" : "4.4.1" },
            { "Name" : "TextEditor", "Version" : "4.4.1" }
        ]
    

    Those 3 modules must be build BEFORE trying to build Bookmark plugin or am I doing something wrong ?

    aha_1980A 1 Reply Last reply
    0
    • mrjjM mrjj

      Hi
      Trying to build my own Creator plugin Bookmarks.
      The build fails with
      fatal error LNK1181: cannot open input file 'ProjectExplorer4.lib'

      alt text

      
      So question is. I must build these dependencies by hand/first ?
      
      From the generated files, it seems
      "Dependencies" : [
              { "Name" : "ProjectExplorer", "Version" : "4.4.1" },
              { "Name" : "Core", "Version" : "4.4.1" },
              { "Name" : "TextEditor", "Version" : "4.4.1" }
          ]
      

      Those 3 modules must be build BEFORE trying to build Bookmark plugin or am I doing something wrong ?

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @mrjj This looks like the dependency list for the "normal" bookmarks plugin.

      Did you already change something or do you get the build errors with "plain" QtCreator?

      I'm no expert for the dependency tracking in Creator (and have even less QBS knowledge), but IMHO these lines already make sure that bookmarks is build after the specified plugins. For QMake, the dependencies are listed in bookmarks_dependencies.pri and look almost the same:

      QTC_PLUGIN_NAME = Bookmarks
      QTC_LIB_DEPENDS += \
          extensionsystem \
          utils
      QTC_PLUGIN_DEPENDS += \
          projectexplorer \
          coreplugin \
          texteditor
      

      Qt has to stay free or it will die.

      mrjjM 1 Reply Last reply
      3
      • aha_1980A aha_1980

        @mrjj This looks like the dependency list for the "normal" bookmarks plugin.

        Did you already change something or do you get the build errors with "plain" QtCreator?

        I'm no expert for the dependency tracking in Creator (and have even less QBS knowledge), but IMHO these lines already make sure that bookmarks is build after the specified plugins. For QMake, the dependencies are listed in bookmarks_dependencies.pri and look almost the same:

        QTC_PLUGIN_NAME = Bookmarks
        QTC_LIB_DEPENDS += \
            extensionsystem \
            utils
        QTC_PLUGIN_DEPENDS += \
            projectexplorer \
            coreplugin \
            texteditor
        
        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by mrjj
        #3

        @aha_1980
        Nope, its 100% plain.
        The Dependencies are from
        Bookmarks.json

        I do ( in a vs 32 bit developer shell , running "C:\Qt\5.10.0\msvc2015\bin\qtenv2.bat" )
        qmake, version is as expected.
        Then
        qmake ( this says nothing. just produces the MakeFile)
        nmake
        and here it fails.

        Should i use QBS ?
        qmake + nmake seems not try build anything but the plugin.

        aha_1980A 1 Reply Last reply
        0
        • mrjjM mrjj

          @aha_1980
          Nope, its 100% plain.
          The Dependencies are from
          Bookmarks.json

          I do ( in a vs 32 bit developer shell , running "C:\Qt\5.10.0\msvc2015\bin\qtenv2.bat" )
          qmake, version is as expected.
          Then
          qmake ( this says nothing. just produces the MakeFile)
          nmake
          and here it fails.

          Should i use QBS ?
          qmake + nmake seems not try build anything but the plugin.

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @mrjj said in Building the Qt Creator plugin Bookmarks:

          @aha_1980
          Nope, its 100% plain.

          hmm, then it must work.

          The Dependencies are from
          Bookmarks.json

          I do ( in a vs 32 bit developer shell , running "C:\Qt\5.10.0\msvc2015\bin\qtenv2.bat" )
          qmake, version is as expected.
          Then
          qmake ( this says nothing. just produces the MakeFile)
          nmake
          and here it fails.

          have you cleaned the build directory before?
          and are you trying to build 4.4.1?

          Should i use QBS ?

          no need to, I've never used it. but I heard you can do strange things with...

          PS: from my experience, building Creator in Linux is much easier...

          Qt has to stay free or it will die.

          mrjjM 1 Reply Last reply
          0
          • aha_1980A aha_1980

            @mrjj said in Building the Qt Creator plugin Bookmarks:

            @aha_1980
            Nope, its 100% plain.

            hmm, then it must work.

            The Dependencies are from
            Bookmarks.json

            I do ( in a vs 32 bit developer shell , running "C:\Qt\5.10.0\msvc2015\bin\qtenv2.bat" )
            qmake, version is as expected.
            Then
            qmake ( this says nothing. just produces the MakeFile)
            nmake
            and here it fails.

            have you cleaned the build directory before?
            and are you trying to build 4.4.1?

            Should i use QBS ?

            no need to, I've never used it. but I heard you can do strange things with...

            PS: from my experience, building Creator in Linux is much easier...

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @aha_1980
            H,, i though so too.
            Its completely clean.
            I actually build creator from same folder but didn't keep all the build files from back then.
            (on windows : with mingw )
            Its Creator 4.4.1 source.

            So just to be clear.
            Its not necessary to build all of Qt Creator tree to build the plugin.
            It should just build the needed modules by itself.

            Since you say, it should just work, i will try over with
            brand new Creator souce and see if it fares better.

            Thanks for the input.

            aha_1980A 1 Reply Last reply
            0
            • mrjjM mrjj

              @aha_1980
              H,, i though so too.
              Its completely clean.
              I actually build creator from same folder but didn't keep all the build files from back then.
              (on windows : with mingw )
              Its Creator 4.4.1 source.

              So just to be clear.
              Its not necessary to build all of Qt Creator tree to build the plugin.
              It should just build the needed modules by itself.

              Since you say, it should just work, i will try over with
              brand new Creator souce and see if it fares better.

              Thanks for the input.

              aha_1980A Offline
              aha_1980A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @mrjj hopefully we don't misunderstood each other...

              I did not say, you can only build one plugin, I did say, running qmake && make from Creators root should build all plugins in the needed sequence.

              good night...

              Qt has to stay free or it will die.

              mrjjM 1 Reply Last reply
              0
              • aha_1980A aha_1980

                @mrjj hopefully we don't misunderstood each other...

                I did not say, you can only build one plugin, I did say, running qmake && make from Creators root should build all plugins in the needed sequence.

                good night...

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @aha_1980
                Ahh, see - that is what i did not get.
                So answer, is. No you must manually build the needed
                dependencies or all of creator :)

                Thank you
                and good night.

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

                  Update:
                  Tried
                  https://wiki.qt.io/Building_Qt_Creator_from_Git
                  But stranded on the mentioned error
                  Project ERROR: Unknown module(s) in QT: script
                  and the mentioned fix did not solve it.
                  just gives
                  NMAKE : fatal error U1073: don't know how to make 'module-qtscript'
                  Oddly enough, this just worked for Qt5.7
                  Same guide, no errors.
                  Im wondering if thats due to QT: script being phased out.

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

                    Hi,

                    It's provided as a side installation in the Maintenance Tool if you need it.

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

                    mrjjM 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      Hi,

                      It's provided as a side installation in the Maintenance Tool if you need it.

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @SGaist

                      Ok, so that is the confusing part, i guess.
                      If i add it to Qt source code ( not Creators) it can then find it ?
                      So even if guide do not mentions it, Building Creator
                      also requires a full Qt source code to go along ?

                      Trying maintenance tool right now, adding fresh source and Qt module and crossing fingers. :)

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

                        If you go the source route, you'll have to build the module by hand, no need for a full Qt rebuild though.

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

                        mrjjM 1 Reply Last reply
                        2
                        • SGaistS SGaist

                          If you go the source route, you'll have to build the module by hand, no need for a full Qt rebuild though.

                          mrjjM Offline
                          mrjjM Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on last edited by mrjj
                          #12

                          Ok, so the main issue for building Creator is that
                          the binary Qt script module was not installed ?

                          Trying to install via maintenance and try fresh with creator again.
                          I want that bookmarks plugin to build :)

                          update:
                          Yes it was :)

                          finally build the bookmarks plugin :)

                          1 Reply Last reply
                          2

                          • Login

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