LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 06-16-2009, 01:53 PM   #1
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,477

Rep: Reputation: 51
CMake is new territory for me - Trying to install kdebluetooth4


Hello Everyone,

I hope I haven't just missed it, but I can't seem to find a SlackBuild for kdebluetooth4 and I would like to install it to sync with my mobile phone.

I have the application, but it must be installed using cmake. The cmake documentation found here:

http://www.cmake.org/cmake/help/examples.html

offers a lot of instructions that do not resemble what I have. I downloaded the kdebluetooth4-0.3.tar.bz2 and extracted it to my home directory. It created the expected kdebluetooth4 directory, but there is no readme to explain installation. The directory contains this:

Quote:
AUTHORS CMakeFiles/ COPYING TODO inputwizard/
CMakeCache.txt CMakeLists.txt ChangeLog icons/ src/
Would someone familiar with cmake give me a starting clue on how to install it?

Thanks in advance

Bob

Last edited by BobNutfield; 06-16-2009 at 02:10 PM.
 
Old 06-16-2009, 03:07 PM   #2
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 694

Rep: Reputation: 62
Cmake isn't too hard. You just have to relearn all the config stuff again, kinda. So if you want something like prefix=/usr, you have to use -DCMAKE_INSTALL_PREFIX=/usr instead of --prefix=/usr like you would with a configure script. After that, it's the same. Just make and make install. Here is a sample slackbuild I made for crystal windeco that uses cmake. You should be able to modify it for you app.

Code:
#!/bin/sh

# Slackware build script for Crystal window decoration for KDE4

# Written by Allen Coleman (acisapunkster at gmail.com)

# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PRGNAM=crystal
VERSION=${VERSION:-2.0.3}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_acc}

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar jxvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
 \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
 -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
 -exec chmod 644 {} \;

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \

cd build

cmake \
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/usr/lib${LIBDIRSUFFIX} \
  ..

make
make install DESTDIR=$PKG

( cd $PKG
  find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
    xargs strip --strip-unneeded 2> /dev/null || true
  find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
    xargs strip --strip-unneeded 2> /dev/null
)

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz

Last edited by manwichmakesameal; 06-16-2009 at 03:13 PM.
 
Old 06-16-2009, 03:45 PM   #3
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,477

Original Poster
Rep: Reputation: 51
Thank you. I will have to study that quite a bit to try it. The documentation indicates that I simply run

Quote:
ccmake <target>
and I get a very unfamiliar result:

Quote:
Page 1 of 1
CMAKE_BACKWARDS_COMPATIBILITY 2.4
CMAKE_BUILD_TYPE
CMAKE_INSTALL_PREFIX /usr
EXECUTABLE_OUTPUT_PATH
LIBRARY_OUTPUT_PATH

























CMAKE_BACKWARDS_COMPATIBILITY: For backwards compatibility, what version of CMak
Press [enter] to edit option CMake Version 2.6 - patch 2
Press [c] to configure
Press [h] for help Press [q] to quit without generating
Press [t] to toggle advanced mode (Currently Off)
When I choose <c> for configure, I get this error:

Quote:
CMake Error at inputwizard/CMakeLists.txt:17 (kde4_add_ui_files):
Unknown CMake command "kde4_add_ui_files".
I think I am going to have to either study the cmake documentation a lot more before I delve into this or find a normal source file for kdebluetooth4-0.3.

Bob
 
Old 06-16-2009, 03:49 PM   #4
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 694

Rep: Reputation: 62
You should be able to just extract the tarball, then cd into it and run cmake. Then just make and make install. That's the most basic way of doing it.
 
Old 06-16-2009, 03:56 PM   #5
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,477

Original Poster
Rep: Reputation: 51
Yes, that is what I thought, but when I do cd into the extracted kdebluetooth4-0.3 directory, run cmake, it is returning a long list of options. It is looking for an option or target after cmake. That is where I get lost. There is no obvious target and one of the options is to generate a makefile, which is also not present.
 
Old 06-16-2009, 04:07 PM   #6
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 694

Rep: Reputation: 62
Try doing
Code:
prompt# cmake .
Notice the . Sorry about that.
 
Old 06-16-2009, 04:15 PM   #7
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,477

Original Poster
Rep: Reputation: 51
Thank you very much for your help. I appreciate your time, but I must have something missing or a corrupt download.

Quote:
root@bob-laptop:/home/bob/kdebluetooth4-0.3# cmake .
CMake Error at inputwizard/CMakeLists.txt:17 (kde4_add_ui_files):
Unknown CMake command "kde4_add_ui_files".


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 incomplete, errors occurred!
I am beginning consider just living without bluetooth in Slack.

Thanks again.

Bob
 
Old 06-16-2009, 04:26 PM   #8
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,204

Rep: Reputation: 124Reputation: 124
Inside the new kdeblutooth directory, create a new directory and call it build. You can name it anything you want, however. Change into that directory, and issue this command:

$ cmake -DCMAKE_INSTALL_PREFIX=/usr ../
$ make
# make install

That's the fast way. If you want to make a Slackware Package, do it this way:

Make a new directory in your home directory, and call it slackpkg.
Go back into /kdebluetooth4/build and do it this way:

$ cmake -DCMAKE_INSTALL_PREFIX=/home/BobNutfield/slackpkg
$ make
$ make install

Change into the slackpkg directory and issue this command:
# makepkg -l y -c y /tmp/kdebluetooth-4.0.3-i486-Bob.tgz

# installpkg /tmp/kdebluetooth-4.0.3-i486-Bob.tgz


Done - and I just tested this, but I don't have Bluetooth, so that's as far as I can go.

Last edited by mlangdn; 06-16-2009 at 04:31 PM.
 
Old 06-16-2009, 04:27 PM   #9
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 694

Rep: Reputation: 62
There may be something messed up with your config for cmake. I'm not sure where it's at though. I just dl'd kdebluetooth and cmake configured it ok. If you are running -current64, I can build it and put up the binary pkg.
 
Old 06-16-2009, 04:42 PM   #10
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,477

Original Poster
Rep: Reputation: 51
Thank, mlangdn, this produces the exact same errors in my last post.

Quote:
bob@bob-laptop:~/kdebluetooth4-0.3/build$ cmake -DCMAKE_INSTALL_PREFIX=/usr ../
CMake Error at inputwizard/CMakeLists.txt:17 (kde4_add_ui_files):
Unknown CMake command "kde4_add_ui_files".


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 incomplete, errors occurred!
CMake Error: Unable to open cache file for save. /home/bob/kdebluetooth4-0.3/CMakeCache.txt
CMake Error: : System Error: Permission denied
As root to avoid the permissions error:

Quote:
root@bob-laptop:/home/bob/kdebluetooth4-0.3/build# cmake -DCMAKE_INSTALL_PREFIX=/usr ../
CMake Error at inputwizard/CMakeLists.txt:17 (kde4_add_ui_files):
Unknown CMake command "kde4_add_ui_files".


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 incomplete, errors occurred!
 
Old 06-16-2009, 04:46 PM   #11
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,477

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by manwichmakesameal View Post
There may be something messed up with your config for cmake. I'm not sure where it's at though. I just dl'd kdebluetooth and cmake configured it ok. If you are running -current64, I can build it and put up the binary pkg.
Thank you that very kind, but I am running -current32. It is not hugely important that I get this installed. I triple boot this laptop with Fedora and Ubuntu and bluetooth works fine in both of them. If I need it I suppose I can just go there. But, since I have upgraded to Slack current and with the latest upgrades to xorg and mesa, I have the PERFECT laptop now, so I spend ALL of my time in Slack now. It just would have been convenient to have it is all. I might investigate another method of getting bluetooth to work without a KDE gui.

Thank you fo your help

Bob
 
Old 06-16-2009, 06:05 PM   #12
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,204

Rep: Reputation: 124Reputation: 124
Quote:
Thank, mlangdn, this produces the exact same errors in my last post.
Well, rats. I am using Slackware64-current, with all updates. I didn't think it would be much different. Sorry.
 
Old 06-16-2009, 06:20 PM   #13
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,477

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by mlangdn View Post
Well, rats. I am using Slackware64-current, with all updates. I didn't think it would be much different. Sorry.
Thank you for your time. I don't think it would have been different on my 32bit machine. I am convinced there is something wrong with the file I downloaded. It really is no big deal. I can connect from the command line with hcitool, but I guess I was being lazy and wanted a GUI for the job. But a no big deal. I will try it again some other time. I'm sure there will be a Slack build for it sooner or later.

Bob
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cmake question yfaye Programming 3 04-09-2009 09:24 PM
Doomsday Cmake problem Polantaris Linux - Games 0 08-09-2007 06:57 PM
installation of 'cmake' software soupy Linux - Newbie 2 08-01-2005 01:59 AM
New to linux... how do I install Enemy Territory ? (Game) kjp_72 Linux - Newbie 3 05-24-2004 11:48 AM
Enemy Territory Install issues FastFeet Linux - Games 2 11-30-2003 03:27 PM


All times are GMT -5. The time now is 05:49 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration