Help installing from source
I want to attempt installing this newer version of Qt from source based off of this guide: http://doc.qt.io/qt-5/linux-building.html
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. http://doc.qt.io/qtcreator/creator-run-settings.html |
Out of interest, which distro are you using and why do you want to update Qt?
|
Quote:
https://www.linuxquestions.org/quest...ns-4175636832/ 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. |
Quote:
Its a long story. Essentially, I am running into this problem: https://bugreports.qt.io/browse/QTBU...comment-206970 The current version I have installed was installed with errors. |
Why don't you tell us more of the long story (from the start)?
|
Quote:
|
Quote:
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? |
Quote:
:confused: ...and in any case, this still doesn't explain why you think need to compile qt from source in the first place. |
Quote:
QT_CONFIG_OPTIONS += -svg QT_CONFIG_OPTIONS += -no-qt3support QT_CONFIG_OPTIONS += -opengl QT_CONFIG_OPTIONS += -nomake examples QT_CONFIG_OPTIONS += -nomake demos QT_CONFIG_OPTIONS += -nomake translations 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. |
Quote:
|
Quote:
|
Oh dear. Was that your misunderstanding?
All that means is that g++ would be called with -std=gnu++98. So: Code:
g++ -std=gnu++98 whatever.cpp It should be supported in gcc 8.1. |
Quote:
So basically, I am looking for a way to implement that solution. |
Quote:
that's why we ask for output (and not narrative) to help you understand. |
All times are GMT -5. The time now is 03:33 AM. |