Solved Can we install qt 4.8.1 in ubuntu 18.04?
-
No .I dont think this..I have build succefully and run ..but some function not work because some api are obsolete..But i couldnt find obsolete api..because i have not find error of obsolete api..I cant explain exact where problm is generated
-
@vaibs that's why we recommend using Qt 4.8.7.
that is fully API compatible to 4.8.1, just some bugs fixed.
-
@vaibs
Hi
What about using the debugger and step into the function that seems not to work when
clicking in the interface.?
That way you can discover why its not working. -
-
Hi
ok. it will most likely result in the same error as it seems to be something with /usr/include
What we are trying to tell you is that 4.8.7 IS very close to 4.8.1 so
the application should work and we are not sure what API should be obsolete as
it should not be the case. -
Hii,Thanks for reply.
i have trying following step for install qt 4.8.7.- gunzip qt-everywhere-opensource-src-4.8.7.tar.gz
2)tar xf qt-everywhere-opensource-src-4.8.7.tar
3)cd qt-everywhere-opensource-src-4.8.7/
4)./configure
Configure file without error,then i run "make" following error occure.I solved this error but then again generated new error while run "make".Why this happend?I couldnt install qt 4.8.7 ..how i can i nstall qt 4.8.7 and qt 4.8.1 on ubuntu 18.04 lts without error?please help
- gunzip qt-everywhere-opensource-src-4.8.7.tar.gz
-
@vaibs
well for 4.8.7 just do
sudo apt install qt4-default -
@mrjj Thank you..I will try ..
Can you tell me why this error generated?because i have try above step for any qt installation error is generated.If any one have without error tar file for installation qt 4.8 using above step so its appreciated ..Thanks i will try. -
@vaibs
Hi
sadly no. it seems too new include/compiler or something like that. -
It's not a problem of the tar ball. Qt 4.8.7 was released almost 8 years ago so 4.8.1 is even older. Compilers have changed in between.
Hence our recommendation from the start: use the version provided by your distribution. It has been compiled with the compiler you are currently using.
If the application uses API that have been obsoleted, then these are likely API that shouldn't have been used from the start. Qt uses deprecation to warn people about APIs that should not be used anymore and usually obsoletes them in major release change so an obsolete API should not be taken lightly.
-
Thank you all of you for your great response..
@mrjj I have compile and run code using qt 4.8.7 .its build without single error and run also..but after run application not show name of any widget. -
@vaibs
Hi
Ok, that is pretty strange.
i assume normally around the green area, there would be
some buttons or similar.
I have this strange feeling it might be related to unity.
Would it be possible to try to run the exe on other linux ? -
@mrjj Thank you .. Yes I have try..but i dont get any solution for this.. any another solution for display widget on gui after run?.I cant understand why this issue is generated..
-
@vaibs
Hi
Try to run some of the samples that come with Qt or
a new blank GUI project to see if that shows.
I have not seen anything like this before. -
@mrjj Thank you so much for your reply..
Solved this problem.. -
@vaibs would you be so kind and tell us, HOW you solved the problem?
And please mark this topic as SOLVED too.
Thanks!
-
Hello,
AS I read you want to install qt 4.8.1 First you have to download qt4.8.1 and place it on desktop.
Then you have to open the terminal in your Ubuntu and enter your path of the desktop.
Then you have to install some required dependencies
sudo apt-get install build-essential check install
After that, You have to extract that qt4.8.1 file using commands
ar -xvzf qt-everywhere-opensource-src-4.8.1.tar.gz
Then go to the extracted folder using
cd qt-everywhere-opensource-src-4.8.1
And then run Via follow these- ./configure
make
sudo check install
Then you can install it via apt
sudo dpkg -i path/to/output.deb
Change path/to/output.deb to the path of the created .deb file.
Hope this will help you.
Thanks - ./configure
-
@Afflospark Thank you for reply.
I follwed this step but while run "make" i got a many errors.I have upload that screenshot above.So i used qt 4.8.7 for compile and run application. -
@vaibs
Hi
so what was wrong first ?
Since there was nothing on the sceen ?
and what did you do to make it work ? -
@mrjj Wrong with environment ..
go in etc/environment
then add QT_X11_NO_MITSHM=1.
then screen show all widget
Thank you for your support..