Coder Social home page Coder Social logo

Aubio ARMv7 / iOS about aubio HOT 16 CLOSED

aubio avatar aubio commented on May 16, 2024
Aubio ARMv7 / iOS

from aubio.

Comments (16)

piem avatar piem commented on May 16, 2024

yes, with the following command:

./waf clean configure --destdir aubio-arm --with-target-platform ios build install

i just updated the build system to use the 7.0 sdk (see ff75d60).

from aubio.

loretoparisi avatar loretoparisi commented on May 16, 2024

Thanks I did but I have

['clang', '-g', '-Wall', '-Wextra', '-miphoneos-version-min=6.1', '-arch', 'armv7', '--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk', '-DHAVE_ACCELERATE=1', '../test.c', '-c', '-o', 'test.c.1.o']
[2/2] cprogram: build/.conf_check_ecfddc2ce29c573b1079b107c2434884/testbuild/test.c.1.o -> build/.conf_check_ecfddc2ce29c573b1079b107c2434884/testbuild/testprog

(...)

['clang', '-std=c99', '-arch', 'armv7', '--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk', 'test.c.1.o', '-o', '/Users/loreto/Projects/AUDIO/aubio/build/.conf_check_ecfddc2ce29c573b1079b107c2434884/testbuild/testprog', '-framework', 'CoreFoundation', '-framework', 'AudioToolbox', '-framework', 'Accelerate']
err: ld: building for MacOSX, but linking against dylib built for iOS Simulator file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks//Accelerate.framework/Accelerate' for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

from /Users/loreto/Projects/AUDIO/aubio: Test does not build: Traceback (most recent call last):
File "/Users/loreto/Projects/AUDIO/aubio/waflib/Tools/c_config.py", line 459, in run_c_code
bld.compile()
File "/Users/loreto/Projects/AUDIO/aubio/waflib/Build.py", line 198, in compile
raise Errors.BuildError(self.producer.error)
BuildError: Build failed
-> task in 'testprog' failed (exit status 1):
{task 4536082512: cprogram test.c.1.o -> testprog}
['clang', '-std=c99', '-arch', 'armv7', '--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk', 'test.c.1.o', '-o', '/Users/loreto/Projects/AUDIO/aubio/build/.conf_check_ecfddc2ce29c573b1079b107c2434884/testbuild/testprog', '-framework', 'CoreFoundation', '-framework', 'AudioToolbox', '-framework', 'Accelerate']

not found
from /Users/loreto/Projects/AUDIO/aubio: The configuration failed

from aubio.

loretoparisi avatar loretoparisi commented on May 16, 2024

Maybe is

err: ld: building for MacOSX, but linking against dylib built for iOS Simulator file ?

from aubio.

luca-bernardi avatar luca-bernardi commented on May 16, 2024

Did you manage to fix that? It's seems a that waf isn't able to locate stdlib.h but in my case the header is in /usr/include

from aubio.

loretoparisi avatar loretoparisi commented on May 16, 2024

After the last update I had

macbookproloreto:aubio loreto$ ./waf clean configure --destdir aubio-arm --with-target-platform ios build install
'clean' finished successfully (0.109s)
Setting top to : /Users/loreto/Projects/AUDIO/aubio
Setting out to : /Users/loreto/Projects/AUDIO/aubio/build
Checking for 'gcc' (c compiler) : /usr/bin/gcc
Checking for header stdlib.h : not found
The configuration failed
(complete log in /Users/loreto/Projects/AUDIO/aubio/build/config.log)

I have the stdlib.h located at

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include/stdlib.h

from aubio.

loretoparisi avatar loretoparisi commented on May 16, 2024

I was looking at the wscript.

Here it seems to be ok

if Options.platform == 'ios':
DEVROOT="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer"
SDKROOT="%(DEVROOT)s/SDKs/iPhoneOS%(SDKVER)s.sdk" % locals()
ctx.env.CFLAGS += [ '-arch', 'armv7' ]
ctx.env.CFLAGS += [ '-arch', 'armv7s' ]
ctx.env.LINKFLAGS += ['-arch', 'armv7']
ctx.env.LINKFLAGS += ['-arch', 'armv7s']

from aubio.

luca-bernardi avatar luca-bernardi commented on May 16, 2024

Same here. Also, I thinks is worth to add arm64 to the other architectures.

Anyway, I thinks that probably it's easier to create an xcode target for a static library.

from aubio.

piem avatar piem commented on May 16, 2024

Hi!

So what exactly isn't working here?

I just updated wscript to fix the build on darwin (macosx), but ios and iosimulator targets are building fine for me.

It might help to run ./waf distclean after a git pull.

from aubio.

loretoparisi avatar loretoparisi commented on May 16, 2024

So what happens is

macbookproloreto:aubio loreto$ git pull
Already up-to-date.

macbookproloreto:aubio loreto$ ./waf distclean
'distclean' finished successfully (0.004s)

macbookproloreto:aubio loreto$ ./waf configure
Setting top to : /Users/loreto/Projects/AUDIO/aubio
Setting out to : /Users/loreto/Projects/AUDIO/aubio/build
Checking for 'gcc' (c compiler) : /usr/bin/gcc
Checking for header stdlib.h : yes
Checking for header stdio.h : yes
Checking for header math.h : yes
Checking for header string.h : yes
Checking for header limits.h : yes
Checking for C99 VA_ARGS macro : yes
Checking for program pkg-config : /usr/local/bin/pkg-config
Checking for 'sndfile' >= 1.0.4 : yes
Checking for 'samplerate' >= 0.0.15 : yes
Checking for FFT implementation : vDSP
Checking for 'jack' >= 0.15.0 : yes
Checking for 'lash-1.0' >= 0.5.0 : not found
Checking for program docbook-to-man : not found
'configure' finished successfully (0.646s)

macbookproloreto:aubio loreto$ ./waf clean configure --destdir aubio-arm --with-target-platform ios build install
'clean' finished successfully (0.016s)
Setting top to : /Users/loreto/Projects/AUDIO/aubio
Setting out to : /Users/loreto/Projects/AUDIO/aubio/build
Checking for 'gcc' (c compiler) : /usr/bin/gcc
Checking for header stdlib.h : not found
The configuration failed
(complete log in /Users/loreto/Projects/AUDIO/aubio/build/config.log)

macbookproloreto:aubio loreto$

The error log details here:

[1/2] c: build/.conf_check_ecfddc2ce29c573b1079b107c2434884/test.c -> build/.conf_check_ecfddc2ce29c573b1079b107c2434884/testbuild/test.c.1.o

['clang', '-g', '-Wall', '-Wextra', '-arch', 'armv7', '-arch', 'armv7s', '-miphoneos-version-min=6.1', '--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk', '-std=c99', '-DHAVE_ACCELERATE=1', '-DTARGET_OS_IPHONE=1', '../test.c', '-c', '-o', 'test.c.1.o']
[2/2] cprogram: build/.conf_check_ecfddc2ce29c573b1079b107c2434884/testbuild/test.c.1.o -> build/.conf_check_ecfddc2ce29c573b1079b107c2434884/testbuild/testprog

['clang', '-arch', 'armv7', '-arch', 'armv7s', '-std=c99', '--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk', 'test.c.1.o', '-o', '/Users/loreto/Projects/AUDIO/aubio/build/.conf_check_ecfddc2ce29c573b1079b107c2434884/testbuild/testprog', '-framework', 'CoreFoundation', '-framework', 'AudioToolbox', '-framework', 'Accelerate']
err: ld: building for MacOSX, but linking against dylib built for iOS Simulator file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks//CoreFoundation.framework/CoreFoundation' for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

from /Users/loreto/Projects/AUDIO/aubio: Test does not build: Traceback (most recent call last):
File "/Users/loreto/Projects/AUDIO/aubio/waflib/Tools/c_config.py", line 459, in run_c_code
bld.compile()
File "/Users/loreto/Projects/AUDIO/aubio/waflib/Build.py", line 198, in compile
raise Errors.BuildError(self.producer.error)
BuildError: Build failed
-> task in 'testprog' failed (exit status 1):
{task 4465949776: cprogram test.c.1.o -> testprog}
['clang', '-arch', 'armv7', '-arch', 'armv7s', '-std=c99', '--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk', 'test.c.1.o', '-o', '/Users/loreto/Projects/AUDIO/aubio/build/.conf_check_ecfddc2ce29c573b1079b107c2434884/testbuild/testprog', '-framework', 'CoreFoundation', '-framework', 'AudioToolbox', '-framework', 'Accelerate']

not found

from aubio.

luca-bernardi avatar luca-bernardi commented on May 16, 2024

I confirm the same step and the same output.

from aubio.

piem avatar piem commented on May 16, 2024

Hi!

please try again now :)

also, i have uploaded a universal framework for ios to test here:

http://aubio.org/beta/aubio-0.4.0~alpha+0c11dfa.ios_framework.zip

you should be able to just drag and drop it in your XCode ios project.

let me know how it goes!

thanks, piem

On 12/11/2013 16:51, Luca Bernardi wrote:

I confirm the same step and the same output.


Reply to this email directly or view it on GitHub
#3 (comment).

from aubio.

luca-bernardi avatar luca-bernardi commented on May 16, 2024

Now it works. I am able to build using waf and also use the provided .framework. Thanks for the help.

from aubio.

loretoparisi avatar loretoparisi commented on May 16, 2024

The framework is ok. @lukabernardi how did you managed to compile via the waf ?

from aubio.

luca-bernardi avatar luca-bernardi commented on May 16, 2024

@loretoparisi Yes. The only gotcha is that firstly i run

 ./waf configure --with-target-platform iOS

and the the full command for the build otherwise the script complain that isn't configured.

from aubio.

piem avatar piem commented on May 16, 2024

the following should now work:

    ./waf distclean
    ./waf configure --with-target-platform ios
    ./waf build
    ./waf install --destdir ./dist-ios

note it's ios, not iOS. you can try with iosimulator too.

cheers, paul

from aubio.

loretoparisi avatar loretoparisi commented on May 16, 2024

Great guys, it works now. Let's close and roll!

from aubio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.