Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. General Development Setup Questions
Forum Updated to NodeBB v4.3 + New Features

General Development Setup Questions

Scheduled Pinned Locked Moved Mobile and Embedded
8 Posts 2 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Requiemx
    wrote on last edited by
    #1

    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:

    1. Why isn't qt creator there after building the source?
    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?
    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on last edited by
      #2

      [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.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Requiemx
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andreyc
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Requiemx
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andreyc
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0
              • R Offline
                R Offline
                Requiemx
                wrote on last edited by
                #7

                Yes. You are correct. I am building for arm, a cortex a9 processor.

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  andreyc
                  wrote on last edited by
                  #8

                  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.

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved