LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problems compiling QTParted (https://www.linuxquestions.org/questions/linux-newbie-8/problems-compiling-qtparted-63289/)

BigBadPenguin 06-02-2003 05:54 PM

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.

unSpawn 06-02-2003 07:25 PM

Check if you're missing a development package called something like "parted-devel"(-version) which contains the libparted header files.

BigBadPenguin 06-03-2003 04:14 AM

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

unSpawn 06-03-2003 04:55 AM

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.

BigBadPenguin 06-03-2003 05:27 AM

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.:p

BigBadPenguin 06-03-2003 06:49 AM

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 02:27 PM.