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. Custom project building. How?
Forum Updated to NodeBB v4.3 + New Features

Custom project building. How?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
8 Posts 3 Posters 1.1k 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.
  • B Offline
    B Offline
    bogong
    wrote on last edited by
    #1

    My project is building by run shell command

    $ make install part_of_project
    

    I am using it because it contain 3 different languages. My question is - How to define this command in Qt Creator build environment. I've been trying to use "Custom Process Step" but it's not working properly. My script contain $(PWD) for resolving project root path, but under Qt Creator it's not working. It's don't see the right root path of project and as result do not including correctly. When I am running it directly from shell - everything OK.

    How to solve it?

    aha_1980A 1 Reply Last reply
    0
    • B bogong

      My project is building by run shell command

      $ make install part_of_project
      

      I am using it because it contain 3 different languages. My question is - How to define this command in Qt Creator build environment. I've been trying to use "Custom Process Step" but it's not working properly. My script contain $(PWD) for resolving project root path, but under Qt Creator it's not working. It's don't see the right root path of project and as result do not including correctly. When I am running it directly from shell - everything OK.

      How to solve it?

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

      @bogong

      Please try this: http://doc.qt.io/qtcreator/creator-project-generic.html

      Qt has to stay free or it will die.

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bogong
        wrote on last edited by
        #3

        @aha_1980 said in Custom project building. How?:

        http://doc.qt.io/qtcreator/creator-project-generic.html

        Thanks ... Will try it now and reply after within result of it.

        1 Reply Last reply
        0
        • B Offline
          B Offline
          bogong
          wrote on last edited by bogong
          #4

          @AHA_1980 $(PWD) in make file still not working properly. There are fail with error. I created the Generic project. But it's not working. The same issue like previously.

          1 Reply Last reply
          0
          • B Offline
            B Offline
            bogong
            wrote on last edited by bogong
            #5

            My Makefile contain this row

            include $(PWD)/makefiles/additional.mk
            

            or

            include $(shell pwd)/makefiles/additional.mk
            

            The $(PWD) not working in Qt Creator only when I am trying to run make. Why it might be? Is there way to fix it?

            aha_1980A 1 Reply Last reply
            0
            • B bogong

              My Makefile contain this row

              include $(PWD)/makefiles/additional.mk
              

              or

              include $(shell pwd)/makefiles/additional.mk
              

              The $(PWD) not working in Qt Creator only when I am trying to run make. Why it might be? Is there way to fix it?

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

              @bogong You can set the working directory in the Projects setup page. For debug purpose, you should output $PWD to the console.

              Qt has to stay free or it will die.

              1 Reply Last reply
              0
              • B Offline
                B Offline
                bogong
                wrote on last edited by bogong
                #7

                @AHA_1980 Tried to change directory - nothing in result. Only fail. It's working perfectly when I am running it directly from shell, but not from Qt Creator.

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

                  Hi,

                  What about using $$PWD ?

                  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

                  • Login

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