Discussion:
Compiling For IOS
Ali Nakipoglu
2013-08-25 21:55:43 UTC
Permalink
Hi,

Im trying to compile OpenAL Soft for IOS. Instead of using native OpenAL i need to use OpenAL Soft because i want to use HRTF functions. I tried preparing several settings in Cmake but i had no success.

To compile its asking me CoreServices framework which is not exist in IOS platform. I can only find MobileCoreServices framework which is not working either. I also needed to hack for disabling SSE and HAVE_CPUID_H.

Any help would be appreciated.

Thanks

A.
keghn
2013-08-26 00:19:39 UTC
Permalink
Hello,
have you ever had cmake install software correctly?
I have not. 100% fail.



--
View this message in context: http://openal.996291.n3.nabble.com/Compiling-For-IOS-tp5550p5551.html
Sent from the OpenAL - User mailing list archive at Nabble.com.
keghn
2013-08-26 21:35:29 UTC
Permalink
Hello Ali,
I use Linux os, Mint 14.1 mate. i do it this way:
uncompress openal-soft into a directory, such as oopenal-soft
I go into that directory using a terminal and type these six lines:

mkdir build
cd build
rm -rf *
cmake ..
make
sudo make install


#sudo give me root privileges.

then:

make helloworld


That is if you have helloworld.c in your directory.

How do you do it on your system?



--
View this message in context: http://openal.996291.n3.nabble.com/Compiling-For-IOS-tp5550p5554.html
Sent from the OpenAL - User mailing list archive at Nabble.com.
Camlorn
2013-08-27 14:54:52 UTC
Permalink
It is worth mentioning that apple will now allow you to use LGPL
libraries on the iPhone. If you intend to go through the app store, you
should be aware of this. They may have changed their policies, but not
to my knowledge.
Post by keghn
Hello Ali,
uncompress openal-soft into a directory, such as oopenal-soft
mkdir build
cd build
rm -rf *
cmake ..
make
sudo make install
#sudo give me root privileges.
make helloworld
That is if you have helloworld.c in your directory.
How do you do it on your system?
--
View this message in context: http://openal.996291.n3.nabble.com/Compiling-For-IOS-tp5550p5554.html
Sent from the OpenAL - User mailing list archive at Nabble.com.
_______________________________________________
Openal mailing list
http://opensource.creative.com/mailman/listinfo/openal
Edward Rudd
2013-08-27 15:10:15 UTC
Permalink
You can't dynamically link 3rd party libraries on iOS.. So you'd have to statically link OpenAL-soft into your iOS application which violates the LGPL. if your application isn't GPL or LGPL. so, really you can't use OpenAL-Soft on the iOS at all.
It is worth mentioning that apple will now allow you to use LGPL libraries on the iPhone. If you intend to go through the app store, you should be aware of this. They may have changed their policies, but not to my knowledge.
Post by keghn
Hello Ali,
uncompress openal-soft into a directory, such as oopenal-soft
mkdir build
cd build
rm -rf *
cmake ..
make
sudo make install
#sudo give me root privileges.
make helloworld
That is if you have helloworld.c in your directory.
How do you do it on your system?
--
View this message in context: http://openal.996291.n3.nabble.com/Compiling-For-IOS-tp5550p5554.html
Sent from the OpenAL - User mailing list archive at Nabble.com.
_______________________________________________
Openal mailing list
http://opensource.creative.com/mailman/listinfo/openal
_______________________________________________
Openal mailing list
http://opensource.creative.com/mailman/listinfo/openal
Edward Rudd
OutOfOrder.cc
Skype: outoforder_cc
317-674-3296
Ali Nakipoglu
2013-08-27 15:21:06 UTC
Permalink
But we aren't releasing or distributing our application. So GPL, LPGL becomes obsolete. We can use whichever we need.



Ali Nakipoğlu

+44 7415347748

Fiction
fiction.io
Post by Edward Rudd
You can't dynamically link 3rd party libraries on iOS.. So you'd have to statically link OpenAL-soft into your iOS application which violates the LGPL. if your application isn't GPL or LGPL. so, really you can't use OpenAL-Soft on the iOS at all.
It is worth mentioning that apple will now allow you to use LGPL libraries on the iPhone. If you intend to go through the app store, you should be aware of this. They may have changed their policies, but not to my knowledge.
Post by keghn
Hello Ali,
uncompress openal-soft into a directory, such as oopenal-soft
mkdir build
cd build
rm -rf *
cmake ..
make
sudo make install
#sudo give me root privileges.
make helloworld
That is if you have helloworld.c in your directory.
How do you do it on your system?
--
View this message in context: http://openal.996291.n3.nabble.com/Compiling-For-IOS-tp5550p5554.html
Sent from the OpenAL - User mailing list archive at Nabble.com (http://Nabble.com).
_______________________________________________
Openal mailing list
http://opensource.creative.com/mailman/listinfo/openal
_______________________________________________
Openal mailing list
http://opensource.creative.com/mailman/listinfo/openal
Edward Rudd
OutOfOrder.cc (http://OutOfOrder.cc)
Skype: outoforder_cc
317-674-3296
_______________________________________________
Openal mailing list
http://opensource.creative.com/mailman/listinfo/openal
keghn
2013-08-28 00:05:38 UTC
Permalink
Or you can compile with:

gcc alstream.c -lalut -lopenal -lavformat -o alstream


In the example directory.



--
View this message in context: http://openal.996291.n3.nabble.com/Compiling-For-IOS-tp5550p5566.html
Sent from the OpenAL - User mailing list archive at Nabble.com.
Ali Nakipoglu
2013-08-28 09:22:53 UTC
Permalink
Is this is works for iOS?


Ali Nakipoğlu

+44 7415347748

Fiction
fiction.io
Post by keghn
gcc alstream.c -lalut -lopenal -lavformat -o alstream
In the example directory.
--
View this message in context: http://openal.996291.n3.nabble.com/Compiling-For-IOS-tp5550p5566.html
Sent from the OpenAL - User mailing list archive at Nabble.com (http://Nabble.com).
_______________________________________________
Openal mailing list
http://opensource.creative.com/mailman/listinfo/openal
k***@netscape.net
2013-08-28 14:44:53 UTC
Permalink
It work in Mint 14 mate which is like Ubuntu.
I do not know if it will work with apple or windows.



-----Original Message-----
From: Ali Nakipoglu <***@gmail.com>
To: keghn <***@netscape.net>
Cc: openal <***@opensource.creative.com>
Sent: Wed, Aug 28, 2013 2:22 am
Subject: Re: [Openal] Re: Compiling For IOS



Is this is works for iOS?







Ali Nakipoğlu


+44 7415347748


Fiction

fiction.io


On Wednesday, 28 August 2013 at 01:05, keghn wrote:



Or you can compile with:


gcc alstream.c -lalut -lopenal -lavformat -o alstream




In the example directory.






--
View this message in context: http://openal.996291.n3.nabble.com/Compiling-For-IOS-tp5550p5566.html
Sent from the OpenAL - User mailing list archive at Nabble.com.
Ali Nakipoglu
2013-08-28 14:45:54 UTC
Permalink
Which backend it uses with Mint?


Ali Nakipoğlu

+44 7415347748

Fiction
fiction.io
Post by k***@netscape.net
It work in Mint 14 mate which is like Ubuntu.
I do not know if it will work with apple or windows.
-----Original Message-----
Sent: Wed, Aug 28, 2013 2:22 am
Subject: Re: [Openal] Re: Compiling For IOS
Is this is works for iOS?
Ali Nakipoğlu
+44 7415347748
Fiction
fiction.io (http://fiction.io)
Post by keghn
gcc alstream.c -lalut -lopenal -lavformat -o alstream
In the example directory.
--
View this message in context: http://openal.996291.n3.nabble.com/Compiling-For-IOS-tp5550p5566.html
Sent from the OpenAL - User mailing list archive at Nabble.com.
_______________________________________________
Openal mailing list
http://opensource.creative.com/mailman/listinfo/openal
k***@netscape.net
2013-08-28 17:36:33 UTC
Permalink
Back ends?
Dependencies, .h files, or .c file?


-lavformat libavformat-dev http://libav.org/
-lalut libalut-dev http://openal.org/
-lopenal libopenal-dev http://kcat.strangesoft.net/openal.html












-----Original Message-----
From: Ali Nakipoglu <***@gmail.com>
To: keghn <***@netscape.net>
Cc: openal <***@opensource.creative.com>
Sent: Wed, Aug 28, 2013 7:45 am
Subject: Re: [Openal] Re: Compiling For IOS



Which backend it uses with Mint?







Ali Nakipoğlu


+44 7415347748


Fiction

fiction.io


On Wednesday, 28 August 2013 at 15:44, ***@netscape.net wrote:


It work in Mint 14 mate which is like Ubuntu.
I do not know if it will work with apple or windows.



-----Original Message-----
From: Ali Nakipoglu <***@gmail.com>
To: keghn <***@netscape.net>
Cc: openal <***@opensource.creative.com>
Sent: Wed, Aug 28, 2013 2:22 am
Subject: Re: [Openal] Re: Compiling For IOS



Is this is works for iOS?







Ali Nakipoğlu


+44 7415347748


Fiction

fiction.io


On Wednesday, 28 August 2013 at 01:05, keghn wrote:



Or you can compile with:


gcc alstream.c -lalut -lopenal -lavformat -o alstream




In the example directory.






--
View this message in context: http://openal.996291.n3.nabble.com/Compiling-For-IOS-tp5550p5566.html
Sent from the OpenAL - User mailing list archive at Nabble.com.
Ali Nakipoglu
2013-08-28 17:38:31 UTC
Permalink
No OpenAL Soft comes with several backends like, coreaudio, opensl, wave and so on. I mean these backends.


Ali Nakipoğlu

+44 7415347748

Fiction
fiction.io
Post by k***@netscape.net
Back ends?
Dependencies, .h files, or .c file?
-lavformat libavformat-dev http://libav.org/
-lalut libalut-dev http://openal.org/
-lopenal libopenal-dev http://kcat.strangesoft.net/openal.html
-----Original Message-----
Sent: Wed, Aug 28, 2013 7:45 am
Subject: Re: [Openal] Re: Compiling For IOS
Which backend it uses with Mint?
Ali Nakipoğlu
+44 7415347748
Fiction
fiction.io (http://fiction.io)
Post by k***@netscape.net
It work in Mint 14 mate which is like Ubuntu.
I do not know if it will work with apple or windows.
-----Original Message-----
Sent: Wed, Aug 28, 2013 2:22 am
Subject: Re: [Openal] Re: Compiling For IOS
Is this is works for iOS?
Ali Nakipoğlu
+44 7415347748
Fiction
fiction.io (http://fiction.io)
Post by keghn
gcc alstream.c -lalut -lopenal -lavformat -o alstream
In the example directory.
--
View this message in context: http://openal.996291.n3.nabble.com/Compiling-For-IOS-tp5550p5566.html
Sent from the OpenAL - User mailing list archive at Nabble.com.
_______________________________________________
Openal mailing list
http://opensource.creative.com/mailman/listinfo/openal
k***@netscape.net
2013-08-28 19:33:20 UTC
Permalink
https://github.com/vancegroup/freealut






-----Original Message-----
From: Ali Nakipoglu <***@gmail.com>
To: keghn <***@netscape.net>
Cc: openal <***@opensource.creative.com>
Sent: Wed, Aug 28, 2013 10:38 am
Subject: Re: [Openal] Re: Compiling For IOS



No OpenAL Soft comes with several backends like, coreaudio, opensl, wave and so on. I mean these backends.







Ali Nakipoğlu


+44 7415347748


Fiction

fiction.io


On Wednesday, 28 August 2013 at 18:36, ***@netscape.net wrote:


Back ends?
Dependencies, .h files, or .c file?


-lavformat libavformat-dev http://libav.org/
-lalut libalut-dev http://openal.org/
-lopenal libopenal-dev http://kcat.strangesoft.net/openal.html












-----Original Message-----
From: Ali Nakipoglu <***@gmail.com>
To: keghn <***@netscape.net>
Cc: openal <***@opensource.creative.com>
Sent: Wed, Aug 28, 2013 7:45 am
Subject: Re: [Openal] Re: Compiling For IOS



Which backend it uses with Mint?







Ali Nakipoğlu


+44 7415347748


Fiction

fiction.io


On Wednesday, 28 August 2013 at 15:44, ***@netscape.net wrote:


It work in Mint 14 mate which is like Ubuntu.
I do not know if it will work with apple or windows.



-----Original Message-----
From: Ali Nakipoglu <***@gmail.com>
To: keghn <***@netscape.net>
Cc: openal <***@opensource.creative.com>
Sent: Wed, Aug 28, 2013 2:22 am
Subject: Re: [Openal] Re: Compiling For IOS



Is this is works for iOS?







Ali Nakipoğlu


+44 7415347748


Fiction

fiction.io


On Wednesday, 28 August 2013 at 01:05, keghn wrote:



Or you can compile with:


gcc alstream.c -lalut -lopenal -lavformat -o alstream




In the example directory.






--
View this message in context: http://openal.996291.n3.nabble.com/Compiling-For-IOS-tp5550p5566.html
Sent from the OpenAL - User mailing list archive at Nabble.com.
Edward Rudd
2013-08-29 01:17:32 UTC
Permalink
Mint is simply a linux distribution, so OpenAL SOft would be using Pulse audio, Alsa, and/or OSS.

And yes you can use "gcc" commandline on mac OS X to compile iOS, you just have to make sure to set the correct SDK for the compile (--sdkroot) and arch.
Post by Ali Nakipoglu
No OpenAL Soft comes with several backends like, coreaudio, opensl, wave and so on. I mean these backends.
<signature0.png>
Ali Nakipoğlu
+44 7415347748
Fiction
fiction.io
Post by k***@netscape.net
Back ends?
Dependencies, .h files, or .c file?
-lavformat libavformat-dev http://libav.org/
-lalut libalut-dev http://openal.org/
-lopenal libopenal-dev http://kcat.strangesoft.net/openal.html
-----Original Message-----
Sent: Wed, Aug 28, 2013 7:45 am
Subject: Re: [Openal] Re: Compiling For IOS
Which backend it uses with Mint?
<Untitled.png>
Ali Nakipoğlu
+44 7415347748
Fiction
fiction.io
Post by k***@netscape.net
It work in Mint 14 mate which is like Ubuntu.
I do not know if it will work with apple or windows.
-----Original Message-----
Sent: Wed, Aug 28, 2013 2:22 am
Subject: Re: [Openal] Re: Compiling For IOS
Is this is works for iOS?
Ali Nakipoğlu
+44 7415347748
Fiction
fiction.io
Post by keghn
gcc alstream.c -lalut -lopenal -lavformat -o alstream
In the example directory.
--
View this message in context: http://openal.996291.n3.nabble.com/Compiling-For-IOS-tp5550p5566.html
Sent from the OpenAL - User mailing list archive at Nabble.com.
_______________________________________________
Openal mailing list
http://opensource.creative.com/mailman/listinfo/openal
_______________________________________________
Openal mailing list
http://opensource.creative.com/mailman/listinfo/openal
Edward Rudd
OutOfOrder.cc
Skype: outoforder_cc
317-674-3296
Eric Wing
2013-08-29 02:23:34 UTC
Permalink
Post by Ali Nakipoglu
Hi,
Im trying to compile OpenAL Soft for IOS. Instead of using native OpenAL i
need to use OpenAL Soft because i want to use HRTF functions. I tried
preparing several settings in Cmake but i had no success.
To compile its asking me CoreServices framework which is not exist in IOS
platform. I can only find MobileCoreServices framework which is not working
either. I also needed to hack for disabling SSE and HAVE_CPUID_H.
Any help would be appreciated.
You will likely need to use a CMake cross-compiler toolchain file for
iOS, like this one:
https://code.google.com/p/ios-cmake/

I haven't heard (or can't remember) if anybody has tried to use OpenAL
Soft on iOS. The LGPL issues make it annoying and since Apple ships
their own implementation, there hasn't been a lot of an incentive to
try this.

With enough fussing, I would expect it to work. Core Audio is pretty
much the same on both Mac and iOS. However, you will need to find
replacements or fixes for things that call APIs not available on both
like CoreServices. Breaking out the list of specific APIs not found
would be helpful in figuring out what replacements are needed.

-Eric
--
Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/
Ali Nakipoglu
2013-08-29 08:04:53 UTC
Permalink
Yes LGPL license is an issue for many cases like this. I will be not publishing or selling my app. Its fine.

But the hard thing is to find a solution to enable HRTF in IOS. Normally native OpenAL not supporting this. I can try replacing CoreServices API. But I'm not sure how much i need to replace.

Thanks a lot Eric,


Ali Nakipoğlu

+44 7415347748

Fiction
fiction.io
Post by Eric Wing
Post by Ali Nakipoglu
Hi,
Im trying to compile OpenAL Soft for IOS. Instead of using native OpenAL i
need to use OpenAL Soft because i want to use HRTF functions. I tried
preparing several settings in Cmake but i had no success.
To compile its asking me CoreServices framework which is not exist in IOS
platform. I can only find MobileCoreServices framework which is not working
either. I also needed to hack for disabling SSE and HAVE_CPUID_H.
Any help would be appreciated.
You will likely need to use a CMake cross-compiler toolchain file for
https://code.google.com/p/ios-cmake/
I haven't heard (or can't remember) if anybody has tried to use OpenAL
Soft on iOS. The LGPL issues make it annoying and since Apple ships
their own implementation, there hasn't been a lot of an incentive to
try this.
With enough fussing, I would expect it to work. Core Audio is pretty
much the same on both Mac and iOS. However, you will need to find
replacements or fixes for things that call APIs not available on both
like CoreServices. Breaking out the list of specific APIs not found
would be helpful in figuring out what replacements are needed.
-Eric
--
Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/
Eric Wing
2013-08-29 19:20:31 UTC
Permalink
Post by Ali Nakipoglu
Yes LGPL license is an issue for many cases like this. I will be not
publishing or selling my app. Its fine.
I understand. With the LGPL, you can publish and sell apps. It's just
that you have to conform to the rules about distributing object code
upon request which is a pain.
Post by Ali Nakipoglu
But the hard thing is to find a solution to enable HRTF in IOS. Normally
native OpenAL not supporting this. I can try replacing CoreServices API. But
I'm not sure how much i need to replace.
Two things.
1) File a bug report/feature request with Apple for what you want.
Their audio team loves knowing people are using OpenAL and what they
want to do with it. It probably won't help you today, but down the
road, who knows.

2) Start identifying/listing the APIs that need to be ported from
CoreServices. I bet Google or StackOverflow will turn up what to do
for most of these.

-Eric
--
Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/
Ali Nakipoglu
2013-08-29 19:25:37 UTC
Permalink
Thanks a lot Eric. Thanks a lot everyone.

I will give it a try very soon and i will let you know if i had a progress.





Ali Nakipoğlu

+44 7415347748

Fiction
fiction.io
Post by Eric Wing
Post by Ali Nakipoglu
Yes LGPL license is an issue for many cases like this. I will be not
publishing or selling my app. Its fine.
I understand. With the LGPL, you can publish and sell apps. It's just
that you have to conform to the rules about distributing object code
upon request which is a pain.
Post by Ali Nakipoglu
But the hard thing is to find a solution to enable HRTF in IOS. Normally
native OpenAL not supporting this. I can try replacing CoreServices API. But
I'm not sure how much i need to replace.
Two things.
1) File a bug report/feature request with Apple for what you want.
Their audio team loves knowing people are using OpenAL and what they
want to do with it. It probably won't help you today, but down the
road, who knows.
2) Start identifying/listing the APIs that need to be ported from
CoreServices. I bet Google or StackOverflow will turn up what to do
for most of these.
-Eric
--
Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/
Loading...