Author Topic: Trying to build a package  (Read 3010 times)

Offline Animal

  • Hero Member
  • *****
  • Posts: 867
Trying to build a package
« on: September 25, 2009, 11:41:20 AM »
I'm trying to build a package from source (I know its not recommended to go outside the repos but I gotta learn)

Here is the error I'm receiving:

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!
[terry@localhost build]$ clear
[terry@localhost build]$ cmake -DCMAKE_INSTALL_PREFIX=$KDEDIRS ..
-- The CXX compiler identification is unknown
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error at /usr/share/cmake/Modules/FindKDE4.cmake:84 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/home/terry/.kde4/share/apps;/usr/share/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 incomplete, errors occurred!

Here's the response from the developer of the program:

Seems that you are missing the development packages for KDE4?
It also says you don't have a valid C++ compiler set, but maybe it's because of the missing cmake-files of KDE4.
You need to install those packages to compile the game. They have a name like libkde4-dev. I don't know exactly which packages are needed..
Which distribution are you using?


To which my question is which dev packages do I need to install?

I looked in the repos but there are many dev packages.

Also the c++ compiler not sure what exactly I need.

Many thanks friends  :)






"Sight is about what lies right in front of us. Vision is what lies ahead.”

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: Trying to build a package
« Reply #1 on: September 25, 2009, 11:47:22 AM »
I would recomend you install pkgutils-kde4, for starters.
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline Animal

  • Hero Member
  • *****
  • Posts: 867
Re: Trying to build a package
« Reply #2 on: September 25, 2009, 11:52:39 AM »
Quote
I would recomend you install pkgutils-kde4, for starters.

Done.
"Sight is about what lies right in front of us. Vision is what lies ahead.”

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Trying to build a package
« Reply #3 on: September 25, 2009, 11:56:06 AM »
Try -
kdebase4-devel-4.3.1-1pclos2009.i586.rpm

You may need something else. Some more info would be helpful. You don't say what app this is. Do you know what its dependencies are? Check the website.


Offline Animal

  • Hero Member
  • *****
  • Posts: 867
Re: Trying to build a package
« Reply #4 on: September 25, 2009, 12:14:16 PM »
This is the program I am trying to build: KrossWordPuzzle   0.7.7

http://kde-apps.org/content/show.php/KrossWordPuzzle?content=111726

Nothing stated about dependencies, so I am assuming there are none?

Tex has already built and packaged this once for PCLOS, but I wanted to see if I could build my own from the update before breaking down and requesting again ::)

I also assume I need either gcc3.3, gcc3.3-c++,  and/or gcc-c++ but I'm not sure what I need?
« Last Edit: September 25, 2009, 12:17:31 PM by tabrown05 »
"Sight is about what lies right in front of us. Vision is what lies ahead.”

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: Trying to build a package
« Reply #5 on: September 25, 2009, 12:18:13 PM »
Your best bet would be to set up your packaging environment, as described in the how-to stickies, then get the srpm and install it for building, then update the spec file with the latest source, put your name and date in the change log build it, hope it works (by installing and running it), and submit it to Tex for approval.  (Well, that's what I would do anyway)

http://www.pclinuxos.com/forum/index.php?topic=54827.0
The How-To can be downloaded as an OOo document.
This is how I had it saved.


Got It!
After installing pkgutils from synaptic, as user, not as root:
Code: [Select]
mkrepo -a -d "PCLinuxOS" -s "pclos" -v "PClinuxOS" -b "/home/(UserName)"

http://www.pclinuxos.com/forum/index.php?topic=58899.0

You sure Tex built this already?  I'm not finding it in the repo, unless it's part of a bigger package of assorted games.
« Last Edit: September 25, 2009, 12:34:31 PM by Joble »
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline Animal

  • Hero Member
  • *****
  • Posts: 867
Re: Trying to build a package
« Reply #6 on: September 25, 2009, 12:24:23 PM »
Ok, thanks for the info. looks like I have a lot of reading and trial and error ahead of me.
 :o


"Sight is about what lies right in front of us. Vision is what lies ahead.”

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: Trying to build a package
« Reply #7 on: September 25, 2009, 12:30:29 PM »
It looks like a lot, well, it kind of is, but once you get the hang of it, it's not so bad.

Welcome to Packagers!
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Trying to build a package
« Reply #8 on: September 25, 2009, 01:03:35 PM »
It is most likely a part of the kde4 games package, if it isn't a separate package. You may need to install the kde4 games devel package. Any road, once you set up your build environment, there will be a right click menu. "Install Dependencies" is one of the options. Use it in the spec dir by right clicking on the spec file.

You'll do fine as a packager. Read and follow the documentation. Oh. And the most important thing to remember --> You can! :)

Enjoy packaging.


Offline MaddogF16

  • Hero Member
  • *****
  • Posts: 2711
Re: Trying to build a package
« Reply #9 on: September 25, 2009, 01:56:30 PM »
Or D/L the srpm and have a look at the spec file made from masters... ;)


krosswordpuzzle-0.7.2-1pclos2009.src.rpm
Why?

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Trying to build a package
« Reply #10 on: September 25, 2009, 01:59:00 PM »
Yep! That would be the best way to do it.


Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: Trying to build a package
« Reply #11 on: September 25, 2009, 02:00:10 PM »
You found it!
http://distro.ibiblio.org/pub/linux/distributions/texstar/pclinuxos/apt/pclinuxos/2007/SRPMS.kde4/krosswordpuzzle-0.7.2-1pclos2009.src.rpm
Thx maddogf16!

Updating a package from the master, is the best and most painless way to learn.
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline Animal

  • Hero Member
  • *****
  • Posts: 867
Re: Trying to build a package
« Reply #12 on: September 25, 2009, 02:19:34 PM »
Ok I appreciate all of the input I really truly do, but so much of it is greek to me and its frustrating me that as much as I thought I understood, I know very little :(

I am taking baby steps and trying to sort this all out as much is very new to me.


Quote
It is most likely a part of the kde4 games package, if it isn't a separate package. You may need to install the kde4 games devel package. Any road, once you set up your build environment, there will be a right click menu. "Install Dependencies" is one of the options. Use it in the spec dir by right clicking on the spec file.

I've installed this...


Quote
Or D/L the srpm and have a look at the spec file made from masters...

Not exactly sure what you mean by this, I have a vague idea. I know what a srpm is but not so much the spec file from the masters is?

As previously posted, I'm sure all the information I need is in the stickies and I'm gonna have a go at chasing it all down.

Thanks again folks you have been more than helpful :)


"Sight is about what lies right in front of us. Vision is what lies ahead.”

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: Trying to build a package
« Reply #13 on: September 25, 2009, 02:31:32 PM »
We're not trying to be cryptic or anything like that.  Once you understand the packaging environment, it will become more clear to you what we're trying to say.  Once you download the src.rpm you can right click on it and install it for build, the spec file we're talking about will end up
/home/(you)/src/rpm/SPECS
sources go in:
/home/(you)/src/rpm/SOURCES
the installable .rpm file:
/home/(you)/src/rpm/RPMS/i586 (or noarch, depending on the package)
and your src.rpm:
/home/(you)/src/rpm/SRPMS

Just don't give up, but you do have some reading to do before we can communicate effectively.
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Trying to build a package
« Reply #14 on: September 25, 2009, 02:45:06 PM »
One step at a time is the way to go. One very important thing to remember is never be afraid to ask. Every question has an answer.