Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to distribute my build of ICU with my app, on Ubuntu/Mint?

How to distribute my build of ICU with my app, on Ubuntu/Mint?

Scheduled Pinned Locked Moved Unsolved General and Desktop
iculinu
1 Posts 1 Posters 600 Views
  • 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.
  • D Offline
    D Offline
    davidb
    wrote on 19 Jan 2016, 17:51 last edited by
    #1

    Mint 17.2/Ubuntu 14.04 use ICU 52.1. I want to release my app (map_creator) with ICU 54.1.

    I can build ICU 54.1 on my Mint 17.2 build machine, and link to it when I build with Qt Creator, with this in my .pri:

        INCLUDEPATH += $${PWD}/third_party/icu/source/common 
                      $${PWD}/third_party/icu/source/i18n 
                      $${PWD}/third_party/build/icu/$${BUILD_MODE}/common 
    
        LIBS += -L$${PWD}/third_party/build/icu/$${BUILD_MODE}/lib 
    
    unix:LIBS += -licudata -licui18n -licuuc
    

    I can build my app on Mint 17.2 with Qt Creator, works fine. I can verify it is linking ICU 54 with:

    nm map_creator | c++filt | grep icu
    

    However, if I mouse over my code that uses ICU, the tooltip indicates it's pointing to the system ICU. And more importantly, my build script calls debuild, and when debuild builds my app, it links to the system ICU, which I can verify by comparing the Makefiles as well as running the nm command as above on the executable (after I extract if from the .deb).

    So, I'm confused! Why does it link correctly in Qt Creator, and how do I make it work correctly with debuild?

    In my rules file in override_dh_auto_configure, I call qmake with these parameters, which are the same as what Qt Creator does: -r -spec linux-g++-64

    1 Reply Last reply
    0

    1/1

    19 Jan 2016, 17:51

    • Login

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