General Development Setup Questions
I've been trying to get qt set up for the past few days now and I have quite a few questions with tons of different answers according to the internet. I'm developing for embedded linux using qt webkit and I'm trying to get the entire environment set up so that i can deploy the application on my device. I've read many places that you have to cross-compile the source in order to do this and others say that this can all just be done from within qt creator and there is no need to build from source. So far I've only compiled from source and when I go to look for qt creator, it's not there (even though under downloads it says tar.gz containing qt libs/creator). So I guess my general questions are as follows:
- Why isn't qt creator there after building the source?
- Do you have to cross compile all of the source or can you just use the installer and set up for cross-compiling to your target device within qt creator?
[quote author="Requiemx" date="1407453650"] 1) Why isn't qt creator there after building the source? [/quote]
qtcreator is not part of qt libraries. You need to download installer or sources separately.
[quote author="Requiemx" date="1407453650"] 2) Do you have to cross compile all of the source or can you just use the installer and set up for cross-compiling to your target device within qt creator?[/quote] If you need to run Qt libraries on another hardware then you need to build the libraries for that hardware.
You don't need to build qtcreator for the hardware, because you will run it on PC.
Okay, this all makes sense. I am now building the libraries for my target device. I keep getting an error though when trying to enable icu.
Fatal error : Unicode/Utypes.h: no such file or directory
This is weird to me due to the fact that I have installed the required libicu-dev that is listed on the building qt from source page. Do I need to explicitly throw an includes somewhere in my configure command so that it knows where to look or what steps should be taken?
You installed ICU libraries for your target device, did you?
If so then you may need to provide -I path and maybe -L path to the configure script.
I ran a sudo apt-get install libicu-dev on my desktop in order to be able to configure qt so that it can use WebKit. However, it still can not enable icu. From what I can see, there is no path to the libs or includes for icu. There is just a folder /usr/share/icu/52.1 with an install-sh, license.html, and mkinstalldirs.
You building Qt for some non-x86 hardware, is it right?
If so then you need ICU libraries for the same architecture, not for your build PC.
You may need to build it too.
Yes. You are correct. I am building for arm, a cortex a9 processor.
Then you need to build ICU for arm, install it to cross-compile root and add -I path/to/arm-root/icu_includes and maybe -L path/to/arm-root/icu_libs to qt configure script.