Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Deutsches Forum (German) Diskussionsforum
  • Search

Qt wird standardmäßig mit C++98 gebaut?

Unterhaltung über Gentoo und andere Themen: Alles was nicht in ein Support-Forum gehört.
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
Author
Message
schmidicom
Advocate
Advocate
User avatar
Posts: 2013
Joined: Thu Mar 09, 2006 5:56 pm
Location: Schweiz

Qt wird standardmäßig mit C++98 gebaut?

  • Quote

Post by schmidicom » Tue Oct 22, 2019 6:22 pm

Wegen einem build-error der beim Versuch dev-qt/qtcore mit clang zu bauen auftrat bin ich dann auf folgendes gestoßen:
https://bugreports.qt.io/browse/QTBUG-6 ... ent-367522

Ich hätte erwartet das gerade so etwas wie Qt standardmäßig mit etwas neuerem als C++98 gebaut wird, vor allem wenn ein Versuch mit CXX_STANDARD zeigt das es auch mit C++11 geht.
Lenovo - ThinkPad P16s Gen 2 - 21K9CTO1WW
Top
l3u
Advocate
Advocate
User avatar
Posts: 2619
Joined: Wed Jan 26, 2005 3:12 pm
Location: Konradsreuth (Germany)
Contact:
Contact l3u
Website

  • Quote

Post by l3u » Tue Oct 22, 2019 8:33 pm

Ja, aber genau das steht doch da?!
The check is correct. The features that Clang offers in C++98 mode are insufficient to compile Qt headers. You must turn on C++11 or better in the compiler.
Top
schmidicom
Advocate
Advocate
User avatar
Posts: 2013
Joined: Thu Mar 09, 2006 5:56 pm
Location: Schweiz

  • Quote

Post by schmidicom » Wed Oct 23, 2019 5:46 am

l3u wrote:Ja, aber genau das steht doch da?!
Naja das ist ja erstmal nur ein Kommentar in einem Bugreport. Und als damals Qt 5.7 heraus kam klang das mit dem C++11 dann doch etwas anders.

EDIT:
"dev-qt/qtcore" wird wohl als einziges Qt-Paket mit cmake gebaut (das Tool qmake steht ja erst zur Verfügung wenn "dev-qt/qtcore" installiert ist) und wie es aussieht verwendet nur cmake standardmäßig das alte C++98. Bei den anderen Qt-Paketen wird qmake verwendet und da sieht es dann wieder ganz anders aus (https://doc.qt.io/qt-5/qmake-variable-reference.html), "dev-qt/qtbluetooth" baut sogar mit C++17.
Lenovo - ThinkPad P16s Gen 2 - 21K9CTO1WW
Top
l3u
Advocate
Advocate
User avatar
Posts: 2619
Joined: Wed Jan 26, 2005 3:12 pm
Location: Konradsreuth (Germany)
Contact:
Contact l3u
Website

  • Quote

Post by l3u » Wed Oct 23, 2019 6:41 pm

Das allererste, was dasteht, wenn man qtcore baut, ist:

Code: Select all

Creating qmake...
Ohne jetzt in das Buildsystem reingeschaut zu haben, würde ich vermuten, dass qmake selber erstmal mit einer manuell erzeugten Makefile gebaut wird, um damit dann qtcore und den Rest zu bauen. Qtcore baut also erstmal qmake, damit es sich selbst bauen kann. Bevor qmake installiert ist. Denke ich zumindest.
Top
Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Diskussionsforum”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic