Comments (4)
After a restart, somehow cmake started to work, but still getting the following build error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':flutter_sequencer:externalNativeBuildDebug'.
> Build command failed.
Error while executing process C:\Users\revan\AppData\Local\Android\sdk\cmake\3.10.2.4988404\bin\ninja.exe with arguments {-C C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_sequencer-0.1.3\android\.cxx\cmake\debug\armeabi-v7a flutter_sequencer}
ninja: Entering directory `C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_sequencer-0.1.3\android\.cxx\cmake\debug\armeabi-v7a'
[1/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/common/FixedBlockAdapter.cpp.o
[2/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/common/FixedBlockReader.cpp.o
[3/238] Building CXX object CMakeFiles/flutter_sequencer.dir/a8043170060eb8b09430793f9a18d1f7/flutter_sequencer-0.1.3/ios/Classes/Scheduler/SchedulerEvent.cpp.o
[4/238] Building CXX object CMakeFiles/flutter_sequencer.dir/a8043170060eb8b09430793f9a18d1f7/flutter_sequencer-0.1.3/ios/Classes/CallbackManager/CallbackManager.cpp.o
[5/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/aaudio/AAudioLoader.cpp.o
[6/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/common/FixedBlockWriter.cpp.o
[7/238] Building CXX object CMakeFiles/flutter_sequencer.dir/a8043170060eb8b09430793f9a18d1f7/flutter_sequencer-0.1.3/ios/Classes/Scheduler/BaseScheduler.cpp.o
[8/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/common/AudioSourceCaller.cpp.o
[9/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/common/AudioStream.cpp.o
[10/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/common/LatencyTuner.cpp.o
[11/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/common/FilterAudioStream.cpp.o
[12/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/aaudio/AudioStreamAAudio.cpp.o
[13/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/common/SourceFloatCaller.cpp.o
[14/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/common/DataConversionFlowGraph.cpp.o
[15/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/fifo/FifoControllerIndirect.cpp.o
[16/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/common/AudioStreamBuilder.cpp.o
[17/238] Building CXX object CMakeFiles/flutter_sequencer.dir/src/main/cpp/AndroidEngine/AndroidEngine.cpp.o
In file included from ../../../../src/main/cpp/AndroidEngine/AndroidEngine.cpp:1:
In file included from ../../../../src/main/cpp/AndroidEngine/AndroidEngine.h:7:
../../../../src/main/cpp/AndroidEngine/../Engine/Mixer.h:144:5: warning: non-void function does not return a value in all control paths [-Wreturn-type]
}
^
1 warning generated.
[18/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/common/SourceI16Caller.cpp.o
[19/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/fifo/FifoBuffer.cpp.o
[20/238] Building CXX object CMakeFiles/flutter_sequencer.dir/src/main/cpp/Plugin.cpp.o
FAILED: CMakeFiles/flutter_sequencer.dir/src/main/cpp/Plugin.cpp.o
C:\Users\revan\AppData\Local\Android\Sdk\ndk\22.0.7026061\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi16 --gcc-toolchain=C:/Users/revan/AppData/Local/Android/Sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/revan/AppData/Local/Android/Sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/windows-x86_64/sysroot -DOBOE_ENABLE_LOGGING=1 -Dflutter_sequencer_EXPORTS -I../../../.././third_party/oboe/include -I../../../../../ios/Classes/CallbackManager -I../../../../../ios/Classes/Scheduler -I../../../.././third_party/TinySoundFont -I../../../.././third_party/AudioKit/AudioKit/Core/AudioKitCore/Common -I../../../.././third_party/AudioKit/AudioKit/Core/AudioKitCore/Sampler -I../../../.././third_party/libnyquist/include/libnyquist -I../../../../third_party/oboe/include -I../../../../third_party/libnyquist/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -march=armv7-a -mthumb -Wformat -Werror=format-security -std=c++17 -O0 -fno-limit-debug-info -fPIC -std=gnu++1z -MD -MT CMakeFiles/flutter_sequencer.dir/src/main/cpp/Plugin.cpp.o -MF CMakeFiles\flutter_sequencer.dir\src\main\cpp\Plugin.cpp.o.d -o CMakeFiles/flutter_sequencer.dir/src/main/cpp/Plugin.cpp.o -c ../../../../src/main/cpp/Plugin.cpp
In file included from ../../../../src/main/cpp/Plugin.cpp:2:
In file included from ../../../../src/main/cpp/AndroidEngine/AndroidEngine.h:7:
../../../../src/main/cpp/AndroidEngine/../Engine/Mixer.h:144:5: warning: non-void function does not return a value in all control paths [-Wreturn-type]
}
^
In file included from ../../../../src/main/cpp/Plugin.cpp:3:
../../../../src/main/cpp/Engine/SamplerInstrument.h:4:10: fatal error: 'AKCoreSampler.hpp' file not found
#include "AKCoreSampler.hpp"
^~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
[21/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/fifo/FifoController.cpp.o
[22/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/fifo/FifoControllerBase.cpp.o
[23/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/common/QuirksManager.cpp.o
[24/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/flowgraph/FlowGraphNode.cpp.o
[25/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/flowgraph/MonoToMultiConverter.cpp.o
[26/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/flowgraph/ClipToRange.cpp.o
[27/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/flowgraph/RampLinear.cpp.o
[28/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/flowgraph/SourceFloat.cpp.o
[29/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/flowgraph/SinkFloat.cpp.o
[30/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/flowgraph/ManyToMultiConverter.cpp.o
[31/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/flowgraph/SampleRateConverter.cpp.o
[32/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/common/Utilities.cpp.o
[33/238] Building CXX object build/oboe/CMakeFiles/oboe.dir/src/flowgraph/SinkI16.cpp.o
ninja: build stopped: subcommand failed.
from flutter_sequencer.
Hi, thanks for opening an issue. I haven't seen these errors before. It looks like you're running on Windows, and I haven't tested the build on Windows yet, so that might be why.
Anyway, with the error about "AKCoreSampler.hpp", I'm guessing that the third party dependencies aren't getting cloned correctly. They should be cloned by the cloneThirdPartyRepos task in android/build.gradle. Can you check if the android/third_party directory has anything in it?
from flutter_sequencer.
Hi, yup seems to have the full set of things in there...
from flutter_sequencer.
I fixed this issue by installing CMake using the Android command line tools and linking my $PATH to the CMake bin
that got installed by the sdkmanager
.
from flutter_sequencer.
Related Issues (20)
- Flutter Sequencer Example crashes when headphones are used
- Error when building in vscode HOT 3
- Add reverb and pitch effects to playing note
- How to switch to new audio output HOT 1
- FAILURE: Build failed with an exception.
- There is no sound in release mode but it works perfectly in debug mode [tested on iOS simulator and 2 iPhones] HOT 7
- No sound after plugging in headphones HOT 2
- Works in release build, not works in Archived, validated ipa build HOT 1
- Crash when calling destroy() on Sequence
- Getting this log: "throwing -10878" HOT 1
- [iOS] Using the just_audio package to play a specific mp3 is breaking the flutter_sequencer but it doensn't throw any errors.
- On iOS it only works with silent mode off HOT 2
- Development Team Error HOT 2
- FFI Support HOT 1
- MacOS Support HOT 2
- [iOS] Error EXC_BREAKPOINTEXC_BREAKPOINT HOT 2
- Android build file on windows. HOT 1
- C++ versions less than C++14 are not supported HOT 4
- Adding Track throwing MissingPluginException with isAsset: true and Instruments return id=-1 if isAsset==true
- [iOS] App crashes on startup for iOS simulator on M1 macbook
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 flutter_sequencer.