Configure QtCreator in RPi3
-
Hi,
This has nothing to do with Qt Creator. See this post on the RaspberryPi stack exchange site.
-
I'd check the RPi3 mkspec and change it there.
-
Qt's various platforms configuration are stored in what is call a mkspec. These files contains the set of compiler and linker options to use. Hence go to that folder, more specifically the one called devices in which you will find the RPi3 specific mkspec.
-
Under the mkspecs folder in your Qt installation.
-
Go to the preferences -> build and run -> Qt Versions.
-
It's
Build & Run
, but some stuff has changed, so depending on your Qt Creator version, it's underKits
. -
Well, I'm not sure I understood you correctly.
I've found QtCreator in Programming section of Application menu.
But neither section in Application menu mentions Qt framework itself.
The location of QtCreator executive I can check with
"which qtcreator" command.
It's located in /usr/bin. But there is no any folder named mkspec. -
-
No, it's in the devices subfolder. The one dedicated to RPi3.
-
There are 4 subfolders in devices subfolder that are in relation with RPi:
- linux-rasp-pi2-g++
- linux-rasp-pi-g++
- linux-rpi3-g++
- linux-rasp-vc-g++
Inside of all these subfolder there are filses qmake.conf
In every there are settings:
QMAKE_LIBS_EGL = -lEGL -lGLESv2 QMAKE_LIBS_OPENVG = -lEGL -lOpenVG -lGLESv2
I replaced GLESv2 with brcmGLESv2 in all qmake.conf files (i.e. in 4 folders).
Didn't help: when compiling project in QtCreator, I still see the same error message:
cannot find -lGLESv2 -
Might be a silly question but are you sure you are modifying the one from your self-built Qt ?
-
Did you check what your Kits are using as mkspecs ?