Пытался собрать виджет на kde 4
Cmake выдал
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:72 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/home/carman/.kde4/share/apps;/usr/lib/kde4/share/kde4/apps
Call Stack (most recent call first):
CMakeLists.txt:3 (find_package)
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 2.6)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
make: *** Не заданы цели и не найден make-файл. Останов.
make: *** Нет правила для сборки цели `install'. Останов.
Соответственно смущает строка
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/home/carman/.kde4/share/apps;/usr/lib/kde4/share/kde4/apps
Кто-нибудь сталкивался?
Подскажите как лечится?
Заранее спасибо ;)
установи пакет kdelibs-devel
поставь kdelibs5-dev
И будет тебе счстье
Здравствуйте!
Проблема такая:
samath@samath-desktop:~/Downloads/dekorator-0.4.0.4$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
-- Found Qt-Version 4.5.2 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
-- Phonon includes NOT found!
CMake Error at /usr/share/kde4/apps/cmake/modules/FindPhonon.cmake:63 (message):
Phonon library or includes NOT found!
Call Stack (most recent call first):
/usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:559 (find_package)
/usr/share/cmake-2.6/Modules/FindKDE4.cmake:81 (FIND_PACKAGE)
CMakeLists.txt:4 (find_package)
Насчет " Phonon library or includes NOT found!" гуглил, но натыкался на англоязычные сайты. Так и не понял как это решить
Вопрос отпадает. Ответ все таки нагуглил.Но теперь проблема с make'ом. После команды make получил это :
make[2]: *** [client/CMakeFiles/kwin3_deKorator.dir/deKoratorclient.o] Ошибка 1
make[1]: *** [client/CMakeFiles/kwin3_deKorator.dir/all] Ошибка 2
make: *** [all] Ошибка 2
А ./configure было сделано? Если он есть, конечно.
его там нету. и в инструкции по установке не написано что нада делать ./configure
порядок сборки с помощью cmake таков:
mkdir build
cd build
cmake ..
make
выложи весь текст, тогда будет понятно.
to ktchv- если делать как ты сказал, то получается это
amath@samath-desktop:~/Downloads/dekorator-0.4.0.4$ mkdir build
samath@samath-desktop:~/Downloads/dekorator-0.4.0.4$ cd build
samath@samath-desktop:~/Downloads/dekorator-0.4.0.4/build$ cmake ..
-- Found Qt-Version 4.5.2 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
-- Phonon Version: 4.3.1
-- Found KDE 4.3 include dir: /usr/include
-- Found KDE 4.3 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Configuring done
-- Generating done
-- Build files have been written to: /home/samath/Downloads/dekorator-0.4.0.4
samath@samath-desktop:~/Downloads/dekorator-0.4.0.4/build$ make
make: *** Не заданы цели и не найден make-файл. Останов.
samath@samath-desktop:~/Downloads/dekorator-0.4.0.4/build$
Но там откуда я скачал прогу, есть инструкция, которая отличается от твоей.
Вот сама инструкция:
To install from source, you need cmake, kdebase-workspace-dev, and libqimageblitz-dev (or similary named). Additionally, you must have the KDE 4 binaries in your path. Use
export PATH=$PATH:/usr/lib/kde4/bin/
cd dekorator-0.4.0.4
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
make
sudo make install
Вот текст, если следовать этой инструкции:
samath@samath-desktop:~/Downloads/dekorator-0.4.0.4$ export PATH=$PATH:/usr/lib/kde4/bin/
samath@samath-desktop:~/Downloads/dekorator-0.4.0.4$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
-- Found Qt-Version 4.5.2 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
-- Phonon Version: 4.3.1
-- Found KDE 4.3 include dir: /usr/include
-- Found KDE 4.3 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Configuring done
-- Generating done
-- Build files have been written to: /home/samath/Downloads/dekorator-0.4.0.4
samath@samath-desktop:~/Downloads/dekorator-0.4.0.4$ make
[ 11%] Built target kwin3_deKorator_automoc
[ 11%] Building CXX object client/CMakeFiles/kwin3_deKorator.dir/deKoratorclient.o
In file included from /home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:35:
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.h:38:32: error: kdecorationfactory.h: No such file or directory
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.h:39:25: error: kdecoration.h: No such file or directory
In file included from /home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:35:
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.h:125: error: expected class-name before ‘{’ token
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.h:129: error: ISO C++ forbids declaration of ‘KDecoration’ with no type
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.h:129: error: ‘KDecoration’ declared as a ‘virtual’ field
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.h:129: error: expected ‘;’ before ‘*’ token
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.h:131: error: ‘KDecorationDefines’ has not been declared
In file included from /home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:35:
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.h:247: error: expected class-name before ‘{’ token
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.h:250: error: expected ‘)’ before ‘*’ token
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.h:265: error: ‘Position’ does not name a type
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:194: error: expected constructor, destructor, or type conversion before ‘*’ token
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:264: error: ‘bool DeKorator::DeKoratorFactory::supports’ is not a static member of ‘class DeKorator::DeKoratorFactory’
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:264: error: ‘KDecorationDefines’ has not been declared
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:264: error: expected ‘,’ or ‘;’ before ‘const’
In file included from /home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:2854:
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:61: warning: ‘MARGIN’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:67: warning: ‘TITLESIZE’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:68: warning: ‘LEFTFRAMESIZE’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:69: warning: ‘BUTTOMFRAMESIZE’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:70: warning: ‘RIGHTFRAMESIZE’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:73: warning: ‘TOPLEFTCORNERWIDTH’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:74: warning: ‘TOPRIGHTCORNERWIDTH’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:75: warning: ‘LEFTTITLEWIDTH’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:76: warning: ‘RIGHTTITLEWIDTH’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:77: warning: ‘TOPLEFTFRAMEHEIGHT’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:78: warning: ‘BOTTOMLEFTFRAMEHEIGHT’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:79: warning: ‘TOPRIGHTFRAMEHEIGHT’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:80: warning: ‘BOTTOMRIGHTFRAMEHEIGHT’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:81: warning: ‘LEFTBOTTOMFRAMEWIDTH’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:82: warning: ‘RIGHTBOTTOMFRAMEWIDTH’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:87: warning: ‘BUTTONSHEIGHT’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:89: warning: ‘BTNHELPEWIDTH’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:90: warning: ‘BTNMAXWIDTH’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:91: warning: ‘BTNCLOSEWIDTH’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:92: warning: ‘BTNMINWIDTH’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:93: warning: ‘BTNSTICKYWIDTH’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:94: warning: ‘BTNABOVEWIDTH’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:95: warning: ‘BTNBELOWWIDTH’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:96: warning: ‘BTNSHADEWIDTH’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:97: warning: ‘BTNMENUWIDTH’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:99: warning: ‘BTNHELPEHEIGHT’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:100: warning: ‘BTNMAXHEIGHT’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:101: warning: ‘BTNCLOSEHEIGHT’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:102: warning: ‘BTNMINHEIGHT’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:103: warning: ‘BTNSTICKYHEIGHT’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:104: warning: ‘BTNABOVEHEIGHT’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:105: warning: ‘BTNBELOWHEIGHT’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:106: warning: ‘BTNSHADEHEIGHT’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:107: warning: ‘BTNMENUHEIGHT’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:110: warning: ‘TOPLEFTMASKWIDTH’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:111: warning: ‘TOPMIDMASKWIDTH’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:112: warning: ‘TOPRIGHTMASKWIDTH’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:113: warning: ‘BOTTOMLEFTMASKWIDTH’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:114: warning: ‘BOTTOMMIDMASKWIDTH’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:115: warning: ‘BOTTOMRIGHTMASKWIDTH’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:117: warning: ‘BOTTOMLEFTMASKHEIGHT’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:118: warning: ‘BOTTOMMIDMASKHEIGHT’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:119: warning: ‘BOTTOMRIGHTMASKHEIGHT’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:124: warning: ‘USEMENUEIMAGE’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:125: warning: ‘IGNOREAPPICNCOL’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:126: warning: ‘DBLCLKCLOSE’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:127: warning: ‘SHOWBTMBORDER’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:128: warning: ‘USESHDTEXT’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:129: warning: ‘ACTIVESHDTEXTX’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:130: warning: ‘ACTIVESHDTEXTY’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:132: warning: ‘INACTIVESHDTEXTX’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:133: warning: ‘INACTIVESHDTEXTY’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:135: warning: ‘BTNSHIFTX’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:136: warning: ‘BTNSHIFTY’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:141: warning: ‘USEANIMATION’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:144: warning: ‘STEPS’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:145: warning: ‘INTERVAL’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:146: warning: ‘KEEPANIMATING’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:149: warning: ‘EFFECTAMOUNT’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:161: warning: ‘USEMASKS’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:165: warning: ‘DECOPIXACTARR’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:166: warning: ‘DECOPIXINACTARR’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:169: warning: ‘BUTTONPIXACTARR’ defined but not used
/home/samath/Downloads/dekorator-0.4.0.4/client/deKoratorclient.cc:170: warning: ‘BUTTONPIXINACTARR’ defined but not used
make[2]: *** [client/CMakeFiles/kwin3_deKorator.dir/deKoratorclient.o] Ошибка 1
make[1]: *** [client/CMakeFiles/kwin3_deKorator.dir/all] Ошибка 2
make: *** [all] Ошибка 2
samath@samath-desktop:~/Downloads/dekorator-0.4.0.4$
error: kdecorationfactory.h: No such file or directory
нам как бе намекает...
упс. нада было еще очки одеть. ок, спасибо. Ща попробую разобраться. ес че вернусь
Проблема здесь. Что пишут в README и INSTALL?
Разрешил все зависимости. скачало оно мне всего на 160 мб, установилось на 500
Но толку нет. Та же ошибка. В том же исполнении (подрубился к домашнему компу, установил всё и попробовал скомпилить ещё раз...Ну.. жду подсказок..
я в CMakeLists.txt добавил строчку
а так больше ничего в нём не менял...В README - сказка. Реально... самая что ни на есть настоящая детская сказка О_о.
спс, нашёл траблу в INSTALL - вроде не установлен gettext, приду домой - гляну..
Скорее-всего меня в 4 утра подвела самоуверенность (что у меня уже всё стоит что надо чтобы собрать пакетик, ибо не раз собирал, а при ошибках мог нагуглить.. за исключением этого случая) и офигенная невыспанность и перегруз на работе О_о
Но спасибо за идею, и скорее всего за решение проблемы, я бы наверное к этому вернулся бы только когда испробовал всё что можно было бы 8)
UPD: Так... берём пиво и переходим на новую стадию бытия, прикладываю билд (переименовать в *.build и смотреть в kate например):
Хихи, я перехвалил себя. У меня теперь тоже ошибки при сборке, будем надеятся, что это из-за апдейтов исходников, потому как еще вчера всё собиралось(((
Отправить комментарий