Hrm... So after playing some more, removing the entry in main.cpp, it works.
I need a better way to appropriately include Q_IMPORT_PLUGIN(QSvgPlugin)
I thought it was needed on all __APPLE__ platforms, but it seemingly isn't

> Sent: Tuesday, June 30, 2015 at 5:24 PM
> From: "Jason H" <[email protected]>
> To: "[email protected]" <[email protected]>
> Subject: [Interest] My first OSX compile ends in error.
>
> Normally I build on Linux, or when building on OSX, for iOS. But this is my 
> first stab at running the QML app on OSX.
> 
> Undefined symbols for architecture x86_64:
>   "qt_static_plugin_QSvgPlugin()", referenced from:
>       main::StaticQSvgPluginPluginInstance::StaticQSvgPluginPluginInstance() 
> in main.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
> 
> Error while building/deploying project wound (kit: Desktop Qt 5.4.1 clang 
> 64bit)
> When executing step "Make"
> 
> Can anyone help? Thanks!
> 
> 
> -------- .pro file (relevant parts):
> QTPLUGIN += qsvg
> 
> macx {
>     QMAKE_MAC_SDK = macosx10.10
>     QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.10
> }
> 
> android {
>       QT += androidextras
> }
> 
> ios {
>       QMAKE_INFO_PLIST = ios/Info.plist
>         QTPLUGIN += qsqlite qtsensors_ios
>       launch_image.files = $$PWD/ios/Launch.xib 
> $$files($$PWD/ios/LaunchImage*.png)
>       QMAKE_BUNDLE_DATA += launch_images
>       ios_icon.files = $$files($$PWD/ios/AppIcon*.png)
>       QMAKE_BUNDLE_DATA += ios_icon
>       QMAKE_IOS_DEPLOYMENT_TARGET=8.0
>       QMAKE_IOS_TARGETED_DEVICE_FAMILY=1,2
> }
> -------- main contains:
> #ifdef __APPLE__
>       Q_IMPORT_PLUGIN(QSvgPlugin)
> #endif
> 
> 
> _______________________________________________
> Interest mailing list
> [email protected]
> http://lists.qt-project.org/mailman/listinfo/interest
> 
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to