Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Aug 2017 16:28:24 -0300
From:      Mario Lobo <lobo@bsd.com.br>
To:        Frank Leonhardt <frank2@fjl.co.uk>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Error compiling a qt5 application
Message-ID:  <CA%2ByoEx8JQKLutH4UyHu=EbGcEd1saGdotiA6BvOKqcuTE0HdRw@mail.gmail.com>
In-Reply-To: <76784b86-4550-2ef9-21b1-5fc178e326a6@fjl.co.uk>
References:  <20170821201746.59796aba@Papi> <76784b86-4550-2ef9-21b1-5fc178e326a6@fjl.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks for the reply, Frank.

I managed to get it right from inside the app structure.

2017-08-24 6:44 GMT-03:00 Frank Leonhardt <frank2@fjl.co.uk>:

> 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,
>>
>>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe
> @freebsd.org"
>



-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!] (99,7% winfoes FREE)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2ByoEx8JQKLutH4UyHu=EbGcEd1saGdotiA6BvOKqcuTE0HdRw>