[DEPRECATED] Experimental iOS port (LÖVE 0.9.2)

Discuss any ports of LÖVE to different platforms.
User avatar
slime
Solid Snayke
Posts: 2716
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Experimental iOS port (LÖVE 0.9.2)

Post by slime » Sat Sep 26, 2015 6:32 pm

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

covetiii
Prole
Posts: 6
Joined: Mon Sep 21, 2015 12:39 am

Re: Experimental iOS port (LÖVE 0.9.2)

Post by covetiii » Sat Sep 26, 2015 9:55 pm

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)

User avatar
slime
Solid Snayke
Posts: 2716
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Experimental iOS port (LÖVE 0.9.2)

Post by slime » Sun Sep 27, 2015 6:08 am

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.

User avatar
Ulydev
Party member
Posts: 403
Joined: Mon Nov 10, 2014 10:46 pm
Location: Paris
Contact:

Re: Experimental iOS port (LÖVE 0.9.2)

Post by Ulydev » Sun Sep 27, 2015 1:39 pm

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.

User avatar
slime
Solid Snayke
Posts: 2716
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Experimental iOS port (LÖVE 0.9.2)

Post by slime » Mon Sep 28, 2015 9:13 pm

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.

User avatar
bzSteve
Prole
Posts: 34
Joined: Tue May 21, 2013 2:31 am

Trouble building with Xcode 7.0.1 on OS X 10.11

Post by bzSteve » Sat Oct 10, 2015 6:05 pm

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.

keelo
Prole
Posts: 1
Joined: Wed Oct 14, 2015 6:56 am

Re: Experimental iOS port (LÖVE 0.9.2)

Post by keelo » Wed Oct 14, 2015 7:03 am

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.

User avatar
slime
Solid Snayke
Posts: 2716
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Experimental iOS port (LÖVE 0.9.2)

Post by slime » Wed Oct 14, 2015 2:56 pm

The most recent commit to the iOS codebase should fix the bitcode issue.

User avatar
bzSteve
Prole
Posts: 34
Joined: Tue May 21, 2013 2:31 am

Re: Experimental iOS port (LÖVE 0.9.2)

Post by bzSteve » Wed Oct 14, 2015 11:22 pm

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?

User avatar
undef
Party member
Posts: 434
Joined: Mon Jun 10, 2013 3:09 pm
Location: Berlin
Contact:

Re: Experimental iOS port (LÖVE 0.9.2)

Post by undef » Sat Nov 14, 2015 7:02 pm

I'm having the same problem. :/
twitter | steam | indieDB

Check out quadrant on Steam!

Locked

Who is online

Users browsing this forum: No registered users and 1 guest