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.


Topics - prchakal

Pages: 1 [2] 3
16
General discussions / Project: sfml-project
« on: April 21, 2012, 10:34:55 am »
I have created a template project for QtCreator for anyone that use QtCreator as IDE.

You can see the article here:
http://www.prsolucoes.com/blog/projetos/qtcreator-mac-osx-sfml/

17
General / SFML2 +QtCreator + MacOSX
« on: April 20, 2012, 08:22:23 pm »
Hi,

Im making a little tutorial about configure SFML in all systems using QtCreator IDE and i want configure now with MACOSX.

Everything is OK when i build the project, i download the version RC for mac, extract to a path and link with my .pro and i compie with success.

But when i will run i got error:

Quote
dyld: Library not loaded: @executable_path/../Frameworks/libsfml-system.2.dylib
  Referenced from: /Users/paulo/Pessoal/workspaces/qt/sfml-project-build-desktop-Qt_4_8_1__gcc__Debug/sfml-project.app/Contents/MacOS/sfml-project
  Reason: image not found
Press <RETURN> to close this window...

I know that i need link the frameworks that come in the ZIP file for MAC but i dont know how to do it with mac, can anyone help me?

This is my .pro:

Quote
TEMPLATE = app
CONFIG += console
CONFIG -= qt

SOURCES += main.cpp

INCLUDEPATH += "/Users/paulo/Pessoal/downloads/cpp/sfml/dylibs/root/usr/local/include"
LIBS += -L"/Users/paulo/Pessoal/downloads/cpp/sfml/dylibs/root/usr/local/lib" \
    -lsfml-system \
    -lsfml-window \
    -lsfml-graphics \
    -lsfml-audio \
    -lsfml-network

18
General / Standalone program in Ubuntu
« on: November 03, 2011, 06:21:25 am »
Hi,

I want make a standalone program (like media center) using sfml, but i want that the program start standalone without gnome/unity bars, menus, in ubuntu.

how can i do it?

19
General / Source of my project to help me - Strange angle behavior
« on: August 18, 2011, 08:00:26 am »
Hi,

I have a game prototype (get source here https://github.com/prsolucoes/solodefender) but after update to sfml 2, some strange behavior happen on bullet angle and all collisions stop work.

Can anyone help me?

20
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


21
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?

22
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

23
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.

24
General discussions / How to make an sprite go to correct direction
« on: December 11, 2010, 06:39:08 am »
Hi,

On my game i want that my shoot go to correct direction (enemy direction), but it doesnt occur.

You can see here:
http://www.prsolucoes.com/downloads/solodefender.zip

The code that im using is (on update):

Code: [Select]


void Bullet::update()
{
updateSpriteDirection();
checkCollision();
updatePosition();
}

void Bullet::updateSpriteDirection()
{
sprite.SetRotation( Functions::angle(sprite.GetPosition().x, sprite.GetPosition().y, targetX, targetY) );
}

void Bullet::checkCollision()
{
if (sprite.GetPosition().x + sprite.GetSize().x < 0)
{
remove();
}
else if (sprite.GetPosition().y + sprite.GetSize().y < 0)
{
remove();
}
else if (sprite.GetPosition().x > Constants::SCREEN_WIDTH)
{
remove();
}
else if (sprite.GetPosition().y > Constants::SCREEN_HEIGHT)
{
remove();
}
}


void Bullet::updatePosition()
{
sprite.SetPosition(sprite.GetPosition().x + speedX, sprite.GetPosition().y + speedY);
}

void Bullet::updateSpeed()
{
if (sprite.GetPosition().x < targetX)
{
speedX = Constants::BULLET_SPEED;
}

if (sprite.GetPosition().x > targetX)
{
speedX = (Constants::BULLET_SPEED * -1);
}

if (sprite.GetPosition().y < targetY)
{
speedY = Constants::BULLET_SPEED;
}

if (sprite.GetPosition().y > targetY)
{
speedY = (Constants::BULLET_SPEED * -1);
}
}



What is wrong?

25
General / How to remove class/sprite
« on: December 03, 2010, 10:30:26 pm »
Hi,

On my game i have a vector with all my enemies, and i want that when it collide with some other objects, be removed from vector and destroyed.

My vector:

Code: [Select]
static std::vector<Enemy*> *enemies;

What i have tested:

Code: [Select]
void Enemy::remove()
{
//GameObjects::enemies->erase(*this);
//delete this;

for (std::vector<Enemy*>::iterator it = GameObjects::enemies->begin(); it!=GameObjects::enemies->end(); ++it) {
if (((Enemy*)*it) == this)
{
GameObjects::enemies->erase(it);
}
}
}


But allways that i do it, i get a fatal error.

26
General discussions / Problem executing on different PC
« on: December 02, 2010, 06:18:10 am »
Hi,

Im making a sample app with SFML 1.6 on my PC (Windows 7 - 32bits) and it works nice.

But when i copy the files (exe + dll) to my other PC (Windows XP SP3 - 32bits), i got an error when open .EXE.

The error say that the application need be reinstalled and dont open.

What can be the problem?

27
General / Make some sfml objects as static
« on: November 28, 2010, 02:31:36 pm »
Hi,

I want make some objects static like RenderWindow,

Instaed of make on main file:
sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Graphics")

I have a classe called GameObjects, that will have a static attribute to hold the RenderWindow.

But i dont know how to do it, i get some erros, because i dont know how to do it without pointer objects, like:

GameObjects::app = new Object...

28
General discussions / GUI - Whats the best os most used GUI
« on: November 27, 2010, 10:35:51 pm »
Hi,

Whats the best os most used GUI library?

Im using sfml2

29
Window / SFML 2 - Bug when exit
« on: November 27, 2010, 10:30:16 pm »
Hi,

I get an error when i click CLOSE button of window of my game.

Line of code that get error (WglContext):

Code: [Select]
   
// Destroy the window if we own it
    if (myWindow && myOwnsWindow)
        DestroyWindow(myWindow);


Main file:

Code: [Select]

#include <SFML/System.hpp>
#include <iostream>

#include "Planet.h"
#include "GameObjects.h"

int main()
{
    sf::RenderWindow App(sf::VideoMode(800, 600, 32), "Solo Defender");

sf::Clock Clock;
   
Planet *planet = new Planet();

while (App.IsOpened())
{
        sf::Event Event;
        while (App.GetEvent(Event))
        {
            // Close window : exit
            if (Event.Type == sf::Event::Closed)
                App.Close();
        }

App.Clear();

App.Draw(planet->sprite);

        App.Display();
    }

    return EXIT_SUCCESS;
}




What can be?

30
General / Several performance problem!!!
« on: December 14, 2008, 02:21:55 pm »
Im creating a gui lib for my game with sfml:

So, i have created the button and textbox, and if fully perfect.

So, im creating now the window class, that will create a window on screen.

But when i will draw the parts of the window, the problem occurr, too many memory is used and the game is so slowly...too slowly...

But, if i comment the lines that draw the sprite(sprite->draw), the game run normals, with good performance, with no problem.

The code is:

Code: [Select]

#include "Janela.h"

/**
 * Construtor
 */
gui::Janela::Janela(unsigned int posX, unsigned int posY, std::string titulo, float largura, float altura, bool modal, bool movel, std::string imagem)
{
    //inicializa atributos
    this->posX    = posX;
    this->posY    = posY;
    this->titulo  = titulo;
    this->largura = largura;
    this->altura  = altura;
    this->modal   = modal;
    this->movel   = movel;

    if (!this->img.LoadFromFile(imagem))
    {
        //não foi possível carregar a imagem
    }

    //inicializa SPRITEs
    this->sprtSuperiorEsquerdo.SetImage(this->img);
    this->sprtSuperiorMeio.SetImage(this->img);
    this->sprtSuperiorDireito.SetImage(this->img);
    this->sprtEsquerdo.SetImage(this->img);
    this->sprtDireito.SetImage(this->img);
    this->sprtFundo.SetImage(this->img);
    this->sprtInferiorEsquerdo.SetImage(this->img);
    this->sprtInferiorMeio.SetImage(this->img);
    this->sprtInferiorDireito.SetImage(this->img);

    //inicializa RECTs
    this->rectSuperiorEsquerdo = sf::IntRect(0,0,11,24);
    this->rectSuperiorMeio     = sf::IntRect(58,0,81,24);
    this->rectSuperiorDireito  = sf::IntRect(224,0,235,24);
    this->rectEsquerdo         = sf::IntRect(0,79,11,85);
    this->rectDireito          = sf::IntRect(224,79,235,85);
    this->rectFundo            = sf::IntRect(10,143,37,170);
    this->rectInferiorEsquerdo = sf::IntRect(0,171,6,177);
    this->rectInferiorMeio     = sf::IntRect(91,171,97,177);
    this->rectInferiorDireito  = sf::IntRect(229,171,235,177);

    //define RECTs
    this->sprtSuperiorEsquerdo.SetSubRect(this->rectSuperiorEsquerdo);
    this->sprtSuperiorMeio.SetSubRect(this->rectSuperiorMeio);
    this->sprtSuperiorDireito.SetSubRect(this->rectSuperiorDireito);
    this->sprtEsquerdo.SetSubRect(this->rectEsquerdo);
    this->sprtDireito.SetSubRect(this->rectDireito);
    this->sprtFundo.SetSubRect(this->rectFundo);
    this->sprtInferiorEsquerdo.SetSubRect(this->rectInferiorEsquerdo);
    this->sprtInferiorMeio.SetSubRect(this->rectInferiorMeio);
    this->sprtInferiorDireito.SetSubRect(this->rectInferiorDireito);

}

/**
 * Destrutor
 */
gui::Janela::~Janela()
{
    //dtor
}

/**
 * Método que desenha o objeto
 */
void gui::Janela::desenhar()
{
    if ( this->visivel == true )
    {
        //inicializa variáveis de uso
        float x, y, xFinal, yFinal;

        //desenha o fundo primeiro
        x = 0;
        y = 0;

        xFinal = (this->posX + this->largura);
        yFinal = (this->posY + this->altura);

        while( (x + this->posX) < xFinal)
        {

            while( (y + this->posY) < yFinal)
            {
                //valida pra ver se não vai estourar
                if ((x + this->posX + this->sprtFundo.GetSize().x) > xFinal)
                {
                    x = (x + this->posX + this->sprtFundo.GetSize().x) - xFinal;
                }

                if ((y + this->posY + this->sprtFundo.GetSize().y) > yFinal)
                {
                    y = (y + this->posY + this->sprtFundo.GetSize().y) - yFinal;
                }

                //desenha
                this->sprtFundo.SetPosition(x + this->posX, y + this->posY);
                gui::Core::app->Draw( this->sprtFundo );

                y += this->sprtFundo.GetSize().y;
            }

            x += this->sprtFundo.GetSize().x;
            y = 0;

        }

        //desenha bordas repetitivas

            //borda superior
            x = 0;
            y = 0;

            while( (x + this->posX) < xFinal)
            {
                if ((x + this->posX + this->sprtSuperiorMeio.GetSize().x) > xFinal)
                {
                    x = (x + this->posX + this->sprtSuperiorMeio.GetSize().x) - xFinal;
                }

                this->sprtSuperiorMeio.SetPosition(x + this->posX, this->posY);

                gui::Core::app->Draw( this->sprtSuperiorMeio );

                x += this->sprtSuperiorMeio.GetSize().x;
            }

        //desenha as bordas dos cantos
        this->sprtSuperiorEsquerdo.SetPosition( this->posX, this->posY );
        this->sprtSuperiorDireito.SetPosition( this->posX + this->largura - this->sprtSuperiorDireito.GetSize().x, this->posY );

        this->sprtInferiorEsquerdo.SetPosition( this->posX, this->posY + this->altura - this->sprtInferiorEsquerdo.GetSize().y );
        this->sprtInferiorDireito.SetPosition( this->posX + this->largura - this->sprtInferiorDireito.GetSize().x, this->posY + this->altura - this->sprtInferiorDireito.GetSize().y );

        gui::Core::app->Draw( this->sprtSuperiorEsquerdo );
        gui::Core::app->Draw( this->sprtSuperiorDireito );
        gui::Core::app->Draw( this->sprtInferiorEsquerdo );
        gui::Core::app->Draw( this->sprtInferiorDireito );


    }
}

/**
 * Método que verifica os status do teclado/mouse
 */
void gui::Janela::verificarInput()
{
    if ( this->visivel == true )
    {
        //
    }
}




What can be happen?

Pages: 1 [2] 3
anything