I tried building a demo app following Ionic's tutorials and I seem to be stuck.
ionic serve launches a browser with the new app quite nicely, but when i try on an android emulator or device, things get a bit confusing.
c:\ionic\mec>ionic run android
Running command: "C:\Program Files\nodejs\node.exe" c:\ionic\mec\hooks\after_prepare\010_add_platform_class.js c:\ionic\mec
add to body class: platform-android
ANDROID_HOME=C:\Users\Kwamena\AppData\Local\Android\sdk
JAVA_HOME=C:\Java\jdk1.8.0_121
Subproject Path: CordovaLib
NDK is missing a "platforms" directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is
currently set to D:\emmasony\data\andriod\android-ndk-r10c;.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.
properties to remove this warning.
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\ionic\mec\platforms\android\build.gradle' line: 20
* What went wrong:
A problem occurred evaluating root project 'android'.
> org/bouncycastle/jce/provider/BouncyCastleProvider
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
Total time: 4.015 secs
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\ionic\mec\platforms\android\build.gradle' line: 20
* What went wrong:
A problem occurred evaluating root project 'android'.
> org/bouncycastle/jce/provider/BouncyCastleProvider
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
build.gradle-line: 20 --> apply plugin: 'com.android.application'
Same is the issue when cordova run android is used.
Runnung with Ant:
c:\ionic\mec>ionic run android -- --ant
Running command: "C:\Program Files\nodejs\node.exe" c:\ionic\mec\hooks\after_prepare\010_add_platform_class.js c:\ionic\mec
add to body class: platform-android
ANDROID_HOME=C:\Users\Kwamena\AppData\Local\Android\sdk
JAVA_HOME=C:\Java\jdk1.8.0_121
Buildfile: c:\ionic\mec\platforms\android\build.xml
Buildfile: c:\ionic\mec\platforms\android\build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 25.2.3
[checkenv] Installed at C:\Users\Kwamena\AppData\Local\Android\sdk
-setup:
[echo] Project Name: mec774388
-check-env:
[checkenv] Android SDK Tools Revision 25.2.3
[checkenv] Installed at C:\Users\Kwamena\AppData\Local\Android\sdk
-setup:
[echo] Project Name: mec774388
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[gettype] Project Type: Application
-pre-clean:
clean:
[delete] Deleting directory c:\ionic\mec\platforms\android\bin
[delete] Deleting directory c:\ionic\mec\platforms\android\gen
[getlibpath] Library dependencies:
[getlibpath]
[getlibpath] ------------------
[getlibpath] Ordered libraries:
[getbuildtools] Using latest Build Tools: 25.0.0
[echo] Resolving Build Target for mec774388...
nodeps:
-check-env:
[checkenv] Android SDK Tools Revision 25.2.3
[checkenv] Installed at C:\Users\Kwamena\AppData\Local\Android\sdk
-setup:
[echo] Project Name: mec774388
[gettype] Project Type: Android Library
-pre-clean:
clean:
[delete] Deleting directory C:\ionic\mec\platforms\android\CordovaLib\bin
[delete] Deleting directory C:\ionic\mec\platforms\android\CordovaLib\gen
BUILD SUCCESSFUL
Total time: 2 seconds
[gettarget] Project Target: Android 7.1.1
[gettarget] API level: 25
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: c:\ionic\mec\platforms\android\bin
[mkdir] Created dir: c:\ionic\mec\platforms\android\bin\res
[mkdir] Created dir: c:\ionic\mec\platforms\android\bin\rsObj
[mkdir] Created dir: c:\ionic\mec\platforms\android\bin\rsLibs
[mkdir] Created dir: c:\ionic\mec\platforms\android\gen
[mkdir] Created dir: c:\ionic\mec\platforms\android\bin\classes
[mkdir] Created dir: c:\ionic\mec\platforms\android\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for mec774388...
[dependency] Library dependencies:
[dependency]
[dependency] ------------------
[dependency] Ordered libraries:
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'debug'...
nodeps:
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 25.2.3
[checkenv] Installed at C:\Users\Kwamena\AppData\Local\Android\sdk
-setup:
[echo] Project Name: mec774388
[gettype] Project Type: Android Library
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 25.0.0
[echo] Resolving Build Target for mec774388...
[gettarget] Project Target: Android 7.1.1
[gettarget] API level: 25
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: C:\ionic\mec\platforms\android\CordovaLib\bin
[mkdir] Created dir: C:\ionic\mec\platforms\android\CordovaLib\bin\res
[mkdir] Created dir: C:\ionic\mec\platforms\android\CordovaLib\bin\rsObj
[mkdir] Created dir: C:\ionic\mec\platforms\android\CordovaLib\bin\rsLibs
[mkdir] Created dir: C:\ionic\mec\platforms\android\CordovaLib\gen
[mkdir] Created dir: C:\ionic\mec\platforms\android\CordovaLib\bin\classes
[mkdir] Created dir: C:\ionic\mec\platforms\android\CordovaLib\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for mec774388...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
[javac] Compiling 38 source files to C:\ionic\mec\platforms\android\CordovaLib\bin\classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 3 warnings
[echo] Creating library output jar file...
[jar] Building jar: C:\ionic\mec\platforms\android\CordovaLib\bin\classes.jar
-post-compile:
-obfuscate:
-dex:
[echo] Library project: do not convert bytecode...
-crunch:
[crunch] Crunching PNG Files in source dir: C:\ionic\mec\platforms\android\CordovaLib\res
[crunch] To destination dir: C:\ionic\mec\platforms\android\CordovaLib\bin\res
[crunch] Crunched 0 PNG files to update cache
-package-resources:
[echo] Library project: do not package resources...
-package:
[echo] Library project: do not package apk...
-post-package:
-do-debug:
[echo] Library project: do not create apk...
[propertyfile] Creating new property file: C:\ionic\mec\platforms\android\CordovaLib\bin\build.prop
[propertyfile] Updating property file: C:\ionic\mec\platforms\android\CordovaLib\bin\build.prop
[propertyfile] Updating property file: C:\ionic\mec\platforms\android\CordovaLib\bin\build.prop
[propertyfile] Updating property file: C:\ionic\mec\platforms\android\CordovaLib\bin\build.prop
-post-build:
debug:
-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
[javac] Compiling 8 source files to c:\ionic\mec\platforms\android\bin\classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] Note: c:\ionic\mec\platforms\android\src\org\apache\cordova\splashscreen\SplashScreen.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 3 warnings
-post-compile:
-obfuscate:
-dex:
[dex] input: c:\ionic\mec\platforms\android\bin\classes
[dex] input: C:\ionic\mec\platforms\android\CordovaLib\bin\classes.jar
[dex] Pre-Dexing C:\ionic\mec\platforms\android\CordovaLib\bin\classes.jar -> classes-a4da51b1799d4fae35ce5cc3e150107e.jar
[dex] Converting compiled files and external libraries into c:\ionic\mec\platforms\android\bin\classes.dex...
[dx] Merged dex #1 (33 defs/28.5KiB)
[dx] Merged dex #2 (87 defs/110.0KiB)
[dx] Result is 120 defs/164.8KiB. Took 0.3s
-crunch:
[crunch] Crunching PNG Files in source dir: c:\ionic\mec\platforms\android\res
[crunch] To destination dir: c:\ionic\mec\platforms\android\bin\res
[crunch] Processing image to cache: c:\ionic\mec\platforms\android\res\drawable-land-hdpi\screen.png => c:\ionic\mec\platforms\android\bin\res\drawable-land
-hdpi\screen.png
[crunch] (processed image to cache entry c:\ionic\mec\platforms\android\bin\res\drawable-land-hdpi\screen.png: 97% size of source)
[crunch] Processing image to cache: c:\ionic\mec\platforms\android\res\drawable-land-ldpi\screen.png => c:\ionic\mec\platforms\android\bin\res\drawable-land
-ldpi\screen.png
[crunch] (processed image to cache entry c:\ionic\mec\platforms\android\bin\res\drawable-land-ldpi\screen.png: 96% size of source)
[crunch] Processing image to cache: c:\ionic\mec\platforms\android\res\drawable-land-mdpi\screen.png => c:\ionic\mec\platforms\android\bin\res\drawable-land
-mdpi\screen.png
[crunch] (processed image to cache entry c:\ionic\mec\platforms\android\bin\res\drawable-land-mdpi\screen.png: 97% size of source)
[crunch] Processing image to cache: c:\ionic\mec\platforms\android\res\drawable-land-xhdpi\screen.png => c:\ionic\mec\platforms\android\bin\res\drawable-lan
d-xhdpi\screen.png
[crunch] (processed image to cache entry c:\ionic\mec\platforms\android\bin\res\drawable-land-xhdpi\screen.png: 99% size of source)
[crunch] Processing image to cache: c:\ionic\mec\platforms\android\res\drawable-port-hdpi\screen.png => c:\ionic\mec\platforms\android\bin\res\drawable-port
-hdpi\screen.png
[crunch] (processed image to cache entry c:\ionic\mec\platforms\android\bin\res\drawable-port-hdpi\screen.png: 97% size of source)
[crunch] Processing image to cache: c:\ionic\mec\platforms\android\res\drawable-port-ldpi\screen.png => c:\ionic\mec\platforms\android\bin\res\drawable-port
-ldpi\screen.png
[crunch] (processed image to cache entry c:\ionic\mec\platforms\android\bin\res\drawable-port-ldpi\screen.png: 97% size of source)
[crunch] Processing image to cache: c:\ionic\mec\platforms\android\res\drawable-port-mdpi\screen.png => c:\ionic\mec\platforms\android\bin\res\drawable-port
-mdpi\screen.png
[crunch] (processed image to cache entry c:\ionic\mec\platforms\android\bin\res\drawable-port-mdpi\screen.png: 99% size of source)
[crunch] Processing image to cache: c:\ionic\mec\platforms\android\res\drawable-port-xhdpi\screen.png => c:\ionic\mec\platforms\android\bin\res\drawable-por
t-xhdpi\screen.png
[crunch] (processed image to cache entry c:\ionic\mec\platforms\android\bin\res\drawable-port-xhdpi\screen.png: 99% size of source)
[crunch] Processing image to cache: c:\ionic\mec\platforms\android\res\mipmap-hdpi\icon.png => c:\ionic\mec\platforms\android\bin\res\mipmap-hdpi\icon.png
[crunch] (processed image to cache entry c:\ionic\mec\platforms\android\bin\res\mipmap-hdpi\icon.png: 67% size of source)
[crunch] Processing image to cache: c:\ionic\mec\platforms\android\res\mipmap-ldpi\icon.png => c:\ionic\mec\platforms\android\bin\res\mipmap-ldpi\icon.png
[crunch] (processed image to cache entry c:\ionic\mec\platforms\android\bin\res\mipmap-ldpi\icon.png: 0% size of source)
[crunch] Processing image to cache: c:\ionic\mec\platforms\android\res\mipmap-mdpi\icon.png => c:\ionic\mec\platforms\android\bin\res\mipmap-mdpi\icon.png
[crunch] (processed image to cache entry c:\ionic\mec\platforms\android\bin\res\mipmap-mdpi\icon.png: 0% size of source)
[crunch] Processing image to cache: c:\ionic\mec\platforms\android\res\mipmap-xhdpi\icon.png => c:\ionic\mec\platforms\android\bin\res\mipmap-xhdpi\icon.png
[crunch] (processed image to cache entry c:\ionic\mec\platforms\android\bin\res\mipmap-xhdpi\icon.png: 53% size of source)
[crunch] Crunched 12 PNG files to update cache
-package-resources:
[aapt] Creating full resource package...
-package:
[apkbuilder] Current build type is different than previous build: forced apkbuilder run.
[apkbuilder] Creating mec774388-debug-unaligned.apk and signing it with a debug key...
-post-package:
-do-debug:
[zipalign] Running zip align on final apk...
[echo] Debug Package: c:\ionic\mec\platforms\android\bin\mec774388-debug.apk
[propertyfile] Creating new property file: c:\ionic\mec\platforms\android\bin\build.prop
[propertyfile] Updating property file: c:\ionic\mec\platforms\android\bin\build.prop
[propertyfile] Updating property file: c:\ionic\mec\platforms\android\bin\build.prop
[propertyfile] Updating property file: c:\ionic\mec\platforms\android\bin\build.prop
-post-build:
debug:
BUILD SUCCESSFUL
Total time: 1 minute 37 seconds
Built the following apk(s):
c:/ionic/mec/platforms/android/bin/mec774388-debug.apk
ANDROID_HOME=C:\Users\Kwamena\AppData\Local\Android\sdk
JAVA_HOME=C:\Java\jdk1.8.0_121
No target specified, deploying to device 'FA35VW901817'.
Skipping build...
Built the following apk(s):
c:/ionic/mec/platforms/android/bin/mec774388-debug.apk
Using apk: c:/ionic/mec/platforms/android/bin/mec774388-debug.apk
Package name: com.ionicframework.mec774388
LAUNCH SUCCESS
System Info
c:\ionic\mec>ionic info
Your system information:
ordova CLI: 6.5.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.1.7
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 8.1
Node Version: v5.0.0
Xcode version: Not installed
Also,
c:\ionic\mec>gradle -v
------------------------------------------------------------
Gradle 3.3
------------------------------------------------------------
Build time: 2017-01-03 15:31:04 UTC
Revision: 075893a3d0798c0c1f322899b41ceca82e4e134b
Groovy: 2.4.7
Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM: 1.8.0_121 (Oracle Corporation 25.121-b13)
OS: Windows 8.1 6.3 amd64
Running cordova requirements
c:\ionic\mec>cordova requirements
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-8,android-10,android-11,android-14,android-15,
android-16,android-17,android-18,android-19,android-20,android-21,android-22,and
roid-MNC,android-23,android-24,android-25,Google Inc.:Glass Development Kit Prev
iew:19,Google Inc.:Google APIs:19,Google Inc.:Google APIs:21,Google Inc.:Google
APIs:22,Google Inc.:Google APIs:23
Gradle: installed
I figure I'll soon use plugins that rely exclusively on Gradle. Any help would be much appreciated.
Some other issues led me to reinstall Windows, Android Studio and redownload the Android SDK. Everything went smoothly from there.
Related
I am trying to build a kivy app that has these requirements in buildozer.spec:
requirements = python3,kivy,pillow,plyer,scipy,numpy
all Android (SDK/NDK, API) settings are defaulted (commented)
One run w/o specifying NDK gives:
[INFO]: <- directory context /home/joachim/PycharmProjects/CardReader/.buildozer/android/platform/python-for-android
[WARNING]: install_libs called with no libraries to install!
[INFO]: Building lapack for arm64-v8a
[INFO]: -> directory context /home/joachim/PycharmProjects/CardReader/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lapack/arm64-v8a__ndk_target_21/lapack/build
[ERROR]: Build failed: Please set the environment variable 'LEGACY_NDK' to point to a NDK location with gcc/gfortran support (supported NDK version: 'r21e')
When I clean and then set NDK to 21e and run again I get the other error:
[INFO]: Will compile for the following archs: arm64-v8a, armeabi-v7a
[INFO]: Found Android API target in $ANDROIDAPI: 27
[INFO]: Available Android APIs are (27)
[INFO]: Requested API target 27 is available, continuing.
[INFO]: Found NDK dir in $ANDROIDNDK: /home/joachim/.buildozer/android/platform/android-ndk-r21e
[INFO]: Found NDK version 21e
[ERROR]: Build failed: The minimum supported NDK version is 23. You can download it from https://developer.android.com/ndk/downloads/.
[INFO]: Instructions: Please, go to the android NDK page (https://developer.android.com/ndk/downloads/) and download a supported version.
*** The currently recommended NDK version is 23b ***
How can this mismatch be solved? Looking for supported NDK with gcc/gfortran support.
Or, what needs to be set for LEGACY_NDK ?
So I've just ran into that problem and found a solution.
The issue was that to build scipy python for android needs an android ndk that was built with fortran support. These appear to be only supported with NDK version 21 and lower and the NDK needs to be specifically built with fortran support. Luckily someone hosts prebuilt versions for that purpose. https://github.com/mzakharo/android-gfortran/releases (Linux only, if you are building the APK from windows you need to build your own NDK toolchain as described in the readme of that project)
Then you have to do the following:
First you need to download the legacy NDK via buildozer
For this modifiy in buildozer.spec:
#android.ndk = 23b --> android.ndk = 21e
Then Execute
buildozer android debug
When it fails (this is ok since we only ran buildozer to download the r21 NDK):
tar -jxvf gcc-arm-linux-x86_64.tar.bz2
mv arm-linux-androideabi-4.9 ~/.buildozer/android/platform/android-ndk-r21e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64
Note: change ~/.buildozer to the path where buildozer stores your ndks
Then revert the changes to buildozer.spec:
android.ndk = 21e --> #android.ndk = 23b
Now you can build and deploy with
export LEGACY_NDK=~/.buildozer/android/platform/android-ndk-r21e
buildozer android debug deploy run
Note: change ~/.buildozer as described above
Trying to run Android sample 'Events and Actions' downloaded from https://allseenalliance.org/framework/download
Downloaded 'Core SDK - debug' which has sample eventaction and .apk in bin folder.
Installed it, but doesn't work. Is anyone able to run it?
Edit: Exception in the Logcat:
08-29 09:06:16.978 29314 29328 E AndroidRuntime: Process: org.allseen.sample.eventaction, PID: 29314
08-29 09:06:16.978 29314 29328 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__exidx_end" referenced by "/data/app/org.allseen.sample.eventaction-1/lib/arm/libMyAllJoynCode.so"...
I have tried building the library MyAllJoynCode.so using Android ndk, but I couldn't able to build it. I get below exception
root#jay-dev:~/alljoyn/core/alljoyn/alljoyn_core/samples/eventaction/Android# ndk-build
[arm64-v8a] Compile++ : MyAllJoynCode <= AndroidJNIBridge.cc
In file included from /root/alljoyn/core/alljoyn/build/linux/x86_64/debug/dist/cpp/inc/qcc/atomic.h:30:0,
from /root/alljoyn/core/alljoyn/build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:38,
from /root/alljoyn/core/alljoyn/build/linux/x86_64/debug/dist/cpp/inc/alljoyn/Message.h:30,
from /root/alljoyn/core/alljoyn/build/linux/x86_64/debug/dist/cpp/inc/alljoyn/AuthListener.h:32,
from /root/alljoyn/core/alljoyn/build/linux/x86_64/debug/dist/cpp/inc/alljoyn/BusAttachment.h:34,
from jni/event/AndroidJNIBridge.cc:19:
/root/alljoyn/core/alljoyn/build/linux/x86_64/debug/dist/cpp/inc/qcc/posix/atomic.h:30:25: fatal error: sys/atomics.h: No such file or directory
#include
^
compilation terminated.
/root/android-ndk-r12b/android-ndk-r12b/build/core/build-binary.mk:474: recipe for target 'obj/local/arm64-v8a/objs/MyAllJoynCode/event/AndroidJNIBridge.o' failed
make: *** [obj/local/arm64-v8a/objs/MyAllJoynCode/event/AndroidJNIBridge.o] Error 1
It looks like you were using Android NDK level 20 (or later).
The NDK's android-20 platform directory no longer contains the atomics.h file (they removed it), which caused the AllJoyn build failure you saw:
dist/cpp/inc/qcc/posix/atomic.h:30:25: fatal error: sys/atomics.h: No such file or directory
Prior to AllJoyn release 16.10, a workaround is simply to copying the NDK's android-19 atomics.h file to its android-20 (or later) platform directory.
However, the AllJoyn-related issue has been fixed as of September 2016 (i.e. no longer dependent on atomics.h), and the fix is included in AllJoyn release 16.10.
More information is provided in JIRA https://jira.allseenalliance.org/browse/ASACORE-3216
I am compiling the doxygen on window from the sources and I have followed this link -> http://www.doxygen.nl/manual/install.html#install_src_windows.
I have done the necessary requirements for installation but I get this error in the root folder when ever I run this command :
cmake -G "Visual Studio 12 2013"
Is it looking for the compiler?But basicclr.exe is already there
Contents of CmakeError.log :
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler:
Build flags:
Id flags:
The output was:
1
Microsoft (R) Build Engine version 4.0.30319.17929
[Microsoft .NET Framework, version 4.0.30319.18063]
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 7/5/2016 9:53:56 AM.
Project "C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets).
C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdC\CompilerIdC.vcxproj(18,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
Done Building Project "C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdC\CompilerIdC.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdC\CompilerIdC.vcxproj" (default target) (1) ->
C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdC\CompilerIdC.vcxproj(18,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.06
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler:
Build flags:
Id flags:
The output was:
1
Microsoft (R) Build Engine version 4.0.30319.17929
[Microsoft .NET Framework, version 4.0.30319.18063]
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 7/5/2016 9:53:56 AM.
Project "C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets).
C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdCXX\CompilerIdCXX.vcxproj(18,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
Done Building Project "C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdCXX\CompilerIdCXX.vcxproj" (default target) (1) ->
C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdCXX\CompilerIdCXX.vcxproj(18,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.05
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler:
Build flags:
Id flags:
The output was:
1
Microsoft (R) Build Engine version 4.0.30319.17929
[Microsoft .NET Framework, version 4.0.30319.18063]
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 7/5/2016 9:54:53 AM.
Project "C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets).
C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdC\CompilerIdC.vcxproj(18,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
Done Building Project "C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdC\CompilerIdC.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdC\CompilerIdC.vcxproj" (default target) (1) ->
C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdC\CompilerIdC.vcxproj(18,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.04
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler:
Build flags:
Id flags:
The output was:
1
Microsoft (R) Build Engine version 4.0.30319.17929
[Microsoft .NET Framework, version 4.0.30319.18063]
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 7/5/2016 9:54:54 AM.
Project "C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets).
C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdCXX\CompilerIdCXX.vcxproj(18,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
Done Building Project "C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdCXX\CompilerIdCXX.vcxproj" (default target) (1) ->
C:\tools\doxygen-1.8.11\CMakeFiles\3.6.0-rc4\CompilerIdCXX\CompilerIdCXX.vcxproj(18,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.04
And of CMakeOutput.log is :
The system is: Windows - 6.1.7601 - AMD64
Have you used the "Visual Studio command prompt" from the Tools menu inside Visual Studio? A plain command window does not work.
I have updated Android Studio, and when opening a project done in the 1.5 version this is the error I am getting:
Error:Failed to open zip file. Gradle's dependency cache may be
corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires
network)
The following is my dependencies:
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.parse.bolts:bolts-android:1.+'
compile 'com.parse:parse-android:1.+'
compile 'com.android.support:appcompat-v7:23.2.0'
compile 'com.android.support:recyclerview-v7:23.2.0'
compile 'com.facebook.android:facebook-android-sdk:4.0.0'
compile 'com.android.support:design:23.2.0'
compile 'com.android.support:support-v4:23.2.0'
}
I faced the same issue when I updated my android studio to 2.2.3 from 2.1.
After a while of struggling, went project->right click -> open module settings->project
1) Gradle : 2.14.1
2) Android plugin version : 2.2.3
3) Android plugin repository : jcenter
4) Default library repository : jcenter
I am trying to install cairo-0.12.4 Haskell package on Windows 7. I first downloaded and unpacked Gtk+2 and added its bin subdir to PATH. I then tried to run cabal with extra libs and includes:
cabal --extra-lib-dirs="d:\Program Files (x86)\Gtk+\lib"
--extra-include-dirs="d:\Program Files (x86)\Gtk+\include" install
But I got the following error
Reading available packages...
Choosing modular solver.
Resolving dependencies...
Ready to install cairo-0.12.4
Waiting for install task to finish...
Extracting
C:\Users\abailly\AppData\Roaming\cabal\packages\hackage.haskell.org\cairo\0.12.4\cairo-0.12.4.tar.gz
to C:\Users\abailly\AppData\Local\Temp\cairo-0.12.4-2368...
Updating cairo.cabal with the latest revision from the index.
creating
C:\Users\abailly\AppData\Local\Temp\cairo-0.12.4-2368\cairo-0.12.4\dist\setup
creating
C:\Users\abailly\AppData\Local\Temp\cairo-0.12.4-2368\cairo-0.12.4\dist
creating
C:\Users\abailly\AppData\Local\Temp\cairo-0.12.4-2368\cairo-0.12.4\dist\setup
d:\Program Files (x86)\Haskell Platform\2012.2.0.0\bin\ghc.exe --make C:\Users\abailly\AppData\Local\Temp\cairo-0.12.4-2368\cairo-
0.12.4\Setup.hs -o C:\Users\abailly\AppData\Local\Temp\cairo-0.12.4-2368\cairo-0.12.4\dist\setup\setup.exe -odir C:\Users\abailly\
AppData\Local\Temp\cairo-0.12.4-2368\cairo-0.12.4\dist\setup -hidir C:\Users\abailly\AppData\Local\Temp\cairo-0.12.4-2368\cairo-0.
12.4\dist\setup -i -iC:\Users\abailly\AppData\Local\Temp\cairo-0.12.4-2368\cairo-0.12.4 -package Cabal-1.14.0
[1 of 2] Compiling SetupWrapper ( C:\Users\abailly\AppData\Local\Temp\cairo-0.12.4-2368\cairo-0.12.4\SetupWrapper.hs, C:\Users
\abailly\AppData\Local\Temp\cairo-0.12.4-2368\cairo-0.12.4\dist\setup\SetupWrapper.o )
[2 of 2] Compiling Main ( C:\Users\abailly\AppData\Local\Temp\cairo-0.12.4-2368\cairo-0.12.4\Setup.hs, C:\Users\abaill
y\AppData\Local\Temp\cairo-0.12.4-2368\cairo-0.12.4\dist\setup\Main.o )
Linking C:\Users\abailly\AppData\Local\Temp\cairo-0.12.4-2368\cairo-0.12.4\dist\setup\setup.exe ...
C:\Users\abailly\AppData\Local\Temp\cairo-0.12.4-2368\cairo-0.12.4\dist\setup\setup.exe
configure --verbose=2 --ghc --prefix=C:\Users\abailly\AppData\Roaming\cabal
--user --flags=cairo_svg --flags=cairo_ps --flags=cairo_pdf
--extra-include-dirs=D:\Program Files (x86)\Gtk+\include
--extra-lib-dirs=D:\Program Files (x86)\Gtk+\lib --constraint=mtl ==2.1.2
--constraint=bytestring ==0.9.2.1 --constraint=base ==4.5.0.0
--constraint=array ==0.4.0.0 --disable-tests --disable-benchmarks
[1 of 2] Compiling Gtk2HsSetup ( Gtk2HsSetup.hs, dist\setup-wrapper\Gtk2HsSetup.o )
[2 of 2] Compiling Main ( SetupMain.hs, dist\setup-wrapper\Main.o )
Linking dist/setup-wrapper\setup.exe ...
Configuring cairo-0.12.4...
Flags chosen: cairo_svg=True, cairo_ps=True, cairo_pdf=True
Dependency array ==0.4.0.0: using array-0.4.0.0
Dependency base ==4.5.0.0: using base-4.5.0.0
Dependency bytestring ==0.9.2.1: using bytestring-0.9.2.1
Dependency mtl ==2.1.2: using mtl-2.1.2
Dependency cairo-pdf -any: using version 1.10.2
Dependency cairo-ps -any: using version 1.10.2
Dependency cairo-svg -any: using version 1.10.2
Dependency cairo >=1.2.0: using version 1.10.2
Using Cabal-1.14.0 compiled by ghc-7.4
Using compiler: ghc-7.4.1
Using install prefix: C:\Users\abailly\AppData\Roaming\cabal
Binaries installed in: C:\Users\abailly\AppData\Roaming\cabal\bin
Libraries installed in:
C:\Users\abailly\AppData\Roaming\cabal\cairo-0.12.4\ghc-7.4.1
Private binaries installed in:
C:\Users\abailly\AppData\Roaming\cabal\cairo-0.12.4
Data files installed in: C:\Users\abailly\AppData\Roaming\cabal\cairo-0.12.4
Documentation installed in:
C:\Users\abailly\AppData\Roaming\cabal\doc\cairo-0.12.4
Using alex version 3.0.1 found on system at: d:\Program Files (x86)\Haskell
Platform\2012.2.0.0\lib\extralibs\bin\alex.exe
Using ar found on system at: d:\Program Files (x86)\Haskell
Platform\2012.2.0.0\mingw\bin\ar.exe
No c2hs found
Using cpphs version 1.16 found on system at:
c:\Users\abailly\AppData\Roaming\cabal\bin\cpphs.exe
No ffihugs found
Using gcc version 4.5.2 found on system at: d:\Program Files (x86)\Haskell
Platform\2012.2.0.0\mingw\bin\gcc.exe
Using ghc version 7.4.1 found on system at: d:\Program Files (x86)\Haskell
Platform\2012.2.0.0\bin\ghc.exe
Using ghc-pkg version 7.4.1 found on system at: d:\Program Files (x86)\Haskell
Platform\2012.2.0.0\bin\ghc-pkg.exe
No greencard found
Using gtk2hsC2hs version 0.13.6 found on system at:
c:\Users\abailly\AppData\Roaming\cabal\bin\gtk2hsC2hs.exe
Using gtk2hsHookGenerator found on system at:
c:\Users\abailly\AppData\Roaming\cabal\bin\gtk2hsHookGenerator.exe
Using gtk2hsTypeGen found on system at:
c:\Users\abailly\AppData\Roaming\cabal\bin\gtk2hsTypeGen.exe
Using haddock version 2.10.0 found on system at: d:\Program Files
(x86)\Haskell Platform\2012.2.0.0\bin\haddock.exe
Using happy version 1.18.9 found on system at: d:\Program Files (x86)\Haskell
Platform\2012.2.0.0\lib\extralibs\bin\happy.exe
No hmake found
Using hpc version 0.6 found on system at: d:\Program Files (x86)\Haskell
Platform\2012.2.0.0\bin\hpc.exe
Using hsc2hs version 0.67 found on system at: d:\Program Files (x86)\Haskell
Platform\2012.2.0.0\bin\hsc2hs.exe
Using hscolour version 1.20 found on system at:
c:\Users\abailly\AppData\Roaming\cabal\bin\HsColour.exe
No hugs found
No jhc found
Using ld found on system at: d:\Program Files (x86)\Haskell
Platform\2012.2.0.0\mingw\bin\ld.exe
No lhc found
No lhc-pkg found
No nhc98 found
Using pkg-config version 0.26 found on system at: d:\Program Files
(x86)\Gtk+\bin\pkg-config.exe
Using ranlib found on system at: d:\Program Files (x86)\Haskell
Platform\2012.2.0.0\mingw\bin\ranlib.exe
Using strip found on system at: d:\Program Files (x86)\Haskell
Platform\2012.2.0.0\mingw\bin\strip.exe
Using tar found on system at: D:\Program Files (x86)\Git\bin\tar.exe
No uhc found
d:\Program Files (x86)\Gtk+\bin\pkg-config.exe --modversion cairo-pdf
d:\Program Files (x86)\Gtk+\bin\pkg-config.exe --modversion cairo-ps
d:\Program Files (x86)\Gtk+\bin\pkg-config.exe --modversion cairo-svg
d:\Program Files (x86)\Gtk+\bin\pkg-config.exe --modversion cairo
setup.exe: Missing dependencies on foreign libraries:
* Missing C libraries: z, cairo
This problem can usually be solved by installing the system packages that
provide these libraries (you may need the "-dev" versions). If the libraries
are already installed but in a non-standard location then you can use the
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
Failed to install cairo-0.12.4
cabal.exe: Error: some packages failed to install:
Chart-0.16 depends on cairo-0.12.4 which failed to install.
cairo-0.12.4 failed during the configure step. The exception was:
ExitFailure 1
splot-0.3.8 depends on cairo-0.12.4 which failed to install.
When I try to install cairo directly, I got the following:
d:\Program Files (x86)\Gtk+\bin\pkg-config.exe --modversion cairo-pdf
d:\Program Files (x86)\Gtk+\bin\pkg-config.exe --modversion cairo-ps
d:\Program Files (x86)\Gtk+\bin\pkg-config.exe --modversion cairo-svg
d:\Program Files (x86)\Gtk+\bin\pkg-config.exe --modversion cairo
setup.exe: Missing dependencies on foreign libraries:
* Missing C libraries: z, cairo
This problem can usually be solved by installing the system packages that
provide these libraries (you may need the "-dev" versions). If the libraries
are already installed but in a non-standard location then you can use the
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
Failed to install cairo-0.12.4
World file is already up to date.
cabal.exe: Error: some packages failed to install:
cairo-0.12.4 failed during the configure step. The exception was:
ExitFailure 1
I am clueless...
If you read the error message:
* Missing C libraries: z, cairo
It is saying you need to install the libraries (and header files) for the libraries libz and cairo. On *nix systems this usually means just installing the -dev versions of these packages with your package manager. On windows I assume you'd download the source version of the library and install.
I got this problem. In my case it was a mismatch between a 64-bit ghc and a 32-bit cairo dll
I moved the Gtk+ library to D:\soft\gtk+\ and everything runs fine. The path to Gtk+ contain space which does not seem to be correctly interpreted by cabal/ghc, although I double-quoted it:
--extra-lib-dirs="d:\Program Files (x86)\Gtk+\lib"
Solution: Put gtk+ in a space-free location.
Update: Now, it fails to install Chart-0.16 with an even more cryptic error:
Loading package Win32-2.2.2.0 ... linking ... done.
Loading package array-0.4.0.0 ... linking ... done.
Loading package deepseq-1.3.0.0 ... linking ... done.
Loading package old-locale-1.0.0.4 ... linking ... done.
Loading package time-1.4 ... linking ... done.
Loading package containers-0.4.2.1 ... linking ... done.
Loading package transformers-0.3.0.0 ... linking ... done.
Loading package data-accessor-0.2.2.3 ... linking ... done.
Loading package pretty-1.1.1.0 ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package utility-ht-0.0.8 ... linking ... done.
Loading package data-accessor-template-0.2.1.10 ... linking ... done.
Loading package colour-2.3.3 ... linking ... done.
Loading package mtl-2.1.2 ... linking ... done.
*** gcc:
"D:\Program Files (x86)\Haskell Platform\2012.2.0.0\lib/../mingw/bin/gcc.exe" "-fno-stack-protector" "-Wl,--hash-size=31" "-Wl,--r
educe-memory-overheads" "-LC:\Users\abailly\AppData\Roaming\cabal\cairo-0.12.4\ghc-7.4.1" "-Ld:/soft/Gtk+/lib" "--print-file-name"
"libz.dll"
*** gcc:
"D:\Program Files (x86)\Haskell Platform\2012.2.0.0\lib/../mingw/bin/gcc.exe" "-fno-stack-protector" "-Wl,--hash-size=31" "-Wl,--r
educe-memory-overheads" "-LC:\Users\abailly\AppData\Roaming\cabal\cairo-0.12.4\ghc-7.4.1" "-Ld:/soft/Gtk+/lib" "--print-file-name"
"libcairo-2.dll"
Loading package cairo-0.12.4 ... d:\Program Files (x86)\Haskell Platform\2012.2.0.0\bin\ghc.exe returned
ExitFailure 1
Failed to install Chart-0.16
cabal.exe: Error: some packages failed to install:
Chart-0.16 failed during the building phase. The exception was:
ExitFailure 1
splot-0.3.8 depends on Chart-0.16 which failed to install.
I suspect this is due to a linking error as the compilation runs fine when I execute the following command which is what cabal outputs in debug mode:
"D:\\Program Files (x86)\\Haskell Platform\\2012.2.0.0\\bin\\ghc.exe"
"--make" "-v" "-fbuilding-cabal-package" "-O" "-odir" "dist\\build"
"-hidir" "dist\\build" "-stubdir" "dist\\build" "-i" "-idist\\build"
"-i." "-idist\\build\\autogen" "-Idist\\build\\autogen"
"-Idist\\build" "-optP-include"
"-optPdist\\build\\autogen\\cabal_macros.h" "-package-name"
"Chart-0.16" "-hide-all-packages" "-package-conf"
"dist\\package.conf.inplace" "-package-id"
"array-0.4.0.0-3cf1bc3f5cd0078adea24752c18081b9" "-package-id"
"base-4.5.0.0-597748f6f53a7442bcae283373264bb6" "-package-id"
"cairo-0.12.4-f04021ea456c901e8d05395a31f7a861" "-package-id"
"colour-2.3.3-4eaa610bb6d825a7334e1b3de448f6c0" "-package-id"
"data-accessor-0.2.2.3-5477c48e3478339fdff299c536a033c6" "-package-id"
"data-accessor-template-0.2.1.10-28ee96821fd908880f3a49417c4da548"
"-package-id" "mtl-2.1.2-7ec8bbada2af74b49c6e4aeea2889fdc"
"-package-id" "old-locale-1.0.0.4-29bd50ed2bb4a20928338f52e4ab1b71"
"-package-id" "time-1.4-01d7bf22d87e70510fe9ee4c4434b3ab"
"-XHaskell98" "Graphics.Rendering.Chart"
"Graphics.Rendering.Chart.Types" "Graphics.Rendering.Chart.Renderable"
"Graphics.Rendering.Chart.Axis"
"Graphics.Rendering.Chart.Axis.Floating"
"Graphics.Rendering.Chart.Axis.Indexed"
"Graphics.Rendering.Chart.Axis.Int"
"Graphics.Rendering.Chart.Axis.LocalTime"
"Graphics.Rendering.Chart.Axis.Types"
"Graphics.Rendering.Chart.Axis.Unit" "Graphics.Rendering.Chart.Layout"
"Graphics.Rendering.Chart.Legend" "Graphics.Rendering.Chart.Simple"
"Graphics.Rendering.Chart.Simple.Internal"
"Graphics.Rendering.Chart.Grid" "Graphics.Rendering.Chart.Plot"
"Graphics.Rendering.Chart.Plot.Types"
"Graphics.Rendering.Chart.Plot.Annotation"
"Graphics.Rendering.Chart.Plot.AreaSpots"
"Graphics.Rendering.Chart.Plot.Bars"
"Graphics.Rendering.Chart.Plot.Candle"
"Graphics.Rendering.Chart.Plot.ErrBars"
"Graphics.Rendering.Chart.Plot.FillBetween"
"Graphics.Rendering.Chart.Plot.Hidden"
"Graphics.Rendering.Chart.Plot.Lines"
"Graphics.Rendering.Chart.Plot.Pie"
"Graphics.Rendering.Chart.Plot.Points"
"Graphics.Rendering.Chart.SparkLine" "-hide-package" "monads-tf"
I am even more puzzled...
Update (2): When I run cabal install > out 2>&1 it succeeds!