From owner-freebsd-questions@freebsd.org Thu Aug 24 09:44:19 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 47026DDB4B2 for ; Thu, 24 Aug 2017 09:44:19 +0000 (UTC) (envelope-from frank2@fjl.co.uk) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bs1.fjl.org.uk", Issuer "bs1.fjl.org.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id EDB8B71ECC for ; Thu, 24 Aug 2017 09:44:18 +0000 (UTC) (envelope-from frank2@fjl.co.uk) Received: from [192.168.1.35] (host86-191-18-76.range86-191.btcentralplus.com [86.191.18.76]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id v7O9iGru073701 for ; Thu, 24 Aug 2017 10:44:16 +0100 (BST) (envelope-from frank2@fjl.co.uk) Subject: Re: Error compiling a qt5 application To: freebsd-questions@freebsd.org References: <20170821201746.59796aba@Papi> From: Frank Leonhardt Message-ID: <76784b86-4550-2ef9-21b1-5fc178e326a6@fjl.co.uk> Date: Thu, 24 Aug 2017 10:44:16 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170821201746.59796aba@Papi> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: Thu, 24 Aug 2017 09:44:19 -0000 Can't fix this but I had grief with a qt5 not compiling (virtualbox IIRC), so switched to qt4 and everything was fine. QT not really my bag. On 22/08/2017 00:17, Mario Lobo wrote: > 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, >