Hey Tim,

Ahhh I see, I am new to mac development. That is probably
some setting in the make file. I will make the change and try
it again.



-ap




On Wed, Jan 11, 2012 at 3:41 PM, Timothy Place <t...@74objects.com> wrote:

> Not sure if it is the whole issue, but this line is going to be
> problematic with Xcode 4.2:
>
>     -- SYSROOT: /Developer/SDKs/MacOSX10.5.sdk
>
> Apple is no longer shipping the 10.5 SDK, and you will need to compile
> against the 10.6 or 10.7 SDK in this case.
>
> Cheers,
>   Tim
>
>
> On Wed, Jan 11, 2012 at 3:35 PM, Anthony Palomba 
> <apalo...@austin.rr.com>wrote:
>
>> Greetings Portmedia list,
>>
>> I have been trying to get portmidi to build on the mac
>> and have been running into trouble. I was hoping someone
>> here could help me out.
>>
>> I am running Xcode 4.2 and OSX 10.7 on a MacBook Pro.
>> I also installed Cmake 2.8.7
>>
>> 1. portmidi.xcodeproj build fails and gives me the following error:
>>
>> "The run destination "My Mac 64-bit" is not valid for Running the scheme
>> "ALL_BUILD"
>>
>> If I try selecting just portmidi, I get a similar error.
>>
>>
>> 2.The command line build also fails, output is below...
>>
>> Anyone know what the issue might be?
>> Has anyone been able to get this to build with Xcode 4.2?
>>
>>
>> Last login: Tue Jan 10 10:55:31 on ttys000
>> Anthonys-MacBook-Pro:~ anthonypalomba$ cd /Users/anthonypalomba/audio\
>> development/portmidi/pm_mac
>> Anthonys-MacBook-Pro:pm_mac anthonypalomba$ pwd
>> /Users/anthonypalomba/audio development/portmidi/pm_mac
>> Anthonys-MacBook-Pro:pm_mac anthonypalomba$ make -f pm_mac/Makefile.osx
>> pmdefaults
>> make: pm_mac/Makefile.osx: No such file or directory
>> make: *** No rule to make target `pm_mac/Makefile.osx'.  Stop.
>> Anthonys-MacBook-Pro:pm_mac anthonypalomba$ cd ..
>> Anthonys-MacBook-Pro:portmidi anthonypalomba$ make -f pm_mac/Makefile.osx
>> pmdefaults
>> mkdir -p Release
>> cd Release; make -f ../pm_mac/
>> make[1]: *** ../pm_mac/: Is a directory.  Stop.
>> make: *** [Release/libpmjni.dylib] Error 2
>> Anthonys-MacBook-Pro:portmidi anthonypalomba$ pwd
>> /Users/anthonypalomba/audio development/portmidi
>> Anthonys-MacBook-Pro:portmidi anthonypalomba$ make -f pm_mac/Makefile.osx
>> rm -f CMakeCache.txt
>> mkdir -p Release
>> cd Release; cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
>> -- 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: /usr/bin/gcc
>> -- Check for working C compiler: /usr/bin/gcc -- works
>> -- Detecting C compiler ABI info
>> -- Detecting C compiler ABI info - failed
>> -- 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: /usr/bin/c++
>> -- Check for working CXX compiler: /usr/bin/c++ -- works
>> -- Detecting CXX compiler ABI info
>> -- Detecting CXX compiler ABI info - failed
>> -- SYSROOT: /Developer/SDKs/MacOSX10.5.sdk
>> -- DEFAULT_DEBUG_FLAGS not nil: -g
>> -- SYSROOT: /Developer/SDKs/MacOSX10.5.sdk
>> -- Configuring done
>> -- Generating done
>> -- Build files have been written to: /Users/anthonypalomba/audio
>> development/portmidi/Release
>> cd Release; make
>> Scanning dependencies of target pmjni
>> [  3%] Building C object pm_common/CMakeFiles/pmjni.
>> dir/__/pm_mac/pmmacosxcm.c.o
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_mac/pmmacosxcm.c:24:20: error: stdlib.h: No such
>> file or directory
>> In file included from /Users/anthonypalomba/audio
>> development/portmidi/pm_mac/pmmacosxcm.c:28:
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_common/portmidi.h:97:20: error: stdint.h: No such
>> file or directory
>> In file included from /Users/anthonypalomba/audio
>> development/portmidi/pm_mac/pmmacosxcm.c:28:
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_common/portmidi.h:269: error: expected ‘=’, ‘,’,
>> ‘;’, ‘asm’ or ‘__attribute__’ before ‘PmTimestamp’
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_common/portmidi.h:270: error: expected declaration
>> specifiers or ‘...’ before ‘*’ token
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_common/portmidi.h:270: error: ‘PmTimestamp’
>> declared as function returning a function
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_common/portmidi.h:356: error: expected declaration
>> specifiers or ‘...’ before ‘int32_t’
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_common/portmidi.h:357: error: expected declaration
>> specifiers or ‘...’ before ‘PmTimeProcPtr’
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_common/portmidi.h:363: error: expected declaration
>> specifiers or ‘...’ before ‘int32_t’
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_common/portmidi.h:364: error: expected declaration
>> specifiers or ‘...’ before ‘PmTimeProcPtr’
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_common/portmidi.h:366: error: expected declaration
>> specifiers or ‘...’ before ‘int32_t’
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_common/portmidi.h:434: error: expected declaration
>> specifiers or ‘...’ before ‘int32_t’
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_common/portmidi.h:512: error: expected ‘=’, ‘,’,
>> ‘;’, ‘asm’ or ‘__attribute__’ before ‘PmMessage’
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_common/portmidi.h:579: error: expected
>> specifier-qualifier-list before ‘PmMessage’
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_common/portmidi.h:613: error: expected declaration
>> specifiers or ‘...’ before ‘int32_t’
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_common/portmidi.h:634: error: expected declaration
>> specifiers or ‘...’ before ‘int32_t’
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_common/portmidi.h:642: error: expected declaration
>> specifiers or ‘...’ before ‘int32_t’
>> In file included from /Users/anthonypalomba/audio
>> development/portmidi/pm_mac/pmmacosxcm.c:29:
>> /Users/anthonypalomba/audio development/portmidi/pm_common/pmutil.h:47:
>> error: expected declaration specifiers or ‘...’ before ‘int32_t’
>> In file included from /Users/anthonypalomba/audio
>> development/portmidi/pm_mac/pmmacosxcm.c:30:
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_common/pminternal.h:27: error: expected ‘)’ before
>> ‘s’
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_common/pminternal.h:49: error: ‘pm_synchronize_fn’
>> declared as function returning a function
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_common/pminternal.h:98: error: expected declaration
>> specifiers or ‘...’ before ‘*’ token
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_common/pminternal.h:98: error: ‘uint32_t’ declared
>> as function returning a function
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_common/pminternal.h:104: error: expected
>> specifier-qualifier-list before ‘PmTimeProcPtr’
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_common/pminternal.h:153: error: ‘none_synchronize’
>> declared as function returning a function
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_common/pminternal.h:161: error: ‘pm_read_bytes’
>> declared as function returning a function
>> In file included from /Users/anthonypalomba/audio
>> development/portmidi/pm_mac/pmmacosxcm.c:31:
>> /Users/anthonypalomba/audio development/portmidi/porttime/porttime.h:44:
>> error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PtTimestamp’
>> /Users/anthonypalomba/audio development/portmidi/porttime/porttime.h:46:
>> error: expected ‘)’ before ‘timestamp’
>> /Users/anthonypalomba/audio development/portmidi/porttime/porttime.h:61:
>> error: expected declaration specifiers or ‘...’ before ‘PtCallback’
>> /Users/anthonypalomba/audio development/portmidi/porttime/porttime.h:79:
>> error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Pt_Time’
>> /Users/anthonypalomba/audio development/portmidi/porttime/porttime.h:88:
>> error: expected ‘)’ before ‘duration’
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_mac/pmmacosxcm.c:35:19: error: stdio.h: No such
>> file or directory
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_mac/pmmacosxcm.c:36:20: error: string.h: No such
>> file or directory
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_mac/pmmacosxcm.c:38:39: error:
>> CoreServices/CoreServices.h: No such file or directory
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_mac/pmmacosxcm.c:39:35: error:
>> CoreMIDI/MIDIServices.h: No such file or directory
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_mac/pmmacosxcm.c:40:32: error:
>> CoreAudio/HostTime.h: No such file or directory
>> /Users/anthonypalomba/audio
>> development/portmidi/pm_mac/pmmacosxcm.c:41:20: error: unistd.h: No such
>> file or directory
>> /Users/anthonypalomba/audio development/portmidi/pm_mac/pmmacosxcm.c:85:
>> error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘client’
>> /Users/anthonypalomba/audio development/portmidi/pm_mac/pmmacosxcm.c:86:
>> error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘portIn’
>> /Users/anthonypalomba/audio development/portmidi/pm_mac/pmmacosxcm.c:87:
>> error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘portOut’
>> /Users/anthonypalomba/audio development/portmidi/pm_mac/pmmacosxcm.c:93:
>> error: field ‘sync_time’ declared as a function
>> /Users/anthonypalomba/audio development/portmidi/pm_mac/pmmacosxcm.c:94:
>> error: expected specifier-qualifier-list before ‘UInt64’
>> /Users/anthonypalomba/audio development/portmidi/pm_mac/pmmacosxcm.c:118:
>> error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
>> ‘timestamp_pm_to_cm’
>>
>> _______________________________________________
>> media_api mailing list
>> media_api@create.ucsb.edu
>> http://lists.create.ucsb.edu/mailman/listinfo/media_api
>>
>>
>
_______________________________________________
media_api mailing list
media_api@create.ucsb.edu
http://lists.create.ucsb.edu/mailman/listinfo/media_api

Reply via email to