installing qt4
I do not have KDE, so my Ubuntu on my computer did not have QT already. I installed QT in a .tar.gz file. Is that source code? I followed the instructions right to install it. When I try to compile a HelloWorld.cpp from the qt tutorial with g++, I am getting errors that my include files (they are supposed to come from the QT library) do not exist. I know adding the qt bin to the path did work because I can type rcc and get options. I had some compile errors at the end when I typed the command make.
|
Here are partial contents of my .bashrc: -
QTDIR=/usr/local/qt PATH=$QTDIR/bin:$PATH LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH export QTDIR PATH LD_LIBRARY_PATH Having set-up as above (changing path where necessary), change to your source directory and to the following: - qmake -project myproject.pro qmake -makefile myproject.pro make |
I added that at the bottom of my .bashrc and changed it to the correct path for my system. I typed the first command with qmake, and it did not work. I looked in the bin directory for qt4, and qmake was not there. Is x-11 the right download, or was I supposed to get the download for embedded Linux? I do not know what those are for. I am not using qt for commercial software.
|
I just tried to install qt4.0.1 again. I got these same errors as before from the make command. Here are some of them:
Code:
11-opensource-src-4.0.1/lib -lpthread -ldl |
Please specify your problem clearly. Firsr, you were saying that you have qt4 installed but you could not get your program compiled. Now, in you latest post you said that
"I just tried to install qt4.0.1 again. I got these same errors as before from the make command. Here are some of them:" meaning you had not qt4 installed earlier. You do not need any entry in .bashrc to compile qt4 (And you have correct version) just create a new copy of qt4 source and recompile it as instructed in "readme" and "install" files shipped with qt4. |
What I mean is that I tried to install it. I have the qt files in /usr/local/Trolltech/Qt-4.0.1/, but I do not know if they are all there. qmake does not work. I also get errors from su -c "make install". I just downloaded qt4 again and tried to install it again. The same thing happened as before. Do you really think I should find source and try again after what I just did?
|
If you are having errors while su -c 'make install' then qt4 is not installed properly on your system. You need to install it properly. Try the following: -
If you have tallied md5 checksum then again give it a try; unpack the archieve in a fresh directory and again compile and install qt. If you still get errors, then, you may have to contact qt for help. |
Thats obvious qt is not installed properly. Repeating the same thing over and over is not going to help. What is the syntax for the APT line in Synaptic? Wiki does not explain it well. Wiki just shows some examples but does not tell what any of it means. I am trying to add (ftp://ftp.us.debian.org/). It is not as easy as just going in, looking for repositories in the menus and adding it. That is obvious. I tried it. I know why qt will not install now, and I wanted to use that repository above to get it. Thanks.
|
All times are GMT -5. The time now is 06:18 AM. |