Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set up Qt Creator so that it shows up under Applications?

Admittedly, I'm a newbie on the Apple / Mac ecosystem...

On Max OS X, the default install from Qt Disk Image installs to the user's home directory (/Users/whoami). This creates thousands of files show up in the Mac OS Finder.

I've managed to install to /usr/local/Qt. However, the only way to launch Qt Creator is from the Terminal.

I'd like to know how to set up Qt Creator so the installed app shows up under Applications in Finder app.

like image 770
user715213 Avatar asked Jul 25 '14 16:07

user715213


2 Answers

for example ,if you install Qt5.7 in the default folder,that is under /Users/your user /, you can use this command

ln -s ~/Qt5.7.0/Qt\ Creator.app/ /Applications/

now you look at your launcher panel,and you will find it.

like image 80
bowman han Avatar answered Nov 16 '22 01:11

bowman han


Download the current version of Qt Creator:

https://download.qt.io/official_releases/qtcreator/

Open the DMG file. Drag the Qt Creator icon to the Applications shortcut which is in the DMG folder.

Alternatively install homebrew:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Then install brew cask

brew install caskroom/cask/brew-cask

Once brew cask is installed you can install qt creator through that:

brew cask install qt-creator

Brew cask will install the application and it will appear in spotlight but not global /Application folder the because instead it creates a symbolic link to the ~/Applications folder. If you want to have it show up in the global /Applications folder you'll need to manually link it yourself via the following command:

sudo ln -s /opt/homebrew-cask/Caskroom/qt-creator/3.4.0/Qt\ Creator.app/ /Applications/Qt\ Creator.app

If you already have Qt Creator somewhere on your system you could just link to it using the previous command.

like image 22
Phil Hannent Avatar answered Nov 16 '22 01:11

Phil Hannent