Kakadu / lablqml

Interfacing Qt/QML with OCaml. Formely known as lablqt
http://kakadu.github.io/lablqml
GNU Lesser General Public License v2.1
159 stars 17 forks source link

Compiling lablqt on MacOSX with MacPorts's Qt5 #18

Closed horasio closed 10 years ago

horasio commented 10 years ago

Hi, When installing lablqt via OPAM, the compilation fails because it can't find Qt5's header. (MaxOSX 10.9.5 and latest MacPorts). In my case, Qt5 is installed as a "framework" via MacPorts in /opt/local/Library/Frameworks/Qt* So the following option should be passed to g++: g++ -F/opt/local/Library/Frameworks -framework QtXXX where XXX is Core, Gui, OpenGL, etc... Is it possible to get the option to use Qt5 as a framework when compiling lablqt ? Thanks Sam

Kakadu commented 10 years ago

I don't know for sure how to pass this kind of options to _oasis file platform-dependently. I don't have Mac but afaik there are some problem in Qt .pc files on that platform. Are you sure that you problem is not the same as #17 ? If yes, you can fix pkg-config files as temporary solution. If you can't accept fixing .pc files I will try to invent something else.

horasio commented 10 years ago

I've tracked the problem down to some mistake in the Qt5 package of MacPorts, which provides wrong config files for pkg-config... So this is probably not an issue from lablqt package in OPAM. Let me close this issue then. Thank you!