Jump to content
foreste

Kde Partition Manager Problem 2 Problemy Libparted

Recommended Posts

Witam

mam problem z kde partition manager z repoz i source

1 z repoz f16

Błędy rozwiązywania zależności:

Pakiet: kde-partitionmanager-1.0.3-2.fc15.i686 (fedora)
   Wymaga: libparted.so.0

z source

[email protected] build# cmake ..
-- Found Qt-Version 4.8.0 (using /usr/bin/qmake-qt4)
-- Found X11: /usr/lib/libX11.so
-- Found KDE 4.7 include dir: /usr/include/kde4
-- Found KDE 4.7 library dir: /usr/lib/kde4/devel
-- Found the KDE4 kconfig_compiler4 preprocessor: /usr/bin/kconfig_compiler4
-- Found automoc4: /usr/bin/automoc4
-- checking for module 'uuid'
--   found uuid, version 2.20.0
-- checking for module 'blkid'
--   found blkid, version 2.20.0
CMake Error at /usr/share/kde4/apps/cmake/modules/FindPackageHandleStandardArgs.cmake:198 (MESSAGE):
 Could NOT find LIBPARTED (missing: LIBPARTED_LIBRARY LIBPARTED_INCLUDE_DIR)
Call Stack (most recent call first):
 cmake/modules/FindLIBPARTED.cmake:29 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
 CMakeLists.txt:41 (find_package)


-- Configuring incomplete, errors occurred!
[email protected] build# cmake ..
-- Found Qt-Version 4.8.0 (using /usr/bin/qmake-qt4)
-- Found X11: /usr/lib/libX11.so
-- Found KDE 4.7 include dir: /usr/include/kde4
-- Found KDE 4.7 library dir: /usr/lib/kde4/devel
-- Found the KDE4 kconfig_compiler4 preprocessor: /usr/bin/kconfig_compiler4
-- Found automoc4: /usr/bin/automoc4
-- Found LIBPARTED: /usr/lib/libparted.so 
-- KDE Partition Manager 1.0.3 will be built for install into /usr/local
-- Looking for dgettext
-- Looking for dgettext - found
-- Found Gettext: built in libc
-- Configuring done
-- Generating done
-- Build files have been written to: /home/foreste/wypakowane/partitionmanager-1.0.3/build
[email protected] build# make
Scanning dependencies of target partitionmanager
[  0%] Built target partitionmanager                                                                                
Scanning dependencies of target partitionmanagerprivate_automoc
Generating moc_job.cpp                                                                                              
Generating moc_parttablewidget.cpp                                                                                  
Generating moc_restoreoperation.cpp                                                                                 
Generating moc_partpropsdialog.cpp                                                                                  
Generating moc_resizedialog.cpp                                                                                     
Generating moc_device.cpp                                                                                           
Generating moc_setfilesystemlabeloperation.cpp                                                                      
Generating moc_treelog.cpp                                                                                          
Generating moc_progressdialog.cpp                                                                                   
Generating moc_sizedialogbase.cpp                                                                                   
Generating moc_partresizerwidget.cpp                                                                                
Generating moc_partitionnode.cpp                                                                                    
Generating moc_copyoperation.cpp                                                                                    
Generating moc_sizedialogwidget.cpp                                                                                 
Generating moc_partwidget.cpp                                                                                       
Generating moc_createfilesystemoperation.cpp                                                                        
Generating moc_operation.cpp                                                                                        
Generating moc_partitionmanagerwidget.cpp                                                                           
Generating moc_mainwindow.cpp                                                                                       
Generating moc_listdevices.cpp                                                                                      
Generating moc_newoperation.cpp                                                                                     
Generating moc_operationrunner.cpp                                                                                  
Generating moc_progressdetailswidget.cpp                                                                            
Generating moc_globallog.cpp                                                                                        
Generating moc_insertdialog.cpp                                                                                     
Generating moc_checkoperation.cpp                                                                                   
Generating moc_listoperations.cpp                                                                                   
Generating moc_filesystemsupportdialog.cpp                                                                          
Generating moc_createpartitiontableoperation.cpp                                                                    
Generating moc_deleteoperation.cpp                                                                                  
Generating moc_report.cpp                                                                                           
Generating moc_setpartflagsoperation.cpp                                                                            
Generating moc_resizeoperation.cpp                                                                                  
Generating moc_backupoperation.cpp                                                                                  
Generating moc_externalcommand.cpp                                                                                  
Generating moc_newdialog.cpp                                                                                        
[  0%] Built target partitionmanagerprivate_automoc                                                                 
[  1%] Generating config.h, config.cpp
[  1%] Generating ui_listoperationsbase.h                                                                           
[  2%] Generating ui_filesystemsupportdialogwidgetbase.h                                                            
[  3%] Generating ui_partitionmanagerwidgetbase.h                                                                   
[  4%] Generating ui_partpropswidgetbase.h                                                                          
[  5%] Generating ui_sizedialogwidgetbase.h                                                                         
/home/foreste/wypakowane/partitionmanager-1.0.3/src/gui/sizedialogwidgetbase.ui: Warning: Z-order assignment: 'verticalSpacer' is not a valid widget.
[  5%] Generating ui_listdevicesbase.h
[  6%] Generating ui_progressdialogwidgetbase.h                                                                     
[  7%] Generating ui_progressdetailswidgetbase.h                                                                    
[  8%] Generating ui_treelogbase.h                                                                                  
[  8%] Generating ui_mainwindowbase.h                                                                               
[  9%] Generating ui_partitionmanagerkcmbase.h                                                                      
Scanning dependencies of target partitionmanagerprivate                                                             
[ 10%] Building CXX object src/CMakeFiles/partitionmanagerprivate.dir/partitionmanagerprivate_automoc.o             
[ 11%] Building CXX object src/CMakeFiles/partitionmanagerprivate.dir/core/copytargetfile.o                         
[ 11%] Building CXX object src/CMakeFiles/partitionmanagerprivate.dir/core/copysourcefile.o                         
[ 12%] Building CXX object src/CMakeFiles/partitionmanagerprivate.dir/core/copytarget.o                             
[ 13%] Building CXX object src/CMakeFiles/partitionmanagerprivate.dir/core/copytargetdevice.o                       
[ 14%] Building CXX object src/CMakeFiles/partitionmanagerprivate.dir/core/operationstack.o                         
[ 15%] Building CXX object src/CMakeFiles/partitionmanagerprivate.dir/core/partition.o                              
[ 15%] Building CXX object src/CMakeFiles/partitionmanagerprivate.dir/core/partitionnode.o                          
[ 16%] Building CXX object src/CMakeFiles/partitionmanagerprivate.dir/core/partitionrole.o                          
[ 17%] Building CXX object src/CMakeFiles/partitionmanagerprivate.dir/core/libparted.o                              
/home/foreste/wypakowane/partitionmanager-1.0.3/src/core/libparted.cpp: In function ‘qint64 readSectorsUsedLibParted(PedDisk*, const Partition&)’:
/home/foreste/wypakowane/partitionmanager-1.0.3/src/core/libparted.cpp:131:74: error: ‘ped_file_system_open’ was not declared in this scope
/home/foreste/wypakowane/partitionmanager-1.0.3/src/core/libparted.cpp:135:90: error: ‘ped_file_system_get_resize_constraint’ was not declared in this scope
/home/foreste/wypakowane/partitionmanager-1.0.3/src/core/libparted.cpp:141:39: error: ‘ped_file_system_close’ was not declared in this scope
make[2]: *** [src/CMakeFiles/partitionmanagerprivate.dir/core/libparted.o] Błąd 1
make[1]: *** [src/CMakeFiles/partitionmanagerprivate.dir/all] Błąd 2
make: *** [all] Błąd 2

jak to naprawic ?.

Share this post


Link to post
Share on other sites

Skąd wziąłeś plik /usr/lib/libparted.so? Przy pierwszym cmake Ci go nie znalazł.

 

Możesz spróbować:

cd
wget http://download.fedoraproject.org/pub/fedora/linux/updates/15/i386/parted-2.3-11.fc15.i686.rpm
rpmdev-extract parted-2.3-11.fc15.i686.rpm
sudo cp -dv parted-2.3-11.fc15.i686/lib/* /lib

I spróbować kompilację ponownie.

Share this post


Link to post
Share on other sites

Skąd wziąłeś plik /usr/lib/libparted.so? Przy pierwszym cmake Ci go nie znalazł.

 

Możesz spróbować:

cd
wget http://download.fedoraproject.org/pub/fedora/linux/updates/15/i386/parted-2.3-11.fc15.i686.rpm
rpmdev-extract parted-2.3-11.fc15.i686.rpm
sudo cp -dv parted-2.3-11.fc15.i686/lib/* /lib

I spróbować kompilację ponownie.

Zainstalowałem parted devel

Share this post


Link to post
Share on other sites

Sprawa nie jest prosta - link. Na dzisiaj rozwiązanie to

su -c "yum install svn libatasmart-devel"
svn co svn://anonsvn.kde.org/home/kde/trunk/extragear/sysadmin/partitionmanager/

Pobrana wersja się skompiluje, ale pamiętaj że to rewizja svn i zmiany nie są kosmetyczne. Używasz na własną odpowiedzialność.

Share this post


Link to post
Share on other sites

Sprawa nie jest prosta - link. Na dzisiaj rozwiązanie to

su -c "yum install svn libatasmart-devel"
svn co svn://anonsvn.kde.org/home/kde/trunk/extragear/sysadmin/partitionmanager/

Pobrana wersja się skompiluje, ale pamiętaj że to rewizja svn i zmiany nie są kosmetyczne. Używasz na własną odpowiedzialność.

Działa ;)

Dziękuje

A jak zrobić proste rpm żeby nie zaśmiecać systemu ?

Checkinstall działa na f16 ?

lub jakis konfigurator spec jest ?

Share this post


Link to post
Share on other sites

Jak zrobisz rpm zgodnie z ZEN :) to możesz instalować tam gdzie Ci się podoba.

# rpm --prefix=/opt -ivh paczka.rpm

To się nazywa relocatable package http://www.cyberciti.biz/faq/rpm-relocatable-packages/

i w praktyce sprowadza się do wpisania w spec parametru Prefix i wstawieniu %{prefix} przed ścieżkami (z automake to drugie jest pewnie zrobione domyślnie).

 

Do tego możesz mieć niezależna, używaną z poziomu użytkownika bazę rpm. Ale uwaga, ta baza będzie miała własne zależności, więc to raczej do własnych paczek.

1. ustaw jakiś root

ROOT=/home/lucas/local

2. w nim trzeba zainicjować bazę rpm

DBPATH=$ROOT/var/lib/rpm
mkdir -p $DBPATH
rpm --dbpath $DBPATH --initdb

3. zrób teraz 2 skrypty

- do wszystkiego poza instalacją: myrpm

#!/bin/bash
ROOT=/home/lucas/local
DBPATH=$ROOT/var/lib/rpm

rpm --dbpath $DBPATH $*

 

- do instalacji: myrpm-install

 

#!/bin/bash
ROOT=/home/lucas/local
DBPATH=$ROOT/var/lib/rpm

rpm --dbpath $DBPATH --prefix $ROOT $*

 

u mnie bangla, dla własnych paczek.

 

 

Dlaczego nie użyć opcji --root ?

Bo ta opcja służy do budowania bazy w chroot i rpm przestaje widzieć jakiekolwiek programy (nawet mkdir nie zadziała ot tak) spoza katalogu ustawionego jako root.

Share this post


Link to post
Share on other sites

Dziekuje za pomoc w tym :)

PROGRAM SKOPILOWANY I ZROBIONA PACZKA RPM:)

A tu moj spec,ktory przerobilem z wadliwej paczki kde partitionmanager z f15

Name:  kde-partitionmanager
Summary: KDE Partition Manager 
Version: 1.0.60
Release: 1%{?dist}
License: GPL v2
Group: Applications/System
Source0:  kde-partitionmanager-%{version}.tar.gz
Packager: foreste
Distribution: Fedora
Url: http://my.opera.com/Foreste
Vendor: Poland
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

# upstreamable patches

BuildRequires:	parted-devel, e2fsprogs-devel, pkgconfig, gettext, kdelibs4-devel, cmake
%if 0%{?fedora} >= 12
BuildRequires:	libuuid-devel libblkid-devel
%endif
Requires:	parted, e2fsprogs, reiserfs-utils

%global kde4_version %((kde4-config --version 2>/dev/null || echo "KDE 4.3.0") | grep ^KDE | cut -d' ' -f2)

%{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api} }

%description
KDE Partition Manager is a utility program to help you manage the disk devices,
partitions and file systems on your computer. It allows you to easily create, 
copy, move, delete, resize without losing data, backup and restore partitions.

KDE Partition Manager supports a large number of file systems, 
including ext2/3/4, reiserfs, NTFS, FAT16/32, jfs, xfs and more.

 It makes use of external programs to get its job done, so you might have to 
 install additional software (preferably packages from your distribution) 
 to make use of all features and get full support for all file systems

%prep


%setup -q

%build
%{cmake_kde4} .
make %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
make install DESTDIR="%{buildroot}"

%files
%defattr(-,root,root)
%{_bindir}/
%{_libdir}/
%{_datadir}/
##%doc



## %changelog


Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...