QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = qt_test
TEMPLATE = app
INCLUDEPATH += C:/qt_projects/-----X-----/boost/1.59.0/include
LIBS += C:/qt_projects/-----X-----/boost/1.59.0/libs
DEFINES += QT_DEPRECATED_WARNINGS
CONFIG += c++14
SOURCES += main.cpp\
mainwindow.cpp \
graph.cpp \
textrank.cpp
HEADERS += mainwindow.h \
graph.hpp \
textrank.hpp
FORMS += mainwindow.ui
contains(ANDROID_TARGET_ARCH,x86) {
ANDROID_EXTRA_LIBS = \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_atomic.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_chrono.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_container.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_context.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_coroutine.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_date_time.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_filesystem.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_graph.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_iostreams.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_locale.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_log.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_log_setup.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_math_c99.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_math_c99f.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_math_c99l.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_math_tr1.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_math_tr1f.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_math_tr1l.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_prg_exec_monitor.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_program_options.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_python.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_python3.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_random.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_regex.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_serialization.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_signals.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_system.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_thread.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_timer.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_unit_test_framework.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_wave.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_wserialization.so
}
LIBS += C:/qt_projects/-----X-----/boost/1.59.0/libs
лишняя.contains(ANDROID_TARGET_ARCH,x86) {
ANDROID_EXTRA_LIBS += \
L"C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/" \
lboost_atomic \
lboost_chrono \
..........
}
по аналогии со стандартным для qmake добавлением в LIBS (Lпуть - путь к каталогу с либами, lназвание - название библиотеки без lib и .so)L"Путь к какталогу" lназвание_библиотеки1 lназвание_библиотеки2
. Соответственно, для подключения boost::regex вам нужно написать LIBS += L"C:/qt_projects/-----X-----/boost/1.59.0/libs" lboost_regex lboost_system
.LIBS += L"C:\qt_projects\-----X-----\boost\1.59.0\libs" lboost_regex lboost_system
или LIBS += L"/с/qt_projects/-----X-----/boost/1.59.0/libs" lboost_regex lboost_system
. contains(ANDROID_TARGET_ARCH,x86) {...}
для этого и нужен, но судя по всему это не так. LIBS += L"C:/qt_projects/-----X-----/boost/1.59.0/libs" lboost_regex lboost_system
LIBS += "C:/qt_projects/-----X-----/boost/1.59.0/libs/libboost_regex.so" \
"C:/qt_projects/-----X-----/boost/1.59.0/libs/libboost_system.so"
-LC:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5 -lboost_system -lboost_atomic -LC:/qt_projects/-----X-----/IsTextRankKo-master/src/../../boost/1.59.0/libs/x86/gnu-5/ -lboost_regex
, компилятор получает правильные аргументы, только у вас сейчас путь к либам два раза указывается (из-за последнего добавления, видимо). Вызывает некоторые сомнения сочетание "gnu-5" и GCC 4.9. Возможно, у вас версия компилятора не соответствует той, которой был boost скомпилирован. CONFIG += c++14
на CONFIG += c++11
External library LC:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-4.9/ does not exist!
External library LC:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-4.9/ does not exist!
, тут опять не правильный формат LIBS. Должно быть так:LIBS += -L"C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-4.9" -lboost_regex -lboost_system
LIBS += -L"C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-4.9" libboost_regex.so libboost_system.so
ANDROID_EXTRA_LIBS = \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_regex.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_system.so
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = qt_test
TEMPLATE = app
INCLUDEPATH += C:/qt_projects/-----X-----/boost/1.59.0/include
LIBS += -L"C:/qt_projects/-----X-----boost/1.59.0/libs/x86/gnu-4.9/" -lboost_regex -lboost_system
DEFINES += QT_DEPRECATED_WARNINGS
CONFIG += c++14
SOURCES += main.cpp\
mainwindow.cpp \
graph.cpp \
textrank.cpp
HEADERS += mainwindow.h \
graph.hpp \
textrank.hpp
FORMS += mainwindow.ui
contains(ANDROID_TARGET_ARCH,x86) {
ANDROID_EXTRA_LIBS = \
$$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/libboost_regex.so
}
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/ -lboost_regex
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/ -lboost_regexd
else:unix: LIBS += -L$$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/ -lboost_regex
INCLUDEPATH += $$PWD/../../boost/1.59.0/libs/x86/gnu-4.9
DEPENDPATH += $$PWD/../../boost/1.59.0/libs/x86/gnu-4.9
ANDROID_EXTRA_LIBS = \
C:/crystax-ndk-10.3.2/sources/crystax/libs/x86/libcrystax.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_regex.so \
C:/qt_projects/-----X-----/boost/1.59.0/libs/x86/gnu-5/libboost_system.so
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/ -lboost_regex
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/ -lboost_regexd
else:unix: LIBS += -L$$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/ -lboost_regex
INCLUDEPATH += $$PWD/../../boost/1.59.0/libs/x86/gnu-4.9
DEPENDPATH += $$PWD/../../boost/1.59.0/libs/x86/gnu-4.9
win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/libboost_regex.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/libboost_regexd.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/boost_regex.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/boost_regexd.lib
else:unix: PRE_TARGETDEPS += $$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/libboost_regex.a
QMAKE_LIBS_PRIVATE += -L"C:/crystax-ndk-10.3.2/sources/crystax/libs/x86/libcrystax.so" -lcrystax
APP_PLATFORM += android-21
APP_CPPFLAGS += -frtti
APP_CPPFLAGS += -fexceptions
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = qt_test
TEMPLATE = app
DEFINES += QT_DEPRECATED_WARNINGS
CONFIG += c++14
SOURCES += main.cpp\
mainwindow.cpp \
graph.cpp \
textrank.cpp
HEADERS += mainwindow.h \
graph.hpp \
textrank.hpp
FORMS += mainwindow.ui
contains(ANDROID_TARGET_ARCH,x86) {
ANDROID_EXTRA_LIBS = \
$$PWD/../../boost/1.59.0/libs/x86/gnu-4.9/libboost_regex.so
}
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../crystax-ndk-10.3.2/sources/boost/1.59.0/libs/x86/gnu-4.9/ -lboost_regex
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../crystax-ndk-10.3.2/sources/boost/1.59.0/libs/x86/gnu-4.9/ -lboost_regexd
else:unix: LIBS += -L$$PWD/../../../../crystax-ndk-10.3.2/sources/boost/1.59.0/libs/x86/gnu-4.9/ -lboost_regex
INCLUDEPATH += $$PWD/../../../../crystax-ndk-10.3.2/sources/boost/1.59.0/libs/x86/gnu-4.9
DEPENDPATH += $$PWD/../../../../crystax-ndk-10.3.2/sources/boost/1.59.0/libs/x86/gnu-4.9
win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../../../crystax-ndk-10.3.2/sources/boost/1.59.0/libs/x86/gnu-4.9/libboost_regex.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../../../crystax-ndk-10.3.2/sources/boost/1.59.0/libs/x86/gnu-4.9/libboost_regexd.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../../../crystax-ndk-10.3.2/sources/boost/1.59.0/libs/x86/gnu-4.9/boost_regex.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../../../crystax-ndk-10.3.2/sources/boost/1.59.0/libs/x86/gnu-4.9/boost_regexd.lib
else:unix: PRE_TARGETDEPS += $$PWD/../../../../crystax-ndk-10.3.2/sources/boost/1.59.0/libs/x86/gnu-4.9/libboost_regex.a
@echo off
reg add "HKCU\Software\Microsoft\Command Processor" /v AutoRun /t reg_expand_sz /d "chcp 1251 1>nul" /f
qtcreator.exe
reg delete "HKCU\Software\Microsoft\Command Processor" /v AutoRun /f
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TEMPLATE = app
CONFIG += c++14
CONFIG -= debug_and_release debug_and_release_target
DEFINES += QT_DEPRECATED_WARNINGS
SOURCES += main.cpp\
mainwindow.cpp
HEADERS += mainwindow.h
FORMS +=
TEMPLATE = app
CONFIG += mobility
MOBILITY =
LIBS += \
-L"D:/Development/android/crystax-ndk-10.3.2/sources/boost/1.59.0/libs/x86/gnu-4.9/" -lboost_regex \
-L"D:/Development/android/crystax-ndk-10.3.2/sources/crystax/libs/x86" -lcrystax
INCLUDEPATH += "D:/Development/android/crystax-ndk-10.3.2/sources/boost/1.59.0/include"
DEPENDPATH += "D:/Development/android/crystax-ndk-10.3.2/sources/boost/1.59.0/include"
ANDROID_EXTRA_LIBS += \
"D:/Development/android/crystax-ndk-10.3.2/sources/boost/1.59.0/libs/x86/gnu-4.9/libboost_regex.so" \
"D:/Development/android/crystax-ndk-10.3.2/sources/crystax/libs/x86/libcrystax.so"