[Freeswitch-users] skypiax on Mac OS X

Seven Du dujinfang at gmail.com
Sun Aug 9 17:44:32 PDT 2009


On Aug 9, 2009, at 11:52 PM, Giovanni Maruzzelli wrote:
> Seven,
> thanks a lot for your effort, please let your stuff be available,
> maybe Ivan can make use of it!
>
svn diff http://svn.freeswitch.org/svn/freeswitch/branches/seven -r  
14473
:14475

When this done I think it's better to split codes into

skypiax_protocol.c
skypiax_protocol_mac.c
skypiax_protocol_linux.c
skypiax_protocol_windows.c

:)

7.
> Ivan,
> in the file src/mod/endpoints/mod_skypiax/skypiax_protocol.c add you
> will find #ifdef WIN32 .
>
> it conditional compiles code between WIN32 and linux.
>
> You need to add another #ifdef, so it will compile for OSX.
>
> You will probably be able to use the same pipe mechanism as in Linux
> (normal POSIX pipes).
> You will for sure need to implement the part that deals with the Skype
> API. Maybe it will be not much more than reusing the example code to
> interact with the API.
>
> Please, let us know how it goes, and feel *very* free to ask for  
> further info.
>
> -giovanni
>
>
>
>
> Sincerely,
>
> Giovanni Maruzzelli
> =========================================
> www.celliax.org
> via Pierlombardo 9, 20135 Milano
> Italy
> gmaruzz at celliax dot org
> Cell : +39-347-2665618
> Fax : +39-02-87390039
>
>
>
>
> On Sun, Aug 9, 2009 at 5:34 PM, Ivan C Myrvold<ivan at myrvold.org>  
> wrote:
>> Yes, I am interested in this, and if you have any source I could have
>> a look at it.
>>
>> Ivan
>>
>> Den 9. aug.. 2009 kl. 17:24 skrev Seven Du:
>>
>>>
>>> On Aug 9, 2009, at 11:10 PM, Giovanni Maruzzelli wrote:
>>>> Ciao Ivan,
>>>>
>>>> it seems that you do not have the libX11 **development** package
>>>> installed.
>>>>
>>>> Unfortunately I don't know about OSX, so I cannot help you, but  
>>>> many
>>>> on the list know.
>>>> BTW: it will probably be of no use to you to compile mod_skypiax on
>>>> OSX, because Skype for MACOSX works in another way than Skype for
>>>> Linux.
>>>
>>> That's right.
>>>
>>>> If you know about MacOSX programming, please have a look at
>>>> https://developer.skype.com/Docs/ApiDoc/Skype_API_on_Mac it would
>>>> probably be simple enough to add a message pump for MacOSX.
>>>>
>>>> -giovanni
>>>>
>>>>
>>> Giovanni, I have a Mac and tried to get this work yesterday, but
>>> haven't got it work. Will try further if I have time. However, I  
>>> don't
>>> think it's so useful because I don't know how to run and hence  
>>> control
>>> multi-skype instances on Mac.
>>>
>>> If someone interested to try this I can check the code into my  
>>> branch.
>>>
>>>>
>>>>
>>>> Sincerely,
>>>>
>>>> Giovanni Maruzzelli
>>>> =========================================
>>>> www.celliax.org
>>>> via Pierlombardo 9, 20135 Milano
>>>> Italy
>>>> gmaruzz at celliax dot org
>>>> Cell : +39-347-2665618
>>>> Fax : +39-02-87390039
>>>>
>>>>
>>>>
>>>>
>>>> On Sun, Aug 9, 2009 at 4:52 PM, Ivan C Myrvold<ivan at myrvold.org>
>>>> wrote:
>>>>> I tried to compile mod_skypiax, and am getting problem with X11.  
>>>>> On
>>>>> OS
>>>>> X Leopard, X11 is installed in /usr/X11/lib/
>>>>> See below.
>>>>>
>>>>> What can I do to get past this error?
>>>>>
>>>>> I can also let you ssh into my machine. Contact me off list in  
>>>>> case.
>>>>>
>>>>> Ivan
>>>>>
>>>>> making all mod_skypiax
>>>>> Compiling skypiax_protocol.c...
>>>>> Compiling mod_skypiax.c...
>>>>> mkdir .libs
>>>>> Compiling mod_skypiax.c ...
>>>>> Creating mod_skypiax.so...
>>>>> ld: library not found for -lX11
>>>>> collect2: ld returned 1 exit status
>>>>> gcc -DSKYPIAX_SVN_VERSION=\"14471\" -I/Users/imyrvold/Documents/
>>>>> Freeswitch/freeswitch.09-08-09/src/include -I/Users/imyrvold/
>>>>> Documents/
>>>>> Freeswitch/freeswitch.09-08-09/libs/libteletone/src -Werror -
>>>>> fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -
>>>>> g -
>>>>> ggdb -DMACOSX -g -O2 -Wall -std=c99 -pedantic -D_GNU_SOURCE -
>>>>> shared -
>>>>> o .libs/mod_skypiax.so -dynamic -bundle -force-flat- 
>>>>> namespace .libs/
>>>>> mod_skypiax.o skypiax_protocol.o  /Users/imyrvold/Documents/
>>>>> Freeswitch/
>>>>> freeswitch.09-08-09/.libs/libfreeswitch.dylib -L/usr/lib -L/Users/
>>>>> imyrvold/Documents/Freeswitch/freeswitch.09-08-09/libs/apr-util/ 
>>>>> xml/
>>>>> expat/lib /Users/imyrvold/Documents/Freeswitch/freeswitch. 
>>>>> 09-08-09/
>>>>> libs/apr-util/xml/expat/lib/.libs/libexpat.a /usr/lib/
>>>>> libiconv.dylib /
>>>>> Users/imyrvold/Documents/Freeswitch/freeswitch.09-08-09/libs/
>>>>> apr/.libs/
>>>>> libapr-1.a -ldl -lpthread -lm -L/opt/local/lib -lssl -lcrypto - 
>>>>> lz -
>>>>> lncurses -lX11
>>>>> make[5]: *** [mod_skypiax.so] Error 1
>>>>> make[4]: *** [all] Error 1
>>>>> make[3]: *** [mod_skypiax-all] Error 1
>>>>> make[2]: *** [all-recursive] Error 1
>>>>>
>>>>>
>>>>> Den 6. aug.. 2009 kl. 18:37 skrev Giovanni Maruzzelli:
>>>>>
>>>>>> No, it needs implementation of the message pump between the  
>>>>>> module
>>>>>> and
>>>>>> the Skype API.
>>>>>>
>>>>>> It's probably kind of trivial, if no other problems I'm not aware
>>>>>> of.
>>>>>>
>>>>>> I do not have a Mac to implement it, tough :-(.
>>>>>>
>>>>>> -giovanni
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Sincerely,
>>>>>>
>>>>>> Giovanni Maruzzelli
>>>>>> =========================================
>>>>>> www.celliax.org
>>>>>> via Pierlombardo 9, 20135 Milano
>>>>>> Italy
>>>>>> gmaruzz at celliax dot org
>>>>>> Cell : +39-347-2665618
>>>>>> Fax : +39-02-87390039
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Thu, Aug 6, 2009 at 5:55 PM, Brian West<brian at freeswitch.org>
>>>>>> wrote:
>>>>>>> I'm not sure about that one.... I haven't tried lately because  
>>>>>>> the
>>>>>>> API
>>>>>>> differs on the Mac last I looked at it.
>>>>>>>
>>>>>>> /b
>>>>>>>
>>>>>>> On Aug 6, 2009, at 10:53 AM, Ivan C Myrvold wrote:
>>>>>>>
>>>>>>>> Is skypiax now working on Mac OS X in Freeswitch?
>>>>>>>>
>>>>>>>> Ivan
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> FreeSWITCH-users mailing list
>>>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>>>> http://www.freeswitch.org
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> FreeSWITCH-users mailing list
>>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>>> http://www.freeswitch.org
>>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> FreeSWITCH-users mailing list
>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>> http://www.freeswitch.org
>>>>>
>>>>
>>>> _______________________________________________
>>>> FreeSWITCH-users mailing list
>>>> FreeSWITCH-users at lists.freeswitch.org
>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>> http://www.freeswitch.org
>>>
>>>
>>> _______________________________________________
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org





More information about the FreeSWITCH-users mailing list