LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 06-02-2003, 06:54 PM   #1
BigBadPenguin
Member
 
Registered: Jun 2003
Location: Warwick (.ac.uk)
Distribution: Arch, Slackware 9.0, (knoppix standing by)
Posts: 256

Rep: Reputation: 30
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.
 
Old 06-02-2003, 08:25 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
Check if you're missing a development package called something like "parted-devel"(-version) which contains the libparted header files.
 
Old 06-03-2003, 05:14 AM   #3
BigBadPenguin
Member
 
Registered: Jun 2003
Location: Warwick (.ac.uk)
Distribution: Arch, Slackware 9.0, (knoppix standing by)
Posts: 256

Original Poster
Rep: Reputation: 30
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
 
Old 06-03-2003, 05:55 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
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.
 
Old 06-03-2003, 06:27 AM   #5
BigBadPenguin
Member
 
Registered: Jun 2003
Location: Warwick (.ac.uk)
Distribution: Arch, Slackware 9.0, (knoppix standing by)
Posts: 256

Original Poster
Rep: Reputation: 30
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.
 
Old 06-03-2003, 07:49 AM   #6
BigBadPenguin
Member
 
Registered: Jun 2003
Location: Warwick (.ac.uk)
Distribution: Arch, Slackware 9.0, (knoppix standing by)
Posts: 256

Original Poster
Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
qtparted-0.4.3 compiling - libreiserfs davidsrsb Slackware 6 11-04-2004 12:23 PM
qtparted.... problems with make hobz Linux - Software 3 10-22-2004 01:56 PM
problems with qtparted jdmml Linux - Newbie 7 07-27-2004 01:59 AM
errors compiling qtparted mrosati Linux - Software 2 05-14-2004 04:22 AM
QTParted-0.4.3 - compiling - libreiserf FastFeet Linux - Software 0 03-20-2004 11:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration