This forum has been archived. All content is frozen. Please use KDE Discuss instead.

how to build a project?

Tags: None
(comma "," separated)
weirdtalk
Registered Member
Posts
4
Karma
0

how to build a project?

Mon May 24, 2010 12:59 am
Probably a noob question, but I've been struggling.

I want to build a version of ark that has the preview disabled (for fun) so here is what I have done so far:
Code: Select all
svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdeutils/ark
cd ark
cmake .


and I get this error:
Code: Select all
CMake Error at part/CMakeLists.txt:16 (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.8)

  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 unfamiliar with cmake and my web searches have been fruitless so far, so I'll ask. What do I need to do?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: how to build a project?

Mon May 24, 2010 5:30 am
You need to checkout the full kdeutils module, run CMake at the top level, then build only Ark.

The following commands should be sufficient:
Code: Select all
svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdeutils
mkdir kdeutils/build
cd kdeutils/build
cmake ..
cd ark
make


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
weirdtalk
Registered Member
Posts
4
Karma
0

Re: how to build a project?

Tue May 25, 2010 1:35 am
Thanks for the quick response.

I was able to compile ark based on those instructions. The program even runs, but it crashes if I try to open a zip file (or create one). Is this because I'm trying to run it local from the build folder, or because I pulled an unstable build or something else?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: how to build a project?

Tue May 25, 2010 4:43 am
Crashing shouldn't occur, however this may indeed be caused by it not being installed.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
weirdtalk
Registered Member
Posts
4
Karma
0

Re: how to build a project?

Tue May 25, 2010 8:18 am
I'll try it in a vm when I have the time. Thanks.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]