Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
However, I have some questions. My first question is that in the guide it says: "By default, Qt is configured for installation in the /usr/local/Qt-%VERSION% directory"
Which seems odd to me because my current version of Qt is in a folder called Trolltech usr/local/Trooltech
Inside the directory is Qt-4.7.2 so should I delete this Trolltech folder all together? I am assuming I need to get rid of Qt-4.7.2 before I download the newer version?
No, I'd think not. it is a different version, as it says it has a default install dir, this one you have installed therefore HAS been modified. Someone correct me if I am wrong, but it should be able to run long side the other version.
I'd download your different version, and compile it according to the instructions for doing so. the PATH to is what is important when using it. and whatever else it may use to gain the path to its executable.
However, I have some questions. My first question is that in the guide it says: "By default, Qt is configured for installation in the /usr/local/Qt-%VERSION% directory" Which seems odd to me because my current version of Qt is in a folder called Trolltech usr/local/Trooltech Inside the directory is Qt-4.7.2 so should I delete this Trolltech folder all together? I am assuming I need to get rid of Qt-4.7.2 before I download the newer version?
You were told back then that you need to install this from packages, not from source, and asked why. You never answered. Still a valid question now: WHY are you attempting to do this, rather than installing from packages? Unless you are a serious software developer, and you *NEED* some bleeding-edge feature that's only available in the absolute latest version/beta version, there is no reason to use anything but what's in the software repositories.
Unless you are a serious software developer, and you *NEED* some bleeding-edge feature that's only available in the absolute latest version/beta version, there is no reason to use anything but what's in the software repositories.
And in that case, I'd recommend setting up a VM with a more bleeding-edge distro and using Qt in that.
No, I'd think not. it is a different version, as it says it has a default install dir, this one you have installed therefore HAS been modified. Someone correct me if I am wrong, but it should be able to run long side the other version.
I'd download your different version, and compile it according to the instructions for doing so. the PATH to is what is important when using it. and whatever else it may use to gain the path to its executable.
So my solution according to that is to add: QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -std=gnu++98 to the qmake.conf file. I am assuming I will have access to that folder after I have unpacked the tarball?
Also the bug pops up regardless if you compile from source. I am working with old legacy products and legacy code but the machine I am working on has a newer version of gcc. So rather than downgrade my current version of gcc I am attempting the fix that was recommended for this bug.
I am working with old legacy products and legacy code but the machine I am working on has a newer version of gcc. So rather than downgrade my current version of gcc...
Build an older version of GCC. Put it in /opt/gcc-4.5 or a similarly isolated directory.
Build an older version of GCC. Put it in /opt/gcc-4.5 or a similarly isolated directory.
That is a good lead-in into something that confused me about the bug fix. According to the bug fix all I need to do is put: QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -std=gnu++98 into the qtmake.conf file. What is gnu++98? Is that line supposed to force the compiler to use a specific version of gcc? If that's the case how will that even work if my version of gcc is 8.1?
All that means is that g++ would be called with -std=gnu++98. So:
Code:
g++ -std=gnu++98 whatever.cpp
It tells the c++ compiler to assume that the code conforms to the C++ 98 standard.
It should be supported in gcc 8.1.
Well sort of. Its hard for me to give a perfect definition of what my problem is because I myself am not 100% sure what my problem is. Here is what I know. My machine errors out when I try to compile the version of Qt that I need in order to build one of our legacy products. I took the error I was given and dropped it into a google search and I found the solution that I referred to earlier.
So basically, I am looking for a way to implement that solution.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.