[DEPRECATED] Experimental iOS port (LÖVE 0.9.2)
- slime
- Solid Snayke
- Posts: 3163
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Experimental iOS port (LÖVE 0.9.2)
Gah... more streaming source bugs, it sounds like. As a workaround you could try making the sources static instead of streaming (it's very good practice to do that anyway, for short-duration sounds. There will be much less chance of bugs, and the audio thread will use much less CPU at runtime.)
Re: Experimental iOS port (LÖVE 0.9.2)
Thanks! That seemed to do it. So to to be clear changing
to this:
fixed the issue. I guess I wasn't paying attention that creating a source defaults to streaming. At the moment I don't need to stream, but when I do, I'll use the work around posted by Ulydev above. (Adding a timer along side the source and manually stopping it after the timer is up)
Code: Select all
node.src = love.audio.newSource(sound)
Code: Select all
node.src = love.audio.newSource(sound, "static")
- slime
- Solid Snayke
- Posts: 3163
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Experimental iOS port (LÖVE 0.9.2)
I found the cause of the bug! https://bitbucket.org/rude/love/issues/ ... ng-sources
I plan to fix it ASAP, and I'll probably backport the fix to the 0.9.2 iOS port as well.
I plan to fix it ASAP, and I'll probably backport the fix to the 0.9.2 iOS port as well.
Re: Experimental iOS port (LÖVE 0.9.2)
Awesome!slime wrote:I'll probably backport the fix to the 0.9.2 iOS port as well.
EDIT :
How did I miss that...covetiii wrote:fixed the issue.Code: Select all
node.src = love.audio.newSource(sound, "static")
Thanks a bunch.
- slime
- Solid Snayke
- Posts: 3163
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Experimental iOS port (LÖVE 0.9.2)
I pushed a fix for both 0.10.0 and 0.9.2-iOS.slime wrote:I plan to fix it ASAP, and I'll probably backport the fix to the 0.9.2 iOS port as well.
Trouble building with Xcode 7.0.1 on OS X 10.11
I'm trying to build the project on Xcode 7.0.1 under OS X 10.11. I'm using the latest experimental code from bartbes and the latest love-ios-libraries.
I am getting this error:
ld: warning: directory not found for option '-L/Users/bzSteve/Desktop/bartbes-love-experiments-19b31b3d87ab/platform/ios/libraries/SDL/Xcode-iOS/SDL/build/Debug-iphoneos'
I don't have an SDL directory. Instead, I have SDL2 with only one file, libSDL2.a, inside.
I'm an absolute rookie at this stuff so any suggestions are appreciated. Thanks.
I am getting this error:
ld: warning: directory not found for option '-L/Users/bzSteve/Desktop/bartbes-love-experiments-19b31b3d87ab/platform/ios/libraries/SDL/Xcode-iOS/SDL/build/Debug-iphoneos'
I don't have an SDL directory. Instead, I have SDL2 with only one file, libSDL2.a, inside.
I'm an absolute rookie at this stuff so any suggestions are appreciated. Thanks.
Re: Experimental iOS port (LÖVE 0.9.2)
I got the same error—the full text was:
If you disable bitcode for your binary, it will build:
My understanding, reached entirely through no research and only guessing, is that Apple's new "bitcode on the app store" feature by default breaks projects who depend on libraries which haven't been compiled with bitcode included.
Code: Select all
ld: warning: directory not found for option '-L/Users/kevin/src/love-ios/platform/ios/libraries/SDL/Xcode-iOS/SDL/build/Debug-iphoneos'
ld: '/Users/kevin/Library/Developer/Xcode/DerivedData/love-epdcoyjpxxrklsaatrneqocrmowq/Build/Products/Debug-iphoneos/liblove.a(lib_aux.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
My understanding, reached entirely through no research and only guessing, is that Apple's new "bitcode on the app store" feature by default breaks projects who depend on libraries which haven't been compiled with bitcode included.
- slime
- Solid Snayke
- Posts: 3163
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Experimental iOS port (LÖVE 0.9.2)
The most recent commit to the iOS codebase should fix the bitcode issue.
Re: Experimental iOS port (LÖVE 0.9.2)
Thank you keelo and slime for helping me. I'm still having trouble, though.
Does this mean that i built liblove incorrectly? Or is it some other problem?
I tried cleaning and deleting the DerivedData to force a rebuild for what I thought was an iOS target, but that produced the same error.
Every step of this is new to me including finding the right download from bitbucket. I'm using the bartbes-love-experiments-19b31b3d87ab files. Bitcode is disabled. What should I try next?
Code: Select all
ld: warning: directory not found for option '-L/Users/sweiss/Desktop/bartbes-love-experiments-19b31b3d87ab/platform/ios/libraries/SDL/Xcode-iOS/SDL/build/Debug-iphoneos'
ld: in /Users/sweiss/Library/Developer/Xcode/DerivedData/love-bgbnzwytiikmrvclxkxetwxonnra/Build/Products/Debug-iphonesimulator/liblove.a(lib_aux.o), building for iOS simulator, but linking in object file built for OSX, for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried cleaning and deleting the DerivedData to force a rebuild for what I thought was an iOS target, but that produced the same error.
Every step of this is new to me including finding the right download from bitbucket. I'm using the bartbes-love-experiments-19b31b3d87ab files. Bitcode is disabled. What should I try next?
Re: Experimental iOS port (LÖVE 0.9.2)
I'm having the same problem. :/
Who is online
Users browsing this forum: Ahrefs [Bot] and 0 guests