PDA

View Full Version : [kubuntu] [SOLVED] Problem with cmake and Plasmoids



tarahmarie
September 21st, 2008, 06:24 AM
Hi, all:

I'm trying to install a weather plasmoid on my KDE 4.1.1 Kubuntu 8.04 system. I installed cmake and ran it in the build directory but I'm getting this error:

tarahmarie@tarahmarie-desktop:~/Documents/Software/weather/build$ make
make: *** No targets specified and no makefile found. Stop.


What am I doing wrong?

Here's the plasmoid: http://www.kde-look.org/content/show.php/Weather+Plasmoid?content=84251

And I followed the instructions under "How to Install", including cd'ing into the build directory and using the cmake command just like this:

cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..

Was that the wrong command?

phidia
September 21st, 2008, 03:52 PM
Do you actually have cmake installed? Take a look at this tutorial (http://techbase.kde.org/Development/Tutorials/CMake) on cmake. From the terminal you should get a version # if you enter "cmake -v", and it's installed.

tarahmarie
September 21st, 2008, 04:08 PM
Here's the output from "cmake -v"

tarahmarie@tarahmarie-desktop:~/Documents/Software/weather/build$ cmake -v
CMake Error: The source directory "/home/tarahmarie/Documents/Software/weather/build/-v" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.


What does this mean?

phidia
September 21st, 2008, 04:39 PM
It means you didn't enter the command correctly-I think.
Open the terminal app and type "cd" (all commands entered without the quotation marks).
That should put you in the root directory. Then just copy and paste this:
cmake -v

I don't have cmake installed. This is what my system outputs:
"phidia@neverland:~$ cmake -v
The program 'cmake' is currently not installed. You can install it by typing:
sudo apt-get install cmake
bash: cmake: command not found"

Well when I re-read your output it looks like cmake is installed-it found some problem being called from that directory.

tarahmarie
September 21st, 2008, 04:57 PM
Here's the output when I'm in the root directory:

tarahmarie@tarahmarie-desktop:/$ cmake -v
CMake Error: The source directory "/-v" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.


What the heck?

phidia
September 21st, 2008, 05:13 PM
I guess this is a good idea:
Specify --help for usage, or press the help button on the CMake GUI
I'm not very familar with cmake, but apparently the "-v" option isn't applicable.
Sorry for the confusion.
Back to the original problem:
tarahmarie@tarahmarie-desktop:~/Documents/Software/weather/build$ make
make: *** No targets specified and no makefile found. Stop.

Were you suppose to run "make" there or is that a mistake? If the build directory doesn't contain a make file you won't be able to run it-since it doesn't exist.

tarahmarie
September 21st, 2008, 05:21 PM
Running "make" was originally what I was trying to do. I've googled cmake, and I'm wondering if I need to have gcc installed to make it work. Is that the case?

phidia
September 21st, 2008, 05:45 PM
To get all the compling/building environment on ubuntu have your install cd at hand and enter:
sudo apt-get install build-essential

tarahmarie
September 21st, 2008, 08:39 PM
I think the build-essentials package was the one I needed. Thanks!

tarahmarie
September 22nd, 2008, 08:19 AM
So I seem to have successfully used cmake, but I don't know if others have had this problem: the plasmoid I want to use, commandwatch, is only a tiny little bar, instead of the full widget. A couple of other plasmoids are also like this; they look like tiny squares instead of showing the full plasmoid. Anyone else seen this problem?