Михаиллл
МихаилллDec. 19, 2018, 3:43 a.m.

Как подключить ICU

Qt, ICU, SQLite

Здравствуйте.
Говорят, если подключить ICU, то в SQLite появится регистронезависемый поиск.
Я нашел скомпилированный ICU по этой ссылке https://www.npcglib.org/~stathis/blog/precompiled-icu/
Скажите пожалуйста, как это правильно подключить в проект?

We recommend hosting TIMEWEB
We recommend hosting TIMEWEB
Stable hosting, on which the social network EVILEG is located. For projects on Django we recommend VDS hosting.

Do you like it? Share on social networks!

3
Evgenii Legotckoi
  • Dec. 20, 2018, 3:51 a.m.

Добрый день!

По идее, всё это добро можно подключить например так (это для подключения статических библиотек),

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/icu-59.1-vs2017/lib/ -lsicudt
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/icu-59.1-vs2017/lib/ -lsicudtd

INCLUDEPATH += $$PWD/icu-59.1-vs2017/include
DEPENDPATH += $$PWD/icu-59.1-vs2017/include

win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/icu-59.1-vs2017/lib/libsicudt.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/icu-59.1-vs2017/lib/libsicudtd.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/icu-59.1-vs2017/lib/sicudt.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/icu-59.1-vs2017/lib/sicudtd.lib

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/icu-59.1-vs2017/lib/ -lsicuin
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/icu-59.1-vs2017/lib/ -lsicuind

INCLUDEPATH += $$PWD/icu-59.1-vs2017/include
DEPENDPATH += $$PWD/icu-59.1-vs2017/include

win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/icu-59.1-vs2017/lib/libsicuin.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/icu-59.1-vs2017/lib/libsicuind.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/icu-59.1-vs2017/lib/sicuin.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/icu-59.1-vs2017/lib/sicuind.lib

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/icu-59.1-vs2017/lib/ -lsicuio
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/icu-59.1-vs2017/lib/ -lsicuiod

INCLUDEPATH += $$PWD/icu-59.1-vs2017/include
DEPENDPATH += $$PWD/icu-59.1-vs2017/include

win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/icu-59.1-vs2017/lib/libsicuio.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/icu-59.1-vs2017/lib/libsicuiod.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/icu-59.1-vs2017/lib/sicuio.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/icu-59.1-vs2017/lib/sicuiod.lib

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/icu-59.1-vs2017/lib/ -lsicutest
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/icu-59.1-vs2017/lib/ -lsicutestd

INCLUDEPATH += $$PWD/icu-59.1-vs2017/include
DEPENDPATH += $$PWD/icu-59.1-vs2017/include

win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/icu-59.1-vs2017/lib/libsicutest.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/icu-59.1-vs2017/lib/libsicutestd.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/icu-59.1-vs2017/lib/sicutest.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/icu-59.1-vs2017/lib/sicutestd.lib

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/icu-59.1-vs2017/lib/ -lsicutu
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/icu-59.1-vs2017/lib/ -lsicutud

INCLUDEPATH += $$PWD/icu-59.1-vs2017/include
DEPENDPATH += $$PWD/icu-59.1-vs2017/include

win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/icu-59.1-vs2017/lib/libsicutu.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/icu-59.1-vs2017/lib/libsicutud.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/icu-59.1-vs2017/lib/sicutu.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/icu-59.1-vs2017/lib/sicutud.lib

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/icu-59.1-vs2017/lib/ -lsicuuc
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/icu-59.1-vs2017/lib/ -lsicuucd

INCLUDEPATH += $$PWD/icu-59.1-vs2017/include
DEPENDPATH += $$PWD/icu-59.1-vs2017/include

win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/icu-59.1-vs2017/lib/libsicuuc.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/icu-59.1-vs2017/lib/libsicuucd.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/icu-59.1-vs2017/lib/sicuuc.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/icu-59.1-vs2017/lib/sicuucd.lib

Вообще в Qt Creator есть визард для подключения библиотек. Кликаете на проект правой кнопкой мыши и выбираете в контекстном меню "Добавить библиотеку", а там дальше внешнюю, статическую и т.д.

Я только не уверен, что это будет работать автоматически. Не удивлюсь, если нужно гонять данные через этот самый ICU, просто подключить скорее всего будет мало.

    Михаиллл
    • Dec. 20, 2018, 5:18 a.m.

    я тоже этого боюсь.
    из ICU вместе с драйверами компилируют новый драйвер и тогда оно иногда работает, но вот как это сделать, я пока не понял.

      Evgenii Legotckoi
      • Dec. 20, 2018, 5:39 a.m.

      ну... тут нужно поискать какие-то мануалы по компилированию самого драйвера SQLite тогда. Это интересный вопрос, но лично я им не занимался никогда.

        Comments

        Only authorized users can post comments.
        Please, Log in or Sign up
        AD

        C ++ - Test 004. Pointers, Arrays and Loops

        • Result:50points,
        • Rating points-4
        m

        C ++ - Test 004. Pointers, Arrays and Loops

        • Result:80points,
        • Rating points4
        m

        C ++ - Test 004. Pointers, Arrays and Loops

        • Result:20points,
        • Rating points-10
        Last comments
        i
        innorwallNov. 15, 2024, 6:30 a.m.
        Qt/C++ - Lesson 065. The correspondence of HTTP errors to server response errors in QNetworkAccessManager s Midsummer Classic in Kansas City priligy online pharmacy
        i
        innorwallNov. 15, 2024, 5:44 a.m.
        Qt/C++ - Lesson 039. How to paint stroke in QSqlTableModel by value in the column? Many OPKs would advise users to start using the test strips around day 9 of your cycle, considering day 1 to be the first day of full menstrual flow buy priligy australia
        i
        innorwallNov. 15, 2024, 2:27 a.m.
        Release of C++/Qt and QML application deployment utility CQtDeployer v1.4.0 (Binary Box) optionally substituted alkoxy, optionally substituted alkenyloxy, optionally substituted alkynyloxy, optionally substituted aryloxy, OCH, OC H, OC H, OC H, OC H, OC H, OC H, O C CH, OCH CH OH, O…
        i
        innorwallNov. 14, 2024, 9:26 p.m.
        Qt/C++ - Lesson 031. QCustomPlot – The build of charts with time buy generic priligy We can just chat, and we will not lose too much time anyway
        i
        innorwallNov. 14, 2024, 7:03 p.m.
        Qt/C++ - Lesson 060. Configuring the appearance of the application in runtime I didnt have an issue work colors priligy dapoxetine 60mg revia cost uk August 3, 2022 Reply
        Now discuss on the forum
        t
        tonypeachey1Nov. 15, 2024, 6:04 a.m.
        google domain [url=https://google.com/]domain[/url] domain [http://www.example.com link title]
        i
        innorwallNov. 15, 2024, 5:50 a.m.
        добавить qlineseries в функции priligy for sale Gently flush using an ear syringe
        i
        innorwallNov. 11, 2024, 10:55 a.m.
        Всё ещё разбираюсь с кешем. priligy walgreens levitra dulcolax carbs The third ring was found to be made up of ultra relativistic electrons, which are also present in both the outer and inner rings
        9
        9AnonimOct. 25, 2024, 9:10 a.m.
        Машина тьюринга // Начальное состояние 0 0, ,<,1 // Переход в состояние 1 при пустом символе 0,0,>,0 // Остаемся в состоянии 0, двигаясь вправо при встрече 0 0,1,>…

        Follow us in social networks