Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-02-2003, 05:54 PM
|
#1
|
Member
Registered: Jun 2003
Location: Warwick (.ac.uk)
Distribution: Arch, Slackware 9.0, (knoppix standing by)
Posts: 256
Rep:
|
Problems compiling QTParted
Hi everyone
I'm sorry, I'm sure you're all sick of solving compiling problems from idiots who won't read documentation, but I've tried everything i can think of to get QTParted (0.3.1) to compile and it just doesn't want to.
I have all the dependencies mentioned in the readme. I have GNU parted 1.6.5 operable and downloaded libparted too tho i heard this is included in parted and unnecessary. I haven't installed ntfs/reisfs stuff, but i don't think this should matter.
I think that the build problem is as a result of not being able to find the libparted header file (output of './configure -3 y' and 'make' included below) so I guess my question is this: Which of the libparted.* files is the header it wants, and where should i put this file so it can find it?? I apologise if this is a stupid question, but unlike all the other problems i've ever had with linux, i can't find the answer on this wonderful board. Many thanks to you all for all the preemptive answers you've given in the past. If you can help me out on this one i'll be extremely grateful.
Oh yeah, and the qt directories it's using are correct.
OUTPUT FROM './configure -3 y':
Configuring QTParted ...
$QMAKESPEC not set... i trying to use linux g++
Done!
seems v. short... also, trying './configure' alone produces the same.
OUTPUT FROM 'make'
make
QTDIR=/usr/lib/qt-3.0.4 make -C src
make[1]: Entering directory `/home/ed/temp/qtparted-0.3.1/src'
g++ -c -pipe -Wall -W -g -D_REENTRANT -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.0.4/include -I/usr/lib/qt-3.0.4/mkspecs/default -o main.o main.cpp
g++ -c -pipe -Wall -W -g -D_REENTRANT -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.0.4/include -I/usr/lib/qt-3.0.4/mkspecs/default -o qp_splash.o qp_splash.cpp
g++ -c -pipe -Wall -W -g -D_REENTRANT -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.0.4/include -I/usr/lib/qt-3.0.4/mkspecs/default -o qp_settings.o qp_settings.cpp
g++ -c -pipe -Wall -W -g -D_REENTRANT -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.0.4/include -I/usr/lib/qt-3.0.4/mkspecs/default -o qp_libparted.o qp_libparted.cpp
qp_libparted.cpp:209: error: syntax error before `*' token
qp_libparted.cpp:213: error: `PedTimer' was not declared in this scope
qp_libparted.cpp:213: error: `timer' was not declared in this scope
qp_libparted.cpp:213: error: parse error before `*' token
qp_libparted.cpp: In function `void _timer_handler(...)':
....lots of similar qp_libparted.cpp problems
make[1]: *** [qp_libparted.o] Error 1
make[1]: Leaving directory `/home/ed/temp/qtparted-0.3.1/src'
make: *** [all] Error 2
Thanks dudes, any advice at ALL will be greatly appreciated.
|
|
|
06-02-2003, 07:25 PM
|
#2
|
Moderator
Registered: May 2001
Posts: 29,417
|
Check if you're missing a development package called something like "parted-devel"(-version) which contains the libparted header files.
|
|
|
06-03-2003, 04:14 AM
|
#3
|
Member
Registered: Jun 2003
Location: Warwick (.ac.uk)
Distribution: Arch, Slackware 9.0, (knoppix standing by)
Posts: 256
Original Poster
Rep:
|
Thanks unSpawn for your speedy reply.
I got and installed the parted-devel 1.65 rpm but i had to use the i386 version; was all they had. I also had to install with rpm -i --nodeps because otherwise it gave error messages of failed dependencies which i know are installed. Anyway, that didn't give any errors, so i assume it worked. But was that right? It seems weird installing RPMs in slackware and doesn't feel right... still, no errors.
Anyway, qtparted now configures and makes with an entirely new error message:
make
QTDIR=/usr/lib/qt-3.0.4 make -C src
make[1]: Entering directory `/home/ed/temp/qtparted-0.3.1/src'
g++ -c -pipe -Wall -W -g -D_REENTRANT -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.0.4/include -I/usr/lib/qt-3.0.4/mkspecs/default -o main.o main.cpp
g++ -c -pipe -Wall -W -g -D_REENTRANT -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.0.4/include -I/usr/lib/qt-3.0.4/mkspecs/default -o qp_splash.o qp_splash.cpp
g++ -c -pipe -Wall -W -g -D_REENTRANT -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.0.4/include -I/usr/lib/qt-3.0.4/mkspecs/default -o qp_settings.o qp_settings.cpp
qp_settings.cpp: In constructor `QP_Settings::QP_Settings()':
qp_settings.cpp:28: error: `setPath' undeclared (first use this function)
qp_settings.cpp:28: error: (Each undeclared identifier is reported only once for each function it appears in.)
make[1]: *** [qp_settings.o] Error 1
make[1]: Leaving directory `/home/ed/temp/qtparted-0.3.1/src'
make: *** [all] Error 2
Any ideas? Thanks a lot, it's doing my head in...
-BBP
|
|
|
06-03-2003, 04:55 AM
|
#4
|
Moderator
Registered: May 2001
Posts: 29,417
|
Anyway, qtparted now configures and makes with an entirely new error message:
In the Parted FAQ it says: "If you want to build QTParted you must have libparted installed and running, the header of that library, and the full SDK of QT".
You may want to verify the QT part.
|
|
|
06-03-2003, 05:27 AM
|
#5
|
Member
Registered: Jun 2003
Location: Warwick (.ac.uk)
Distribution: Arch, Slackware 9.0, (knoppix standing by)
Posts: 256
Original Poster
Rep:
|
Thanks unSpawn. Yeah, i read the FAQ already and QT is there and new enough. I just didn't realise that libparted and parted_devel provided the same thing.
AH, i should read things more carefully... "full SDK". Gotcha. I'll go get it. Sorry, i'm a retard. 
|
|
|
06-03-2003, 06:49 AM
|
#6
|
Member
Registered: Jun 2003
Location: Warwick (.ac.uk)
Distribution: Arch, Slackware 9.0, (knoppix standing by)
Posts: 256
Original Poster
Rep:
|
I did it, it didn't work. I think I have a serious problem using rpms, cos it always gives a huge list of dependencies which should already be satisfied.. Don't know why. Anyway I'm giving up on this for a while and i'll come back to it later. I'll just use parted alone for now. Thanks for all your help anyway.
-BBP
|
|
|
All times are GMT -5. The time now is 08:04 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|