Missing sys/cdefs.h on Windows-Build

Hi,

i have an App based on Fusetools and have some Problems after updating to the newest Version:

C:/Users/******/AppData/Local/Fusetools/Fuse/Android/AndroidNDK/sources/cxx-stl/stlport/stlport/stl/config/_android.h:6:23: fatal error: sys/cdefs.h: No such file or directory

Can any one give me some hints, what i am doing wrong?
Why did it work some versions before?

Thank you

Hi, can you provide the whole log by running uno build -t=android -v inside your project folder in CMD.

Emil Sandstø wrote:

Hi, can you provide the whole log by running uno build -t=android -v inside your project folder in CMD.

Hi,

here are the outputs:

λ uno build -t=android -v
Uno 0.35.8 (build 3719) Windows 10 x64 ae4bc08

Configuring
Project file: vServerControl.unoproj
Search paths: C:\Program Files (x86)\Fuse\Packages, C:\ProgramData\Uno\Packages
Packages:     UnoCore (0.35.8), Android (0.35.1), ObjC (0.35.1), Experimental.iOS (0.35.1), Fuse.Designer (0.35.12), Uno.Collections (0.35.0), Uno.Geometry (0.35.0), Uno.Net.Sockets (0.35.8), Uno.Threading (0.35.8), FuseCore (0.35.12), Fuse.Motion (0.35.12), Fuse.Animations (0.35.12), Fuse.Drawing (0.35.12), Uno.Net.Http (0.35.8), Experimental.Http (0.35.12), Experimental.TextureLoader (0.35.0), Fuse.Drawing.Planar (0.35.12), Fuse.Scripting (0.35.12), Fuse.Triggers (0.35.12), Fuse.Elements (0.35.12), Fuse.Controls.Native (0.35.12), Fuse.Drawing.Batching (0.35.12), Fuse.Drawing.Meshes (0.35.12), Fuse.Drawing.Primitives (0.35.12), Fuse.Drawing.Polygons (0.35.12), Fuse.Drawing.Paths (0.35.12), Fuse.Entities (0.35.12), Fuse.Gestures (0.35.12), Fuse.Navigation (0.35.12), Uno.Data.Json (0.35.0), Fuse.Scripting.Duktape (0.35.12), Fuse.Scripting.JavaScriptCore (0.35.12), Fuse.Scripting.Jurassic (0.35.12), Fuse.Scripting.V8 (0.35.12), Uno.Testing (0.35.8), Fuse.Reactive (0.35.12), Fuse.Controls (0.35.12), Fuse.Controls.Panels (0.35.12), Fuse.Effects (0.35.12), Fuse.Controls.Primitives (0.35.12), Fuse.Controls.ScrollView (0.35.12), Fuse.Android (0.35.12), Fuse.Controls.Navigation (0.35.12), Fuse.Controls.Video (0.35.12), Fuse.iOS (0.35.12), Fuse.Controls.WebView (0.35.12), Fuse.Desktop (0.35.12), Fuse.FileSystem (0.35.12), Fuse.Physics (0.35.12), Fuse.Storage (0.35.12), Fuse.UserEvents (0.35.12), Uno.Data.Xml (0.35.0), Fuse (0.35.12), Fuse.Platform (0.35.12), Polyfills.Window (0.35.12), FuseJS (0.35.12), Fuse.BasicTheme (0.35.12), vServerControl (2.0.4)
Output dir:   build\Android\Debug
(3,573.99 ms)

Compiling syntax tree (11,903.92 ms)
Generating code and data
* 328 namespaces stripped.
* 5285 types stripped.
* 48147 fields stripped.
* 103787 functions stripped.
* 525 classes sealed.
* 1219 functions sealed.
* 72 functions stripped from vtable.
(unknown): W0000: 'SplitAndJoin()' is deprecated -- replace with 'Join()'
(23,648.76 ms)

Building Android app
1/2: libvServerControl.so
_root.AndroidListener.cpp
_root.BigCog.cpp
_root.CogWheelReload.cpp
_root.FaIconButton.cpp
In file included from include/Android.android.content.DialogInterfaceDLROnClickListener.h:5:0,
                 from include/_root.AndroidListener.h:5,
                 from jni/_root.AndroidListener.cpp:4:
include/Android.Base.Wrappers.IJWrapper.h:5:17: fatal error: jni.h: No such file or directory
 #include <jni.h>
                 ^
compilation terminated.
In file included from C:/Users/******/AppData/Local/Fusetools/Fuse/Android/AndroidNDK/sources/cxx-stl/stlport/stlport/stl/config/_system.h:64:0,
                 from C:/Users/******/AppData/Local/Fusetools/Fuse/Android/AndroidNDK/sources/cxx-stl/stlport/stlport/stl/config/features.h:94,
                 from C:/Users/******/AppData/Local/Fusetools/Fuse/Android/AndroidNDK/sources/cxx-stl/stlport/stlport/stl/_cprolog.h:18,
                 from C:/Users/******/AppData/Local/Fusetools/Fuse/Android/AndroidNDK/sources/cxx-stl/stlport/stlport/stl/_prolog.h:7,
                 from C:/Users/******/AppData/Local/Fusetools/Fuse/Android/AndroidNDK/sources/cxx-stl/stlport/stlport/cstdarg:21,
                 from include/Uno/ObjectModel.h:5,
                 from include/Uno.h:3,
                 from include/Uno.Object.h:5,
                 from include/Fuse.Animations.IResize.h:5,
                 from include/_root.BigCog.h:5,
                 from jni/_root.BigCog.cpp:4:
C:/Users/******/AppData/Local/Fusetools/Fuse/Android/AndroidNDK/sources/cxx-stl/stlport/stlport/stl/config/_android.h:6:23: fatal error: sys/cdefs.h: No such file or directory
 #include <sys/cdefs.h>
                       ^
compilation terminated.
make: *** [.uno/_root.AndroidListener.cpp.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from C:/Users/******/AppData/Local/Fusetools/Fuse/Android/AndroidNDK/sources/cxx-stl/stlport/stlport/stl/config/_system.h:64:0,
                 from C:/Users/******/AppData/Local/Fusetools/Fuse/Android/AndroidNDK/sources/cxx-stl/stlport/stlport/stl/config/features.h:94,
                 from C:/Users/******/AppData/Local/Fusetools/Fuse/Android/AndroidNDK/sources/cxx-stl/stlport/stlport/stl/_cprolog.h:18,
                 from C:/Users/******/AppData/Local/Fusetools/Fuse/Android/AndroidNDK/sources/cxx-stl/stlport/stlport/stl/_prolog.h:7,
                 from C:/Users/******/AppData/Local/Fusetools/Fuse/Android/AndroidNDK/sources/cxx-stl/stlport/stlport/cstdarg:21,
                 from include/Uno/ObjectModel.h:5,
                 from include/Uno.h:3,
                 from include/Uno.Object.h:5,
                 from include/Fuse.Animations.IResize.h:5,
                 from include/_root.BigCog.h:5,
                 from jni/_root.CogWheelReload.cpp:4:
C:/Users/******/AppData/Local/Fusetools/Fuse/Android/AndroidNDK/sources/cxx-stl/stlport/stlport/stl/config/_android.h:6:23: fatal error: sys/cdefs.h: No such file or directory
 #include <sys/cdefs.h>
                       ^
compilation terminated.
make: *** [.uno/_root.BigCog.cpp.o] Error 1
make: *** [.uno/_root.CogWheelReload.cpp.o] Error 1
In file included from C:/Users/******/AppData/Local/Fusetools/Fuse/Android/AndroidNDK/sources/cxx-stl/stlport/stlport/stl/config/_system.h:64:0,
                 from C:/Users/******/AppData/Local/Fusetools/Fuse/Android/AndroidNDK/sources/cxx-stl/stlport/stlport/stl/config/features.h:94,
                 from C:/Users/******/AppData/Local/Fusetools/Fuse/Android/AndroidNDK/sources/cxx-stl/stlport/stlport/stl/_cprolog.h:18,
                 from C:/Users/******/AppData/Local/Fusetools/Fuse/Android/AndroidNDK/sources/cxx-stl/stlport/stlport/stl/_prolog.h:7,
                 from C:/Users/******/AppData/Local/Fusetools/Fuse/Android/AndroidNDK/sources/cxx-stl/stlport/stlport/cstdarg:21,
                 from include/Uno/ObjectModel.h:5,
                 from include/Uno.h:3,
                 from include/Uno.Object.h:5,
                 from include/Fuse.Animations.IResize.h:5,
                 from include/_root.FaIconButton.h:5,
                 from jni/_root.FaIconButton.cpp:4:
C:/Users/******/AppData/Local/Fusetools/Fuse/Android/AndroidNDK/sources/cxx-stl/stlport/stlport/stl/config/_android.h:6:23: fatal error: sys/cdefs.h: No such file or directory
 #include <sys/cdefs.h>
                       ^
compilation terminated.
make: *** [.uno/_root.FaIconButton.cpp.o] Error 1
(unknown): E0200: Android build failed
(1,379.67 ms)

Build completed in 40.59 seconds
    1 warning
    1 error

Could it be, thats the Class “AndroidListener” is the Error-Case?

Here the Code:

using Uno;
using Android.android.content;
public extern(Android) class AndroidListener : Android.java.lang.Object, Android.android.content.DialogInterfaceDLROnClickListener
{
	string _string;
	Action<string> _action;
	public AndroidListener (string s, Action<string> a) {
		_string = s;
		_action = a;
	}
    public void onClick(DialogInterface arg0, int arg1) 
    {
    	_action(_string);
    }
}

Hi, I’m sorry that we missed this thread. Is this still an issue in Fuse 0.28?