./configure --disable-ntfs --with-qt-dir=/usr/lib/qt-3.3/
This worked fine after installing a lot of RHEL 5 devel packages
make required the install of subversion and a bunch of packages and something called unsermake.
At this point it still won't compile.
This is the error I'm getting so far...
compiling /opt/src/qtparted-0.4.5/src/qp_fswrap.cpp g++ -DHAVE_CONFIG_H -I./src -I/opt/src/qtparted-0.4.5/src -I. -I./src -I/usr/lib/qt-3.3//include -I-I/usr/lib/qt-3.3//include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -fexceptions -Wall -Wno-deprecated -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wno-non-virtual-dtor -O2 -g -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -c /opt/src/qtparted-0.4.5/src/qp_fswrap.cpp -o ./src/qp_fswrap.o -Wp,-MD,./src/.deps/qp_fswrap.TUo /opt/src/qtparted-0.4.5/src/qp_fswrap.cpp: In static member function ‘static QString QP_FSFat32::_get_label(PedPartition*)’: /opt/src/qtparted-0.4.5/src/qp_fswrap.cpp:1005: error: ‘PED_SECTOR_SIZE’ was not declared in this scope /opt/src/qtparted-0.4.5/src/qp_fswrap.cpp:1008: error: ‘buffer’ was not declared in this scope /opt/src/qtparted-0.4.5/src/qp_fswrap.cpp: In static member function ‘static QString QP_FSNtfs::_get_label(PedPartition*)’: /opt/src/qtparted-0.4.5/src/qp_fswrap.cpp:1077: warning: unused variable ‘qwTotalSectorsCount’ Error creating ./src/qp_fswrap.o. Exit status 1. make: *** [all] Error 1
Can someone please help?
This bug was fix a long time ago in Fedora and RedHat... https://bugzilla.redhat.com/show_bug.cgi?id=193870
Here is the patch applied by the Fedora packager:
--- qtparted-0.4.5/src/qp_libparted.h 2006-06-02 17:49:42.000000000 +0100 +++ qtparted-0.4.5/src/qp_libparted.h 2006-06-02 17:51:18.000000000 +0100 @@ -35,6 +35,10 @@ #include "qtparted.h" #include "qp_devlist.h"
+#ifndef PED_SECTOR_SIZE +#define PED_SECTOR_SIZE PED_SECTOR_SIZE_DEFAULT +#endif + class QP_PartWidget; class QP_ListViewItem; class QP_LibParted;
Regards, Alain
Hi,
I've got the same error for which the fix above worked for me too, thanks.
Everything is compiled but linking fails with following meassages:
g++ -o qtparted-0.4.5 main.o qp_actlist.o qp_combospin.o qp_common.o qp_debug.o qp_devlist.o qp_diskview.o qp_dlgabout.o qp_dlgconfig.o qp_dlgcreate.o qp_dlgdevprop.o qp_dlgformat.o qp_dlgprogress.o qp_dlgresize.o qp_drivelist.o qp_extended.o qp_exttools.o qp_filesystem.o qp_fswrap.o qp_libparted.o qp_listchart.o qp_listview.o qp_navview.o qp_partition.o qp_partlist.o qp_partwidget.o qp_settings.o qp_sizepart.o qp_spinbox.o qp_window.o runprog.o statistics.o qp_ui_config.o qp_ui_create.o qp_ui_devprop.o qp_ui_format.o qp_ui_progress.o qp_ui_resize.o moc_qp_actlist.o moc_qp_combospin.o moc_qp_diskview.o moc_qp_dlgabout.o moc_qp_dlgconfig.o moc_qp_dlgcreate.o moc_qp_dlgdevprop.o moc_qp_dlgformat.o moc_qp_dlgprogress.o moc_qp_dlgresize.o moc_qp_drivelist.o moc_qp_extended.o moc_qp_fswrap.o moc_qp_libparted.o moc_qp_listchart.o moc_qp_listview.o moc_qp_navview.o moc_qp_partition.o moc_qp_partlist.o moc_qp_partwidget.o moc_qp_settings.o moc_qp_sizepart.o moc_qp_spinbox.o moc_qp_window.o moc_qp_ui_config.o moc_qp_ui_create.o moc_qp_ui_devprop.o moc_qp_ui_format.o moc_qp_ui_progress.o moc_qp_ui_resize.o -L/usr/share/qt3/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm -lpthread qp_actlist.o: In function `QP_ActionList::get_partfilesystem_info(_PedPartition*, QP_PartInfo*)': qp_actlist.cpp:(.text+0x90a): undefined reference to `ped_file_system_open'
... and a tot more of the 'undefined reference to ...'
Anyone to help me through this please?
Log in to post a comment.
./configure --disable-ntfs --with-qt-dir=/usr/lib/qt-3.3/
This worked fine after installing a lot of RHEL 5 devel packages
make required the install of subversion and a bunch of packages and something called unsermake.
At this point it still won't compile.
This is the error I'm getting so far...
compiling /opt/src/qtparted-0.4.5/src/qp_fswrap.cpp
g++ -DHAVE_CONFIG_H -I./src -I/opt/src/qtparted-0.4.5/src -I. -I./src -I/usr/lib/qt-3.3//include -I-I/usr/lib/qt-3.3//include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -fexceptions -Wall -Wno-deprecated -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wno-non-virtual-dtor -O2 -g -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -c /opt/src/qtparted-0.4.5/src/qp_fswrap.cpp -o ./src/qp_fswrap.o -Wp,-MD,./src/.deps/qp_fswrap.TUo
/opt/src/qtparted-0.4.5/src/qp_fswrap.cpp: In static member function ‘static QString QP_FSFat32::_get_label(PedPartition*)’:
/opt/src/qtparted-0.4.5/src/qp_fswrap.cpp:1005: error: ‘PED_SECTOR_SIZE’ was not declared in this scope
/opt/src/qtparted-0.4.5/src/qp_fswrap.cpp:1008: error: ‘buffer’ was not declared in this scope
/opt/src/qtparted-0.4.5/src/qp_fswrap.cpp: In static member function ‘static QString QP_FSNtfs::_get_label(PedPartition*)’:
/opt/src/qtparted-0.4.5/src/qp_fswrap.cpp:1077: warning: unused variable ‘qwTotalSectorsCount’
Error creating ./src/qp_fswrap.o. Exit status 1.
make: *** [all] Error 1
Can someone please help?
This bug was fix a long time ago in Fedora and RedHat...
https://bugzilla.redhat.com/show_bug.cgi?id=193870
Here is the patch applied by the Fedora packager:
--- qtparted-0.4.5/src/qp_libparted.h 2006-06-02 17:49:42.000000000 +0100
+++ qtparted-0.4.5/src/qp_libparted.h 2006-06-02 17:51:18.000000000 +0100
@@ -35,6 +35,10 @@
#include "qtparted.h"
#include "qp_devlist.h"
+#ifndef PED_SECTOR_SIZE
+#define PED_SECTOR_SIZE PED_SECTOR_SIZE_DEFAULT
+#endif
+
class QP_PartWidget;
class QP_ListViewItem;
class QP_LibParted;
Regards,
Alain
Hi,
I've got the same error for which the fix above worked for me too, thanks.
Everything is compiled but linking fails with following meassages:
g++ -o qtparted-0.4.5 main.o qp_actlist.o qp_combospin.o qp_common.o qp_debug.o qp_devlist.o qp_diskview.o qp_dlgabout.o qp_dlgconfig.o qp_dlgcreate.o qp_dlgdevprop.o qp_dlgformat.o qp_dlgprogress.o qp_dlgresize.o qp_drivelist.o qp_extended.o qp_exttools.o qp_filesystem.o qp_fswrap.o qp_libparted.o qp_listchart.o qp_listview.o qp_navview.o qp_partition.o qp_partlist.o qp_partwidget.o qp_settings.o qp_sizepart.o qp_spinbox.o qp_window.o runprog.o statistics.o qp_ui_config.o qp_ui_create.o qp_ui_devprop.o qp_ui_format.o qp_ui_progress.o qp_ui_resize.o moc_qp_actlist.o moc_qp_combospin.o moc_qp_diskview.o moc_qp_dlgabout.o moc_qp_dlgconfig.o moc_qp_dlgcreate.o moc_qp_dlgdevprop.o moc_qp_dlgformat.o moc_qp_dlgprogress.o moc_qp_dlgresize.o moc_qp_drivelist.o moc_qp_extended.o moc_qp_fswrap.o moc_qp_libparted.o moc_qp_listchart.o moc_qp_listview.o moc_qp_navview.o moc_qp_partition.o moc_qp_partlist.o moc_qp_partwidget.o moc_qp_settings.o moc_qp_sizepart.o moc_qp_spinbox.o moc_qp_window.o moc_qp_ui_config.o moc_qp_ui_create.o moc_qp_ui_devprop.o moc_qp_ui_format.o moc_qp_ui_progress.o moc_qp_ui_resize.o -L/usr/share/qt3/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm -lpthread
qp_actlist.o: In function `QP_ActionList::get_partfilesystem_info(_PedPartition*, QP_PartInfo*)':
qp_actlist.cpp:(.text+0x90a): undefined reference to `ped_file_system_open'
... and a tot more of the 'undefined reference to ...'
Anyone to help me through this please?