@1datr

Как избавиться от ошибке при компиляции плагина qt creator?

XUbuntu QT Creator ом создал проект с файлом (ничего не сочинял)
DEFINES += MYPLUGIN_LIBRARY
# MyPlugin files
SOURCES += mypluginplugin. cpp
HEADERS += mypluginplugin. h \
myplugin_global. h \
mypluginconstants. h
# Qt Creator linking
## set the QTC_SOURCE environment variable to override the setting here
QTCREATOR_SOURCES = $$ ( QTC_SOURCE )
isEmpty ( QTCREATOR_SOURCES ): QTCREATOR_SOURCES =/ usr/ src / qtcreator
## set the QTC_BUILD environment variable to override the setting here
IDE_BUILD_TREE = $$ (QTC_BUILD )
isEmpty ( IDE_BUILD_TREE ): IDE_BUILD_TREE =/ tmp /
## uncomment to build plugin into user config directory
## <localappdata>/plugins/<ideversion>
##    where <localappdata> is e.g.
##    "%LOCALAPPDATA%\QtProject\qtcreator" on Windows Vista and later
##    "$XDG_DATA_HOME/data/QtProject/qtcreator" or "~/.local/share/data/QtProject/qtcreator" on Linu
##    "~/Library/Application Support/QtProject/Qt Creator" on Mac
# USE_USER_DESTDIR = yes

Выдает ошибки:
:-1: error: cannot find -lCore
:-1: error: cannot find -lAggregation
:-1: error: cannot find -lExtensionSystem
:-1: error: cannot find -lUtils
:-1: error: collect2: error: ld returned 1 exit status

locate libAggregation
/usr/lib/i386-linux-gnu/qtcreator/libAggregation.so
/usr/lib/i386-linux-gnu/qtcreator/libAggregation.so.1
/usr/lib/i386-linux-gnu/qtcreator/libAggregation.so.1.0
/usr/lib/i386-linux-gnu/qtcreator/libAggregation.so.1.0.0

Пробовал указывать проекту на эти либы ничего не помогает.
Что делать?
  • Вопрос задан
  • 422 просмотра
Пригласить эксперта
Ответы на вопрос 1
@granindb
Если еще актуально...
Мне помогло явное указание каталога куда был скомпилирован Qt Creator.
IDE_BUILD_TREE=
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы