Login  Register

Re: Build on OSX

Posted by Gertwin on Jan 31, 2014; 11:11pm
URL: https://forum.librecad.org/Build-on-OSX-tp5709473p5709488.html

I'am trying to use Qt5.2, this is from the qconfig.pri:

QT_CONFIG += minimal-config small-config medium-config large-config full-config build_all debug_and_release no-pkg-config accessibility opengl shared qpa reduce_exports getaddrinfo ipv6ifname getifaddrs png freetype no-harfbuzz system-zlib nis cups iconv openssl rpath corewlan concurrent audio-backend debug release qt_framework

So I think no-pkg-config is defined by default on OSX and pkg-config has to be explicit enabled.

I managed to compile LibreCAD against homebrew Qt5.2 using the XCode 5.0 clang compiler.
All problems solved, next is learning to work with LibreCAD.

B.t.w. the binary Qt5 distribution from http://qt-project.org/ did not work because this is linked with libstdc++.
Qt5 from homebrew is linked with libc++, which is the default with clang.

Thanks.