I downloaded a few plasmoids that I’ve been attempting to install. The main is called “Device Notifier Automount”. I downloaded and extracted the plasmoid, and I’ve been trying to follow the instructions here for this plasmoid. However, it tells me to do things that don’t make sense. For example, it says to make a build directory. I do, all is well. Then it says to execute cmake IN the build directory, which is new and therefore empty. Obviously this doesn’t work; all the cmake files are in the src directory. So I go in there and execute cmake as they say, I get this, which I don’t know what to make of:
@linux-8amt:~/Mozilla Downloads/devicenotifier_automount/src> cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`..
-- 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/Modules/FindKDE4.cmake:72 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/home/dan/.kde4/share/apps;/usr/share/apps;/etc/kde4/share/apps;/usr/share/kde4/apps
Call Stack (most recent call first):
CMakeLists.txt:5 (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
I then try to run make, and it tells me there is no makefile (which is true). What is going on here?
I went to install the other plasmoid, tube clock, and I see it requires something called superkaramba, which is available as source code for compiling. So I download the source, and follow the instructions on the website: cd to the base directory, and run ./configure. Everytime I do that, here’s what happens (and the subsequent steps:
linux-8amt:/home/dan/Mozilla Downloads/superkaramba # ./configure
bash: ./configure: No such file or directory
linux-8amt:/home/dan/Mozilla Downloads/superkaramba # make
make: *** No targets specified and no makefile found. Stop.
linux-8amt:/home/dan/Mozilla Downloads/superkaramba # make install
make: *** No rule to make target `install'. Stop.
I think there’s something wrong with my binary installer thingie. Yes? No? Help?
superkaramba is in the repo’s might want to use them for starters
and from your first post you said you made a build directory well did you put the extracted files in that dir ??
I didn’t put the extracted files in that directory because it tells me to extract the files BEFORE I make the build directory. It seems kind of weird that they would put it that way, but I’ll try that.
OK, here’s what happens, from start to finish, after I installed that package:
dan@linux-8amt:~/Mozilla Downloads> tar -xvf 91517-devicenotifier_automount_0.1.tar.bz2
devicenotifier_automount/
devicenotifier_automount/build/
devicenotifier_automount/src/
devicenotifier_automount/src/CMakeLists.txt
devicenotifier_automount/src/devicenotifier_automount.cpp
devicenotifier_automount/src/devicenotifier_automount.h
devicenotifier_automount/src/notifierview_automount.h
devicenotifier_automount/src/Messages.sh
devicenotifier_automount/src/deviceNotifierConfig_automount.ui
devicenotifier_automount/src/plasma-applet-devicenotifier_automount.desktop
devicenotifier_automount/src/notifierview_automount.cpp
dan@linux-8amt:~/Mozilla Downloads> cd devicenotifier_automount/
dan@linux-8amt:~/Mozilla Downloads/devicenotifier_automount> mkdir build
mkdir: cannot create directory `build': File exists
dan@linux-8amt:~/Mozilla Downloads/devicenotifier_automount> cd build
dan@linux-8amt:~/Mozilla Downloads/devicenotifier_automount/build> cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
CMake Error: The source directory "/home/dan/Mozilla Downloads/devicenotifier_automount" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
dan@linux-8amt:~/Mozilla Downloads/devicenotifier_automount/build> make
make: *** No targets specified and no makefile found. Stop.
dan@linux-8amt:~/Mozilla Downloads/devicenotifier_automount/build> sudo makeinstall
root's password:
make: *** No rule to make target `install'. Stop.
So, the installer instructions tell me to create the build directory, which is already there as an empty directory, and then the cmake script can’t seem to find the makefiles. Am I crazy or is there something wrong?
ok here is what i did
1 download tar
2 created a dir for the tar file
3 extracted tar to that dir
4 mkdir build
5 cd build
6 cmake -DCMAKE_INSTALL_PREFIX=kde4-config --prefix …
and thats all the further i get cause of error after installing the file from redwarf
CMake Error at /usr/share/kde4/apps/cmake/modules/FindPackageHandleStandardArgs.cmake:53 (MESSAGE):
Could not find REQUIRED package Plasma
Call Stack (most recent call first):
/usr/share/kde4/apps/cmake/modules/FindPlasma.cmake:30 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:3 (find_package)
dan@linux-8amt:~> cd /home/dan/Mozilla\ Downloads/devicenotifier_automount/
dan@linux-8amt:~/Mozilla Downloads/devicenotifier_automount> cd build
dan@linux-8amt:~/Mozilla Downloads/devicenotifier_automount/build> cmake ../
CMake Error: The source directory "/home/dan/Mozilla Downloads/devicenotifier_automount" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
I also tried …/make, and that returns a message that says “nothing to be done for …/” .
The devicenotifier directory has two subdirectories: “build” and “src”. There’s nothing else in that directory. “build” is, and always has been, empty.
dan@linux-8amt:~/Mozilla Downloads/devicenotifier_automount/src> ls -l
total 52
-rw-r--r-- 1 dan users 1012 2008-10-18 11:52 CMakeLists.txt
-rw-r--r-- 1 dan users 20293 2008-10-19 07:11 devicenotifier_automount.cpp
-rw-r--r-- 1 dan users 4255 2008-10-18 09:50 devicenotifier_automount.h
-rw-r--r-- 1 dan users 2843 2008-10-18 09:22 deviceNotifierConfig_automount.ui
-rw-r--r-- 1 dan users 80 2008-10-18 09:22 Messages.sh
-rw-r--r-- 1 dan users 4024 2008-10-18 09:30 notifierview_automount.cpp
-rw-r--r-- 1 dan users 1447 2008-10-18 09:23 notifierview_automount.h
-rw-r--r-- 1 dan users 689 2008-10-19 07:24 plasma-applet-devicenotifier_automount.desktop
Here’s something interesting I noticed. I copied the src files to the main directory, and it told me that it couldn’t find the cmake.txt file in my Mozilla Downloads folder, which is one directory below the devicenotifier directory. Below is that whole exchange, as well as what I tried after that and its outcome:
dan@linux-8amt:~> cd /home/dan/Mozilla\ Downloads/devicenotifier_automount/
dan@linux-8amt:~/Mozilla Downloads/devicenotifier_automount> cmake ../
CMake Error: The source directory "/home/dan/Mozilla Downloads" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
dan@linux-8amt:~/Mozilla Downloads/devicenotifier_automount> cd /home/dan/Mozilla\ Downloads/devicenotifier_automount/src
dan@linux-8amt:~/Mozilla Downloads/devicenotifier_automount/src> 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
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.4.0 (using /usr/bin/qmake)
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Perl: /usr/bin/perl
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
-- Found KDE 4.0 include dir: /usr/include
-- Found KDE 4 library dir: /usr/lib64
-- Found KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found KDE4 automoc: /usr/bin/kde4automoc
CMake Error at /usr/share/kde4/apps/cmake/modules/FindPackageHandleStandardArgs.cmake:51 (MESSAGE):
Could not find REQUIRED package Plasma
Call Stack (most recent call first):
/usr/share/kde4/apps/cmake/modules/FindPlasma.cmake:28 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:7 (find_package)
-- Configuring done
I tried to do make after this, and it wouldn’t work still…
dan@linux-8amt:~/Mozilla Downloads/devicenotifier_automount/src> cmake ../src
-- Found Qt-Version 4.4.0 (using /usr/bin/qmake)
-- Found X11: /usr/lib64/libX11.so
-- Found Perl: /usr/bin/perl
-- Found KDE 4.0 include dir: /usr/include
-- Found KDE 4 library dir: /usr/lib64
-- Found KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found KDE4 automoc: /usr/bin/kde4automoc
-- Found Plasma: /usr/lib64/libplasma.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/dan/Mozilla Downloads/devicenotifier_automount/src
dan@linux-8amt:~/Mozilla Downloads/devicenotifier_automount/src> make
20%] Generating ui_deviceNotifierConfig_automount.h
40%] Generating plasma_applet_devicenotifier_automount_automoc.cpp
Generating devicenotifier_automount.moc
Generating notifierview_automount.moc
Scanning dependencies of target plasma_applet_devicenotifier_automount
60%] Building CXX object CMakeFiles/plasma_applet_devicenotifier_automount.dir/plasma_applet_devicenotifier_automount_automoc.o
80%] Building CXX object CMakeFiles/plasma_applet_devicenotifier_automount.dir/devicenotifier_automount.o
In file included from /home/dan/Mozilla Downloads/devicenotifier_automount/devicenotifier_automount.cpp:21:
/home/dan/Mozilla Downloads/devicenotifier_automount/devicenotifier_automount.h:89: error: ‘KConfigDialog’ has not been declared
/home/dan/Mozilla Downloads/devicenotifier_automount/devicenotifier_automount.cpp: In member function ‘virtual void DeviceNotifier::init()’:
/home/dan/Mozilla Downloads/devicenotifier_automount/devicenotifier_automount.cpp:89: error: no matching function for call to ‘QGraphicsLinearLayout::QGraphicsLinearLayout(DeviceNotifier* const)’
/usr/include/QtGui/qgraphicslinearlayout.h:114: note: candidates are: QGraphicsLinearLayout::QGraphicsLinearLayout(const QGraphicsLinearLayout&)
/usr/include/QtGui/qgraphicslinearlayout.h:66: note: QGraphicsLinearLayout::QGraphicsLinearLayout(Qt::Orientation, QGraphicsLayoutItem*)
/usr/include/QtGui/qgraphicslinearlayout.h:65: note: QGraphicsLinearLayout::QGraphicsLinearLayout(QGraphicsLayoutItem*)
/home/dan/Mozilla Downloads/devicenotifier_automount/devicenotifier_automount.cpp:92: error: no matching function for call to ‘DeviceNotifier::setLayout(QGraphicsLinearLayout*&)’
/usr/include/plasma/layouts/layoutitem.h:124: note: candidates are: void Plasma::LayoutItem::setLayout(Plasma::Layout*)
/home/dan/Mozilla Downloads/devicenotifier_automount/devicenotifier_automount.cpp:119: error: no matching function for call to ‘Plasma::Delegate::Delegate(DeviceNotifier* const)’
/usr/include/plasma/delegate.h:58: note: candidates are: Plasma::Delegate::Delegate()
/usr/include/plasma/delegate.h:43: note: Plasma::Delegate::Delegate(const Plasma::Delegate&)
/home/dan/Mozilla Downloads/devicenotifier_automount/devicenotifier_automount.cpp:121: error: ‘class Plasma::Delegate’ has no member named ‘setRoleMapping’
/home/dan/Mozilla Downloads/devicenotifier_automount/devicenotifier_automount.cpp:122: error: ‘class Plasma::Delegate’ has no member named ‘setRoleMapping’
/home/dan/Mozilla Downloads/devicenotifier_automount/devicenotifier_automount.cpp:123: error: ‘class Plasma::Delegate’ has no member named ‘setRoleMapping’
/home/dan/Mozilla Downloads/devicenotifier_automount/devicenotifier_automount.cpp:152: error: ‘defaultTheme’ is not a member of ‘Plasma::Theme’
/home/dan/Mozilla Downloads/devicenotifier_automount/devicenotifier_automount.cpp: In member function ‘void DeviceNotifier::initSysTray()’:
/home/dan/Mozilla Downloads/devicenotifier_automount/devicenotifier_automount.cpp:179: error: ‘ConstrainedSquare’ is not a member of ‘Plasma’
/home/dan/Mozilla Downloads/devicenotifier_automount/devicenotifier_automount.cpp:179: error: ‘setAspectRatioMode’ was not declared in this scope
/home/dan/Mozilla Downloads/devicenotifier_automount/devicenotifier_automount.cpp:181: error: no matching function for call to ‘QGraphicsLinearLayout::addItem(Plasma::Icon*&)’
/usr/include/QtGui/qgraphicslinearlayout.h:72: note: candidates are: void QGraphicsLinearLayout::addItem(QGraphicsLayoutItem*)
/home/dan/Mozilla Downloads/devicenotifier_automount/devicenotifier_automount.cpp: In member function ‘void DeviceNotifier::constraintsEvent(Plasma::Constraints)’:
/home/dan/Mozilla Downloads/devicenotifier_automount/devicenotifier_automount.cpp:196: error: ‘NoBackground’ was not declared in this scope
/home/dan/Mozilla Downloads/devicenotifier_automount/devicenotifier_automount.cpp:196: error: ‘setBackgroundHints’ was not declared in this scope
/home/dan/Mozilla Downloads/devicenotifier_automount/devicenotifier_automount.cpp: At global scope:
/home/dan/Mozilla Downloads/devicenotifier_automount/devicenotifier_automount.cpp:432: error: prototype for ‘void DeviceNotifier::createConfigurationInterface(KConfigDialog*)’ does not match any in class ‘DeviceNotifier’
/home/dan/Mozilla Downloads/devicenotifier_automount/devicenotifier_automount.h:89: error: candidate is: void DeviceNotifier::createConfigurationInterface(int*)
/home/dan/Mozilla Downloads/devicenotifier_automount/devicenotifier_automount.cpp: In member function ‘void DeviceNotifier::updateColors()’:
/home/dan/Mozilla Downloads/devicenotifier_automount/devicenotifier_automount.cpp:564: error: ‘defaultTheme’ is not a member of ‘Plasma::Theme’
make[2]: *** [CMakeFiles/plasma_applet_devicenotifier_automount.dir/devicenotifier_automount.o] Error 1
make[1]: *** [CMakeFiles/plasma_applet_devicenotifier_automount.dir/all] Error 2
make: *** [all] Error 2