Fuse preview error

I am using Fuse 1.0.0, which i just installed today on a Windows 10. Whenever I try to preview a project a get the following error…

Fuse 1.0.0 (build 13426)
Configuring (0.6 s)
Compiling syntax tree (2.0 s)
Generating code and data (5.2 s)
Building Android app
2/2: dynamic-tab-bar.apk

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:externalNativeBuildDebug'.
> Build command failed.
Error while executing 'C:\Users\sg\AppData\Local\Android\sdk\cmake\3.6.3155560\bin\cmake.exe' with arguments {--build C:\Users\sg\Desktop\Fuse\dynamic-tab-bar\build\Android\Preview\app\.externalNativeBuild\cmake\debug\armeabi-v7a --target dynamictabbar}
[1/1] Re-running CMake...
-- CMAKE_C_FLAGS:         -isystem C:/Users/sg/AppData/Local/Android/sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=16 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security
-- CMAKE_CXX_FLAGS:         -isystem C:/Users/sg/AppData/Local/Android/sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=16 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/sg/Desktop/Fuse/dynamic-tab-bar/build/Android/Preview/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/_root.dynamictabbar_F-c936eebb.cpp.o
[2/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/_root.MainView.cpp.o
[3/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/BootstrapperImpl_Android.cpp.o
[4/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/_root.ColorPalette.cpp.o
[5/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/_root.dynamictabbar_F-42fe069c.cpp.o
[6/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/_root.dynamictabbar_F-9e997f2.cpp.o
[7/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/_root.dynamictabbar_bundle.cpp.o
[8/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/_root.g.cpp.o
[9/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/_root.dynamictabbar_F-10a52eac.cpp.o
[10/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/_root.dynamictabbar_F-15e34268.cpp.o
[11/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/_root.MainView.Template.cpp.o
[12/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/_root.dynamictabbar_F-fd296813.cpp.o
[13/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/_root.dynamictabbar_F-c2dd622.cpp.o
[14/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/Uno.Testing.g.cpp.o
[15/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/Source/pugixml.cpp.o
[16/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/hb-ft-cached.cc.o
[17/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/_root.dynamictabbar_F-8da1d66b.cpp.o
[18/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/_root.dynamictabbar_F-b1f4bf63.cpp.o
[19/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/Uno/Memory.cpp.o
[20/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/Uno/ObjectModel.cpp.o
[21/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/Uno/_invoke.cpp.o
[22/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/Uno/Support.cpp.o
[23/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/Uno/_mainMobile.cpp.o
[24/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/Uno/Graphics/GLHelper.cpp.o
[25/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/Implementation/Cpp/posix_thread.cpp.o
[26/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/Implementation/Cpp/posix_reset_event.cpp.o
[27/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/Uno/Base64.cpp.o
[28/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/Uno/JNIHelper.cpp.o
[29/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/Uno/EntryPoints.cpp.o
[30/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/Uno/Reflection.cpp.o
[31/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/Implementation/Cpp/posix_mutex.cpp.o
[32/153] Building CXX object CMakeFiles/dynamictabbar.dir/app/src/main/jni/Uno.Content.Fonts.g.cpp.o
FAILED: C:\Users\sg\AppData\Local\Android\sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe  --target=armv7-none-linux-androideabi --gcc-toolchain=C:/Users/sg/AppData/Local/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 --sysroot=C:/Users/sg/AppData/Local/Android/sdk/ndk-bundle/sysroot  -DANDROID_NDK=C:/Users/sg/AppData/Local/Android/sdk/ndk-bundle -DANDROID_PLATFORM=9 -DANDROID_STL=stlport_shared -DANDROID_TOOLCHAIN=clang -Ddynamictabbar_EXPORTS -I../../../../src/main/include -IC:/Users/sg/AppData/Local/Fusetools/Packages/UnoCore/1.0.11/prebuilt/Android/include -IC:/Users/sg/AppData/Local/Android/sdk/ndk-bundle/sources/android/support/include -IC:/Users/sg/AppData/Local/Fusetools/Packages/Fuse.Scripting.V8/1.0.2 -IC:/Users/sg/AppData/Local/Fusetools/Packages/Fuse.Text/1.0.2/harfbuzz/include -isystem C:/Users/sg/AppData/Local/Android/sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem C:/Users/sg/AppData/Local/Android/sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -isystem C:/Users/sg/AppData/Local/Android/sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include/backward -isystem C:/Users/sg/AppData/Local/Android/sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=16 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security   -std=c++11 -Wno-unused-value -Wno-dangling-else  -Wno-invalid-offsetof -fexceptions -frtti -O0 -fno-limit-debug-info  -fPIC -MD -MT CMakeFiles/dynamictabbar.dir/app/src/main/jni/Implementation/Cpp/posix_mutex.cpp.o -MF CMakeFiles\dynamictabbar.dir\app\src\main\jni\Implementation\Cpp\posix_mutex.cpp.o.d -o CMakeFiles/dynamictabbar.dir/app/src/main/jni/Implementation/Cpp/posix_mutex.cpp.o -c C:\Users\sg\Desktop\Fuse\dynamic-tab-bar\build\Android\Preview\app\src\main\jni\Implementation\Cpp\posix_mutex.cpp
C:\Users\sg\Desktop\Fuse\dynamic-tab-bar\build\Android\Preview\app\src\main\jni\Implementation\Cpp\posix_mutex.cpp:23:13: error: use of undeclared identifier 'pthread_mutex_lock_timeout_np'
       return pthread_mutex_lock_timeout_np(mutexHandle, millisecondsTimeout) == 0;
              ^
  1 error generated.
  C:\Users\sg\Desktop\Fuse\dynamic-tab-bar\build\Android\Preview\app\src\main\jni\Uno\Graphics\GLHelper.cpp:243:21: warning: self-comparison always evaluates to true [-Wtautological-compare]
              samples <= samples && r <= colorBits.R && g <= colorBits.G && b <= colorBits.B && a <= colorBits.A)
                      ^
  1 warning generated.
  ninja: build stopped: subcommand failed.


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
## 2/2: dynamic-tab-bar.apk
Incremental java compilation is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2340Library UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72340Library UP-TO-DATE
:app:prepareComAndroidSupportDesign2340Library UP-TO-DATE
:app:prepareComAndroidSupportRecyclerviewV72340Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42340Library UP-TO-DATE
:app:prepareComAndroidSupportSupportVectorDrawable2340Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:app:compileDebugJavaWithJavac UP-TO-DATE
:app:generateJsonModelDebug UP-TO-DATE
:app:externalNativeBuildDebug
  building C:\Users\sg\Desktop\Fuse\dynamic-tab-bar\build\Android\Preview\app\.externalNativeBuild\cmake\debug\obj\armeabi-v7a\libdynamictabbar.so
:app:externalNativeBuildDebug FAILED

BUILD FAILED

Total time: 19.248 secs
(unknown): E0200: Android build failed
?: Error E0200: Android build failed
(20.3 s)

Build completed in 28.17 seconds
    1 error
fuse: Failed to compile project 

Hi. I installed Fuse yesterday on Windows 7 (x64), Lenovo G570 . After the installation appears a Windows error (see image). I can’t open Fuse editor. I can create a proyect from cmd but when I run fuse preview appears the same error above and these lines in cmd (see image).

.
What can I do? Thanks

sghaleb: Thanks for your report. This seems to be a problem caused by an incompatibility between Fuse and the latest Android NDK. We have an internal issue on this and are working on a fix.

Diego: Did you get the same error as the original poster? Your problem looks like something else to me, and if that’s the case please create a new thread instead of hijacking this seemingly unrelated one.

sghaleb, Diego: please see if this workaround solves it for you.

I’m sorry. It was not my intention to hijack this thread. Uldis: Olle Fredriksson is right, the problem is different from the original reported by sghaleb.