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

build fail in stub.c w QT 5.2 #16

Closed ghost closed 10 years ago

ghost commented 10 years ago

pkg_tyxml_parser: .................................... /Users/philou/.opam/4.01.0/lib/tyxml pkg_ocamlgraph: ...................................... /Users/philou/.opam/4.01.0/lib/ocamlgraph ocamllex: ............................................ /Users/philou/.opam/4.01.0/bin/ocamllex ocamlyacc: ........................................... /Users/philou/.opam/4.01.0/bin/ocamlyacc pkg_yojson: .......................................... /Users/philou/.opam/4.01.0/lib/yojson

Finished, 0 targets (0 cached) in 00:00:00. Finished, 59 targets (57 cached) in 00:00:05. rm -f /Users/philou/src/ML/GUI/lablqt-git/qml/test/mocml && ln -s /Users/philou/src/ML/GUI/lablqt-git/qml/../src/mocml.native /Users/philou/src/ML/GUI/lablqt-git/qml/test/mocml if [ ! -e /Users/philou/src/ML/GUI/lablqt-git/qml/lib/Makefile ]; then cd /Users/philou/src/ML/GUI/lablqt-git/qml/lib && ./configure; fi make -C /Users/philou/src/ML/GUI/lablqt-git/qml/lib ocaml setup.ml -build Finished, 0 targets (0 cached) in 00:00:00.

+ ocamlfind ocamlc -ccopt '-std=c++0x' -ccopt -x -ccopt c++ -ccopt '`pkg-config' -ccopt --cflags -ccopt 'Qt5Qml`' -ccopt -O2 -ccopt '-Dprivate=public' -c stubs.c
In file included from stubs.c:1:0:
stubs.h:7:32: fatal error: QtQuick/qquickview.h: No such file or directory
 #include <QtQuick/qquickview.h>
                                ^
compilation terminated.
Command exited with code 2.
Compilation unsuccessful after building 1 target (0 cached) in 00:00:00.
E: Failure("Command '/Users/philou/.opam/4.01.0/bin/ocamlbuild liblablqml_stubs.a dlllablqml_stubs.so lablqml.cma lablqml.cmxs lablqml.cmxa lablqml.a -tag debug' terminated with error code 10")
make[1]: *** [build] Error 1
make: *** [lib] Error 2

thanks for your efforts on ocaml and QT integration, I may switch one day from lablgtk+react!

platform: mac osx 10.8.5, latest macports on x86_64, opam 1.1.0, ocaml 4.01.0, QT 5.2 x86_64

Kakadu commented 10 years ago

You was using master branch when all development and opam checkout was made in/from qml-dev branch. I have merged them today, so it should not be a problem anymore.

If the problem will still exists show me the output of pkg-config --cflags --libs Qt5Quick. AFAIR, Qt5.1 have had some problems with pkg-config paths on Mac.

ghost commented 10 years ago

Hello kakadu,

got basically the same after pull :

Turn ocaml profile flag on: .......................... false Compiler support generation of .cmxs.: ............... true OCamlbuild additional flags: ......................... Create documentations: ............................... true Compile tests executable and library and run them: ... false

ocaml setup.ml -build Finished, 1 target (0 cached) in 00:00:00.

env : CAML_LD_LIBRARY_PATH=/Users/philou/.opam/4.01.0/lib/stublibs PERL5LIB=/Users/philou/.opam/4.01.0/lib/perl5 PATH=/Users/philou/.opam/4.01.0/bin:/opt/Qt5.2.0/5.2.0/clang_64/bin/:/Users/philou/bin:/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin PWD=/Users/philou/src/ML/GUI/lablqt-git LANG=fr_CH.UTF-8 LLVM_CONFIG=/opt/local/bin/llvm-config-mp-3.3 CLANG=/opt/local/bin/clang-mp-3.3 SHLVL=1 HOME=/Users/philou DYLD_LIBRARY_PATH=/opt/av/lib/:/opt/misc/lib LOGNAME=philou PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:/opt/local/share/pkgconfig:/usr/local/lib/pkgconfig:/opt/num/lib/pkgconfig:/opt/av/lib/pkgconfig:/opt/misc/lib/pkgconfig:/usr/lib/pkgconfig:/opt/Qt5.2.0/5.2.0/clang_64/lib/pkgconfig/

On Sun, Jan 5, 2014 at 8:47 AM, Kakadu notifications@github.com wrote:

1st. You was using master branch when all development and opam checkout was made in/from qml-dev branch. I have merged them today, so it should not be a problem anymore.

— Reply to this email directly or view it on GitHubhttps://github.com/Kakadu/lablqt/issues/16#issuecomment-31598593 .

Kakadu commented 10 years ago

What about pkg-config output?

$ pkg-config --cflags  Qt5Widgets
-I/home/kakadu/prog/qt/Qt5.2.0/5.2.0/gcc_64/include/QtWidgets -I/home/kakadu/prog/qt/Qt5.2.0/5.2.0/gcc_64/include -I/home/kakadu/prog/qt/Qt5.2.0/5.2.0/gcc_64/include/QtCore -I/home/kakadu/prog/qt/Qt5.2.0/5.2.0/gcc_64/include/QtGui  
$ ls /home/kakadu/prog/qt/Qt5.2.0/5.2.0/gcc_64/include/QtWidgets/QApplication 
/home/kakadu/prog/qt/Qt5.2.0/5.2.0/gcc_64/include/QtWidgets/QApplication
ghost commented 10 years ago

gaaasp the mac qt5.2 package seems broken :

philou@air:~/mysrc/aplog$ gfind /opt/Qt5.2.0/5.2.0/clang_64/include/ /opt/Qt5.2.0/5.2.0/clang_64/include/ /opt/Qt5.2.0/5.2.0/clang_64/include/QtOpenGLExtensions /opt/Qt5.2.0/5.2.0/clang_64/include/QtOpenGLExtensions/QOpenGLExtensions /opt/Qt5.2.0/5.2.0/clang_64/include/QtOpenGLExtensions/qopenglextensions.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtOpenGLExtensions/QtOpenGLExtensions /opt/Qt5.2.0/5.2.0/clang_64/include/QtOpenGLExtensions/QtOpenGLExtensionsDepends /opt/Qt5.2.0/5.2.0/clang_64/include/QtOpenGLExtensions/QtOpenGLExtensionsVersion /opt/Qt5.2.0/5.2.0/clang_64/include/QtOpenGLExtensions/qtopenglextensionsversion.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0 /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/application_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/atspiadaptor_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/bridge_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/cache_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/cglconvenience_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/constant_mappings_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/dbusconnection_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qbasicfontdatabase_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qcfsocketnotifier_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qcoretextfontdatabase_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qdevicediscovery_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qeglconvenience_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qeglpbuffer_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qeglplatformcontext_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qevdevkeyboard_defaultmap_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qevdevkeyboardhandler_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qevdevkeyboardmanager_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qevdevmousehandler_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qevdevmousemanager_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qevdevtablet_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qevdevtouch_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qeventdispatcher_cf_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qeventdispatcher_glib_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qfbbackingstore_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qfbcursor_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qfbscreen_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qfbwindow_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qfontconfigdatabase_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qfontengine_coretext_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qfontenginemultifontconfig_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qgenericunixeventdispatcher_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qgenericunixfontdatabase_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qgenericunixservices_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qgenericunixthemes_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qglxconvenience_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qunixeventdispatcher_qpa_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/qxlibeglintegration_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/5.2.0/QtPlatformSupport/private/struct_marshallers_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/QtPlatformSupport /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/QtPlatformSupportDepends /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/QtPlatformSupportVersion /opt/Qt5.2.0/5.2.0/clang_64/include/QtPlatformSupport/qtplatformsupportversion.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtUiTools /opt/Qt5.2.0/5.2.0/clang_64/include/QtUiTools/5.2.0 /opt/Qt5.2.0/5.2.0/clang_64/include/QtUiTools/5.2.0/QtUiTools /opt/Qt5.2.0/5.2.0/clang_64/include/QtUiTools/5.2.0/QtUiTools/private /opt/Qt5.2.0/5.2.0/clang_64/include/QtUiTools/5.2.0/QtUiTools/private/quiloader_p.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtUiTools/QtUiTools /opt/Qt5.2.0/5.2.0/clang_64/include/QtUiTools/QtUiToolsDepends /opt/Qt5.2.0/5.2.0/clang_64/include/QtUiTools/QtUiToolsVersion /opt/Qt5.2.0/5.2.0/clang_64/include/QtUiTools/qtuitoolsversion.h /opt/Qt5.2.0/5.2.0/clang_64/include/QtUiTools/QUiLoader /opt/Qt5.2.0/5.2.0/clang_64/include/QtUiTools/quiloader.h

strange.

thanks for your input, will wait qt 5.2.1 or 0.1 on the mac

On Sun, Jan 5, 2014 at 1:35 PM, Kakadu notifications@github.com wrote:

What about pkg-config output?

$ pkg-config --cflags Qt5Widgets -I/home/kakadu/prog/qt/Qt5.2.0/5.2.0/gcc_64/include/QtWidgets -I/home/kakadu/prog/qt/Qt5.2.0/5.2.0/gcc_64/include -I/home/kakadu/prog/qt/Qt5.2.0/5.2.0/gcc_64/include/QtCore -I/home/kakadu/prog/qt/Qt5.2.0/5.2.0/gcc_64/include/QtGui $ ls /home/kakadu/prog/qt/Qt5.2.0/5.2.0/gcc_64/include/QtWidgets/QApplication /home/kakadu/prog/qt/Qt5.2.0/5.2.0/gcc_64/include/QtWidgets/QApplication

— Reply to this email directly or view it on GitHubhttps://github.com/Kakadu/lablqt/issues/16#issuecomment-31603093 .

Kakadu commented 10 years ago

Can you report it?

ghost commented 10 years ago

done, QT jira ID : qtifw443

On Sun, Jan 5, 2014 at 7:57 PM, Kakadu notifications@github.com wrote:

Can you report it?

— Reply to this email directly or view it on GitHubhttps://github.com/Kakadu/lablqt/issues/16#issuecomment-31612087 .

Kakadu commented 10 years ago

No such user: https://bugreports.qt-project.org/secure/ViewProfile.jspa?name=qtifw443

On Mon, Jan 6, 2014 at 12:32 PM, catseyechandra notifications@github.comwrote:

done, QT jira ID : qtifw443

On Sun, Jan 5, 2014 at 7:57 PM, Kakadu notifications@github.com wrote:

Can you report it?

— Reply to this email directly or view it on GitHub< https://github.com/Kakadu/lablqt/issues/16#issuecomment-31612087> .

— Reply to this email directly or view it on GitHubhttps://github.com/Kakadu/lablqt/issues/16#issuecomment-31633755 .

ghost commented 10 years ago

https://bugreports.qt-project.org/browse/QTIFW-443

On Mon, Jan 6, 2014 at 10:39 AM, Kakadu notifications@github.com wrote:

No such user: https://bugreports.qt-project.org/secure/ViewProfile.jspa?name=qtifw443

On Mon, Jan 6, 2014 at 12:32 PM, catseyechandra notifications@github.comwrote:

done, QT jira ID : qtifw443

On Sun, Jan 5, 2014 at 7:57 PM, Kakadu notifications@github.com wrote:

Can you report it?

— Reply to this email directly or view it on GitHub< https://github.com/Kakadu/lablqt/issues/16#issuecomment-31612087> .

— Reply to this email directly or view it on GitHub< https://github.com/Kakadu/lablqt/issues/16#issuecomment-31633755> .

— Reply to this email directly or view it on GitHubhttps://github.com/Kakadu/lablqt/issues/16#issuecomment-31636591 .

Kakadu commented 10 years ago

It seems that some news have been appeared in the bug report comments. Can you try these recommendations?

ghost commented 10 years ago

10 days ago exactly, 14-jan, I was able to build qt-5.2.1 from git using : ./configure -prefix /opt/Qt/5.2.1 -opensource -nomake tests -no-xcb -no-framework; since then, I'm able to use lablqt. -no-xcb -no-framework are really mandatory.

Kakadu commented 10 years ago

So, will it be OK if I add -no-xcb -no-framework to building manual and close the bug?

ghost commented 10 years ago

Yes, building from sources, not using the binary installer