Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - prchakal

Pages: 1 ... 5 6 [7] 8 9 10
91
I solve the problem.

I have generated the xcode project from CMAKE and i build it, but the generated libs (*.dylib) doesnt have the structure:

Quote
/usr/local/lib/libsfml-$1-d.2.dylib


But have:

Quote
/usr/local/lib/libsfml-$1-d.dylib


Quote
The .2 was forgot.


I rename all to correct form and everything works fine.

And how i can generate the release version?

92
My OSX is Lion and XCode 4.

Error:

Quote

PhaseScriptExecution "Run Script" /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates/teste-sfml.build/Debug/teste-sfml.build/Script-3A91393813FC4C68004C8119.sh
    cd /Users/paulo/Pessoal/workspaces/xcode/teste-sfml
    setenv ACTION build
    setenv ALTERNATE_GROUP staff
    setenv ALTERNATE_MODE u+w,go-w,a+rX
    setenv ALTERNATE_OWNER paulo
    setenv ALWAYS_SEARCH_USER_PATHS NO
    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 APPLY_RULES_IN_COPY_FILES NO
    setenv ARCHS x86_64
    setenv ARCHS_STANDARD_32_64_BIT "x86_64 i386"
    setenv ARCHS_STANDARD_32_BIT i386
    setenv ARCHS_STANDARD_64_BIT x86_64
    setenv AUDIO_DEBUG -lsfml-audio-d
    setenv AUDIO_RELEASE -lsfml-audio
    setenv AVAILABLE_PLATFORMS "iphonesimulator macosx iphoneos"
    setenv BUILD_COMPONENTS "headers build"
    setenv BUILD_DIR /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Products
    setenv BUILD_ROOT /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Products
    setenv BUILD_STYLE
    setenv BUILD_VARIANTS normal
    setenv BUILT_PRODUCTS_DIR /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Products/Debug
    setenv CACHE_ROOT /var/folders/tr/1yl27k7n1lv0q63k_885_mgr0000gn/C/com.apple.Xcode.501
    setenv CCHROOT /var/folders/tr/1yl27k7n1lv0q63k_885_mgr0000gn/C/com.apple.Xcode.501
    setenv CHMOD /bin/chmod
    setenv CHOWN /usr/sbin/chown
    setenv CLASS_FILE_DIR /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates/teste-sfml.build/Debug/teste-sfml.build/JavaClasses
    setenv CLEAN_PRECOMPS YES
    setenv CLONE_HEADERS NO
    setenv CODESIGNING_FOLDER_PATH /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Products/Debug/teste-sfml.app
    setenv CODE_SIGNING_ALLOWED YES
    setenv COMBINE_HIDPI_IMAGES NO
    setenv COMMAND_MODE legacy
    setenv COMPOSITE_SDK_DIRS /var/folders/tr/1yl27k7n1lv0q63k_885_mgr0000gn/C/com.apple.Xcode.501/CompositeSDKs
    setenv CONFIGURATION Debug
    setenv CONFIGURATION_BUILD_DIR /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Products/Debug
    setenv CONFIGURATION_TEMP_DIR /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates/teste-sfml.build/Debug
    setenv CONTENTS_FOLDER_PATH teste-sfml.app/Contents
    setenv COPYING_PRESERVES_HFS_DATA NO
    setenv COPY_PHASE_STRIP NO
    setenv COPY_RESOURCES_FROM_STATIC_FRAMEWORKS YES
    setenv CP /bin/cp
    setenv CURRENT_ARCH x86_64
    setenv CURRENT_VARIANT normal
    setenv DEAD_CODE_STRIPPING NO
    setenv DEBUGGING_SYMBOLS YES
    setenv DEBUG_INFORMATION_FORMAT dwarf
    setenv DEPLOYMENT_LOCATION NO
    setenv DEPLOYMENT_POSTPROCESSING NO
    setenv DERIVED_FILES_DIR /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates/teste-sfml.build/Debug/teste-sfml.build/DerivedSources
    setenv DERIVED_FILE_DIR /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates/teste-sfml.build/Debug/teste-sfml.build/DerivedSources
    setenv DERIVED_SOURCES_DIR /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates/teste-sfml.build/Debug/teste-sfml.build/DerivedSources
    setenv DEVELOPER_APPLICATIONS_DIR /Developer/Applications
    setenv DEVELOPER_BIN_DIR /Developer/usr/bin
    setenv DEVELOPER_DIR /Developer
    setenv DEVELOPER_FRAMEWORKS_DIR /Developer/Library/Frameworks
    setenv DEVELOPER_FRAMEWORKS_DIR_QUOTED "\"/Developer/Library/Frameworks\""
    setenv DEVELOPER_LIBRARY_DIR /Developer/Library
    setenv DEVELOPER_SDK_DIR /Developer/SDKs
    setenv DEVELOPER_TOOLS_DIR /Developer/Tools
    setenv DEVELOPER_USR_DIR /Developer/usr
    setenv DEVELOPMENT_LANGUAGE English
    setenv DOCUMENTATION_FOLDER_PATH teste-sfml.app/Contents/Resources/English.lproj/Documentation
    setenv DO_HEADER_SCANNING_IN_JAM NO
    setenv DSTROOT /tmp/teste-sfml.dst
    setenv DWARF_DSYM_FILE_NAME teste-sfml.app.dSYM
    setenv DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT NO
    setenv DWARF_DSYM_FOLDER_PATH /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Products/Debug
    setenv EMBEDDED_PROFILE_NAME embedded.provisionprofile
    setenv ENABLE_HEADER_DEPENDENCIES YES
    setenv ENABLE_OPENMP_SUPPORT NO
    setenv EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS ".svn CVS"
    setenv EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES "*.nib *.lproj *.framework *.gch (*) CVS .svn .git *.xcodeproj *.xcode *.pbproj *.pbxproj"
    setenv EXECUTABLES_FOLDER_PATH teste-sfml.app/Contents/Executables
    setenv EXECUTABLE_FOLDER_PATH teste-sfml.app/Contents/MacOS
    setenv EXECUTABLE_NAME teste-sfml
    setenv EXECUTABLE_PATH teste-sfml.app/Contents/MacOS/teste-sfml
    setenv FILE_LIST /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates/teste-sfml.build/Debug/teste-sfml.build/Objects/LinkFileList
    setenv FIXED_FILES_DIR /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates/teste-sfml.build/Debug/teste-sfml.build/FixedFiles
    setenv FRAMEWORKS_FOLDER_PATH teste-sfml.app/Contents/Frameworks
    setenv FRAMEWORK_FLAG_PREFIX -framework
    setenv FRAMEWORK_SEARCH_PATHS "\"/Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Products/Debug\" "
    setenv FRAMEWORK_VERSION A
    setenv FULL_PRODUCT_NAME teste-sfml.app
    setenv GCC3_VERSION 3.3
    setenv GCC_C_LANGUAGE_STANDARD gnu99
    setenv GCC_DYNAMIC_NO_PIC NO
    setenv GCC_ENABLE_OBJC_EXCEPTIONS 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_PRECOMPILE_PREFIX_HEADER NO
    setenv GCC_PREPROCESSOR_DEFINITIONS "DEBUG=1 "
    setenv GCC_SYMBOLS_PRIVATE_EXTERN NO
    setenv GCC_TREAT_WARNINGS_AS_ERRORS NO
    setenv GCC_VERSION com.apple.compilers.llvm.clang.1_0
    setenv GCC_VERSION_IDENTIFIER com_apple_compilers_llvm_clang_1_0
    setenv GCC_WARN_64_TO_32_BIT_CONVERSION YES
    setenv GCC_WARN_ABOUT_MISSING_PROTOTYPES YES
    setenv GCC_WARN_ABOUT_RETURN_TYPE YES
    setenv GCC_WARN_UNUSED_VARIABLE YES
    setenv GENERATE_MASTER_OBJECT_FILE NO
    setenv GENERATE_PKGINFO_FILE YES
    setenv GENERATE_PROFILING_CODE NO
    setenv GID 20
    setenv GRAPHICS_DEBUG -lsfml-graphics-d
    setenv GRAPHICS_RELEASE -lsfml-graphics
    setenv GROUP staff
    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/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Products/Debug/include\"  /usr/local/include/ /Users/paulo/Pessoal/downloads/cpp/sfml/include/"
    setenv ICONV /usr/bin/iconv
    setenv INFOPLIST_EXPAND_BUILD_SETTINGS YES
    setenv INFOPLIST_FILE teste-sfml/teste-sfml-Info.plist
    setenv INFOPLIST_OUTPUT_FORMAT same-as-input
    setenv INFOPLIST_PATH teste-sfml.app/Contents/Info.plist
    setenv INFOPLIST_PREPROCESS NO
    setenv INFOSTRINGS_PATH teste-sfml.app/Contents/Resources/English.lproj/InfoPlist.strings
    setenv INSTALL_DIR /tmp/teste-sfml.dst/Applications
    setenv INSTALL_GROUP staff
    setenv INSTALL_MODE_FLAG u+w,go-w,a+rX
    setenv INSTALL_OWNER paulo
    setenv INSTALL_PATH /Applications
    setenv INSTALL_ROOT /tmp/teste-sfml.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_FOLDER_PATH teste-sfml.app/Contents/Resources/Java
    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 KEEP_PRIVATE_EXTERNS NO
    setenv LD_GENERATE_MAP_FILE NO
    setenv LD_MAP_FILE_PATH /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates/teste-sfml.build/Debug/teste-sfml.build/teste-sfml-LinkMap-normal-x86_64.txt
    setenv LD_NO_PIE NO
    setenv LD_OPENMP_FLAGS -fopenmp
    setenv LEGACY_DEVELOPER_DIR /Developer/Library/Xcode/PrivatePlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer
    setenv LEX /Developer/usr/bin/lex
    setenv LIBRARY_FLAG_NOSPACE YES
    setenv LIBRARY_FLAG_PREFIX -l
    setenv LIBRARY_SEARCH_PATHS "\"/Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Products/Debug\" "
    setenv LINKER_DISPLAYS_MANGLED_NAMES NO
    setenv LINK_FILE_LIST_normal_x86_64 /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates/teste-sfml.build/Debug/teste-sfml.build/Objects-normal/x86_64/teste-sfml.LinkFileList
    setenv LINK_WITH_STANDARD_LIBRARIES YES
    setenv LOCALIZED_RESOURCES_FOLDER_PATH teste-sfml.app/Contents/Resources/English.lproj
    setenv LOCAL_ADMIN_APPS_DIR /Applications/Utilities
    setenv LOCAL_APPS_DIR /Applications
    setenv LOCAL_DEVELOPER_DIR /Library/Developer
    setenv LOCAL_LIBRARY_DIR /Library
    setenv MACH_O_TYPE mh_execute
    setenv MACOSX_DEPLOYMENT_TARGET 10.7
    setenv MAC_OS_X_PRODUCT_BUILD_VERSION 11A511
    setenv MAC_OS_X_VERSION_ACTUAL 1070
    setenv MAC_OS_X_VERSION_MAJOR 1070
    setenv MAC_OS_X_VERSION_MINOR 0700
    setenv NATIVE_ARCH i386
    setenv NATIVE_ARCH_32_BIT i386
    setenv NATIVE_ARCH_64_BIT x86_64
    setenv NATIVE_ARCH_ACTUAL x86_64
    setenv NETWORK_DEBUG -lsfml-network-d
    setenv NETWORK_RELEASE -lsfml-network
    setenv NO_COMMON YES
    setenv OBJECT_FILE_DIR /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates/teste-sfml.build/Debug/teste-sfml.build/Objects
    setenv OBJECT_FILE_DIR_normal /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates/teste-sfml.build/Debug/teste-sfml.build/Objects-normal
    setenv OBJROOT /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates
    setenv ONLY_ACTIVE_ARCH YES
    setenv OPTIMIZATION_LEVEL 0
    setenv OS MACOS
    setenv OSAC /usr/bin/osacompile
    setenv OTHER_LDFLAGS " -lsfml-system-d -lsfml-window-d -lsfml-graphics-d -lsfml-audio-d -lsfml-network-d"
    setenv PACKAGE_TYPE com.apple.package-type.wrapper.application
    setenv PASCAL_STRINGS YES
    setenv PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES "/usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Developer/Headers /Developer/SDKs /Developer/Platforms"
    setenv PBDEVELOPMENTPLIST_PATH teste-sfml.app/Contents/pbdevelopment.plist
    setenv PFE_FILE_C_DIALECTS "c++ objective-c++"
    setenv PKGINFO_FILE_PATH /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates/teste-sfml.build/Debug/teste-sfml.build/PkgInfo
    setenv PKGINFO_PATH teste-sfml.app/Contents/PkgInfo
    setenv PLATFORM_DEVELOPER_APPLICATIONS_DIR /Developer/Applications
    setenv PLATFORM_DEVELOPER_BIN_DIR /Developer/usr/bin
    setenv PLATFORM_DEVELOPER_LIBRARY_DIR /Developer/Library
    setenv PLATFORM_DEVELOPER_SDK_DIR /Developer/SDKs
    setenv PLATFORM_DEVELOPER_TOOLS_DIR /Developer/Tools
    setenv PLATFORM_DEVELOPER_USR_DIR /Developer/usr
    setenv PLATFORM_DIR /Developer/Platforms/MacOSX.platform
    setenv PLATFORM_NAME macosx
    setenv PLATFORM_PREFERRED_ARCH x86_64
    setenv PLATFORM_PRODUCT_BUILD_VERSION 4B110
    setenv PLIST_FILE_OUTPUT_FORMAT same-as-input
    setenv PLUGINS_FOLDER_PATH teste-sfml.app/Contents/PlugIns
    setenv PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR YES
    setenv PRECOMP_DESTINATION_DIR /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates/teste-sfml.build/Debug/teste-sfml.build/PrefixHeaders
    setenv PRESERVE_DEAD_CODE_INITS_AND_TERMS NO
    setenv PRIVATE_HEADERS_FOLDER_PATH teste-sfml.app/Contents/PrivateHeaders
    setenv PRODUCT_NAME teste-sfml
    setenv PRODUCT_SETTINGS_PATH /Users/paulo/Pessoal/workspaces/xcode/teste-sfml/teste-sfml/teste-sfml-Info.plist
    setenv PRODUCT_TYPE com.apple.product-type.application
    setenv PROFILING_CODE NO
    setenv PROJECT teste-sfml
    setenv PROJECT_DERIVED_FILE_DIR /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates/teste-sfml.build/DerivedSources
    setenv PROJECT_DIR /Users/paulo/Pessoal/workspaces/xcode/teste-sfml
    setenv PROJECT_FILE_PATH /Users/paulo/Pessoal/workspaces/xcode/teste-sfml/teste-sfml.xcodeproj
    setenv PROJECT_NAME teste-sfml
    setenv PROJECT_TEMP_DIR /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates/teste-sfml.build
    setenv PUBLIC_HEADERS_FOLDER_PATH teste-sfml.app/Contents/Headers
    setenv RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS YES
    setenv REMOVE_CVS_FROM_RESOURCES YES
    setenv REMOVE_GIT_FROM_RESOURCES YES
    setenv REMOVE_SVN_FROM_RESOURCES YES
    setenv REZ_COLLECTOR_DIR /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates/teste-sfml.build/Debug/teste-sfml.build/ResourceManagerResources
    setenv REZ_OBJECTS_DIR /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates/teste-sfml.build/Debug/teste-sfml.build/ResourceManagerResources/Objects
    setenv REZ_SEARCH_PATHS "\"/Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Products/Debug\" "
    setenv RUN_CLANG_STATIC_ANALYZER NO
    setenv SCAN_ALL_SOURCE_FILES_FOR_INCLUDES NO
    setenv SCRIPTS_FOLDER_PATH teste-sfml.app/Contents/Resources/Scripts
    setenv SCRIPT_INPUT_FILE_COUNT 0
    setenv SCRIPT_OUTPUT_FILE_COUNT 0
    setenv SDKROOT /Developer/SDKs/MacOSX10.7.sdk
    setenv SDK_DIR /Developer/SDKs/MacOSX10.7.sdk
    setenv SDK_NAME macosx10.7
    setenv SDK_PRODUCT_BUILD_VERSION 11A511a
    setenv SED /usr/bin/sed
    setenv SEPARATE_STRIP NO
    setenv SEPARATE_SYMBOL_EDIT NO
    setenv SET_DIR_MODE_OWNER_GROUP YES
    setenv SET_FILE_MODE_OWNER_GROUP NO
    setenv SHARED_DERIVED_FILE_DIR /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Products/Debug/DerivedSources
    setenv SHARED_FRAMEWORKS_FOLDER_PATH teste-sfml.app/Contents/SharedFrameworks
    setenv SHARED_PRECOMPS_DIR /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/PrecompiledHeaders
    setenv SHARED_SUPPORT_FOLDER_PATH teste-sfml.app/Contents/SharedSupport
    setenv SKIP_INSTALL NO
    setenv SOURCE_ROOT /Users/paulo/Pessoal/workspaces/xcode/teste-sfml
    setenv SRCROOT /Users/paulo/Pessoal/workspaces/xcode/teste-sfml
    setenv STRINGS_FILE_OUTPUT_ENCODING UTF-16
    setenv STRIP_INSTALLED_PRODUCT YES
    setenv STRIP_STYLE all
    setenv SUPPORTED_PLATFORMS macosx
    setenv SYMROOT /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Products
    setenv SYSTEM_ADMIN_APPS_DIR /Applications/Utilities
    setenv SYSTEM_APPS_DIR /Applications
    setenv SYSTEM_CORE_SERVICES_DIR /System/Library/CoreServices
    setenv SYSTEM_DEBUG -lsfml-system-d
    setenv SYSTEM_DEMOS_DIR /Applications/Extras
    setenv SYSTEM_DEVELOPER_APPS_DIR /Developer/Applications
    setenv SYSTEM_DEVELOPER_BIN_DIR /Developer/usr/bin
    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_USR_DIR /Developer/usr
    setenv SYSTEM_DEVELOPER_UTILITIES_DIR /Developer/Applications/Utilities
    setenv SYSTEM_DOCUMENTATION_DIR /Library/Documentation
    setenv SYSTEM_LIBRARY_DIR /System/Library
    setenv SYSTEM_RELEASE -lsfml-system
    setenv TARGETNAME teste-sfml
    setenv TARGET_BUILD_DIR /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Products/Debug
    setenv TARGET_NAME teste-sfml
    setenv TARGET_TEMP_DIR /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates/teste-sfml.build/Debug/teste-sfml.build
    setenv TEMP_DIR /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates/teste-sfml.build/Debug/teste-sfml.build
    setenv TEMP_FILES_DIR /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates/teste-sfml.build/Debug/teste-sfml.build
    setenv TEMP_FILE_DIR /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates/teste-sfml.build/Debug/teste-sfml.build
    setenv TEMP_ROOT /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates
    setenv TEST_AFTER_BUILD NO
    setenv UID 501
    setenv UNLOCALIZED_RESOURCES_FOLDER_PATH teste-sfml.app/Contents/Resources
    setenv UNSTRIPPED_PRODUCT NO
    setenv USER paulo
    setenv USER_APPS_DIR /Users/paulo/Applications
    setenv USER_LIBRARY_DIR /Users/paulo/Library
    setenv USE_DYNAMIC_NO_PIC YES
    setenv USE_HEADERMAP YES
    setenv USE_HEADER_SYMLINKS NO
    setenv VALIDATE_PRODUCT NO
    setenv VALID_ARCHS "i386 x86_64"
    setenv VERBOSE_PBXCP NO
    setenv VERSIONPLIST_PATH teste-sfml.app/Contents/version.plist
    setenv VERSION_INFO_BUILDER paulo
    setenv VERSION_INFO_FILE teste-sfml_vers.c
    setenv VERSION_INFO_STRING "\"@(#)PROGRAM:teste-sfml  PROJECT:teste-sfml-\""
    setenv WINDOW_DEBUG -lsfml-window-d
    setenv WINDOW_RELEASE -lsfml-window
    setenv WRAPPER_EXTENSION app
    setenv WRAPPER_NAME teste-sfml.app
    setenv WRAPPER_SUFFIX .app
    setenv XCODE_APP_SUPPORT_DIR /Developer/Library/Xcode
    setenv XCODE_PRODUCT_BUILD_VERSION 4B110
    setenv XCODE_VERSION_ACTUAL 0410
    setenv XCODE_VERSION_MAJOR 0400
    setenv XCODE_VERSION_MINOR 0410
    setenv YACC /Developer/usr/bin/yacc
    /bin/sh -c /Users/paulo/Library/Developer/Xcode/DerivedData/teste-sfml-cstsjhevonccsoeybqtxwjzvindx/Build/Intermediates/teste-sfml.build/Debug/teste-sfml.build/Script-3A91393813FC4C68004C8119.sh

ditto: can't get real path for source
ditto: can't get real path for source
ditto: can't get real path for source
ditto: can't get real path for source
ditto: can't get real path for source
Command /bin/sh failed with exit code 1


93
General discussions / great job!
« on: August 05, 2011, 09:34:17 pm »
great job sfml team!

do you know where the version will be avaliable?

for linux and mac too?

94
General / Colision with SFML2
« on: February 27, 2011, 08:58:13 pm »
Thanks man, it works perfect.

95
General / Colision with SFML2
« on: February 27, 2011, 04:05:16 pm »
Hi,

The problem is not when compile, but when try collide objects.

On SFML 1.6 the collision class works perfect, but when i need change the class for SFML 2, it doesnt work.

Example:
Code: [Select]
if (Collision::PixelPerfectTest(sprite, GameObjects::planet->getSprite()))
{
remove();
}

96
General / Colision with SFML2
« on: February 27, 2011, 04:58:30 am »
Im already updated the code, but it doesnt work.

Code: [Select]

#include <SFML/Graphics.hpp>
#include "Collision.h"

Collision::Collision() {
}

Collision::~Collision() {
}

sf::IntRect Collision::GetAABB(const sf::Sprite& Object) {

//Get the top left corner of the sprite regardless of the sprite's center
//This is in Global Coordinates so we can put the rectangle back into the right place
sf::Vector2f pos = Object.TransformToGlobal(sf::Vector2f(0, 0));

//Store the size so we can calculate the other corners
sf::Vector2f size = Object.GetSize();

float Angle = Object.GetRotation();

//Bail out early if the sprite isn't rotated
if (Angle == 0.0f) {
return sf::IntRect(static_cast<int> (pos.x),
static_cast<int> (pos.y),
static_cast<int> (pos.x + size.x),
static_cast<int> (pos.y + size.y));
}

//Calculate the other points as vectors from (0,0)
//Imagine sf::Vector2f A(0,0); but its not necessary
//as rotation is around this point.
sf::Vector2f B(size.x, 0);
sf::Vector2f C(size.x, size.y);
sf::Vector2f D(0, size.y);

//Rotate the points to match the sprite rotation
B = RotatePoint(B, Angle);
C = RotatePoint(C, Angle);
D = RotatePoint(D, Angle);

//Round off to int and set the four corners of our Rect
int Left = static_cast<int> (MinValue(0.0f, B.x, C.x, D.x));
int Top = static_cast<int> (MinValue(0.0f, B.y, C.y, D.y));
int Right = static_cast<int> (MaxValue(0.0f, B.x, C.x, D.x));
int Bottom = static_cast<int> (MaxValue(0.0f, B.y, C.y, D.y));

//Create a Rect from out points and move it back to the correct position on the screen
sf::IntRect AABB = sf::IntRect(Left, Top, Right, Bottom);
sf::IntRect AABB_interset(static_cast<int> (pos.x), static_cast<int> (pos.y), static_cast<int> (pos.x + size.x), static_cast<int> (pos.y + size.y));
sf::IntRect AABB_result;
AABB.Intersects(AABB_interset, AABB_result);
return AABB_result;
}

float Collision::MinValue(float a, float b, float c, float d) {
float min = a;

min = (b < min ? b : min);
min = (c < min ? c : min);
min = (d < min ? d : min);

return min;
}

float Collision::MaxValue(float a, float b, float c, float d) {
float max = a;

max = (b > max ? b : max);
max = (c > max ? c : max);
max = (d > max ? d : max);

return max;
}

sf::Vector2f Collision::RotatePoint(const sf::Vector2f& Point, float Angle) {
Angle = Angle * RADIANS_PER_DEGREE;
sf::Vector2f RotatedPoint;
RotatedPoint.x = Point.x * cos(Angle) + Point.y * sin(Angle);
RotatedPoint.y = -Point.x * sin(Angle) + Point.y * cos(Angle);
return RotatedPoint;
}

bool Collision::PixelPerfectTest(const sf::Sprite& Object1, const sf::Sprite& Object2, sf::Uint8 AlphaLimit) {
//Get AABBs of the two sprites
sf::IntRect Object1AABB = GetAABB(Object1);
sf::IntRect Object2AABB = GetAABB(Object2);

sf::IntRect Intersection;

if (Object1AABB.Intersects(Object2AABB, Intersection)) {

//We've got an intersection we need to process the pixels
//In that Rect.

//Bail out now if AlphaLimit = 0
if (AlphaLimit == 0) return true;

//There are a few hacks here, sometimes the TransformToLocal returns negative points
//Or Points outside the image.  We need to check for these as they print to the error console
//which is slow, and then return black which registers as a hit.

sf::IntRect O1SubRect = Object1.GetSubRect();
sf::IntRect O2SubRect = Object2.GetSubRect();

sf::Vector2i O1SubRectSize(O1SubRect.Width, O1SubRect.Height);
sf::Vector2i O2SubRectSize(O2SubRect.Width, O2SubRect.Height);

sf::Vector2f o1v;
sf::Vector2f o2v;
//Loop through our pixels
for (int i = Intersection.Left; i < Intersection.Width; i++) {
for (int j = Intersection.Top; j < Intersection.Height; j++) {

o1v = Object1.TransformToLocal(sf::Vector2f(i, j)); //Creating Objects each loop :(
o2v = Object2.TransformToLocal(sf::Vector2f(i, j));

//Hack to make sure pixels fall withint the Sprite's Image
if (o1v.x > 0 && o1v.y > 0 && o2v.x > 0 && o2v.y > 0 &&
o1v.x < O1SubRectSize.x && o1v.y < O1SubRectSize.y &&
o2v.x < O2SubRectSize.x && o2v.y < O2SubRectSize.y) {

//If both sprites have opaque pixels at the same point we've got a hit
if ((Object1.GetPixel(static_cast<int> (o1v.x), static_cast<int> (o1v.y)).a > AlphaLimit) &&
(Object2.GetPixel(static_cast<int> (o2v.x), static_cast<int> (o2v.y)).a > AlphaLimit)) {
return true;
}
}
}
}
return false;
}
return false;
}

bool Collision::CircleTest(const sf::Sprite& Object1, const sf::Sprite& Object2) {
//Simplest circle test possible
//Distance between points <= sum of radius

float Radius1 = (Object1.GetSize().x + Object1.GetSize().y) / 4;
float Radius2 = (Object2.GetSize().x + Object2.GetSize().y) / 4;
float xd = Object1.GetPosition().x - Object2.GetPosition().x;
float yd = Object1.GetPosition().y - Object2.GetPosition().y;

return sqrt(xd * xd + yd * yd) <= Radius1 + Radius2;
}

//From Rotated Rectangles Collision Detection, Oren Becker, 2001

bool Collision::BoundingBoxTest(const sf::Sprite& Object1, const sf::Sprite& Object2) {

sf::Vector2f A, B, C, BL, TR;
sf::Vector2f HalfSize1 = Object1.GetSize();
sf::Vector2f HalfSize2 = Object2.GetSize();

//For somereason the Vector2d divide by operator
//was misbehaving
//Doing it manually
HalfSize1.x /= 2;
HalfSize1.y /= 2;
HalfSize2.x /= 2;
HalfSize2.y /= 2;
//Get the Angle we're working on
float Angle = Object1.GetRotation() - Object2.GetRotation();
float CosA = cos(Angle * RADIANS_PER_DEGREE);
float SinA = sin(Angle * RADIANS_PER_DEGREE);

float t, x, a, dx, ext1, ext2;

//Normalise the Center of Object2 so its axis aligned an represented in
//relation to Object 1
C = Object2.GetPosition();

C -= Object1.GetPosition();

C = RotatePoint(C, Object2.GetRotation());

//Get the Corners
BL = TR = C;
BL -= HalfSize2;
TR += HalfSize2;

//Calculate the vertices of the rotate Rect
A.x = -HalfSize1.y*SinA;
B.x = A.x;
t = HalfSize1.x*CosA;
A.x += t;
B.x -= t;

A.y = HalfSize1.y*CosA;
B.y = A.y;
t = HalfSize1.x*SinA;
A.y += t;
B.y -= t;

t = SinA * CosA;

// verify that A is vertical min/max, B is horizontal min/max
if (t < 0) {
t = A.x;
A.x = B.x;
B.x = t;
t = A.y;
A.y = B.y;
B.y = t;
}

// verify that B is horizontal minimum (leftest-vertex)
if (SinA < 0) {
B.x = -B.x;
B.y = -B.y;
}

// if rr2(ma) isn't in the horizontal range of
// colliding with rr1(r), collision is impossible
if (B.x > TR.x || B.x > -BL.x) return false;

// if rr1(r) is axis-aligned, vertical min/max are easy to get
if (t == 0) {
ext1 = A.y;
ext2 = -ext1;
}// else, find vertical min/max in the range [BL.x, TR.x]
else {
x = BL.x - A.x;
a = TR.x - A.x;
ext1 = A.y;
// if the first vertical min/max isn't in (BL.x, TR.x), then
// find the vertical min/max on BL.x or on TR.x
if (a * x > 0) {
dx = A.x;
if (x < 0) {
dx -= B.x;
ext1 -= B.y;
x = a;
} else {
dx += B.x;
ext1 += B.y;
}
ext1 *= x;
ext1 /= dx;
ext1 += A.y;
}

x = BL.x + A.x;
a = TR.x + A.x;
ext2 = -A.y;
// if the second vertical min/max isn't in (BL.x, TR.x), then
// find the local vertical min/max on BL.x or on TR.x
if (a * x > 0) {
dx = -A.x;
if (x < 0) {
dx -= B.x;
ext2 -= B.y;
x = a;
} else {
dx += B.x;
ext2 += B.y;
}
ext2 *= x;
ext2 /= dx;
ext2 -= A.y;
}
}

// check whether rr2(ma) is in the vertical range of colliding with rr1(r)
// (for the horizontal range of rr2)
return !((ext1 < BL.y && ext2 < BL.y) ||
(ext1 > TR.y && ext2 > TR.y));

}


whats wrong?

97
General / How to write text on screen - SFML2
« on: February 26, 2011, 04:06:55 pm »
And aboout custom fonts?

98
General / How to write text on screen - SFML2
« on: February 26, 2011, 05:10:15 am »
Hi,

When i use SFML 1.6, i use the following code to write text to screen:

Code: [Select]

sf::String textBullets( "Bullets: " + StringConverter::toString(GameObjects::bullets->size()) );
textBullets.SetPosition(5, 25);
textBullets.SetSize(13);

App.Draw(textBullets);


But i get error when use SFML2, the methods SetPosition doesnt exists and Add.Draw doesnt work with sf::String.

What i need do?

And how to use custom fonts?

99
General / Error when exit - SFML + (VS2008 and VS2010)
« on: February 26, 2011, 05:06:29 am »
The problem doesnt stop.

You can see the error here:

100
General / Colision with SFML2
« on: February 26, 2011, 04:52:39 am »
Im already use it, but it have some errors with sfml2:

1 - 1>d:\workspaces\workspace_vs_2010\solodefender\solodefender\collision.cpp(49): error C2039: 'Offset' : is not a member of 'sf::Rect<T>'

2 - 1>d:\workspaces\workspace_vs_2010\solodefender\solodefender\collision.cpp(88): error C2664: 'bool sf::Rect<T>::Intersects(const sf::Rect<T> &,sf::Rect<T> &) const' : cannot convert parameter 2 from 'sf::IntRect *' to 'sf::Rect<T> &'

3 - 1>d:\workspaces\workspace_vs_2010\solodefender\solodefender\collision.cpp(103): error C2039: 'GetWidth' : is not a member of 'sf::Rect<T>'


4 - 1>d:\workspaces\workspace_vs_2010\solodefender\solodefender\collision.cpp(103): error C2039: 'GetHeight' : is not a member of 'sf::Rect<T>'

5 - 1>d:\workspaces\workspace_vs_2010\solodefender\solodefender\collision.cpp(103): error C2039: 'GetHeight' : is not a member of 'sf::Rect<T>'

:(

101
General / Error when exit - SFML + (VS2008 and VS2010)
« on: February 25, 2011, 02:55:49 pm »
Hi,

I remake all process again and the problem not happen more.

Thanks.

102
General / Error when exit - SFML + (VS2008 and VS2010)
« on: February 25, 2011, 02:32:39 pm »
Hi,

When i compile SFML or SFML2 using VS2008 or VS2010 i always get error when my application is closed - pressing ESC.

What i can do?

The steps are:

1 - Download SFML
2 - Generate VS2010 projects with CMAKE
3 - Compile ALL
4 - Open my game source
5 - Compile my game source
6 - Press F5 to RUN
7 - Press ESC to exit  <- throw error here

103
General / Colision with SFML2
« on: February 24, 2011, 06:27:27 am »
Hi ppl,

anyone have collision class for SFML2 ?

i need:
- PixelPerfectTest
- BoundingBox
- Circle

Thanks very much.

104
General discussions / How to make an sprite go to correct direction
« on: January 05, 2011, 03:18:51 am »
A great tutorial and solution is here:
http://www.benoitfreslon.com/actionscript-throw-bullets-to-mouse-direction

This will help everybody.

105
General discussions / How to make an sprite go to correct direction
« on: January 05, 2011, 03:10:21 am »

Pages: 1 ... 5 6 [7] 8 9 10
anything