Qt issue when building on Mac Os

This forum deals with BCI2000 configuration issues.
Post Reply
Amine Metani
Posts: 12
Joined: 21 Apr 2015, 08:31

Qt issue when building on Mac Os

Post by Amine Metani » 21 Apr 2015, 11:46

Hello,

I am trying to build BCI2000 from sources on Mac Os 10.10.3

I have installed XCode 6.3, Qt Creator 3.3.2 (based on Qt 5.4.1) and CMake 3.3.2

When compiling (whether running << ./Configure.sh.cmd -DUSE_SSE2:BOOL=TRUE -DBUILD_TOOLS:BOOL=TRUE -G "Xcode" >> in a terminal or compiling through XCode GUI), I get this error message :

Code: Select all

There is no precompiled version of Qt available for your platform/compiler.
You will need to install Qt >=5.3.2 on your machine in order to build BCI2000.

CMake Error at cmake/Utils.cmake:81 (MESSAGE):
  There is no precompiled version of Qt available for your platform/compiler.

  You will need to install Qt >=5.3.2 on your machine in order to build
  BCI2000.

Call Stack (most recent call first):
  cmake/FindQt.cmake:253 (UTILS_FATAL_ERROR)
  cmake/Utils.cmake:102 (INCLUDE)
  CMakeLists.txt:22 (UTILS_INCLUDE)
It seems CMake is unable to call for Qt, but everything seems fine from this side, I even reinstalled it using homebrew to make sure of it.

Does anybody have a clue about this issue ?
Thanks,
Amine

narmotur
Posts: 1
Joined: 07 May 2014, 10:50

Re: Qt issue when building on Mac Os

Post by narmotur » 25 May 2015, 09:57

I got the same problem. The script is telling you the problem is here: cmake/FindQt.cmake:253 (line 253).

I've checked my installation and figured out that the variable QT_QMAKE_EXECUTABLE inside the FindQt was pointing to /usr/bin/qmake.
I have previously installed QT in a another location (/Users/narmotur/Qt_5/) so my "qmake" is here: /Users/narmotur/Qt_5/5.4/clang_64/bin

For a quick fix i've just created a symbolic link to my "qmake":
ln -s /usr/bin/qmake /Users/narmotur/Qt_5/5.4/clang_64/bin/qmake

Amine Metani
Posts: 12
Joined: 21 Apr 2015, 08:31

Re: Qt issue when building on Mac Os

Post by Amine Metani » 17 Jun 2015, 04:11

Hi Narmotur, thanks for your fix.

I am finally running BCI2000 on windows through parallels, as it is quite a while since the Mac Os builds haven't been tested. cf : http://www.bci2000.org/phpbb/viewtopic. ... 7943#p7943

A new version of BCI2000 seems to be underway, and the Mac Os builds will be revisited then.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests