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. We are error messages for custom build targets?

We are error messages for custom build targets?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 856 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.
  • AndersLindenA Offline
    AndersLindenA Offline
    AndersLinden
    wrote on last edited by AndersLinden
    #1

    I try to add a custom build target like this:

    QMAKE_EXTRA_TARGETS = mapboxgl
    
    mapboxgl.target = foo.obj
    mapboxgl.path = src/mapboxgl
    mapboxgl.commands = cmake qt-lib
    

    This does not build anything.

    I will need to modify it, for instance, I know that foo.obj will not be produced, that object file is probably called something else and most probaby, the path to cmake needs to be corrected.

    But where are the error messages that I can use to correct my build target?

    Did Qt creator even try to run it?

    K 1 Reply Last reply
    0
    • AndersLindenA AndersLinden

      I try to add a custom build target like this:

      QMAKE_EXTRA_TARGETS = mapboxgl
      
      mapboxgl.target = foo.obj
      mapboxgl.path = src/mapboxgl
      mapboxgl.commands = cmake qt-lib
      

      This does not build anything.

      I will need to modify it, for instance, I know that foo.obj will not be produced, that object file is probably called something else and most probaby, the path to cmake needs to be corrected.

      But where are the error messages that I can use to correct my build target?

      Did Qt creator even try to run it?

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @AndersLinden

      Did you rerun qmake after some modifications?
      An output should be shown in the output panes "General Messages" and possibly "Compile Output". The latter gets filled when you run qmake from creator.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      1
      • AndersLindenA Offline
        AndersLindenA Offline
        AndersLinden
        wrote on last edited by
        #3

        Hi Koahnig! Thanks for the answer! What sort of modifications should I do? I modified the pro file by adding those lines. Should they not be operative then?

        K 1 Reply Last reply
        0
        • AndersLindenA AndersLinden

          Hi Koahnig! Thanks for the answer! What sort of modifications should I do? I modified the pro file by adding those lines. Should they not be operative then?

          K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          @AndersLinden
          Did you see some error messages in either output pane?

          BTW the example shows += for assignment

          Also the QMAKE_EXTRA_TARGETS should be after the target definitions accoridng the shown example. Not sure if this has an influence. I believe to have seen the sequence as you are using.

          You may also print the content of QMAKE_EXTRA_TARGETS with

          message("QMAKE_EXTRA_TARGETS    " $$QMAKE_EXTRA_TARGETS)
          

          Vote the answer(s) that helped you to solve your issue(s)

          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