From owner-freebsd-questions@freebsd.org Mon Aug 21 23:16:14 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 25471DDA9FB for ; Mon, 21 Aug 2017 23:16:14 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-qk0-x233.google.com (mail-qk0-x233.google.com [IPv6:2607:f8b0:400d:c09::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DEDCB657A6 for ; Mon, 21 Aug 2017 23:16:13 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by mail-qk0-x233.google.com with SMTP id u139so89682668qka.1 for ; Mon, 21 Aug 2017 16:16:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=date:from:to:subject:message-id:organization:mime-version :content-transfer-encoding; bh=UH9woS137gfjUMWpF81K6FQapPLG7Sy2M+P3XoZHoP0=; b=GpqrHX58KVs/DklbfRUjW0hMoYStVcAWbly8mjf6kaoDyP9wShAKhXrUbex6hFiABo vaPOzf5o0aM+iGW6OcCh3iQ1QfAvOpv82AaT/3xRLVcxbch7BhG4IXI0ZiLAt0qs7Rux 6g6N9oi53R7qiQ75famlxbeIfvqldPu/Q7rJU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:organization :mime-version:content-transfer-encoding; bh=UH9woS137gfjUMWpF81K6FQapPLG7Sy2M+P3XoZHoP0=; b=SaohP9G6TffEsi+CXe5JOsgtXvUYNLkn4N4SDdR9Ab3uwNqUqJULu7S2E/cYeYsZbA rKzK0LycatLOJFZMTASyNtXQIWVBDc4kOEN8a07zU1rg/HkklpbHgc/+/h2E/3uXN2Ln ToxufZM9Z3YPskvJATUHF0DpYfrgoTAWgtZRZVNXyrPjFYAA+9PsIBnIXsjo5TmNJfMx ykq11Na9eP4fa2WRjE2y7sbdCqcR2vAAL+TWW1+bUGS9MK2cgSx8ujExwnXJACUuKCSR dg3Oo8+hhx4/NVrdCbuJxWlHKvMfGMfRJum+3Qmc01c/sAM3yRJmZY0yabCnicP7UMVB MXaw== X-Gm-Message-State: AHYfb5hurHQuBVbXSrndwqry4MeWnNFVbE1G49CqxXBdgfkyNRjr7dqU 0K+fFVieaOx6mOs4psE= X-Received: by 10.55.142.197 with SMTP id q188mr24095272qkd.203.1503357372645; Mon, 21 Aug 2017 16:16:12 -0700 (PDT) Received: from Papi ([187.112.3.213]) by smtp.gmail.com with ESMTPSA id o67sm5861649qte.71.2017.08.21.16.16.11 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Aug 2017 16:16:12 -0700 (PDT) Date: Mon, 21 Aug 2017 20:17:46 -0300 From: Mario Lobo To: "freebsd-questions@freebsd.org" Subject: Error compiling a qt5 application Message-ID: <20170821201746.59796aba@Papi> Organization: BSD X-Mailer: Claws Mail 3.15.0 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Aug 2017 23:16:14 -0000 Hi there; I'm trying to compile a qt5 application. OS: reeBSD 11.1-STABLE #0 r321652: Sat Jul 29 10:49:43 BRT 2017 clang -v clang version 4.0.1 (tags/RELEASE_401/final) Target: x86_64-unknown-freebsd11.1 Thread model: posix InstalledDir: /usr/local/llvm40/bin When I compile, I get this: Compiling C++... In file included from ../../../../../contrib/gtqtc/gtqtc1.cpp:48: In file included from ../../../../../contrib/gtqtc/gtqtc.h:53: In file included from /usr/local/include/qt5/QtCore/QThread:1: In file included from /usr/local/include/qt5/QtCore/qthread.h:43: In file included from /usr/local/include/qt5/QtCore/qobject.h:46: In file included from /usr/local/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/local/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/local/include/qt5/QtCore/qglobal.h:83: /usr/local/include/qt5/QtCore/qcompilerdetection.h:563:6: error: Qt requires a C++11 compiler and yours does not seem to be that. # error Qt requires a C++11 compiler and yours does not seem to be that. I tried this in make.conf: CC=clang CXX=clang++ CXXFLAGS+=-std=c++11 and export CXXFLAGS=-std=c++11 and nothing seems to work. It seems to me that my clang is new enough to support that standard. What am i missing here? Thanks, -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since 2.2.8 [not Pro-Audio.... YET!!] "UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things."