QT-creator on mac, no examples - macos

TLDR: Running qt creator 4.9.2 on macOS mojave 10.14. Installed it using brew cask install qt-creator no examples are shown, and the drop down menu in welcome mode > examples is empty even after configuring a valid qmake version in preferences > kit > qt version
Long version
So i installed QT creator using the command brew cast install qt-creator and it all worked fine.
After running Qt Creator it could not find any default qmake all the documentation states that it should be in tools > options > kit until i finally found that on mac it is actually located in preferences > kit > qt version and that the FileOpenDialog does not show hidden files and you need to press option + shift + G and then search for the folder where qmake is installed.
None of this is in any official qt documentation btw.
So finally, got started tried out building the notepad app, everything worked fine.
Now i wanted to try out some of the examples, entered Welcome Mode > Examples and everything is empty. There is nothing in the fold out meny. No QT version, no examples.
found this link Qt_Examples_in_Qt_Creator that states that there should be a $QTCREATORDIR/share/qtcreator/welcomescreen/qtcreator_tutorials.xml file, this i cannot find on mac.
Is there any up to date documentation about setting/troubleshooting up QT creator on mac?
is installing qt using brew valid?
any docs on troubleshooting qt-creater installations on mac?
how do i get the examples working on mac?

Related

Qt Creator - No QML utility installed

I'm trying to install Qt from vcpkg.
On macOS Monterey, while trying to add Qt installation from vcpkg on QtCreator it seems to complain about:
No QML utility installed.
And perhaps QT_SYSROOT is missing?
How should I proceed?
And trying to build a simple Qt project will led to:

Qt Creator on MacOS: pkg-config dependencies can't be found

I already tried all the solutions here, but I continue to get the following error when I issue the command "Run qmake" on my project from Qt Creator on Qt 5.6.1:
Project ERROR: grpc++ development package not found
... Yet, on the console, qmake && make clean && make successfully builds the project with no errors.
which qmake returns /usr/local/bin/qmake and qmake --version returns
QMake version 3.0
Using Qt version 5.6.1 in /usr/local/Cellar/qt5/5.6.1-1/lib
Here is my environment:
macOS Sierra
Qt SDK 5.7 (to get the latest version of Qt Creator)
Homebrew installed Qt 5.6.1 (I need 5.6.x specifically for ABI compatibility)
Dependencies grpc++, libsndfile, protobuf all installed via Homebrew in /usr/local and the .pc files are in /usr/local/lib/pkgconfig
When I open up a new terminal and type pkg-config --cflags --libs grpc++, I get the correct result back with no error message.
I'm trying to build this software, of which I am the primary author/maintainer: https://github.com/allquixotic/kynnaugh-cc
See the .pro file for details of how I'm telling it to use pkg-config.
I've tried the launchd.conf hack from here (and rebooted the Mac after updating it).
I've tried the /etc/paths.d/local hack from the same question, to no avail.
My .pro file has QT_CONFIG -= no-pkg-config.
I tried setting the env var PKG_CONFIG_PATH=/usr/local/lib/pkgconfig explicitly in the "Manage Kits" GUI of Qt Creator for the Qt 5.6.1 toolchain that I'm using, but it didn't change the errant behaviour.
Are there any other ways I can attempt to diagnose the problem, or can you spot an error in my .pro file, or is there a better solution to this problem than what I've attempted thus far?
I'm asking this as a new question because the solutions in that other question don't work, so I may very well be having a completely different problem despite extremely similar symptoms.
Turns out the PATH variable in Qt Creator wasn't picking up /usr/local/bin. Adding it manually to the project config fixed my issue.

Attempt to install Qt on OS X gives 'You need to install Xcode 5.0.0', but this version is so old it's not available

I am a Windows/Linux developer who occasionally builds for OS X - particularly in Qt.
I have a simple Qt project that I have been developing on Windows. I now wish to build it on OS X.
I am running Yosemite. I have installed Xcode 7 and am attempting to install Qt 5.5.
When I run the Qt installer, immediately after the prompt to log in to Qt (which is successful), I receive the following error:
You need to install Xcode version 5.0.0.
I have attempted to locate Xcode 5.0.0 on the Apple Developer site, but this is 2 major versions behind the most recent version, and I cannot even find an installer for it.
More to the point, I do wonder why the most recent version of Qt requires a version of Xcode that is considered so old by Apple that it's not even available.
How do I overcome this problem so that I can get Qt installed on OS X?
I ran into the same problem and solved it by following the instructions here. This link describes a similar, but slightly different installer issue.
To summarize, you need to ensure that the Xcode command line tools are installed and set up correctly. I already had them installed, but had to go into Preferences -> Locations in Xcode and set the dropdown to the currently installed version.
The link shows an earlier version of Xcode where the path is actually Preferences -> Downloads -> Components.
Once I'd made this change, the installer continued successfully.
The solution that worked for me (on OSX Sierra XCode 8.2.1) is to open XCode Preferences -> Locations.
There is a drop-down menu named Command Line Tools. Select the available XCode version here. Then restart the Qt Creator installation.
taken from the link above, this resolved my issue:
sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer
For me closing the prompt and smashing keys (alt F4, I know that its not windows) before the next prompt opened worked... qt is running fine now, as it doesn't need the old version.
you can find the old version of XCode on the the Apple offical site here and download .dmg of xcode 5 or 6.1 for example :
I do this and it's ok for me.

Debugging Qt app with Qt Creator: <no such value>

I'm using Qt Creator with Qt 5.1.1 in Ubuntu 12.04.
When I'm using the debugger to show content of any variable, the window always show "no such value" on every variable. Also on variables of type QString, int etc.
Is there a configuration problem on my Ubuntu?
Can anybody help me please?
It's been a year and a half ago, but the problem still remains actual for Ubuntu 12.04, Qt Creator 3.4.0 based on Qt 5.4.1.
As mentioned in Qt Creator Manual
Starting with version 3.1, Qt Creator requires the Python scripting extension. GDB builds without Python scripting are not supported anymore and will not work. The minimal supported version is GDB 7.5 using Python version 2.7, or 3.3, or newer.
I suppose that gdb --version gives you 7.4 (the last version of gdb for Ubuntu 12.04). That's why you have no such value issue.
1. Install a fresh gdb (7.8)
Remove the current gdb (to avoid conflicts with new one) and install development packet for python (to build gdb with Python scripting)
sudo apt-get remove gdb
sudo apt-get install python2.7-dev
Install gdb from the sources
wget http://ftp.gnu.org/gnu/gdb/gdb-7.8.tar.xz
tar -xf gdb-7.8.tar.xz
cd gdb-7.8/
./configure --prefix=/usr/local --with-python
make
sudo make install
Now gdb 7.8 is in /usr/local.
2. Update Qt Creator settings
Open menu Tools > Options ...
Select Build&Run, tab Debuggers
Click Add
Type Name you like, write Path: /usr/local/bin/gdb
In tab Kits change Debugger: with that you just created
Hope this help someone who still love Ubuntu 12.04 and Qt.

How do I install MonoDevelop on my Mac?

I just downloaded MonoDevelop for my Mac, but I cannot figure out how to install it.
Does anyone know exactly what to type in the terminal to get it to install?
The recently updated Mono 1.2.6 package for MacOS X contains Imendio's Native Gtk+ for OSX, Gtk# and MonoDevelop 0.18.1 with Mac support. It is now available from Mono's downloads page.
It appears that you have to run all three of these installs to get it to work:
Mono 2.2_5 Framework - Universal
MonoDevelop 2.0 Alpha 2
Cocoa# 0.9.4 source
this link might be helpful for new comers.
Mono:OsX
follow the link below if you are interested in Building Monodevelop in os X:
Building mono develop
Xamarin Studio may be installed using Homebrew.
For Mac and Windows, you can download Xamarin Studio which is a bundle of MonoDevelop along with Xamarin iOS/Android plugins and branding.
– Download | MonoDevelop.
There is a Homebrew Cask for Xamarin Studio.
The installation can be done as follows:
$ brew install Caskroom/cask/xamarin-studio
This question might be useful: How to use Homebrew's version of Mono with Xamarin - Stack Overflow.

Resources