![]() |
|
Make failing on Mac OS X |
Denis Sarrazin
Member #12,404
December 2010
![]() |
Hi, I'm trying for the first time to install Allegro and I'm failing miserably :-) Here are the details: I'm using OS X 10.6.5 Make failed. Here are the errors I'm getting: Denis-iMac:Build denissarrazin$ make install [ 0%] Built target alleg-main [ 30%] Built target allegro [ 32%] Built target allegrogl [ 32%] Building C object addons/loadpng/CMakeFiles/loadpng.dir/loadpng.c.o /Users/denissarrazin/dev/allegro-4.4.0.1/addons/loadpng/loadpng.c:8:17: error: png.h: No such file or directory /Users/denissarrazin/dev/allegro-4.4.0.1/addons/loadpng/loadpng.c:22: error: ‘Z_BEST_COMPRESSION’ undeclared here (not in a function) /Users/denissarrazin/dev/allegro-4.4.0.1/addons/loadpng/loadpng.c:49: error: expected ‘)’ before ‘png_ptr’ /Users/denissarrazin/dev/allegro-4.4.0.1/addons/loadpng/loadpng.c: In function ‘check_if_png’: … bunch of errors ... /Users/denissarrazin/dev/allegro-4.4.0.1/addons/loadpng/loadpng.c:394: warning: assignment makes pointer from integer without a cast make[2]: *** [addons/loadpng/CMakeFiles/loadpng.dir/loadpng.c.o] Error 1 make[1]: *** [addons/loadpng/CMakeFiles/loadpng.dir/all] Error 2 make: *** [all] Error 2
I also tried using the Xcode generator, with the following: The result of cmake is this: Denis-iMac:BuildXCode denissarrazin$ cmake -G Xcode .. -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Checking whether C compiler has -isysroot -- Checking whether C compiler has -isysroot - yes -- Checking whether C compiler supports OSX deployment target flag -- Checking whether C compiler supports OSX deployment target flag - yes -- Check for working C compiler using: Xcode -- Check for working C compiler using: Xcode -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Checking whether CXX compiler has -isysroot -- Checking whether CXX compiler has -isysroot - yes -- Checking whether CXX compiler supports OSX deployment target flag -- Checking whether CXX compiler supports OSX deployment target flag - yes -- Check for working CXX compiler using: Xcode -- Check for working CXX compiler using: Xcode -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check if the system is big endian -- Searching 16 bit integer -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of unsigned short -- Check size of unsigned short - done -- Using unsigned short -- Check if the system is big endian - little endian -- Looking for include files ALLEGRO_HAVE_DIRENT_H -- Looking for include files ALLEGRO_HAVE_DIRENT_H - found -- Looking for include files ALLEGRO_HAVE_INTTYPES_H -- Looking for include files ALLEGRO_HAVE_INTTYPES_H - found -- Looking for include files ALLEGRO_HAVE_LINUX_AWE_VOICE_H -- Looking for include files ALLEGRO_HAVE_LINUX_AWE_VOICE_H - not found. -- Looking for include files ALLEGRO_HAVE_LINUX_INPUT_H -- Looking for include files ALLEGRO_HAVE_LINUX_INPUT_H - not found. -- Looking for include files ALLEGRO_HAVE_LINUX_JOYSTICK_H -- Looking for include files ALLEGRO_HAVE_LINUX_JOYSTICK_H - not found. -- Looking for include files ALLEGRO_HAVE_LINUX_SOUNDCARD_H -- Looking for include files ALLEGRO_HAVE_LINUX_SOUNDCARD_H - not found. -- Looking for include files ALLEGRO_HAVE_MACHINE_SOUNDCARD_H -- Looking for include files ALLEGRO_HAVE_MACHINE_SOUNDCARD_H - not found. -- Looking for include files ALLEGRO_HAVE_SOUNDCARD_H -- Looking for include files ALLEGRO_HAVE_SOUNDCARD_H - not found. -- Looking for include files ALLEGRO_HAVE_STDINT_H -- Looking for include files ALLEGRO_HAVE_STDINT_H - found -- Looking for include files ALLEGRO_HAVE_SYS_IO_H -- Looking for include files ALLEGRO_HAVE_SYS_IO_H - not found. -- Looking for include files ALLEGRO_HAVE_SYS_STAT_H -- Looking for include files ALLEGRO_HAVE_SYS_STAT_H - found -- Looking for include files ALLEGRO_HAVE_SYS_TIME_H -- Looking for include files ALLEGRO_HAVE_SYS_TIME_H - found -- Looking for include files ALLEGRO_HAVE_SYS_SOUNDCARD_H -- Looking for include files ALLEGRO_HAVE_SYS_SOUNDCARD_H - not found. -- Looking for include files ALLEGRO_HAVE_SYS_UTSNAME_H -- Looking for include files ALLEGRO_HAVE_SYS_UTSNAME_H - found -- Looking for getexecname -- Looking for getexecname - not found -- Looking for memcmp -- Looking for memcmp - found -- Looking for mkstemp -- Looking for mkstemp - found -- Looking for mmap -- Looking for mmap - found -- Looking for mprotect -- Looking for mprotect - found -- Looking for sched_yield -- Looking for sched_yield - found -- Looking for stricmp -- Looking for stricmp - not found -- Looking for strlwr -- Looking for strlwr - not found -- Looking for strupr -- Looking for strupr - not found -- Looking for sysconf -- Looking for sysconf - found -- Performing Test ALLEGRO_HAVE_SV_PROCFS_H -- Performing Test ALLEGRO_HAVE_SV_PROCFS_H - Failed -- Performing Test ALLEGRO_HAVE_PROCFS_ARGCV -- Performing Test ALLEGRO_HAVE_PROCFS_ARGCV - Failed -- Performing Test MAP_FAILED_DEFINED -- Performing Test MAP_FAILED_DEFINED - Success -- Performing Test ALLEGRO_USE_CONSTRUCTOR -- Performing Test ALLEGRO_USE_CONSTRUCTOR - Success -- Found QuickTime: /System/Library/Frameworks/QuickTime.framework -- Found ZLIB: /usr/include (found version "1.2.3") -- Found PNG: /opt/local/lib/libpng.dylib -- Could NOT find VORBIS (missing: OGG_INCLUDE_DIR VORBIS_INCLUDE_DIR OGG_LIBRARY VORBIS_LIBRARY VORBISFILE_LIBRARY) -- Configuring done -- Generating done -- Build files have been written to: /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode There are some that are marked as Failed, but I don't know if this is normal and ok or not. It says that the build files have been done. So I then ran the xcodebuild and it also failed with the following output: === BUILD NATIVE TARGET alleg-main OF PROJECT ALLEGRO WITH THE DEFAULT CONFIGURATION (Debug) === Check dependencies PhaseScriptExecution "CMake ReRun" /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/alleg-main.build/Script-128720012872001287200000.sh cd /Users/denissarrazin/Dev/allegro-4.4.0.1 setenv ACTION build setenv ALTERNATE_GROUP staff setenv ALTERNATE_MODE u+w,go-w,a+rX setenv ALTERNATE_OWNER denissarrazin 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 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 BUILD_COMPONENTS "headers build" setenv BUILD_DIR /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode setenv BUILD_ROOT /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode setenv BUILD_STYLE Debug setenv BUILD_VARIANTS normal setenv BUILT_PRODUCTS_DIR /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode setenv CACHE_ROOT /var/folders/Pq/PqPPRHjiFWygkV8nnJf0Pk+++TI/-Caches-/com.apple.Xcode.501 setenv CCHROOT /var/folders/Pq/PqPPRHjiFWygkV8nnJf0Pk+++TI/-Caches-/com.apple.Xcode.501 setenv CHMOD /bin/chmod setenv CHOWN /usr/sbin/chown setenv CLASS_FILE_DIR /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/alleg-main.build/JavaClasses setenv CLEAN_PRECOMPS YES setenv CLONE_HEADERS NO setenv CODESIGNING_FOLDER_PATH /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/liballeg-main-debug.a setenv COMMAND_MODE legacy setenv COMPOSITE_SDK_DIRS /var/folders/Pq/PqPPRHjiFWygkV8nnJf0Pk+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs setenv CONFIGURATION Debug setenv CONFIGURATION_BUILD_DIR /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode setenv CONFIGURATION_TEMP_DIR /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build setenv COPYING_PRESERVES_HFS_DATA NO setenv COPY_PHASE_STRIP YES 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/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/alleg-main.build/DerivedSources setenv DERIVED_FILE_DIR /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/alleg-main.build/DerivedSources setenv DERIVED_SOURCES_DIR /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/alleg-main.build/DerivedSources setenv DEVELOPER_APPLICATIONS_DIR /Xcode4/Applications setenv DEVELOPER_BIN_DIR /Xcode4/usr/bin setenv DEVELOPER_DIR /Xcode4 setenv DEVELOPER_FRAMEWORKS_DIR /Xcode4/Library/Frameworks setenv DEVELOPER_FRAMEWORKS_DIR_QUOTED "\"/Xcode4/Library/Frameworks\"" setenv DEVELOPER_LIBRARY_DIR /Xcode4/Library setenv DEVELOPER_SDK_DIR /Xcode4/SDKs setenv DEVELOPER_TOOLS_DIR /Xcode4/Tools setenv DEVELOPER_USR_DIR /Xcode4/usr setenv DEVELOPMENT_LANGUAGE English setenv DO_HEADER_SCANNING_IN_JAM NO setenv DSTROOT /tmp/ALLEGRO.dst setenv DWARF_DSYM_FILE_NAME liballeg-main-debug.a.dSYM setenv DWARF_DSYM_FOLDER_PATH /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode 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 EXECUTABLE_EXTENSION a setenv EXECUTABLE_NAME liballeg-main-debug.a setenv EXECUTABLE_PATH liballeg-main-debug.a setenv EXECUTABLE_PREFIX lib setenv EXECUTABLE_SUFFIX .a setenv FILE_LIST /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/alleg-main.build/Objects/LinkFileList setenv FIXED_FILES_DIR /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/alleg-main.build/FixedFiles setenv FRAMEWORK_FLAG_PREFIX -framework setenv FRAMEWORK_SEARCH_PATHS "\"/Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode\" " setenv FRAMEWORK_VERSION A setenv FULL_PRODUCT_NAME liballeg-main-debug.a setenv GCC3_VERSION 3.3 setenv GCC_ENABLE_SYMBOL_SEPARATION NO setenv GCC_GENERATE_DEBUGGING_SYMBOLS YES setenv GCC_INLINES_ARE_PRIVATE_EXTERN NO 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 NO setenv GCC_TREAT_WARNINGS_AS_ERRORS NO setenv GCC_VERSION com.apple.compilers.llvmgcc42 setenv GENERATE_MASTER_OBJECT_FILE NO setenv GENERATE_PKGINFO_FILE NO setenv GENERATE_PROFILING_CODE NO setenv GID 20 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/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/include\" /Users/denissarrazin/dev/allegro-4.4.0.1/include /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/include" setenv ICONV /usr/bin/iconv setenv INFOPLIST_EXPAND_BUILD_SETTINGS YES setenv INFOPLIST_OUTPUT_FORMAT same-as-input setenv INFOPLIST_PREPROCESS NO setenv INSTALL_DIR /tmp/ALLEGRO.dst setenv INSTALL_GROUP staff setenv INSTALL_MODE_FLAG u+w,go-w,a+rX setenv INSTALL_OWNER denissarrazin setenv INSTALL_ROOT /tmp/ALLEGRO.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 KEEP_PRIVATE_EXTERNS NO setenv LD_GENERATE_MAP_FILE NO setenv LD_MAP_FILE_PATH /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/alleg-main.build/alleg-main-debug-LinkMap-normal-x86_64.txt setenv LD_OPENMP_FLAGS -fopenmp setenv LEGACY_DEVELOPER_DIR /Xcode4/Library/Xcode/PrivatePlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer setenv LEX /Xcode4/usr/bin/lex setenv LIBRARY_FLAG_NOSPACE YES setenv LIBRARY_FLAG_PREFIX -l setenv LIBRARY_SEARCH_PATHS "\"/Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode\" " setenv LIBRARY_STYLE STATIC setenv LINKER_DISPLAYS_MANGLED_NAMES NO setenv LINK_FILE_LIST_normal_x86_64 /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/Debug/alleg-main.build/Objects-normal/x86_64/alleg-main-debug.LinkFileList setenv LINK_WITH_STANDARD_LIBRARIES YES 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 staticlib setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv MAC_OS_X_VERSION_ACTUAL 1065 setenv MAC_OS_X_VERSION_MAJOR 1060 setenv MAC_OS_X_VERSION_MINOR 0605 setenv NATIVE_ARCH i386 setenv NATIVE_ARCH_32_BIT i386 setenv NATIVE_ARCH_64_BIT x86_64 setenv NATIVE_ARCH_ACTUAL x86_64 setenv NO_COMMON YES setenv OBJECT_FILE_DIR /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/alleg-main.build/Objects setenv OBJECT_FILE_DIR_normal /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/Debug/alleg-main.build/Objects-normal setenv OBJROOT /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode setenv ONLY_ACTIVE_ARCH YES setenv OPTIMIZATION_LEVEL 0 setenv OS MACOS setenv OSAC /usr/bin/osacompile setenv OTHER_CFLAGS " -arch i386 -W -Wall -Wno-unused-parameter -Wno-deprecated-declarations -Wdeclaration-after-statement -DDEBUGMODE=1 " setenv OTHER_CPLUSPLUSFLAGS " -arch i386 -W -Wall -Wno-unused-parameter -Wno-deprecated-declarations -DDEBUGMODE=1 " setenv PACKAGE_TYPE com.apple.package-type.static-library setenv PASCAL_STRINGS YES setenv PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES "/usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Xcode4/Headers /Xcode4/SDKs /Xcode4/Platforms" setenv PFE_FILE_C_DIALECTS objective-c setenv PKGINFO_FILE_PATH /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/alleg-main.build/PkgInfo setenv PLATFORM_DEVELOPER_APPLICATIONS_DIR /Xcode4/Applications setenv PLATFORM_DEVELOPER_BIN_DIR /Xcode4/usr/bin setenv PLATFORM_DEVELOPER_LIBRARY_DIR /Xcode4/Library setenv PLATFORM_DEVELOPER_SDK_DIR /Xcode4/SDKs setenv PLATFORM_DEVELOPER_TOOLS_DIR /Xcode4/Tools setenv PLATFORM_DEVELOPER_USR_DIR /Xcode4/usr setenv PLATFORM_DIR /Xcode4/Platforms/MacOSX.platform setenv PLATFORM_NAME macosx setenv PLIST_FILE_OUTPUT_FORMAT same-as-input setenv PREBINDING NO setenv PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR YES setenv PRECOMP_DESTINATION_DIR /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/alleg-main.build/PrefixHeaders setenv PRESERVE_DEAD_CODE_INITS_AND_TERMS NO setenv PRIVATE_HEADERS_FOLDER_PATH /usr/local/include setenv PRODUCT_NAME alleg-main-debug setenv PRODUCT_SETTINGS_PATH setenv PRODUCT_TYPE com.apple.product-type.library.static setenv PROFILING_CODE NO setenv PROJECT ALLEGRO setenv PROJECT_DERIVED_FILE_DIR /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/DerivedSources setenv PROJECT_DIR /Users/denissarrazin/Dev/allegro-4.4.0.1 setenv PROJECT_FILE_PATH /Users/denissarrazin/Dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.xcodeproj setenv PROJECT_NAME ALLEGRO setenv PROJECT_TEMP_DIR /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build setenv PUBLIC_HEADERS_FOLDER_PATH /usr/local/include 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/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/alleg-main.build/ResourceManagerResources setenv REZ_EXECUTABLE YES setenv REZ_OBJECTS_DIR /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/alleg-main.build/ResourceManagerResources/Objects setenv REZ_SEARCH_PATHS "\"/Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode\" " setenv RUN_CLANG_STATIC_ANALYZER NO setenv SCAN_ALL_SOURCE_FILES_FOR_INCLUDES NO setenv SCRIPT_INPUT_FILE_COUNT 0 setenv SCRIPT_OUTPUT_FILE_COUNT 0 setenv SDKROOT /Xcode4/SDKs/MacOSX10.6.sdk setenv SDK_DIR /Xcode4/SDKs/MacOSX10.6.sdk setenv SDK_NAME macosx10.6 setenv SED /usr/bin/sed setenv SEPARATE_STRIP YES 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/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/DerivedSources setenv SHARED_PRECOMPS_DIR /var/folders/Pq/PqPPRHjiFWygkV8nnJf0Pk+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders setenv SKIP_INSTALL YES setenv SOURCE_ROOT /Users/denissarrazin/Dev/allegro-4.4.0.1 setenv SRCROOT /Users/denissarrazin/Dev/allegro-4.4.0.1 setenv STANDARD_C_PLUS_PLUS_LIBRARY_TYPE dynamic setenv STRINGS_FILE_OUTPUT_ENCODING UTF-16 setenv STRIP_INSTALLED_PRODUCT YES setenv STRIP_STYLE debugging setenv SYMBOL_REPOSITORY_DIR /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/alleg-main.build/SymbolRepositories setenv SYMROOT /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode 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 /Xcode4/Applications setenv SYSTEM_DEVELOPER_BIN_DIR /Xcode4/usr/bin setenv SYSTEM_DEVELOPER_DEMOS_DIR "/Xcode4/Applications/Utilities/Built Examples" setenv SYSTEM_DEVELOPER_DIR /Xcode4 setenv SYSTEM_DEVELOPER_DOC_DIR "/Xcode4/ADC Reference Library" setenv SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR "/Xcode4/Applications/Graphics Tools" setenv SYSTEM_DEVELOPER_JAVA_TOOLS_DIR "/Xcode4/Applications/Java Tools" setenv SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR "/Xcode4/Applications/Performance Tools" setenv SYSTEM_DEVELOPER_RELEASENOTES_DIR "/Xcode4/ADC Reference Library/releasenotes" setenv SYSTEM_DEVELOPER_TOOLS /Xcode4/Tools setenv SYSTEM_DEVELOPER_TOOLS_DOC_DIR "/Xcode4/ADC Reference Library/documentation/DeveloperTools" setenv SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR "/Xcode4/ADC Reference Library/releasenotes/DeveloperTools" setenv SYSTEM_DEVELOPER_USR_DIR /Xcode4/usr setenv SYSTEM_DEVELOPER_UTILITIES_DIR /Xcode4/Applications/Utilities setenv SYSTEM_DOCUMENTATION_DIR /Library/Documentation setenv SYSTEM_LIBRARY_DIR /System/Library setenv TARGETNAME alleg-main setenv TARGET_BUILD_DIR /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode setenv TARGET_NAME alleg-main setenv TARGET_TEMP_DIR /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/alleg-main.build setenv TEMP_DIR /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/alleg-main.build setenv TEMP_FILES_DIR /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/alleg-main.build setenv TEMP_FILE_DIR /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/alleg-main.build setenv TEMP_ROOT /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode setenv TEST_AFTER_BUILD NO setenv UID 501 setenv UNSTRIPPED_PRODUCT NO setenv USER denissarrazin setenv USER_APPS_DIR /Users/denissarrazin/Applications setenv USER_LIBRARY_DIR /Users/denissarrazin/Library setenv USE_DYNAMIC_NO_PIC YES setenv USE_HEADERMAP NO setenv USE_HEADER_SYMLINKS NO setenv VALIDATE_PRODUCT NO setenv VALID_ARCHS "i386 ppc ppc64 ppc7400 ppc970 x86_64" setenv VERBOSE_PBXCP NO setenv VERSION_INFO_BUILDER denissarrazin setenv VERSION_INFO_FILE alleg-main-debug_vers.c setenv VERSION_INFO_STRING "\"@(#)PROGRAM:alleg-main-debug PROJECT:ALLEGRO-\"" setenv WARNING_CFLAGS "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas" setenv XCODE_APP_SUPPORT_DIR /Xcode4/Library/Xcode setenv XCODE_VERSION_ACTUAL 0400 setenv XCODE_VERSION_MAJOR 0400 setenv XCODE_VERSION_MINOR 0400 setenv YACC /Xcode4/usr/bin/yacc /bin/sh -c /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/alleg-main.build/Script-128720012872001287200000.sh make: `CMakeFiles/cmake.check_cache' is up to date. CompileC /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/Debug/alleg-main.build/Objects-normal/x86_64/main.o src/macosx/main.m normal x86_64 objective-c com.apple.compilers.llvmgcc42 cd /Users/denissarrazin/Dev/allegro-4.4.0.1 setenv LANG en_US.US-ASCII /Xcode4/usr/bin/llvm-gcc-4.2 -x objective-c -arch x86_64 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -DCMAKE_INTDIR="Debug" -isysroot /Xcode4/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -gdwarf-2 -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode -I/Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/include -I/Users/denissarrazin/dev/allegro-4.4.0.1/include -I/Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/include -I/Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/alleg-main.build/DerivedSources/x86_64 -I/Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/alleg-main.build/DerivedSources -arch i386 -W -Wall -Wno-unused-parameter -Wno-deprecated-declarations -Wdeclaration-after-statement -DDEBUGMODE=1 -isysroot /Xcode4/SDKs/MacOSX10.6.sdk -DALLEGRO_SRC -c /Users/denissarrazin/Dev/allegro-4.4.0.1/src/macosx/main.m -o /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/Debug/alleg-main.build/Objects-normal/x86_64/main.o In file included from /Users/denissarrazin/Dev/allegro-4.4.0.1/src/macosx/main.m:21: /Users/denissarrazin/dev/allegro-4.4.0.1/include/allegro/platform/aintosx.h:86: error: cannot find interface declaration for 'NSQuickDrawView', superclass of 'AllegroView' In file included from /Users/denissarrazin/Dev/allegro-4.4.0.1/src/macosx/main.m:27: /Users/denissarrazin/dev/allegro-4.4.0.1/include/allegro/internal/alconfig.h:99:1: warning: "AL_PRINTFUNC" redefined In file included from /Users/denissarrazin/dev/allegro-4.4.0.1/include/allegro/base.h:41, from /Users/denissarrazin/dev/allegro-4.4.0.1/include/allegro.h:25, from /Users/denissarrazin/Dev/allegro-4.4.0.1/src/macosx/main.m:19: /Users/denissarrazin/dev/allegro-4.4.0.1/include/allegro/internal/alconfig.h:99:1: warning: this is the location of the previous definition /Users/denissarrazin/Dev/allegro-4.4.0.1/src/macosx/main.m: In function 'main': /Users/denissarrazin/Dev/allegro-4.4.0.1/src/macosx/main.m:301: warning: ISO C90 forbids mixed declarations and code In file included from /Users/denissarrazin/Dev/allegro-4.4.0.1/src/macosx/main.m:27: /Users/denissarrazin/dev/allegro-4.4.0.1/include/allegro/internal/alconfig.h:99:1: warning: "AL_PRINTFUNC" redefined In file included from /Users/denissarrazin/dev/allegro-4.4.0.1/include/allegro/base.h:41, from /Users/denissarrazin/dev/allegro-4.4.0.1/include/allegro.h:25, from /Users/denissarrazin/Dev/allegro-4.4.0.1/src/macosx/main.m:19: /Users/denissarrazin/dev/allegro-4.4.0.1/include/allegro/internal/alconfig.h:99:1: warning: this is the location of the previous definition /Users/denissarrazin/Dev/allegro-4.4.0.1/src/macosx/main.m: In function 'main': /Users/denissarrazin/Dev/allegro-4.4.0.1/src/macosx/main.m:301: warning: ISO C90 forbids mixed declarations and code lipo: can't open input file: /var/folders/Pq/PqPPRHjiFWygkV8nnJf0Pk+++TI/-Tmp-//cc3dKGXf.out (No such file or directory) ** BUILD FAILED ** The following build commands failed: CompileC /Users/denissarrazin/dev/allegro-4.4.0.1/BuildXCode/ALLEGRO.build/Debug/alleg-main.build/Objects-normal/x86_64/main.o src/macosx/main.m normal x86_64 objective-c com.apple.compilers.llvmgcc42 (1 failure) Anyone know what's wrong? Am I missing something else in order to install? Should I use some specific options or do something different? Thanks,
|
Evert
Member #794
November 2000
![]() |
Denis Sarrazin said: Anyone know what's wrong? Am I missing something else in order to install? Should I use some specific options or do something different? Did you even look at the error message? Quote: [ 32%] Building C object addons/loadpng/CMakeFiles/loadpng.dir/loadpng.c.o
You don't have libpng. If you don't intend to use the PNG addon with Allegro, then you don't need it. Simply disable the PNG loader in the CMake options and recompile. |
Matthew Leverton
Supreme Loser
January 1999
![]() |
Evert said: You don't have libpng. But shouldn't CMake automatically pick up on that? -- Found PNG: /opt/local/lib/libpng.dylib
|
Evert
Member #794
November 2000
![]() |
Matthew Leverton said: But shouldn't CMake automatically pick up on that? -- Found PNG: /opt/local/lib/libpng.dylib
I guess it should, unless it's not looking for the header file and assumes that the header is there if the library is there. Another possibility is that the location where the header is stored is not in the compiler search path. In that case adding it to C_INCLUDE_PATH should do it. |
Denis Sarrazin
Member #12,404
December 2010
![]() |
Thanks for the quick reply. I did see that it was giving an error with the libpng, but I'd assumed that this was something that came with it (there were also certain failures in the cmake that might have accounted to it -- I've never used cmake or make before -- I'm more of a windows developer so am a bit of a newbie with linux/unix stuff). I'll see if I can install the libpng and see if this fixes things. -D
|
Evert
Member #794
November 2000
![]() |
Also, in case this isn't clear, the error is for one of the addons that come bundled with Allegro. Allegro itself was compiled succesfully, so if that's all you want, you have it already. |
Matthew Leverton
Supreme Loser
January 1999
![]() |
Evert said: I guess it should, unless it's not looking for the header file and assumes that the header is there if the library is there. I think this will be a relatively common problem on OS X unless the autodetection is made better. I know I've had the same sorts of problems when I built Allegro for it. As someone without a lot of OS X background, it's not even obvious to know how to correctly install third party libraries (e.g. PNG) for development. |
OnlineCop
Member #7,919
October 2006
![]() |
I would advocate MacPorts. For png, simply tell MacPorts to install the files and dependencies: The default MacPorts installs to /opt/local so the binaries would be in /opt/local/bin, the headers in /opt/local/include, the library files in /opt/local/lib, etc. Since Mac OS X is 64-bit, you may also need to compile libpng as a 32-bit application (using MacPorts, you specify that with port install libpng +universal) so it can work with the 32-bit Allegro. I posted about how I got Allegro installed on my Snow Leopard here, if any of the steps there help.
|
Evert
Member #794
November 2000
![]() |
OnlineCop said: I would advocate MacPorts. For png, simply tell MacPorts to install the files and dependencies:
Sure. |
Denis Sarrazin
Member #12,404
December 2010
![]() |
Well, I've finally managed to get a source code to compile and run using Allegro. I gave up on Allegro 4 and found and installed the Allegro 5 code instead (since it runs as 64 bit on a mac, in part). Thankfully, using cmake and make (plus changing the compiler as detailed in the MacOS readme) and then make install worked without any errors. I then found the source code for one of the examples (I used ex_lines.c), put that in a new file under the name hello1.c (and copied the common.c that goes with it), and then from one of the tutorials online, I found an example of a command line that I could use. I had to change it a bit since it was referring to static libraries but I guess I didn't create them so that didn't work. And that file needed also to use the allegro_primitives library so I added that on. Here is the command line I used: gcc hello1.c -o hello1 -lallegro -lallegro_font -lallegro_main -lallegro_primitives -lallegro_image -framework AppKit -framework OpenGL /usr/lib/libIOKit.dylib -framework Cocoa -lz Not sure that all of the options I pass are needed. I used the -framework Cocoa but I'm not sure that this is either needed or valid. I could then run this using the following: ./hello1 It ran fine but the Quit didn't work (maybe because I'm running this from a terminal window). Thanks for your help. I'm trying to learn OS X, Unix and Allegro at the same time, so it is a bit of a challenge :-) ** even got things to work using Eclipse, which is nice. Just had to do the following in the project properties, C/C++ Build | Settings: in Libraries, added the libraries I wanted (e.g. allegro, allegro_main, allegro_font, etc). That's it. I guess it searches in the /usr/local/include and /usr/local/lib by default. ** Now I just need to figure out how to make an OS X .app out of this things. Oh, and of course, learn the API. Which the best way seems via the examples provided (and there is a bit of documentation online as well as in one of the local Docs directory). Cheers,
|
OnlineCop
Member #7,919
October 2006
![]() |
Quit will work if you register the callback. To create the App, you need to:
If you don't want to manually do this, put it into a script :-)
|
Denis Sarrazin
Member #12,404
December 2010
![]() |
That worked, except the icon wasn't showing up (even though I named it the same as the app -- maybe the icon file I used wasn't the right type or something). That's easy to fix by replacing the icon in the GetInfo popup window so it is not a problem. Other than this, it behaves just like a real Mac OS X app, which is really nice (I'll add the event handler for the Quit). I assume that if I needed to distribute it to another computer, I'd have to also distribute the Allegro libs (I'm not sure yet what process I'll need to follow to embed the libraries into my app -- maybe I can just put them in the Resources folder of my app? Or I'll have to use some switches when compiling Allegro to tell it to create the correct libs and then build them into my app or something -- It is not a problem at this point since my main goal is to learn Allegro and develop some simple games initially, and that should keep me busy for a while :-). I also downloaded and installed Allegro 5 on my Windows 7 VM and installed VC++ Express 10 so as to test it, and I had no problems running the exact same code on Windows as on my Mac. This is really cool and one of the reasons I was looking at Allegro in the first place. It does seem to run a bit faster on my Windows VM than under the Mac, which is a bit surprising to me I guess (and the Mac version is 64-bit, I believe whereas the Windows version is 32-bit as I only installed the 32-bit version of Win7). No biggie, mind you, particularly since the little test application I did simply writes random colored lines -- other things like sprite animation may behave differently (or I'll simply adjust things accordingly). In the install docs or somewhere, I also saw that it talks about Allegro being able to do games for the iPod -- I'll explore this later too. That'd be very useful if it did (and hopefully Apple doesn't prevent us from distributing games build with Allegro on the iPod/iPad/iPhone like it does for Flash-created games, for example). Thanks again for all your help. -D
|
Evert
Member #794
November 2000
![]() |
OnlineCop said: Quit will work if you register the callback. Actually, what you need to do (in A5) is respond to a display close event. |
Denis Sarrazin
Member #12,404
December 2010
![]() |
Evert said: Actually, what you need to do (in A5) is respond to a display close event. Thanks. I'd just seen that in some of the examples that I'm going through. I also have been going through a book called Game Programming All in One, Third Edition which makes use of the earlier version of Allegro. One big differences I've noticed to date seems to be the way sprites are handled in Allegro 5. Looks like transparencies are supported in normal bitmaps and so we don't need to have separate functions specifically to handle sprites, at first glance. Anyhoo, I'll go through the example (specifically ex_draw_bitmap) -- which is pretty nice (I ran it in 1600x1200 and could create over 400 moving transparent sprites before the fps started slowing down -- that seems quite good to me). Also, to clarify an earlier comment -- when I compile in release mode rather than debug mode, then things seems just as fast in my little test on Windows than on my iMac. Cheers,
|
|