Comments (16)
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.
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.
Maybe is
err: ld: building for MacOSX, but linking against dylib built for iOS Simulator file ?
from aubio.
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.
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.
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.
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.
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.
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.
I confirm the same step and the same output.
from aubio.
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.
Now it works. I am able to build using waf and also use the provided .framework. Thanks for the help.
from aubio.
The framework is ok. @lukabernardi how did you managed to compile via the waf ?
from aubio.
@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.
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.
Great guys, it works now. Let's close and roll!
from aubio.
Related Issues (20)
- fft
- How to find musical key of a given sample?
- would you accept a patch to build wheels? HOT 1
- Shout out to these developers
- Can't install aubio on Windows 11 with Python 3 pip HOT 3
- Any chance to update https://aubio.org/ofxAubio/ to newer commits?
- Pydub compatibility?
- `aubio.org` site is down HOT 1
- How to load audio from a file-like object?
- iOS on iPad; Xcode 14.0.1: The code signature version is no longer supported HOT 1
- Please make a release HOT 3
- beat detection
- Bar detection?
- Using command line options in Python
- Failed install with pip on Windows 10 HOT 2
- a js version. good to be mentioned in readme
- examples
- source_avcodec: error when sending packet HOT 2
- link.exe failed with exit code 1158 HOT 2
- Can not install aubio - Failed building wheel for aubio HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aubio.