Click to See Complete Forum and Search --> : did i install QT/Qmake properly ?
moonchin
03-01-2004, 08:20 PM
ok ther is a program i'm installing that requires Qmake-a part of the Qt developer tools. i downloaded it into /misc, and unpacked the files, into a subdir of /misc i did a ./configure:make:make install ( it took a few hours)
and then i assumed it was done, i have the fresh new binaires in a folder inside /misc/qt.x.x.x/qmake
but when at the prompt i type qmake nothing happens, it tell me that there is no such file/directory ?
i havea feeling that i missed an important step, like what directory to put these files once compiled.
this files are allready compiled, was wondering if i could just moved to where they need to be or make the "power that be point to where they are currently relocated.
:confused: :confused: :confused: :confused: :confused:
bsm2001
03-01-2004, 08:36 PM
did you run make install as root?
ie: $ su (enter)
$ passwd: *^&%^G% 9enter)
$ make install
moonchin
03-01-2004, 09:38 PM
yes, i do most of those system install stuff logged in as root
i did actually get to compile and success fully make, and make install
it took a long time too. at the end i got the binaires compiled they are there but not recognized at the CLI
for instance
the program i'm trying to isntals ./configure file reads
qmake -something .something.cpp
now i tryed running the install for that program (qjoypad or something like that) and it says qmake not installed.
so thats the whole point of me trying to installing Qt, qmake is a part of Qt
this one is probably installed in the wrong place or the system doesnt know where these fie are
*shrugs*
mdwatts
03-02-2004, 12:27 PM
Originally posted by moonchin
but when at the prompt i type qmake nothing happens, it tell me that there is no such file/directory ?
It could be qmake is not in your PATH (echo $PATH to check).
Mine is in /usr/bin/qmake.
See if you can find qmake.
find / -name qmake -print
moonchin
03-03-2004, 09:05 PM
well i added the correct dirs to PATH, but i t took me a while, after some google-ing i found that i was editing the wrong file while i was logged in as root.My google-ing found that in order to add a new path:
For One user edit $HOME/.bash_profile
All users except root edit /etc/profile
as root edit /root/.bash_profile
http://www.troubleshooters.com/linux/prepostpath.htm
link provided for the next person searchin for explaination of how to add things to PATH
thanks for your suggestions !
moonchin
03-04-2004, 06:56 AM
so this is where it gets good. all the dirs i could think to add to the path are there now in the path, i can now run ./configure inthe qjoypad directory with no errors, however when i do try to run make it tells me that it cannot find the qt header files, even when they are in the PATH
so i checked out the guts on these source files and they all say # include qtwhaever1.h
# include qtwhaever.2h
# include qtwhaever3.h
# include qtwhaever4.h
# include qtwhaever5.h
# include qtwhaever6.h
now i'm not a programmer but when something in the source references a lib, how do u tell the compiler to use that path to #include while source refrences it ??
does gcc need its paths updated too ? or do i need to move the qt-devel/include folder to a "usual" place where i can then be summoned ?
man i sound basic, but i'm not giving up on this dammit
bathory
03-04-2004, 07:11 AM
Run ./configure --help and it'll tell you the options about qt. It should be something like: -with-qt-.....=DIR. Then run ./configure with that options
moonchin
03-05-2004, 07:32 AM
well i tell you what bathory i tired installing in a more obvious place like /usr/lib
and that got me 3/4 of the way through the install of qjoypad
it then was tring to cd to /src/moc which gave me an error,
src/moc does not exist ( it is hoever part of the qt dir)
keep this mind i was running this while it was installed in /misc/qjoypad
so opn a hunch i tried un compressing the qjoypad Tarball into the /misc/qt-3.x.x.devel directory.........worked like a charm.
./configure
make
make install
so i take it from now on, if a program depend a whole lot on a major developer platform library i'm gonna just try to install it in the same dir to save me a headache :D :D :D :D :D