Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. macbook air m1,12.2.1,qtcreator6.0.2,qt6.2.2,run in terminal not working , just output "Starting ......"
Forum Updated to NodeBB v4.3 + New Features

macbook air m1,12.2.1,qtcreator6.0.2,qt6.2.2,run in terminal not working , just output "Starting ......"

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 705 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.
  • T Offline
    T Offline
    tscmga
    wrote on last edited by
    #1

    Hi, i am a newbie from china. sorry for my poor english.
    i am using a macbook air m1, and latest qt, qtcreator . i installed xcode ,xcode command line tools. all my tools are new . i install qtcreator -1 days . using installer from official qt site .qt.io
    that is macOS 12.2.1 (21D62) apple m1
    qt creator 6.02 qt6.2.2 Based on Qt 6.2.2 (Clang 12.0 (Apple), 64 bit)
    Built on Jan 18 2022 10:00:20
    From revision f884ff2160
    xcode Version 13.2.1 (13C100

    i am build a linux program , using cmake. when i checked the "run in terminal " option , there is no new terminal show up ...
    the output of qtcreator says "starting /dfdfdfdf/"
    my terminal path option is default , that is point to the defaute python script , .

    after that ,
    i creat a qt example project , and set run in terminal , runs ok . that is started a new mac terminal window and zsh....

    than , i downloaded a simple helloword program using cmake from github
    set the run in teriminal option , there is no terminal shows up ...just output "starting /fdf//helloword" .
    i have no idea how to fix it.

    why i need to run in terminal?
    because i am using camera , it is very fock in mac os to use camera , as a unix program ....
    becuase if i run it directly , my program just crash...i am using opencv , becuase i do not have perminssion to use camera... i can run it , outside qtcreator , in a terminal .... or start->debug , debug the program, but i can not rebuilt ...if if rebuild i need to give permission again ...
    i am sooooooooooooo tied on programing on mac .... i want to say , ...programing on mac is....very ...fock ...becuase the the strick policy ...anyway
    i just want to make run in terminal work ...

    T 1 Reply Last reply
    0
    • T tscmga

      Hi, i am a newbie from china. sorry for my poor english.
      i am using a macbook air m1, and latest qt, qtcreator . i installed xcode ,xcode command line tools. all my tools are new . i install qtcreator -1 days . using installer from official qt site .qt.io
      that is macOS 12.2.1 (21D62) apple m1
      qt creator 6.02 qt6.2.2 Based on Qt 6.2.2 (Clang 12.0 (Apple), 64 bit)
      Built on Jan 18 2022 10:00:20
      From revision f884ff2160
      xcode Version 13.2.1 (13C100

      i am build a linux program , using cmake. when i checked the "run in terminal " option , there is no new terminal show up ...
      the output of qtcreator says "starting /dfdfdfdf/"
      my terminal path option is default , that is point to the defaute python script , .

      after that ,
      i creat a qt example project , and set run in terminal , runs ok . that is started a new mac terminal window and zsh....

      than , i downloaded a simple helloword program using cmake from github
      set the run in teriminal option , there is no terminal shows up ...just output "starting /fdf//helloword" .
      i have no idea how to fix it.

      why i need to run in terminal?
      because i am using camera , it is very fock in mac os to use camera , as a unix program ....
      becuase if i run it directly , my program just crash...i am using opencv , becuase i do not have perminssion to use camera... i can run it , outside qtcreator , in a terminal .... or start->debug , debug the program, but i can not rebuilt ...if if rebuild i need to give permission again ...
      i am sooooooooooooo tied on programing on mac .... i want to say , ...programing on mac is....very ...fock ...becuase the the strick policy ...anyway
      i just want to make run in terminal work ...

      T Offline
      T Offline
      tscmga
      wrote on last edited by
      #2

      i give up .
      so i will not reply this post any more.
      hope some one have the same problem like me
      bye

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tscmga
        wrote on last edited by
        #3

        I solved this problem.

        I install a new terminal called iterm2

        search qtcreator and iterm2
        there is a script to use iterm2
        i copy the script put in ~/.iterm.sh
        point terminal option to this script
        than ok #! /bin/bash

        ugly escaping: for apple script \ and " need to be escaped, whereas %q takes care of all bash escaping

        declare -a args
        mydir=pwd
        mydir=$(printf '%q' "$mydir")
        mydir="${mydir//\/\\}"
        args[0]="cd ${mydir//"/\"};"
        for a in "$@" ; do
        x=$(printf '%q ' "$a")
        x="${x//\/\\}"
        args[${#args[@]}]="${x//"/\"}"
        done
        mArgs=${args[@]:0}

        osascript <<EOF
        set cdScript to "$mArgs"
        tell application "iTerm2"
        set newWindow to (create window with default profile)
        tell newWindow
        select
        set _session to current session
        tell _session
        write text cdScript
        end tell
        end tell
        end tell

        S 1 Reply Last reply
        0
        • T tscmga

          I solved this problem.

          I install a new terminal called iterm2

          search qtcreator and iterm2
          there is a script to use iterm2
          i copy the script put in ~/.iterm.sh
          point terminal option to this script
          than ok #! /bin/bash

          ugly escaping: for apple script \ and " need to be escaped, whereas %q takes care of all bash escaping

          declare -a args
          mydir=pwd
          mydir=$(printf '%q' "$mydir")
          mydir="${mydir//\/\\}"
          args[0]="cd ${mydir//"/\"};"
          for a in "$@" ; do
          x=$(printf '%q ' "$a")
          x="${x//\/\\}"
          args[${#args[@]}]="${x//"/\"}"
          done
          mArgs=${args[@]:0}

          osascript <<EOF
          set cdScript to "$mArgs"
          tell application "iTerm2"
          set newWindow to (create window with default profile)
          tell newWindow
          select
          set _session to current session
          tell _session
          write text cdScript
          end tell
          end tell
          end tell

          S Offline
          S Offline
          shengdong
          wrote on last edited by
          #4

          @tscmga I have the same problem.It has bothered me for several days.But I still don't understand your solutions

          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