Hey Daniel,

Our OS X Qt path in our SCons setup doesn't use the SCons qt4/qt5 support
module we use on other platforms (build/qt4.py and build/qt5.py). I found
the line in qt4/qt5.py that does this MOC CPPPATH setup and I've copied it
over to our OS X support. I confirmed the includes get added to moc
normally. Can you test it out?

Thanks,
RJ




On Mon, Dec 16, 2013 at 7:31 PM, Daniel Lindenfelser <dan...@lindenfelser.de
> wrote:

> Hi,
>
> after some research i found a strange thing with scons, qt5 and the moc
> compiler:
>
> for the new qml skin engine i create a class with a Q_INTERFACES inside.
> but i can’t get the file compiled with scons. after some test i see scons
> don’t add the -I arguments for include paths to the moc compiler.
>
> /Users/danlin/Qt5.2.0/5.2.0/clang_64/bin/moc -Dx86_64
> "-DSETTINGS_PATH=\"Library/Application Support/Mixxx/\""
> -DBPMSCHEME_FILE=\"mixxxbpmscheme.xml\" -DSETTINGS_FILE=\"mixxx.cfg\"
> -DTRACK_FILE=\"mixxxtrack.xml\" -DSOUNDTOUCH_ALLOW_X86_OPTIMIZATIONS
> -D__PORTAUDIO__ -DQT_SHARED -DQT_TABLET_SUPPORT
> -DQT_DISABLE_DEPRECATED_BEFORE -DQT_CORE_LIB -DQT_GUI_LIB -DQT_OPENGL_LIB
> -DQT_XML_LIB -DQT_SVG_LIB -DQT_SQL_LIB -DQT_SCRIPT_LIB -DQT_NETWORK_LIB
> -DQT_WIDGETS_LIB -DQT_QML_LIB -DQT_QUICK_LIB -D__SNDFILE__ -D__COREAUDIO__
> -D__HID__ -D__VINYLCONTROL__ -D__SHOUTCAST__ -D__AUTODJCRATES__ -o
> osx64_build/qml/moc_qmlcontrolobject.cc src/qml/qmlcontrolobject.h
> src/qml/qmlcontrolobject.h:18: Error: Undefined interface
>
> after i add all include paths like g++ calls my file compiles fine
>
> /Users/danlin/Qt5.2.0/5.2.0/clang_64/bin/moc -Dx86_64
> "-DSETTINGS_PATH=\"Library/Application Support/Mixxx/\""
> -DBPMSCHEME_FILE=\"mixxxbpmscheme.xml\" -DSETTINGS_FILE=\"mixxx.cfg\"
> -DTRACK_FILE=\"mixxxtrack.xml\" -DSOUNDTOUCH_ALLOW_X86_OPTIMIZATIONS
> -D__PORTAUDIO__ -DQT_SHARED -DQT_TABLET_SUPPORT
> -DQT_DISABLE_DEPRECATED_BEFORE -DQT_CORE_LIB -DQT_GUI_LIB -DQT_OPENGL_LIB
> -DQT_XML_LIB -DQT_SVG_LIB -DQT_SQL_LIB -DQT_SCRIPT_LIB -DQT_NETWORK_LIB
> -DQT_WIDGETS_LIB -DQT_QML_LIB -DQT_QUICK_LIB -D__SNDFILE__ -D__COREAUDIO__
> -D__HID__ -D__VINYLCONTROL__ -D__SHOUTCAST__ -D__AUTODJCRATES__ -o
> osx64_build/qml/moc_qmlcontrolobject.cc src/qml/qmlcontrolobject.h
> -I/usr/local/include -Iosx64_build -Isrc -Ilib/soundtouch-1.6.0
> -Ilib/replaygain
> -I/Users/danlin/Qt5.2.0/5.2.0/clang_64/lib/QtCore.framework/Headers
> -I/Users/danlin/Qt5.2.0/5.2.0/clang_64/lib/QtGui.framework/Headers
> -I/Users/danlin/Qt5.2.0/5.2.0/clang_64/lib/QtOpenGL.framework/Headers
> -I/Users/danlin/Qt5.2.0/5.2.0/clang_64/lib/QtXml.framework/Headers
> -I/Users/danlin/Qt5.2.0/5.2.0/clang_64/lib/QtSvg.framework/Headers
> -I/Users/danlin/Qt5.2.0/5.2.0/clang_64/lib/QtSql.framework/Headers
> -I/Users/danlin/Qt5.2.0/5.2.0/clang_64/lib/QtScript.framework/Headers
> -I/Users/danlin/Qt5.2.0/5.2.0/clang_64/lib/QtXmlPatterns.framework/Headers
> -I/Users/danlin/Qt5.2.0/5.2.0/clang_64/lib/QtNetwork.framework/Headers
> -I/Users/danlin/Qt5.2.0/5.2.0/clang_64/lib/QtTest.framework/Headers
> -I/Users/danlin/Qt5.2.0/5.2.0/clang_64/lib/QtDeclarative.framework/Headers
> -I/Users/danlin/Qt5.2.0/5.2.0/clang_64/lib/QtWidgets.framework/Headers
> -I/Users/danlin/Qt5.2.0/5.2.0/clang_64/lib/QtConcurrent.framework/Headers
> -I/Users/danlin/Qt5.2.0/5.2.0/clang_64/lib/QtQml.framework/Headers
> -I/Users/danlin/Qt5.2.0/5.2.0/clang_64/lib/QtQuick.framework/Headers
> -Ilib/fidlib-0.9.10 -I/Library/Frameworks/OpenGL.framework/Headers
> -I/usr/include/taglib
> -I/System/Library/Frameworks/AudioToolbox.framework/Headers -Ilib/apple
> -Ilib/hidapi-0.8.0-pre/hidapi -Ilib/xwax -Ilib/scratchlib
>
> im not a python guy and can’t find a way to fix this.
> i use mac os x
>
> plz help me :) can’t wait to see my new qmlobjects :P
>
> — danlin
>
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Get Mixxx, the #1 Free MP3 DJ Mixing software Today
> http://mixxx.org
>
>
> Mixxx-devel mailing list
> Mixxx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mixxx-devel
>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Get Mixxx, the #1 Free MP3 DJ Mixing software Today
http://mixxx.org


Mixxx-devel mailing list
Mixxx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Reply via email to