Setting up r-base-core (3.3.2-1trusty0) ...
Preserving user changes to /usr/share/bash-completion/completions/R (renamed from /etc/bash_completion.d/R)...
mv: cannot stat ‘/usr/share/bash-completion/completions/R’: No such file or directory
dpkg: error processing package r-base-core (--configure):
subprocess installed post-installation script returned error exit status 1
The post-installation script (/var/lib/dpkg/info/r-base-core.postinst) didn't check if /usr/share/bash-completion/completions/R file exist before trying to move it.
If you haven't yet installed the Android Development Environment, you can follow this link which contains everything you need to get started quickly. Watch the tutorial video and follow the instructions underneath to install Eclipse, the Integrated Development Environment (IDE) for Android development and create a new project.
Once you have installed everything and have created the project, use the following procedure to import JavaCV libraries to the Android project:
Download the JavaCv libraries: a. From this link download "javacv-0.7-bin.zip" and extract the files: - javacpp.jar - javacv.jar - javacv-android-arm.jar b. From this link download "javacv-0.7-cppjars.zip" and extract the files: - opencv-2.4.8-android-arm.jar - ffmpeg-2.1.1-android-arm.jar
Go to File > New > Folder, select your project as parent folder, type "libs/armeabi" as Folder name, and click Finish.
Copy javacpp.jar and javacv.jar into the "libs" folder.
Extract all the *.so files from javacv-android-arm.jar, opencv-2.4.8-android-arm.jar, and ffmpeg-2.1.1-android-arm.jar directly into the "libs/armeabi" folder, without creating any of the subdirectories found in the JAR files. (The easiest way to extract the .so files from the .jar is by using 7-ZIP software which can be downloaded here).
Navigate to Project > Properties > Java Build Path > Libraries and click "Add JARs...".
Select both javacpp.jar and javacv.jar from the "libs" folder.
In this chapter, we are going to walk through the process of downloading Ionic and installing all necessary dependencies for development.
Platform notes
First, we need to start with a note about minimum requirements for building your app with the current release of Ionic. Ionic targets iPhone and Android devices (currently). We support iOS 7+, and Android 4.1+. However, since there are a lot of different Android devices, it’s possible certain ones might not work. As always, we are looking for help testing and improving our device compatibility and would love help from the community on our GitHub project.
You can develop Ionic apps on any operating system you prefer. In fact, Ionic has been developed at various times on Mac OS X, Linux, and Windows. However, right now you’ll need to use the command line in order to follow this guide and you must have OS X in order to develop and deploy iPhone apps, so OS X is recommended if possible.
If you are on Windows, make sure to download and install Git for Windows and optionally Console2. You will be executing any commands in this guide in the Git Bash or Console2 windows.
First, we will go and install the most recent version of Apache Cordova, which will take our app and bundle it into a native wrapper to turn it into a traditional native app.
sudo apt-get install npm
To install Cordova, make sure you have Node.js installed, then run
$ sudo npm install -g cordova
Drop sudo from the above command if running on Windows. Depending on the platforms you wish to develop for, you’ll need to install platform-specific tools. Follow the Cordova platform guides for Android and iOS to make sure you have everything needed for development on those platforms. Luckily, you’ll only need to do this once.
Install Ionic
Ionic comes with a convenient command line utility to start, build, and package Ionic apps.
To install it, simply run:
$ sudo npm install -g ionic
Create the project
Now, we need to create a new Cordova project somewhere on the computer for the code for our app:
$ ionic start todo blank
That will create a folder called todo in the directory the command was run. Next, we will go into that directory and list the contents. Here is what the outer structure of your Ionic project will look like:
$ cd todo && ls
├── bower.json // bower dependencies
├── config.xml // cordova configuration
├── gulpfile.js // gulp tasks
├── hooks // custom cordova hooks to execute on specific commands
├── ionic.project // ionic configuration
├── package.json // node dependencies
├── platforms // iOS/Android specific builds will reside here
├── plugins // where your cordova/ionic plugins will be installed
├── scss // scss code, which will output to www/css/
└── www // application - JS code and libs, CSS, images, etc.
If you are planning on using any version control system, you can go ahead and set it up in this new folder.
Configure Platforms
Now, we need to tell ionic that we want to enable the iOS and Android platforms. Note: unless you are on MacOS, leave out the iOS platform:
Install a font is not difficult! After you have downloaded the font, extract it in a folder (the fonts are generally in a zip archive) then open a terminal in the folder where is your font then in this folder, type in the terminal (of course you must be root for this):
# mkdir -v /usr/share/fonts/myfonts (of course you can give another name than "myfonts") # mv nameofyourfont.ttf /usr/share/fonts/myfonts/ # cd /usr/share/fonts/myfonts/ # mkfontdir # mkfontscale # fc-cache -f -v
And hop, your fonts are incorporated to the system. After the last command, verify if you see the line:
K.I.S.S. ===> "Keep It Simple, Stupid" "Simplicity is the ultimate sophistication." (Leonardo da Vinci) "Everything should be made as simple as possible, but no simpler." (Albert Einstein)