Solved Cannot start the project in Qt for Mac OS
-
@jsulm said in Cannot start the project in Qt for Mac OS:
@loa3 Looks like desktop version. Then I don't know why you have this Java issue, I'm not Mac expert.
Yes I think it is not Qt issue but something wrong 'around' it...
-
@jsulm said in Cannot start the project in Qt for Mac OS:
@loa3 Looks like desktop version. Then I don't know why you have this Java issue, I'm not Mac expert.
Do you have any idea where can I find Mac/Qt experts, please?
-
-
@jsulm Many thanks!
-
Hi,
Can you show your environment variables in the console ?
What version of macOS are you running ? -
@SGaist said in Cannot start the project in Qt for Mac OS:
Can you show your environment variables in the console ?
Yes, please:
Macintosh:~ apple$ printenv
TERM_PROGRAM=Apple_Terminal
SHELL=/bin/bash
TERM=xterm-256color
TMPDIR=/var/folders/yh/5cyx35gd07x734h568l3p_p00000gp/T/
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.cV6k4mxtJJ/Render
TERM_PROGRAM_VERSION=421.2
TERM_SESSION_ID=C9973591-7071-476A-AF24-C559E765CCB1
USER=apple
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.J0oZF6hFtw/Listeners
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/Commands
PWD=/Users/apple
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home
LANG=ru_RU.UTF-8
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
SHLVL=1
HOME=/Users/apple
LOGNAME=apple
_=/usr/bin/printenv(I'm not sure that this is what you mean, sorry)
What version of macOS are you running ?
macOS 10.14.6 -
I do not see anything overly suspicious there.
How are you trying to create your project on the command line ?
-
@SGaist said in Cannot start the project in Qt for Mac OS:
How are you trying to create your project on the command line ?
I designed some projects in QtCreator and launched them from there with checkbox 'Run in terminal'.
It was very simple console programs that just use basic I/O commands like cin/cout as well as file operations.First of all the system told that there is no JVM.
When I installed it error has changed to that one which is above.
And I have to use Qt for Windows (no pleasure... ) ). -
What if you do not use the Run In Terminal option ?
-
@SGaist said in Cannot start the project in Qt for Mac OS:
What if you do not use the Run In Terminal option ?
It starts and works normally into QtCreator. But in this case I can not input by 'cin' and do something else (don't remember what exactly).
-
That's normal, the Qt Creator application output panel is not a terminal.
So what happens if your run your application directly in the Terminal application ?
-
@SGaist said in Cannot start the project in Qt for Mac OS:
That's normal, the Qt Creator application output panel is not a terminal.
Why 'cin' does not work into Qt's panel? What I do incorrect?
So what happens if your run your application directly in the Terminal application ?
Do you mean compile project into .app file or something like this? I have not try it and even do not know how to do it )
-
@loa3 said in Cannot start the project in Qt for Mac OS:
Why 'cin' does not work into Qt's panel? What I do incorrect?
As I just wrote above, the output panel (as the name suggests) is not a Terminal. You did nothing wrong.
@loa3 said in Cannot start the project in Qt for Mac OS:
Do you mean compile project into .app file or something like this? I have not try it and even do not know how to do it )
You already have it since you build it with Qt Creator. Just go to the build folder and run it there.
-
@SGaist said in Cannot start the project in Qt for Mac OS:
You already have it since you build it with Qt Creator. Just go to the build folder and run it there.
It's fantastic: just go and run. And it works! Without any errors. Unbelievable.
You're magician. Great thanks!
-
It still does not explain why you get these errors when starting through Qt Creator but at least you can run it now.
-
@SGaist said in Cannot start the project in Qt for Mac OS:
It still does not explain why you get these errors when starting through Qt Creator but at least you can run it now.
It is not problem.
Moreover now I started to write 'normal' (window based) apps which do not need terminal.Thank you very much for your help!