- The build of LyX succeeds because the frameworks are added automatically to the linker options.
- If you need to add them yourself because of link errors, e. g.
- lyx Undefined symbols: "_FSPathMakeRef"...
- you have to verify the required frameworks with otool and add them to the LDFLAGS.
+ The build of LyX succeeds because the frameworks are added automatically to the linker options.
+ If you need to add them yourself because of link errors, e. g.
+ lyx Undefined symbols: "_FSPathMakeRef"...
+ you have to verify the required frameworks with otool and add them to the LDFLAGS.
+
+ Check the output of
+ otool -L /path/to/QT4/lib/libQtGui.dylib
+ and look for lines with Frameworks.
+
+ Currently there are two different Qt4 builds available for download:
+ * with Tiger support it's with Carbon. You have to add
+ export LDFLAGS="$LDFLAGS -framework ApplicationServices -framework Carbon -framework AppKit"
+ * with Cocoa framework without Tiger support you have to add
+ export LDFLAGS="$LDFLAGS -framework ApplicationServices -framework Cocoa -framework AppKit"
+
+ Note: The latter is untested.
+
+(e) When working with the Qt4 frameworks provided by Nokia
+
+ We have to help again with some environment variables to make configure work.
+
+ In case pkgconfig is installed... disable it.
+ The Qt4 frameworks come without the required .pc files.
+
+ export PKG_CONFIG=""
+
+ The required compiler flags to compile a Qt4 application has to be provided.
+
+ export QT_CORE_CFLAGS="-FQtCore"
+ export QT_CORE_LIBS="-framework QtCore"
+ export QT_FRONTEND_CFLAGS="-FQtGui"
+ export QT_FRONTEND_LIBS="-framework QtGui"
+
+ Depending on the architecture and target os add the compiler flags: