Android NDK beginner's guide (2012, ratabouil s )

436 756 0
Android NDK beginner's guide (2012, ratabouil s )

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... Development Kit) ‹‹ The Android SDK (Software Development Kit) ‹‹ The Android NDK (Native Development Kit) ‹‹ An IDE (Integrated Development Environment): Eclipse Android, and more specifically Android NDK compilation system is heavily based on Linux So we also need to set up some utilities by default, and we need to install one environment that supports them: Cygwin (until NDK R 7) This topic is covered... Android SDK and NDK on Windows 1 Open your Web browser and go to http://developer .android. com/sdk This web page lists all available SDKs, one for each platform 2 Download Android SDK for Windows, packaged as an Exe installer 3 Then, go to http://developer .android. com/sdk /ndk and download the Android NDK (not SDK !) for Windows, packaged as a ZIP archive this time 4 Execute Android SDK installer Select... into its final location (for example, C: \Android\ android- ndk) Again, avoid leaving any space in the installation path (or some problems could be encountered with Make) To easily access Android utilities from the command line, let s define the environment variables: 11 Open the Environment Variables system window, as we did in the previous part Inside the System variables list, insert the ANDROID_ SDK... this case, Android SDK and AVD manager provide a Settings section where you can specify your proxy settings This is the end of the section dedicated to Mac OS X setup If you are not a Linux user, you can jump to the Setting up Eclipse development environment section Setting up Linux Although Linux is more naturally suited for Android development, as the Android toolchain is Linux-based, some setup is... paths ‹‹ -w: To convert Unix paths to Windows paths ‹‹ -p: To convert a list of paths (separated by ; on Windows and : on Unix) Still at step 17, you may have some difficulties when editing bash_profile: some weird square characters may appear and the entire text is on one very long line! This is because it is encoded using Unix encoding So use a Unix compatible file editor (such as Eclipse, PSPad,... /Developer/AndroidSDK and /Developer/AndroidNDK) 5 Let s declare these two directories as environment variables From now on, we will refer to these directories as $ANDROID_ SDK and $ANDROID_ NDK throughout this book Assuming you use the default Bash command-line shell, create or edit your profile file (be careful, this is a hidden file !) in your home directory and add the following variables: export ANDROID_ SDK=” . With Android, ones has to deal with mulple screen resoluons, various CPU and GPU speed or capabilies, memory limitaons, and so on, which are not topics specic to this Linux-based system,. buers to display meshes. Chapter 7, Playing Sound with OpenSL ES, adds a musical dimension to nave applicaons with OpenSL ES, a unique feature provided only by the Android NDK. We will also. compilaon system is heavily based on Linux. So we also need to set up some ulies by default, and we need to install one environment that supports them: Cygwin (unl NDK R 7). This topic is covered

Ngày đăng: 24/04/2014, 11:04

Từ khóa liên quan

Mục lục

  • Cover

  • Copyright

  • Credits

  • About the Author

  • About the Reviewers

  • www.PacktPub.com

  • Table of Contents

  • Preface

  • Chapter 1: Setting Up your Environment

    • Getting started with Android development

    • Setting up Windows

    • Time for action – preparing Windows for Android development

    • Installing Android development kits on Windows

    • Time for action – installing Android SDK and NDK on Windows

    • Setting up Mac OS X

    • Time for action – preparing Mac OS X for Android development

    • Installing Android development kits on Mac OS X

    • Time for action – installing Android SDK and NDK on Mac OS X

    • Setting up Linux

    • Time for action – preparing Ubuntu Linux for Android development

    • Installing Android development kits on Linux

Tài liệu cùng người dùng

Tài liệu liên quan