Skip to content
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.

CMake setup do not work with SDK in QtCreator #1

Open
DunderRoffe opened this issue Nov 15, 2017 · 5 comments
Open

CMake setup do not work with SDK in QtCreator #1

DunderRoffe opened this issue Nov 15, 2017 · 5 comments

Comments

@DunderRoffe
Copy link
Contributor

The sanity check of the compiler fails when compiling a CMake project using QtCreator in the PELUX SDE

@sashko
Copy link
Collaborator

sashko commented Aug 22, 2018

@DunderRoffe could you please update the status on this one once you're back from the leave? Thanks.

@DunderRoffe
Copy link
Contributor Author

AFAIK this is still an issue but I have not checked

@Shazter
Copy link

Shazter commented Mar 4, 2019

  1. SDE installed --> no error during setup
  2. Terminal started and done following

vagrant@vagrant:/opt/pelux_sdk$ source environment-setup-corei7-64-pelux-linux
vagrant@vagrant:/opt/pelux_sdk$ env | grep OECORE
OECORE_ACLOCAL_OPTS=-I /opt/pelux_sdk/sysroots/x86_64-peluxsdk-linux/usr/share/aclocal
OECORE_DISTRO_VERSION=3.0
OECORE_SDK_VERSION=3.0
OECORE_NATIVE_SYSROOT=/opt/pelux_sdk/sysroots/x86_64-peluxsdk-linux
OECORE_TARGET_SYSROOT=/opt/pelux_sdk/sysroots/corei7-64-pelux-linux

  1. Started Qtcreator in the same terminal
  2. Loaded the template-service

Error:

/opt/pelux_sdk/sysroots/x86_64-peluxsdk-linux/usr/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:52: error: The C compiler "/opt/pelux_sdk/sysroots/x86_64-peluxsdk-linux/usr/bin/x86_64-pelux-linux/x86_64-pelux-linux-gcc" is not able to compile a simple test program. It fails with the following output: Change Dir: /tmp/QtCreator-YXTdKS/qtc-cmake-bbnqLLOx/CMakeFiles/CMakeTmp Run Build Command:"/opt/pelux_sdk/sysroots/corei7-64-pelux-linux/usr/bin/make" "cmTC_abbec/fast" No such file or directory Generator: execution of make failed. Make command was: "/opt/pelux_sdk/sysroots/corei7-64-pelux-linux/usr/bin/make" "cmTC_abbec/fast"

@sashko sashko added the bug label Mar 4, 2019
@Shazter
Copy link

Shazter commented Mar 4, 2019

The qtcreator setup script says:

"""
This script is used to configure qt-creator with a PELUX-SDK.
It is assumed that the environment-setup script for the SDK has
been sourced before this script is executed.
"""

but I did not found the sourcing before the script is started and its not possible during SDE installation to source the environment-setup script.

@sashko
Copy link
Collaborator

sashko commented Mar 8, 2019

Alright, so cmake installation itself works perfectly fine: one can build the template-service with cmake in the terminal.

QtCreator, on the other hand, doesn't seem to be able to sanity check gcc on any cmake project.

I have added this issue to our backlog, but cannot promise it'll receive the high priority as we do not encourage using QtCreator for any on Qt related development. Perhaps we shouldn't have shipped the template-service with QtCreator though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants