Page 12 of 13

Re: Experimental iOS port (LÖVE 0.9.2)

Posted: Sat Sep 26, 2015 6:32 pm
by slime
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)

Posted: Sat Sep 26, 2015 9:55 pm
by covetiii
Thanks! That seemed to do it. So to to be clear changing

Code: Select all

    node.src = love.audio.newSource(sound)
to this:

Code: Select all

    node.src = love.audio.newSource(sound, "static")
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)

Re: Experimental iOS port (LÖVE 0.9.2)

Posted: Sun Sep 27, 2015 6:08 am
by slime
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.

Re: Experimental iOS port (LÖVE 0.9.2)

Posted: Sun Sep 27, 2015 1:39 pm
by Ulydev
slime wrote:I'll probably backport the fix to the 0.9.2 iOS port as well.
Awesome! :awesome:

EDIT :
covetiii wrote:

Code: Select all

    node.src = love.audio.newSource(sound, "static")
fixed the issue.
How did I miss that... :o:
Thanks a bunch.

Re: Experimental iOS port (LÖVE 0.9.2)

Posted: Mon Sep 28, 2015 9:13 pm
by slime
slime wrote:I plan to fix it ASAP, and I'll probably backport the fix to the 0.9.2 iOS port as well.
I pushed a fix for both 0.10.0 and 0.9.2-iOS.

Trouble building with Xcode 7.0.1 on OS X 10.11

Posted: Sat Oct 10, 2015 6:05 pm
by bzSteve
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.

Re: Experimental iOS port (LÖVE 0.9.2)

Posted: Wed Oct 14, 2015 7:03 am
by keelo
I got the same error—the full text was:

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)
If you disable bitcode for your binary, it will build:

Image

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.

Re: Experimental iOS port (LÖVE 0.9.2)

Posted: Wed Oct 14, 2015 2:56 pm
by slime
The most recent commit to the iOS codebase should fix the bitcode issue.

Re: Experimental iOS port (LÖVE 0.9.2)

Posted: Wed Oct 14, 2015 11:22 pm
by bzSteve
Thank you keelo and slime for helping me. I'm still having trouble, though.

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)
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?

Re: Experimental iOS port (LÖVE 0.9.2)

Posted: Sat Nov 14, 2015 7:02 pm
by undef
I'm having the same problem. :/