xcode generator + kdesupport

Benjamin Reed rangerrick at gmail.com
Fri May 26 18:42:41 CEST 2006


I'm trying to build the qt4 dbus bindings as universal binaries.  I
have to use the Xcode generator, it appears, or else CMake doesnt' do
anything with the archtecture environment variables.

It looks like we're either making some assumptions in our CMakeFiles,
or Xcode generation is broken, because it mostly works, but fails when
trying to run in-place binaries:

---(snip!)---
	    cd /Users/ranger/.cvs.build/build/kdesupport
    setenv ACTION build
    setenv ALWAYS_SEARCH_USER_PATHS YES
    setenv APPLE_INTERNAL_DEVELOPER_DIR /AppleInternal/Developer
    setenv APPLE_INTERNAL_DIR /AppleInternal
    setenv APPLE_INTERNAL_DOCUMENTATION_DIR /AppleInternal/Documentation
    setenv APPLE_INTERNAL_LIBRARY_DIR /AppleInternal/Library
    setenv APPLE_INTERNAL_TOOLS /AppleInternal/Developer/Tools
    setenv ARCHS "ppc i386"
    setenv BUILD_COMPONENTS "headers build"
    setenv BUILD_DIR /Users/ranger/cvs/build/kdesupport/qt-dbus/examples
    setenv BUILD_ROOT /Users/ranger/cvs/build/kdesupport/qt-dbus/examples
    setenv BUILD_STYLE Debug
    setenv BUILD_VARIANTS normal
    setenv BUILT_PRODUCTS_DIR
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Debug
    setenv CACHE_ROOT /Library/Caches/com.apple.Xcode.501
    setenv CCHROOT /Library/Caches/com.apple.Xcode.501
    setenv CHMOD /bin/chmod
    setenv CHOWN /usr/sbin/chown
    setenv CLASS_FILE_DIR
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Project.build/Debug/chat.build/JavaClasses
    setenv CLEAN_PRECOMPS YES
    setenv CLONE_HEADERS NO
    setenv CONFIGURATION Debug
    setenv CONFIGURATION_BUILD_DIR
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Debug
    setenv CONFIGURATION_TEMP_DIR
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Project.build/Debug
    setenv COPY_PHASE_STRIP YES
    setenv COPY_RESOURCES_FROM_STATIC_FRAMEWORKS YES
    setenv CP /bin/cp
    setenv CURRENT_ARCH i386
    setenv CURRENT_VARIANT normal
    setenv DEBUGGING_SYMBOLS YES
    setenv DEBUG_INFORMATION_FORMAT stabs
    setenv DEPLOYMENT_LOCATION NO
    setenv DERIVED_FILES_DIR
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Project.build/Debug/chat.build/DerivedSources
    setenv DERIVED_FILE_DIR
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Project.build/Debug/chat.build/DerivedSources
    setenv DERIVED_SOURCES_DIR
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Project.build/Debug/chat.build/DerivedSources
    setenv DEVELOPMENT_LANGUAGE English
    setenv DSTROOT /tmp/Project.dst
    setenv DWARF_DSYM_FILE_NAME chat.dSYM
    setenv DWARF_DSYM_FOLDER_PATH
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Debug
    setenv ENABLE_HEADER_DEPENDENCIES YES
    setenv EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES "*.nib
*.lproj *.framework *.gch (*) CVS .svn *.xcodeproj *.xcode *.pbproj
*.pbxproj"
    setenv EXECUTABLE_NAME chat
    setenv EXECUTABLE_PATH chat
    setenv FIXED_FILES_DIR
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Project.build/Debug/chat.build/FixedFiles
    setenv FRAMEWORK_FLAG_PREFIX -framework
    setenv FRAMEWORK_VERSION A
    setenv FULL_PRODUCT_NAME chat
    setenv GCC_DYNAMIC_NO_PIC YES
    setenv GCC_ENABLE_AUTO_PCH NO
    setenv GCC_GENERATE_DEBUGGING_SYMBOLS YES
    setenv GCC_INLINES_ARE_PRIVATE_EXTERN YES
    setenv GCC_OPTIMIZATION_LEVEL 0
    setenv GCC_PFE_FILE_C_DIALECTS "c objective-c c++ objective-c++"
    setenv GCC_PREPROCESSOR_DEFINITIONS "CMAKE_INTDIR=\\\"Debug\\\""
    setenv GCC_SYMBOLS_PRIVATE_EXTERN YES
    setenv GCC_TREAT_WARNINGS_AS_ERRORS NO
    setenv GCC_VERSION 4.0
    setenv GENERATE_PKGINFO_FILE NO
    setenv GENERATE_PROFILING_CODE NO
    setenv GROUP ranger
    setenv HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT YES
    setenv HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES YES
    setenv HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS YES
    setenv HEADERMAP_INCLUDES_PROJECT_HEADERS YES
    setenv HEADER_SEARCH_PATHS
"/Users/ranger/cvs/kdesupport/qt-dbus/examples
/Users/ranger/cvs/kdesupport/qt-dbus/examples/..
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples /opt/qt4/include
/opt/qt4/include/QtCore /opt/qt4/include/QtXml /opt/qt4/include/QtGui
"
    setenv INFOPLIST_EXPAND_BUILD_SETTINGS YES
    setenv INSTALL_DIR /tmp/Project.dst
    setenv INSTALL_GROUP ranger
    setenv INSTALL_MODE_FLAG a-w,a+rX
    setenv INSTALL_OWNER ranger
    setenv INSTALL_ROOT /tmp/Project.dst
    setenv JAVAC_DEFAULT_FLAGS "-J-Xms64m -J-XX:NewSize=4M
-J-Dfile.encoding=UTF8"
    setenv JAVA_APP_STUB
/System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub
    setenv JAVA_ARCHIVE_CLASSES YES
    setenv JAVA_ARCHIVE_TYPE JAR
    setenv JAVA_COMPILER /usr/bin/javac
    setenv JAVA_FRAMEWORK_RESOURCES_DIRS Resources
    setenv JAVA_JAR_FLAGS cv
    setenv JAVA_SOURCE_SUBDIR .
    setenv JAVA_USE_DEPENDENCIES YES
    setenv JAVA_ZIP_FLAGS -urg
    setenv JIKES_DEFAULT_FLAGS "+E +OLDCSO"
    setenv LEX /usr/bin/lex
    setenv LIBRARY_FLAG_NOSPACE YES
    setenv LIBRARY_FLAG_PREFIX -l
    setenv LIBRARY_SEARCH_PATHS "
/Users/ranger/cvs/build/kdesupport/qt-dbus/Debug
/Users/ranger/cvs/build/kdesupport/qt-dbus"
    setenv LINK_FILE_LIST_normal_i386
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Project.build/Debug/chat.build/Objects-normal/i386/chat.LinkFileList
    setenv LINK_FILE_LIST_normal_ppc
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Project.build/Debug/chat.build/Objects-normal/ppc/chat.LinkFileList
    setenv LOCAL_ADMIN_APPS_DIR /Applications/Utilities
    setenv LOCAL_APPS_DIR /Applications
    setenv LOCAL_DEVELOPER_DIR /Library/Developer
    setenv LOCAL_LIBRARY_DIR /Library
    setenv NATIVE_ARCH ppc
    setenv NO_COMMON YES
    setenv OBJECT_FILE_DIR
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Project.build/Debug/chat.build/Objects
    setenv OBJECT_FILE_DIR_normal
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Project.build/Debug/chat.build/Objects-normal
    setenv OBJROOT /Users/ranger/cvs/build/kdesupport/qt-dbus/examples
    setenv OPTIMIZATION_CFLAGS -O0
    setenv OPTIMIZATION_LEVEL 0
    setenv OS MACOS
    setenv OSAC /usr/bin/osacompile
    setenv OTHER_CFLAGS "      "
    setenv OTHER_CPLUSPLUSFLAGS "      "
    setenv OTHER_LDFLAGS "-L/opt/kde4-deps/lib
-headerpad_max_install_names -ldbus-qt4-1 -framework QtGui
-F/opt/qt4/lib -framework QtCore -framework QtXml -L/opt/kde4-deps/lib
-ldbus-1"
    setenv PACKAGE_TYPE com.apple.package-type.mach-o-executable
    setenv PASCAL_STRINGS YES
    setenv PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES
"/usr/include /usr/local/include /System/Library/Frameworks
/System/Library/PrivateFrameworks /Developer/Headers"
    setenv PFE_FILE_C_DIALECTS c++
    setenv PKGINFO_FILE_PATH
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Project.build/Debug/chat.build/PkgInfo
    setenv PREBINDING NO
    setenv PRECOMP_DESTINATION_DIR
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Project.build/Debug/chat.build/PrefixHeaders
    setenv PRODUCT_NAME chat
    setenv PRODUCT_SETTINGS_PATH
    setenv PRODUCT_TYPE com.apple.product-type.tool
    setenv PROJECT Project
    setenv PROJECT_DERIVED_FILE_DIR
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Project.build/DerivedSources
    setenv PROJECT_DIR /Users/ranger/.cvs.build/build/kdesupport
    setenv PROJECT_FILE_PATH
/Users/ranger/.cvs.build/build/kdesupport/Project.xcodeproj
    setenv PROJECT_NAME Project
    setenv PROJECT_TEMP_DIR
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Project.build
    setenv RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS YES
    setenv REMOVE_CVS_FROM_RESOURCES YES
    setenv REMOVE_SVN_FROM_RESOURCES YES
    setenv REZ_COLLECTOR_DIR
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Project.build/Debug/chat.build/ResourceManagerResources
    setenv REZ_EXECUTABLE YES
    setenv REZ_OBJECTS_DIR
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Project.build/Debug/chat.build/ResourceManagerResources/Objects
    setenv SCRIPT_INPUT_FILE_COUNT 0
    setenv SCRIPT_OUTPUT_FILE_COUNT 0
    setenv SDKROOT /Developer/SDKs/MacOSX10.4u.sdk
    setenv SED /usr/bin/sed
    setenv SET_DIR_MODE_OWNER_GROUP YES
    setenv SET_FILE_MODE_OWNER_GROUP NO
    setenv SHARED_DERIVED_FILE_DIR
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Debug/DerivedSources
    setenv SHARED_PRECOMPS_DIR
/Library/Caches/com.apple.Xcode.501/SharedPrecompiledHeaders
    setenv SKIP_INSTALL YES
    setenv SOURCE_ROOT /Users/ranger/.cvs.build/build/kdesupport
    setenv SRCROOT /Users/ranger/.cvs.build/build/kdesupport
    setenv STRIP_INSTALLED_PRODUCT YES
    setenv STRIP_STYLE all
    setenv SYMBOL_REPOSITORY_DIR
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Project.build/Debug/chat.build/SymbolRepositories
    setenv SYMROOT /Users/ranger/cvs/build/kdesupport/qt-dbus/examples
    setenv SYSTEM_ADMIN_APPS_DIR /Applications/Utilities
    setenv SYSTEM_APPS_DIR /Applications
    setenv SYSTEM_CORE_SERVICES_DIR /System/Library/CoreServices
    setenv SYSTEM_DEMOS_DIR /Applications/Extras
    setenv SYSTEM_DEVELOPER_APPS_DIR /Developer/Applications
    setenv SYSTEM_DEVELOPER_DEMOS_DIR
"/Developer/Applications/Utilities/Built Examples"
    setenv SYSTEM_DEVELOPER_DIR /Developer
    setenv SYSTEM_DEVELOPER_DOC_DIR "/Developer/ADC Reference Library"
    setenv SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR
"/Developer/Applications/Graphics Tools"
    setenv SYSTEM_DEVELOPER_JAVA_TOOLS_DIR "/Developer/Applications/Java Tools"
    setenv SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR
"/Developer/Applications/Performance Tools"
    setenv SYSTEM_DEVELOPER_RELEASENOTES_DIR "/Developer/ADC Reference
Library/releasenotes"
    setenv SYSTEM_DEVELOPER_TOOLS /Developer/Tools
    setenv SYSTEM_DEVELOPER_TOOLS_DOC_DIR "/Developer/ADC Reference
Library/documentation/DeveloperTools"
    setenv SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR "/Developer/ADC
Reference Library/releasenotes/DeveloperTools"
    setenv SYSTEM_DEVELOPER_UTILITIES_DIR /Developer/Applications/Utilities
    setenv SYSTEM_DOCUMENTATION_DIR /Library/Documentation
    setenv SYSTEM_LIBRARY_DIR /System/Library
    setenv TARGETNAME chat
    setenv TARGET_BUILD_DIR
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Debug
    setenv TARGET_NAME chat
    setenv TARGET_TEMP_DIR
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Project.build/Debug/chat.build
    setenv TEMP_DIR
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Project.build/Debug/chat.build
    setenv TEMP_FILES_DIR
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Project.build/Debug/chat.build
    setenv TEMP_FILE_DIR
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Project.build/Debug/chat.build
    setenv TEMP_ROOT /Users/ranger/cvs/build/kdesupport/qt-dbus/examples
    setenv UID 501
    setenv UNSTRIPPED_PRODUCT NO
    setenv USER ranger
    setenv USER_APPS_DIR /Users/ranger/Applications
    setenv USER_LIBRARY_DIR /Users/ranger/Library
    setenv USE_DYNAMIC_NO_PIC YES
    setenv USE_HEADERMAP NO
    setenv VALID_ARCHS "m68k i386 sparc hppa ppc ppc7400 ppc970 ppc64"
    setenv VERBOSE_PBXCP NO
    setenv VERSION_INFO_BUILDER ranger
    setenv VERSION_INFO_STRING "\"@(#)PROGRAM:chat  PROJECT:Project-
DEVELOPER:ranger  BUILT:\" __DATE__  \" \" __TIME__ \"\""
    setenv WARNING_CFLAGS "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas"
    setenv XCODE_APP_SUPPORT_DIR "/Library/Application
Support/Apple/Developer Tools"
    setenv YACC /usr/bin/yacc
    /bin/sh -c /Users/ranger/cvs/build/kdesupport/qt-dbus/examples/Project.build/Debug/chat.build/Script-4EC3904EC3904EC390000000.sh
/opt/qt4/bin/moc -I /Users/ranger/cvs/kdesupport/qt-dbus/examples -I
/Users/ranger/cvs/kdesupport/qt-dbus/examples/.. -I
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples -I
/opt/qt4/include -I /opt/qt4/include/QtCore -I /opt/qt4/include/QtXml
-I /opt/qt4/include/QtGui
/Users/ranger/cvs/kdesupport/qt-dbus/examples/chat.h -o
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/chat.moc
/opt/qt4/bin/moc -I /Users/ranger/cvs/kdesupport/qt-dbus/examples -I
/Users/ranger/cvs/kdesupport/qt-dbus/examples/.. -I
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples -I
/opt/qt4/include -I /opt/qt4/include/QtCore -I /opt/qt4/include/QtXml
-I /opt/qt4/include/QtGui
/Users/ranger/cvs/kdesupport/qt-dbus/examples/chatadaptor.h -o
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/chatadaptor.moc
/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/../dbusidl2cpp -m
-p chatinterface
/Users/ranger/cvs/kdesupport/qt-dbus/examples/com.trolltech.ChatInterface.xml
make: /Users/ranger/cvs/build/kdesupport/qt-dbus/examples/../dbusidl2cpp:
Command not found
make: *** [/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/chatinterface.cpp]
Error 127
		make: *** [/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/chatinterface.cpp]
Error 127
		make: *** [/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/chatinterface.cpp]
Error 127
		make: *** [/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/chatinterface.cpp]
Error 127
		make: *** [/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/chatinterface.cpp]
Error 127
		make: *** [/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/chatinterface.cpp]
Error 127
		make: *** [/Users/ranger/cvs/build/kdesupport/qt-dbus/examples/chatinterface.cpp]
Error 127
Build failed (1 error, 28 warnings)
---(snip!)---

The dbusidl2cpp binary is instead in
/Users/ranger/cvs/build/kdesupport/qt-dbus/Debug/dbusidl2cpp -- Xcode
is presumably making a subdirectory based on the type of build.  If I
change the build type to "Release", it errors out in the same way,
only this time the directory is "Release" instead of "Debug".  :)


More information about the Kde-buildsystem mailing list