এই পৃষ্ঠাটি NDK-এর সমস্ত প্রকাশিত স্থিতিশীল সংস্করণে পরিবর্তনের তথ্য প্রদান করে। NDK এর সর্বশেষ স্থিতিশীল সংস্করণ বা বর্তমানে উপলব্ধ যেকোন বিটা সংস্করণ ডাউনলোড করতে, NDK ডাউনলোড পৃষ্ঠাটি দেখুন।
আরও সম্পূর্ণ তথ্যের জন্য android-ndk-announce Google Group দেখুন এবং প্রকাশের ঘোষণা পেতে সদস্যতা নিন।
Android NDK r29 (অক্টোবর 2025)
চেঞ্জলগ- ডাউনলোড
- এই রিলিজের জন্য ডাউনলোডগুলি এখানে উপলব্ধ।
Android NDK r28 (ফেব্রুয়ারি 2025)
চেঞ্জলগ- ডাউনলোড
- এই রিলিজের জন্য ডাউনলোডগুলি এখানে উপলব্ধ।
Android NDK r27 LTS (জুলাই 2024)
চেঞ্জলগ- ডাউনলোড
- এই রিলিজের জন্য ডাউনলোডগুলি এখানে উপলব্ধ।
Android NDK r26 LTS (সেপ্টেম্বর 2023)
চেঞ্জলগ- ডাউনলোড
- এই রিলিজের জন্য ডাউনলোডগুলি এখানে উপলব্ধ।
- ঘোষণা
- KitKat (APIs 19 এবং 20) আর সমর্থিত নয়।
Android NDK r25 LTS (জুলাই 2022)
চেঞ্জলগ- ডাউনলোড
- এই রিলিজের জন্য ডাউনলোডগুলি এখানে উপলব্ধ।
- ঘোষণা
- Android 13 APIs অন্তর্ভুক্ত।
- LLVM 14 ডেভেলপমেন্টের উপর ভিত্তি করে clang-r450784d-এ LLVM আপডেট করা হয়েছে।
Android NDK r24 (মার্চ 2022)
চেঞ্জলগ- ডাউনলোড
- এই রিলিজের জন্য ডাউনলোডগুলি এখানে উপলব্ধ।
- ঘোষণা
- GNU অ্যাসেম্বলার (GAS), সরানো হয়েছে। আপনি যদি
-fno-integrated-asআপনাকে সেই পতাকাটি সরাতে হবে। এলএলভিএম-এর সাথে অ্যাসেম্বলিকে সামঞ্জস্যপূর্ণ করার পরামর্শের জন্য ক্ল্যাং মাইগ্রেশন নোটগুলি দেখুন। - GDB সরানো হয়েছে. পরিবর্তে LLDB ব্যবহার করুন। মনে রাখবেন যে ndk-gdb ডিফল্টরূপে LLDB ব্যবহার করে এবং Android Studio শুধুমাত্র LLDB সমর্থন করেছে।
- Jelly Bean (APIs 16, 17, এবং 18) আর সমর্থিত নয়। NDK দ্বারা সমর্থিত ন্যূনতম OS হল KitKat (API স্তর 19)।
- নন-নিয়ন ডিভাইস আর সমর্থিত নয়। খুব কম সংখ্যক খুব পুরানো ডিভাইস নিওনকে সমর্থন করে না তাই বেশিরভাগ অ্যাপগুলি পারফরম্যান্সের উন্নতির পাশাপাশি লক্ষ্য করবে না।
- RenderScript বিল্ড সমর্থন সরানো হয়েছে. Android 12-এ RenderScript বন্ধ করা হয়েছে। আপনি যদি RenderScript থেকে দূরে আপনার অ্যাপ স্থানান্তর করা শেষ না করে থাকেন, তাহলে NDK r23 LTS ব্যবহার করা যেতে পারে।
- GNU অ্যাসেম্বলার (GAS), সরানো হয়েছে। আপনি যদি
Android NDK r23 LTS (আগস্ট 2021)
চেঞ্জলগ- ডাউনলোড
- এই রিলিজের জন্য ডাউনলোডগুলি এখানে উপলব্ধ।
- ঘোষণা
- GNU binutils, GNU অ্যাসেম্বলার (GAS) বাদ দিয়ে, সরানো হয়েছে। পরবর্তী রিলিজে GAS সরানো হবে। আপনি যদি
-fno-integrated-asদিয়ে নির্মাণ করছেন, তাহলে বাগগুলি ফাইল করুন যদি কিছু আপনাকে সেই পতাকাটি সরাতে বাধা দেয়। - GDB-এর জন্য সমর্থন শেষ হয়েছে। GDB পরবর্তী রিলিজ থেকে সরানো হবে। পরিবর্তে LLDB ব্যবহার করুন। মনে রাখবেন যে
ndk-gdbডিফল্টরূপে LLDB ব্যবহার করে। - NDK r23 হল শেষ রিলিজ যা নন-নিয়নকে সমর্থন করবে। NDK r24 দিয়ে শুরু করে, sysroot-এ armeabi-v7a লাইব্রেরিগুলি নিয়ন দিয়ে তৈরি করা হবে। খুব কম সংখ্যক খুব পুরানো ডিভাইস নিওনকে সমর্থন করে না তাই বেশিরভাগ অ্যাপগুলি পারফরম্যান্সের উন্নতির পাশাপাশি লক্ষ্য করবে না।
- Jelly Bean (APIs 16, 17, এবং 18) পরবর্তী NDK রিলিজে সমর্থিত হবে না। r24-এর জন্য NDK দ্বারা সমর্থিত ন্যূনতম OS হবে KitKat (API স্তর 19)।
- GNU binutils, GNU অ্যাসেম্বলার (GAS) বাদ দিয়ে, সরানো হয়েছে। পরবর্তী রিলিজে GAS সরানো হবে। আপনি যদি
Android NDK r22b (মার্চ 2021)
চেঞ্জলগ- ডাউনলোড
- এই রিলিজের জন্য ডাউনলোডগুলি এখানে উপলব্ধ।
- ঘোষণা
- GNU binutils বাতিল করা হয়েছে এবং একটি আসন্ন NDK রিলিজে সরিয়ে দেওয়া হবে। উল্লেখ্য যে GNU অ্যাসেম্বলার (
as) এর একটি অংশ । আপনি যদি-fno-integrated-asদিয়ে নির্মাণ করছেন, তাহলে বাগগুলি ফাইল করুন যদি কিছু আপনাকে সেই পতাকাটি সরাতে বাধা দেয়। আপনি যদিasব্যবহার করছেন তবে পরিবর্তেclangব্যবহার করুন। - এলএলডি এখন ডিফল্ট লিঙ্কার। ndk-build এবং আমাদের CMake টুলচেন ফাইলও llvm-ar এবং llvm-strip ব্যবহার করে স্থানান্তরিত হয়েছে।
- ndk-gdb এখন ডিবাগার হিসাবে lldb ব্যবহার করে। gdb বাতিল করা হয়েছে এবং ভবিষ্যতে রিলিজে সরিয়ে দেওয়া হবে। gdb-এ ফিরে যেতে, --no-lldb বিকল্প ব্যবহার করুন। কিন্তু আপনি কেন lldb ব্যবহার করতে পারছেন না তা ব্যাখ্যা করে একটি বাগ ফাইল করুন ।
-
std::filesystemসমর্থন এখন অন্তর্ভুক্ত করা হয়েছে। দুটি পরিচিত সমস্যা আছে:- ইস্যু 1258 :
std::filesystem::perm_options::nofollowপুরানো ডিভাইসে সম্মানিত নাও হতে পারে। - ইস্যু 1260 :
std::filesystem::canonicalভুলভাবে সফল হবে যখন পুরানো ডিভাইসে একটি অস্তিত্বহীন পথ পাস করা হবে।
- ইস্যু 1258 :
- GNU binutils বাতিল করা হয়েছে এবং একটি আসন্ন NDK রিলিজে সরিয়ে দেওয়া হবে। উল্লেখ্য যে GNU অ্যাসেম্বলার (
Android NDK r21e LTS (জানুয়ারি 2021)
চেঞ্জলগ- ডাউনলোড
- এই রিলিজের জন্য ডাউনলোডগুলি এখানে উপলব্ধ।
- ঘোষণা
32-বিট উইন্ডোজ আর সমর্থিত নয়। এটি ব্যবহারকারীদের বিশাল সংখ্যাগরিষ্ঠকে প্রভাবিত করে না। আপনি যদি এখনও উইন্ডোজের 32-বিট সংস্করণ থেকে NDK অ্যাপ তৈরি করতে চান, NDK r20 ব্যবহার করা চালিয়ে যান।
অ্যান্ড্রয়েড বিকাশকারী সরঞ্জামগুলির মধ্যে এই পরিবর্তনের বিষয়ে আরও তথ্যের জন্য, বিষয়ের ব্লগ পোস্টটি দেখুন৷
- এলএলডি এখন পরীক্ষার জন্য উপলব্ধ। AOSP ডিফল্টরূপে LLD ব্যবহারে স্যুইচ করেছে এবং NDK অনুসরণ করবে (টাইমলাইন অজানা)। লিঙ্ক করার সময়
-fuse-ld=lldপাস করে আপনার অ্যাপে LLD পরীক্ষা করুন। মনে রাখবেন যে ইস্যু 843 llvm-strip এবং llvm-objcopy-এর বিপরীতে binutils স্ট্রিপ এবং objcopy সহ LLD ব্যবহার করে বিল্ডগুলিকে প্রভাবিত করবে৷ - লিগ্যাসি টুলচেন ইন্সটল পাথগুলি আসন্ন রিলিজগুলিতে সরানো হবে৷ NDK r19 থেকে এই পথগুলি অপ্রচলিত এবং NDK-এ যথেষ্ট পরিমাণ জায়গা নেয়। যে পথগুলি সরানো হচ্ছে তা হল:
- প্ল্যাটফর্ম
- সূত্র/cxx-stl
- sysroot
- টুলচেইনস (টুলচেইন/এলভিএম বাদে)
make_standalone_toolchain.pyব্যবহারকারী নয় (যদিও r19 থেকে সেই স্ক্রিপ্টটি অপ্রয়োজনীয় ছিল)। লিগ্যাসি টুলচেন লেআউট থেকে দূরে স্থানান্তরিত করার তথ্যের জন্য, আপনি যে NDK সংস্করণটি ব্যবহার করছেন তার জন্য বিল্ড সিস্টেম রক্ষণাবেক্ষণকারী নির্দেশিকা দেখুন। - আগস্ট 2019 থেকে একটি APK আপলোড করার সময় প্লে স্টোরে 64-বিট সমর্থনের প্রয়োজন হবে। সময় এলে বিস্ময় এড়াতে এখনই পোর্ট করা শুরু করুন। আরও তথ্যের জন্য, এই ব্লগ পোস্টটি দেখুন।
- একটি macOS অ্যাপ বান্ডিল যা স্বাক্ষরিত এবং নোটারাইজ করা হয়েছে এখন আমাদের উইকি এবং আমাদের ওয়েবসাইট থেকে ডাউনলোডের জন্য উপলব্ধ। মনে রাখবেন যে শুধুমাত্র বান্ডিলগুলি RPATH ব্যবহার করতে পারে এবং নোটারাইজেশন পাস করতে পারে, তাই macOS-এর জন্য প্রচলিত NDK প্যাকেজ নোটারাইজ করা যাবে না । SDK ঐতিহ্যগত প্যাকেজ ব্যবহার করা চালিয়ে যাবে কারণ অ্যাপ বান্ডেলের লেআউট পরিবর্তনের প্রয়োজন যা এটিকে Android স্টুডিওর সাথে বেমানান করে তুলবে। SDK ম্যানেজারের মাধ্যমে ডাউনলোড করা হলে NDK কোয়ারেন্টাইন করা হয় না, তাই বর্তমানে গেটকিপার দ্বারা অনুমোদিত। SDK ম্যানেজার বর্তমানে macOS-এর জন্য NDK পাওয়ার সবচেয়ে নির্ভরযোগ্য উপায়।
Android NDK r20b (জুন 2019)
চেঞ্জলগ- ডাউনলোড
- এই রিলিজের জন্য ডাউনলোডগুলি এখানে উপলব্ধ।
- ঘোষণা
- এলএলডি এখন পরীক্ষার জন্য উপলব্ধ। AOSP ডিফল্টরূপে LLD ব্যবহারে স্যুইচ করার প্রক্রিয়ায় রয়েছে এবং NDK অনুসরণ করবে (টাইমলাইন অজানা)। লিঙ্ক করার সময়
-fuse-ld=lldপাস করে আপনার অ্যাপে LLD পরীক্ষা করুন। - আগস্ট 2019 থেকে একটি APK আপলোড করার সময় প্লে স্টোরে 64-বিট সমর্থনের প্রয়োজন হবে। সময় এলে বিস্ময় এড়াতে এখনই পোর্ট করা শুরু করুন। আরও তথ্যের জন্য, এই ব্লগ পোস্টটি দেখুন।
- Android Q API যোগ করা হয়েছে।
- এলএলডি এখন পরীক্ষার জন্য উপলব্ধ। AOSP ডিফল্টরূপে LLD ব্যবহারে স্যুইচ করার প্রক্রিয়ায় রয়েছে এবং NDK অনুসরণ করবে (টাইমলাইন অজানা)। লিঙ্ক করার সময়
Android NDK r19c (জানুয়ারি 2019)
চেঞ্জলগ- ডাউনলোড
- এই রিলিজের জন্য ডাউনলোডগুলি এখানে উপলব্ধ।
- ঘোষণা
- ডেভেলপারদের তাদের অ্যাপস LLD দিয়ে পরীক্ষা করা শুরু করা উচিত। AOSP ডিফল্টরূপে LLD ব্যবহারে স্যুইচ করেছে এবং NDK পরবর্তী রিলিজে ডিফল্টরূপে এটি ব্যবহার করবে। LLD কোনো বড় অমীমাংসিত সমস্যা (আনুমানিক r21) ছাড়া রিলিজ চক্রের মধ্য দিয়ে গেলে BFD এবং গোল্ড সরিয়ে দেওয়া হবে। লিঙ্ক করার সময়
-fuse-ld=lldপাস করে আপনার অ্যাপে LLD পরীক্ষা করুন। দ্রষ্টব্য: lld বর্তমানে Windows এ সংকুচিত প্রতীক সমর্থন করে না। ইস্যু 888 । ক্ল্যাং উইন্ডোজে সংকুচিত প্রতীকও তৈরি করতে পারে না, তবে ডারউইন বা লিনাক্স থেকে তৈরি শিল্পকর্ম ব্যবহার করার সময় এটি একটি সমস্যা হতে পারে। - আগস্ট 2019 থেকে একটি APK আপলোড করার সময় প্লে স্টোরে 64-বিট সমর্থনের প্রয়োজন হবে। সময় এলে বিস্ময় এড়াতে এখনই পোর্ট করা শুরু করুন। আরও তথ্যের জন্য, এই ব্লগ পোস্টটি দেখুন।
- ইস্যু 780 : স্বতন্ত্র টুলচেন এখন অপ্রয়োজনীয়। Clang, binutils, the sysroot, এবং অন্যান্য টুলচেনের টুকরোগুলি এখন
$NDK/toolchains/llvm/prebuilt/<host-tag>এ ইনস্টল করা আছে এবং Clang স্বয়ংক্রিয়ভাবে সেগুলি খুঁজে পাবে। API 26 ARM-এর জন্য একটি স্বতন্ত্র টুলচেন তৈরি করার পরিবর্তে, NDK থেকে সরাসরি কম্পাইলারকে আহ্বান করুন: R19-এর জন্য টুলচেনটি পুরানো পাথেও ইনস্টল করা হয়েছে যাতে বিল্ড সিস্টেমগুলিকে নতুন লেআউটের সাথে খাপ খাইয়ে নেওয়ার সুযোগ দেওয়া হয়। r20 এ পুরানো পথ মুছে ফেলা হবে।$ $NDK/toolchains/llvm/prebuilt/
/bin/armv7a-linux-androideabi26-clang++ src.cpp make_standalone_toolchain.pyস্ক্রিপ্ট সরানো হবে না। এটি এখন অপ্রয়োজনীয় এবং উপরের তথ্যের সাথে একটি সতর্কতা নির্গত করবে, তবে স্ক্রিপ্টটি বিদ্যমান ওয়ার্কফ্লোগুলি সংরক্ষণ করতে থাকবে। আপনি যদি ndk-build, CMake বা একটি স্বতন্ত্র টুলচেন ব্যবহার করেন, তাহলে আপনার কর্মপ্রবাহে কোনো পরিবর্তন করা উচিত নয়। এই পরিবর্তনটি থার্ড-পার্টি বিল্ড সিস্টেমের রক্ষণাবেক্ষণকারীদের জন্য অর্থবহ, যারা এখন কিছু Android-নির্দিষ্ট কোড মুছে ফেলতে সক্ষম হবেন। আরও তথ্যের জন্য, বিল্ড সিস্টেম মেইনটেইনার গাইড দেখুন। - ndk-depends সরানো হয়েছে। আমরা বিশ্বাস করি যে পুরানো অ্যান্ড্রয়েড সংস্করণগুলিতে নেটিভ লাইব্রেরি লোডিং সমস্যাগুলির জন্য ReLinker একটি ভাল সমাধান৷
- ইস্যু 862 : ক্ল্যাং-এ পুনঃনির্দেশিত GCC র্যাপার স্ক্রিপ্টগুলি সরিয়ে দেওয়া হয়েছে, কারণ সেগুলি প্রতিস্থাপনে ড্রপ করার মতো যথেষ্ট কার্যকরী নয়৷
- ডেভেলপারদের তাদের অ্যাপস LLD দিয়ে পরীক্ষা করা শুরু করা উচিত। AOSP ডিফল্টরূপে LLD ব্যবহারে স্যুইচ করেছে এবং NDK পরবর্তী রিলিজে ডিফল্টরূপে এটি ব্যবহার করবে। LLD কোনো বড় অমীমাংসিত সমস্যা (আনুমানিক r21) ছাড়া রিলিজ চক্রের মধ্য দিয়ে গেলে BFD এবং গোল্ড সরিয়ে দেওয়া হবে। লিঙ্ক করার সময়
Android NDK r18b (সেপ্টেম্বর 2018)
চেঞ্জলগ- ডাউনলোড
- এই রিলিজের জন্য ডাউনলোডগুলি এখানে উপলব্ধ।
- ঘোষণা
- GCC সরানো হয়েছে।
- এলএলডি এখন পরীক্ষার জন্য উপলব্ধ। AOSP ডিফল্টরূপে LLD ব্যবহারে স্যুইচ করার প্রক্রিয়ায় রয়েছে এবং NDK অনুসরণ করবে (টাইমলাইন অজানা)। লিঙ্ক করার সময়
-fuse-ld=lldপাস করে আপনার অ্যাপে LLD পরীক্ষা করুন। - gnustl, gabi++, এবং stlport সরানো হয়েছে।
- ICS (android-14 এবং android-15) এর জন্য সমর্থন সরানো হয়েছে। এক্সিকিউটেবল ব্যবহার করা অ্যাপগুলিকে আর PIE এবং নন-PIE এক্সিকিউটেবল উভয়ই প্রদান করতে হবে না।
- আগস্ট 2019 থেকে একটি APK আপলোড করার সময় প্লে স্টোরে 64-বিট সমর্থনের প্রয়োজন হবে। সময় এলে বিস্ময় এড়াতে এখনই পোর্ট করা শুরু করুন। আরও তথ্যের জন্য, এই ব্লগ পোস্টটি দেখুন।
Android NDK r17c (জুন 2018)
চেঞ্জলগ- ডাউনলোড
- এই রিলিজের জন্য ডাউনলোডগুলি এখানে উপলব্ধ।
- ঘোষণা
- GCC আর সমর্থিত নয়। এটি NDK r18 এ সরানো হবে।
- libc++ এখন CMake এবং স্বতন্ত্র টুলচেইনের জন্য ডিফল্ট STL। আপনি যদি ম্যানুয়ালি একটি ভিন্ন STL নির্বাচন করেন, আমরা দৃঢ়ভাবে আপনাকে
libc++এ যেতে উৎসাহিত করি। মনে রাখবেন যে ndk-build এখনও কোনো STL-এ ডিফল্ট নয়। আরো বিস্তারিত জানার জন্য, এই ব্লগ পোস্ট দেখুন. - gnustl এবং stlport বাতিল করা হয়েছে এবং NDK r18 এ সরানো হবে।
- ARMv5 (armeabi), MIPS, এবং MIPS64-এর জন্য সমর্থন সরানো হয়েছে। এই ABI-এর যেকোনো একটি তৈরি করার চেষ্টা করলে একটি ত্রুটি দেখা দেবে।
- r18 থেকে ICS (android-14 এবং android-15) এর জন্য সমর্থন সরিয়ে দেওয়া হবে।
- আগস্ট 2019 থেকে একটি APK আপলোড করার সময় প্লে স্টোরে 64-বিট সমর্থনের প্রয়োজন হবে। সময় এলে বিস্ময় এড়াতে এখনই পোর্ট করা শুরু করুন। আরও তথ্যের জন্য, এই ব্লগ পোস্টটি দেখুন।
Android NDK r16b (ডিসেম্বর 2017)
চেঞ্জলগ- ডাউনলোড
- এই রিলিজের জন্য ডাউনলোডগুলি এখানে উপলব্ধ।
- ঘোষণা
- অপ্রচলিত শিরোনামগুলি সরানো হয়েছে৷ ইউনিফাইড হেডারগুলি এখন কেবল "দ্য হেডার"। মাইগ্রেশন টিপসের জন্য, ইউনিফাইড হেডার মাইগ্রেশন নোট দেখুন।
- GCC আর সমর্থিত নয়। এটি এখনও NDK থেকে সরানো হবে না, তবে আর ব্যাকপোর্ট পাচ্ছে না। libc++ ডিফল্ট হওয়ার জন্য যথেষ্ট স্থিতিশীল না হওয়া পর্যন্ত এটি অপসারণ করা যাবে না, কারণ gnustl-এর কিছু অংশ এখনও Clang-এর সাথে বেমানান। অন্যান্য STLগুলি r18 এ সরানো হলে এটি সরানো হবে৷
-
libc++বিটা নয় এবং এখন NDK-এ পছন্দের STL। r17 থেকে শুরু করে,libc++হল CMake এবং স্বতন্ত্র টুলচেইনের জন্য ডিফল্ট STL। আপনি যদি ম্যানুয়ালি একটি ভিন্ন STL নির্বাচন করেন, আমরা দৃঢ়ভাবে আপনাকেlibc++এ যেতে উৎসাহিত করি। আরো বিস্তারিত জানার জন্য, এই ব্লগ পোস্ট দেখুন. - ARM5 (armeabi), MIPS, এবং MIPS64-এর জন্য সমর্থন বাতিল করা হয়েছে। তারা আর ডিফল্টভাবে ndk-build দিয়ে তৈরি করবে না, তবে স্পষ্টভাবে নাম দেওয়া থাকলে এখনও নির্মাণযোগ্য, এবং "all", "all32", এবং "all64" দ্বারা অন্তর্ভুক্ত করা হবে। এই প্রতিটির জন্য সমর্থন r17 এ সরানো হয়েছে। CMake এবং ndk-build উভয়ই একটি সতর্কতা জারি করবে যদি আপনি এই ABI-এর যেকোনো একটিকে লক্ষ্য করেন।
- এপিআই
Android 8.1 এর জন্য নেটিভ API যোগ করা হয়েছে। এই APIগুলি সম্পর্কে আরও জানতে, নেটিভ APIs ওভারভিউ দেখুন।
এই রিলিজে কি নতুন এবং পরিবর্তিত হয়েছে সে সম্পর্কে অতিরিক্ত তথ্যের জন্য, এই চেঞ্জলগটি দেখুন।
Android NDK r15c (জুলাই 2017)
চেঞ্জলগ- ডাউনলোড
- এই রিলিজের জন্য ডাউনলোডগুলি এখানে উপলব্ধ।
- ঘোষণা
- ইউনিফাইড হেডার ডিফল্টরূপে সক্রিয় করা হয়। এই শিরোনামগুলি কীভাবে ব্যবহার করবেন তা শিখতে, ইউনিফাইড হেডারগুলি দেখুন।
- GCC আর সমর্থিত নয়। এটি এখনও NDK থেকে সরানো হয়নি, তবে আর ব্যাকপোর্ট পাচ্ছে না। এটিকে অপসারণ করা যাবে না যতক্ষণ না libc++ ডিফল্ট হিসাবে যথেষ্ট স্থিতিশীল হয়, কারণ gnustl-এর কিছু অংশ এখনও Clang-এর সাথে বেমানান।
- Android 2.3 (
android-9) আর সমর্থিত নয়৷ NDK-এ ন্যূনতম API স্তরের লক্ষ্য এখন Android 4.0 (android-14)৷ যদি আপনারAPP_PLATFORMandroid-14এর চেয়ে কম সেট করা হয়, তাহলে এর পরিবর্তেandroid-14ব্যবহার করা হয়। - NDK-এ CMake এখন x86 এবং x86-64 আর্কিটেকচারে চালানোর জন্য YASM-এ লেখা বিল্ডিং অ্যাসেম্বলি কোড সমর্থন করে। আরও জানতে, বিল্ডিং অ্যাসেম্বলি কোড দেখুন।
দ্রষ্টব্য: অপ্রচলিত শিরোনামগুলি একটি আসন্ন প্রকাশে সরানো হবে৷ আপনি যদি এই শিরোনামগুলির সাথে কোন সমস্যার সম্মুখীন হন, অনুগ্রহ করে একটি বাগ ফাইল করুন।
মাইগ্রেশন টিপসের জন্য, ইউনিফাইড হেডার মাইগ্রেশন নোট দেখুন।
- এপিআই
Android 8.0 এর জন্য নেটিভ API যোগ করা হয়েছে। এই APIগুলি সম্পর্কে আরও জানতে, নেটিভ APIs ওভারভিউ দেখুন।
এই রিলিজে কি নতুন এবং পরিবর্তিত হয়েছে সে সম্পর্কে অতিরিক্ত তথ্যের জন্য, এই চেঞ্জলগটি দেখুন।
Android NDK r14b (মার্চ 2017)
চেঞ্জলগ- ডাউনলোড
- এই রিলিজের জন্য ডাউনলোডগুলি এখানে উপলব্ধ।
- ঘোষণা
- ইউনিফাইড হেডার: এই রিলিজটি প্ল্যাটফর্ম হেডারের সাথে পরিচয় করিয়ে দেয় যেগুলি সিঙ্ক্রোনাইজ করা হয় এবং অ্যান্ড্রয়েড প্ল্যাটফর্মের সাথে সর্বদা আপ-টু-ডেট এবং সঠিক রাখা হয়। হেডার-শুধু বাগ ফিক্সগুলি এখন সমস্ত API স্তরকে প্রভাবিত করে৷ ইউনিফাইড হেডারের প্রবর্তন পূর্ববর্তী NDK রিলিজে অসঙ্গতিগুলি ঠিক করে, যেমন:
- M এবং N-এ হেডার আসলে L-এর হেডার।
- হেডারে ফাংশন ঘোষণা তাদের প্ল্যাটফর্ম স্তরের সাথে সঠিকভাবে মেলেনি; হেডারগুলি অস্তিত্বহীন ফাংশন ঘোষণা করেছে বা উপলব্ধ ফাংশন ঘোষণা করতে ব্যর্থ হয়েছে।
- বেশ কিছু পুরানো API স্তরে অনুপস্থিত বা ভুল ধ্রুবক ছিল যা নতুন API স্তরে ছিল।
এই নতুন ইউনিফাইড হেডার ডিফল্টরূপে সক্রিয় করা হয় না। এই শিরোনামগুলি কীভাবে সক্রিয় এবং ব্যবহার করবেন তা শিখতে, ইউনিফাইড হেডারগুলি দেখুন।
- GCC অবচয়: এই রিলিজটি GCC-এর জন্য সক্রিয় সমর্থন শেষ করে। GCC এখনও NDK থেকে সরানো হয়নি, কিন্তু আর ব্যাকপোর্ট পাবেন না। যেহেতু gnustl-এর কিছু অংশ এখনও Clang-এর সাথে বেমানান, তাই libc++ ডিফল্ট হওয়ার মতো যথেষ্ট স্থিতিশীল না হওয়া পর্যন্ত GCC সম্পূর্ণরূপে সরানো হবে না।
- ইউনিফাইড হেডার: এই রিলিজটি প্ল্যাটফর্ম হেডারের সাথে পরিচয় করিয়ে দেয় যেগুলি সিঙ্ক্রোনাইজ করা হয় এবং অ্যান্ড্রয়েড প্ল্যাটফর্মের সাথে সর্বদা আপ-টু-ডেট এবং সঠিক রাখা হয়। হেডার-শুধু বাগ ফিক্সগুলি এখন সমস্ত API স্তরকে প্রভাবিত করে৷ ইউনিফাইড হেডারের প্রবর্তন পূর্ববর্তী NDK রিলিজে অসঙ্গতিগুলি ঠিক করে, যেমন:
এই রিলিজে কি নতুন এবং পরিবর্তিত হয়েছে সে সম্পর্কে অতিরিক্ত তথ্যের জন্য, এই চেঞ্জলগটি দেখুন।
Android NDK r13b (অক্টোবর 2016)
- ডাউনলোড
- এই রিলিজের জন্য ডাউনলোডগুলি এখানে সংরক্ষণাগারভুক্ত করা হয়েছে।
- ঘোষণা
- GCC আর সমর্থিত নয়। এটি এখনও NDK থেকে সরানো হবে না, তবে আর ব্যাকপোর্ট পাচ্ছে না। libc++ ডিফল্ট হওয়ার জন্য যথেষ্ট স্থিতিশীল না হওয়া পর্যন্ত এটি অপসারণ করা যাবে না, কারণ gnustl-এর কিছু অংশ এখনও Clang-এর সাথে বেমানান। এটি সম্ভবত সেই পয়েন্টের পরে সরানো হবে।
- Android এর জন্য একটি CPU প্রোফাইলার, simpleperf যোগ করা হয়েছে।
- r13b
- অনুপস্থিত
__cxa_bad_castএর জন্য অতিরিক্ত সংশোধন
- অনুপস্থিত
- এনডিকে
-
NDK_TOOLCHAIN_VERSIONএখন ক্ল্যাং-এ ডিফল্ট। - libc++ r263688 এ আপডেট করা হয়েছে।
- আমরা একটি (প্রায়) পরিষ্কার আপস্ট্রিমে রিসেট করেছি। এটি বেশ কয়েকটি বাগ মুছে ফেলা উচিত, তবে আমরা এটিকে ডিফল্ট হিসাবে সুপারিশ করার আগে আমাদের libandroid_support পরিষ্কার করতে হবে।
-
make-standalone-toolchain.shএখন টুলটির পাইথন সংস্করণের চারপাশে একটি মোড়ক। কিছু আচরণগত পার্থক্য আছে। বিস্তারিত জানার জন্য প্রতিশ্রুতি বার্তা দেখুন. - অসমর্থিত ABI-এর জন্য কিছু লাইব্রেরি সরানো হয়েছে (mips64r2, mips32r6, mips32r2, এবং x32)। এখনও কিছু স্ট্রাগলার থাকতে পারে।
- ARM android-21+ এর জন্য একটি স্ট্যাটিক এক্সিকিউটেবল তৈরি করার সময় crtbegin_static.o এর সাথে যে সমস্যাগুলি লিঙ্কের সময়ে অ্যাটেক্সিট অনুপস্থিত হয়েছিল তার সমাধান করা হয়েছে: ইস্যু 132
- build/cmake/android.toolchain.cmake এ CMake টুলচেন ফাইল যোগ করা হয়েছে।
-
- পরিচিত সমস্যা
- এটি সমস্ত অসামান্য বাগগুলির একটি বিস্তৃত তালিকা হওয়ার উদ্দেশ্যে নয়৷
- libc++ এবং GCC ব্যবহার করে স্বতন্ত্র টুলচেইন কাজ করে না। এটি জিসিসিতে একটি বাগ বলে মনে হচ্ছে। আরো বিস্তারিত জানার জন্য প্রতিশ্রুতি বার্তা দেখুন.
- android-24 থাকা সত্ত্বেও Marshmallow এবং N-এর জন্য বায়োনিক হেডার এবং লাইব্রেরিগুলি এখনও উন্মোচিত হয়নি৷ সেই প্ল্যাটফর্মগুলি এখনও ললিপপ হেডার এবং লাইব্রেরি (r11 থেকে রিগ্রেশন নয়)।
- রেন্ডারস্ক্রিপ্ট টুল উপস্থিত নেই (r11 থেকে রিগ্রেশন নয়): ইস্যু 7 ।
Android NDK r12b (জুন 2016)
- ডাউনলোড
- এই রিলিজের জন্য ডাউনলোডগুলি এখানে সংরক্ষণাগারভুক্ত করা হয়েছে।
- ঘোষণা
-
ndk-buildকমান্ডটি r13 এ Clang ব্যবহার করার জন্য ডিফল্ট। আমরা পরবর্তী রিলিজে GCC সরিয়ে দেব। -
make-standalone-toolchain.shস্ক্রিপ্টটি r13 এ সরানো হবে। নিশ্চিত করুনmake_standalone_toolchain.pyআপনার প্রয়োজন অনুসারে। - GitHub- এ সমস্যাগুলি রিপোর্ট করুন।
- আমরা
ndk-gdb.pyঠিক করেছি। ( ইস্যু 118 ) - আমরা
NdkCameraMetadataTags.hআপডেট করেছি যাতে এটিতে আর একটি অবৈধ enum মান থাকে না। - ndk-build-এ একটি বাগ যার ফলে libc++ ব্যবহার করে স্ট্যাটিক লাইব্রেরিগুলির জন্য মিথ্যা সতর্কতা তৈরি করা হয়েছে। এই পরিবর্তন সম্পর্কে আরও তথ্যের জন্য, এখানে মন্তব্য দেখুন।
- android-24-এর জন্য OpenSLES হেডার আপডেট করা হয়েছে।
- এনডিকে
- আমরা armeabi-v7a-hard ABI-এর জন্য সমর্থন সরিয়ে দিয়েছি। আরও তথ্যের জন্য, এই ব্যাখ্যাটি দেখুন।
- প্রাক-GB প্ল্যাটফর্ম স্তরের জন্য সমস্ত sysroots সরানো হয়েছে। আমরা r11-এ তাদের জন্য সমর্থন বাদ দিয়েছি, কিন্তু প্রকৃতপক্ষে তাদের সরাতে অবহেলা করেছি।
- ARM32 এ c++_shared ব্যবহার করার সময় ব্যতিক্রম হ্যান্ডলিং এখন বেশিরভাগই কাজ করে। unwinder এখন libc++ এর পরিবর্তে প্রতিটি লিঙ্ক করা বস্তুর সাথে লিঙ্ক করা হবে। এই ব্যতিক্রম পরিচালনা সম্পর্কে আরও তথ্যের জন্য, পরিচিত সমস্যাগুলি দেখুন।
- ডিফল্ট কম্পাইলার পতাকা ছাঁটাই করা হয়েছে। ( ইস্যু 27 )।
- এই পরিবর্তনগুলি সম্পর্কে সম্পূর্ণ তথ্যের জন্য, এই পরিবর্তন তালিকাটি দেখুন।
- স্বতন্ত্র টুলচেইনের একটি পাইথন বাস্তবায়ন যোগ করা হয়েছে:
build/tools/make_standalone_toolchain.py।- এই বৈশিষ্ট্যটি ব্যবহার করার জন্য উইন্ডোজ ব্যবহারকারীদের আর Cygwin প্রয়োজন নেই।
- আমরা r13 এ ব্যাশ ফ্লেভার সরিয়ে ফেলব, তাই এখনই নতুনটি পরীক্ষা করুন।
-
-fno-limit-debug-infoক্ল্যাং ডিবাগ বিল্ডের জন্য ডিফল্টরূপে সক্রিয় করা হয়েছে। এই পরিবর্তনটি এলএলডিবি-র সাথে ডিবাগযোগ্যতা উন্নত করা উচিত। -
--build-idএখন ডিফল্টরূপে সক্রিয় করা হয়েছে।- বিল্ড আইডি এখন নেটিভ ক্র্যাশ রিপোর্টে দেখানো হবে যাতে আপনি সহজেই সনাক্ত করতে পারেন যে আপনার কোডের কোন সংস্করণ চলছিল।
-
NDK_USE_CYGPATHআর libgcc এর সাথে সমস্যা সৃষ্টি করবে না। (অ্যান্ড্রয়েড ইস্যু 195486 ) -
-Wl,--warn-shared-textrel, এবং-Wl,--fatal-warningsবিকল্পগুলি এখন ডিফল্টরূপে সক্রিয় করা হয়েছে। আপনি যদি টেক্সট রিলোকেশন শেয়ার করে থাকেন, তাহলে আপনার অ্যাপ Android 6.0 (API লেভেল 23) বা তার উপরে লোড হতে পারে না। 64-বিট অ্যাপ্লিকেশনগুলির জন্য পাঠ্য স্থানান্তর কখনই অনুমোদিত হয়নি। - প্রি-কম্পাইল করা শিরোনাম আরও ভাল কাজ করা উচিত। ( সংখ্যা 14 এবং ইস্যু 16 )
- অপসারিত ARM (নন-থাম্ব) STL লাইব্রেরিগুলি সরানো হয়েছে৷
- android-24 এ Vulkan সমর্থন যোগ করা হয়েছে।
- android-24 এ কোরিওগ্রাফার API যোগ করা হয়েছে।
-
INFO_SUPPORTED_HARDWARE_LEVEL_LIMITEDবা তার উপরে ডিভাইসগুলির জন্যlibcamera2API যোগ করা হয়েছে৷ আরও তথ্যের জন্য, ক্যামেরার বৈশিষ্ট্য দেখুন। - ঝনঝন শব্দ
- ঝনঝন 3.8svn (r256229, বিল্ড 2812033) এ আপডেট করা হয়েছে।
- 32-বিট উইন্ডোজ প্যাকেজে
clang.exeএবংclang++.exeএক্সিকিউটেবলগুলি আসলে 64-বিট। 32-বিট এক্সিকিউটেবলটির নাম দেওয়া হয়েছেclang_32.exe।
- 32-বিট উইন্ডোজ প্যাকেজে
- জিসিসি
- ChromeOS GCC @ google/gcc-4_9 r227810 এর সাথে সিঙ্ক্রোনাইজ করা হয়েছে৷
- ToT (r231296) থেকে ব্যাকপোর্টেড কভারেজ স্যানিটাইজার প্যাচ।
-
ifuncsব্যবহার না করার জন্য স্থির লিবাটমিক। ( ইস্যু 31 ) - বিনুটিলস
- নীরব করা "Erratum 843419 পাওয়া গেছে এবং সংশোধন করা হয়েছে" তথ্য বার্তা।
- প্রবর্তিত বিকল্প
--long-pltঅভ্যন্তরীণ লিঙ্কার ত্রুটি ঠিক করার জন্য যা বিশাল arm32 বাইনারি লিঙ্ক করার সময় ঘটে। - AArch64 এর জন্য ভুল রান টাইম স্টাব সংশোধন করা হয়েছে। এটি খুব বড় ডিএসওগুলির জন্য জাম্প ঠিকানাগুলিকে ভুলভাবে গণনা করার কারণ ছিল।
- পূর্ববর্তী অ্যান্ড্রয়েড রিলিজের জন্য একটি ডায়নামিক লিঙ্কার বাগ নিয়ে কাজ করতে ডিফল্ট বিকল্প
--no-apply-dynamicচালু করা হয়েছে। -
dynamic_castএর জন্য NDK r11 KI ক্ল্যাং এর সাথে কাজ করে না। আমরা x86,stlport_staticএবং অপ্টিমাইজেশন ঠিক করেছি। - জিডিবি
- GDB 7.11-এ আপডেট করা হয়েছে। আরও তথ্যের জন্য, GDB নিউজ পৃষ্ঠা দেখুন।
-
ndk-gdb.pyএর জন্য কিছু বাগ ফিক্স। - পরিচিত সমস্যা
- x86 ASAN এখনও কাজ করে না। আরও তথ্যের জন্য এই পরিবর্তন তালিকার আলোচনা দেখুন।
-
c++_sharedএর সাথে ব্যতিক্রম unwinding এখনও Android 2.3 (API লেভেল 9) বা Android 4.0 (API লেভেল 14) এ ARM-এর জন্য কাজ করে না। - অ্যান্ড্রয়েড 6.0 (এপিআই লেভেল 23) এবং অ্যান্ড্রয়েড 7.0 (এপিআই লেভেল 24) এর জন্য বায়োনিক হেডার এবং লাইব্রেরিগুলি অ্যান্ড্রয়েড-24 থাকা সত্ত্বেও এখনও উন্মুক্ত করা হয়নি। সেই প্ল্যাটফর্মগুলি এখনও Android 5.0 (API স্তর 21) হেডার এবং লাইব্রেরি (r11 থেকে রিগ্রেশন নয়)।
- RenderScript টুল উপস্থিত নেই (r11 থেকে রিগ্রেশন নয়)। ( ইস্যু 7 )
- এই চেঞ্জলগটি সমস্ত অসামান্য বাগগুলির একটি বিস্তৃত তালিকা হওয়ার উদ্দেশ্যে নয়।
__thread এই সময় বাস্তব জন্য কাজ করা উচিত.Android NDK r12 (জুন 2016)
- ডাউনলোড
- এই রিলিজের জন্য ডাউনলোডগুলি এখানে সংরক্ষণাগারভুক্ত করা হয়েছে।
- ঘোষণা
-
ndk-buildকমান্ডটি আসন্ন রিলিজে Clang ব্যবহার করার জন্য ডিফল্ট হবে। GCC পরবর্তী রিলিজে সরানো হবে। -
make-standalone-toolchain.shস্ক্রিপ্ট একটি আসন্ন প্রকাশে সরানো হবে। আপনি যদি এই স্ক্রিপ্টটি ব্যবহার করেন, দয়া করে যত তাড়াতাড়ি সম্ভবmake_standalone_toolchain.pyএ স্থানান্তরিত করার পরিকল্পনা করুন৷ - এনডিকে
- armeabi-v7a-হার্ড ABI-এর জন্য সমর্থন সরানো হয়েছে। ডকুমেন্টেশনে ব্যাখ্যা দেখুন।
- Android 2.3 (API লেভেল 9) এর পূর্বে প্ল্যাটফর্ম স্তরগুলির জন্য সমস্ত sysroots সরানো হয়েছে৷ আমরা NDK r11-এ তাদের জন্য সমর্থন বাদ দিয়েছি, কিন্তু আসলে তাদের সরাতে অবহেলা করেছি।
- ARM32 এ c++_shared ব্যবহার করার সময় আপডেট করা ব্যতিক্রম হ্যান্ডলিং যাতে এটি বেশিরভাগ ক্ষেত্রে কাজ করে ( জানা সমস্যাগুলি দেখুন)। unwinder এখন libc++ এর পরিবর্তে প্রতিটি লিঙ্কযুক্ত বস্তুর সাথে লিঙ্ক করা হয়েছে।
- ডিফল্ট কম্পাইলার ফ্ল্যাগগুলি ছাঁটাই করা হয়েছে ( NDK ইস্যু 27 )। আপনি পরিবর্তন 207721 এ এই আপডেটের বিশদ বিবরণ দেখতে পারেন।
-
build/tools/make_standalone_toolchain.pyএ স্বতন্ত্র টুলচেইনের একটি পাইথন বাস্তবায়ন যোগ করা হয়েছে। Windows এ, এই বৈশিষ্ট্যটি ব্যবহার করার জন্য আপনার আর Cygwin এর প্রয়োজন নেই। মনে রাখবেন যে ব্যাশ ফ্লেভারটি আসন্ন রিলিজে সরিয়ে দেওয়া হবে, তাই অনুগ্রহ করে এখনই নতুনটি পরীক্ষা করুন। -
-fno-limit-debug-infoবিকল্পটি ডিফল্টরূপে সক্ষম করার জন্য কনফিগার করা ক্ল্যাং ডিবাগ বিল্ড। এই পরিবর্তনটি LLDB এর সাথে আরও ভাল ডিবাগিং সক্ষম করে। - একটি ডিফল্ট বিকল্প হিসাবে
--build-idসক্রিয় করা হয়েছে। এই বিকল্পটি একটি শনাক্তকারীকে নেটিভ ক্র্যাশ রিপোর্টে দেখানোর কারণ করে যাতে আপনি সহজেই সনাক্ত করতে পারেন যে আপনার কোডের কোন সংস্করণ চলছিল। -
NDK_USE_CYGPATHসাথে সমস্যার সমাধান করা হয়েছে যাতে এটি libgcc ( ইস্যু 195486 ) এর সাথে আর সমস্যা সৃষ্টি না করে। - নিম্নলিখিত বিকল্পগুলিকে ডিফল্ট হিসাবে সক্রিয় করা হয়েছে:
-Wl,--warn-shared-textrelএবং-Wl,--fatal-warnings। আপনি যদি টেক্সট রিলোকেশন শেয়ার করে থাকেন, তাহলে আপনার অ্যাপ Android 6.0 (API লেভেল 23) এবং উচ্চতর সংস্করণে লোড হয় না। মনে রাখবেন যে এই কনফিগারেশনটি 64-বিট অ্যাপের জন্য কখনই অনুমোদিত হয়নি। - কয়েকটি সমস্যা সমাধান করা হয়েছে যাতে প্রি-কম্পাইল করা শিরোনাম আরও ভাল কাজ করে ( NDK ইস্যু 14 , NDK ইস্যু 16 )।
- অপসারিত ARM (নন-থাম্ব) STL লাইব্রেরিগুলি সরানো হয়েছে৷
- android-24 এ Vulkan সমর্থন যোগ করা হয়েছে।
- android-24 এ কোরিওগ্রাফার API যোগ করা হয়েছে।
-
INFO_SUPPORTED_HARDWARE_LEVEL_LIMITEDবৈশিষ্ট্য স্তর বা উচ্চতর সমর্থনকারী ডিভাইসগুলির জন্য libcamera2 API যোগ করা হয়েছে৷ আরও তথ্যের জন্য,CameraCharacteristicsরেফারেন্স দেখুন। - ঝনঝন শব্দ
- ঝনঝন 3.8svn (r256229, বিল্ড 2812033) এ আপডেট করা হয়েছে। 32-বিট উইন্ডোজ প্যাকেজে
clang.exeএবংclang++.exeএক্সিকিউটেবলগুলি আসলে 64-বিট। 32-বিট এক্সিকিউটেবলটির নাম দেওয়া হয়েছেclang_32.exe। - স্থির
__threadযাতে এটি এই সময়ে বাস্তবের জন্য কাজ করে। - জিসিসি
- কম্পাইলারটিকে ChromeOS GCC @ google/gcc-4_9 r227810-এর সাথে সিঙ্ক্রোনাইজ করা হয়েছে।
- ToT (r231296) থেকে ব্যাকপোর্টেড কভারেজ স্যানিটাইজার প্যাচ।
- ifuncs ব্যবহার না করার জন্য স্থির
libatomic( এনডিকে ইস্যু 31 )। - বিনুটিলস
- "Erratum 843419 found and fixed" তথ্য বার্তাগুলিকে নীরব করা হয়েছে।
- বিশাল arm32 বাইনারি লিঙ্ক করার সময় একটি অভ্যন্তরীণ লিঙ্কার ত্রুটি ঠিক করার জন্য বিকল্প
--long-pltচালু করা হয়েছে। -
AArch64এর জন্য ভুল রান টাইম স্টাব সংশোধন করা হয়েছে। এই সমস্যাটি খুব বড় ডাইনামিক শেয়ার্ড অবজেক্টের (DSOs) জন্য জাম্প ঠিকানাগুলিকে ভুলভাবে গণনা করার কারণ ছিল। - পূর্ববর্তী অ্যান্ড্রয়েড রিলিজের জন্য একটি ডায়নামিক লিঙ্কার বাগ নিয়ে কাজ করতে ডিফল্ট বিকল্প
--no-apply-dynamicচালু করা হয়েছে। - NDK r11 এর সাথে একটি পরিচিত সমস্যা সমাধান করা হয়েছে যেখানে
dynamic_castClang, x86, stlport_static এবং অপ্টিমাইজেশানের সাথে কাজ করছে না। - জিডিবি
- GDB সংস্করণ 7.11-এ আপডেট করা হয়েছে। এই রিলিজ সম্পর্কে আরও তথ্যের জন্য, GDB নিউজ দেখুন।
-
ndk-gdb.pyস্ক্রিপ্টে বেশ কয়েকটি বাগ সংশোধন করা হয়েছে। - পরিচিত সমস্যা
- x86 অ্যাড্রেস স্যানিটাইজার (ASAN) বর্তমানে কাজ করে না। আরও তথ্যের জন্য, সংখ্যা 186276 দেখুন।
-
c++_sharedএর সাথে ব্যতিক্রম unwinding Android 2.3 (API লেভেল 9) বা Android 4.0 (API লেভেল 14) এ ARM-এর জন্য কাজ করে না। - অ্যান্ড্রয়েড 6.0 (API লেভেল 23) এবং উচ্চতরের জন্য বায়োনিক হেডার এবং লাইব্রেরিগুলি অ্যান্ড্রয়েড-24-এর উপস্থিতি সত্ত্বেও এখনও প্রকাশ করা হয়নি৷ এই প্ল্যাটফর্মগুলিতে এখনও Android 5.0 (API স্তর 21) শিরোনাম এবং লাইব্রেরি রয়েছে, যা NDK r11 এর সাথে সামঞ্জস্যপূর্ণ।
- রেন্ডারস্ক্রিপ্ট টুল উপস্থিত নেই, যা NDK r11 এর সাথে সামঞ্জস্যপূর্ণ। ( এনডিকে ইস্যু 7 )
-
NdkCameraMetadataTags.hহেডার ফাইলে, ক্যামেরা মেটাডেটা ট্যাগ enum মানACAMERA_STATISTICS_LENS_SHADING_CORRECTION_MAPদুর্ঘটনাবশত তালিকাভুক্ত করা হয়েছে এবং পরবর্তী প্রকাশে সরানো হবে। পরিবর্তেACAMERA_STATISTICS_LENS_SHADING_MAPমান ব্যবহার করুন৷
Android NDK r11c (মার্চ 2016)
- পরিবর্তন
-
ndk-gdb.pyস্ক্রিপ্টে অতিরিক্ত ফিক্স প্রয়োগ করা হয়েছে। -
ndk-gdbকমান্ড--attachবিকল্পে একটি ঐচ্ছিক প্যাকেজ নামের আর্গুমেন্ট যোগ করা হয়েছে। ( ইস্যু 13 ) - 32-বিট উইন্ডোজ প্ল্যাটফর্মের জন্য অবৈধ টুলচেন পাথ স্থির করা হয়েছে। ( সংখ্যা 45 )
-
ndk-whichকমান্ডের জন্য আপেক্ষিক পথ স্থির করা হয়েছে। ( ইস্যু 29 ) - libgcc কম্পাইলারের জন্য cygpath এর স্থির ব্যবহার। (অ্যান্ড্রয়েড ইস্যু 195486 )
Android NDK r11b (মার্চ 2016)
- এনডিকে
- গুরুত্বপূর্ণ ঘোষণা
- আমরা আমাদের বাগ ট্র্যাকারকে গিটহাবে সরিয়ে নিয়েছি।
- পরিবর্তন
-
ndk-gdb.pyঠিক করা হয়েছে। এটি r11 এ সম্পূর্ণরূপে প্রত্যাবর্তন করেছিল। - ম্যাকের জন্য
ndk-gdbসংশোধন করা হয়েছে । - কমান্ড লাইন সরঞ্জামগুলির জন্য আরও শীর্ষ-স্তরের শর্টকাট যোগ করা হয়েছে:
-
ndk-depends। -
ndk-gdb। -
ndk-stack। -
ndk-which। এই কমান্ড পূর্ববর্তী রিলিজ থেকে সম্পূর্ণ অনুপস্থিত ছিল.
-
- libc++-এর জন্য স্থির স্বতন্ত্র টুলচেইন, যা
__cxxabi_config.hঅনুপস্থিত ছিল। -
make-standalone-toolchain.shtoolchain.sh-এ--toolchainএর জন্য স্থির সাহায্য ডকুমেন্টেশন।
-
- গুরুত্বপূর্ণ ঘোষণা
- ঝনঝন শব্দ
- ইরাটা
- আমরা r11 রিলিজ নোটে যা রিপোর্ট করেছি তার বিপরীতে,
__threadকাজ করে না। এর কারণ হল আমরা যে ক্ল্যাং এর সংস্করণটি পাঠিয়েছি তাতে অনুকরণ করা TLS সমর্থনের জন্য একটি বাগ ফিক্স নেই।
Android NDK r11 (মার্চ 2016)
- ঝনঝন শব্দ
- গুরুত্বপূর্ণ ঘোষণা
- আমরা দৃঢ়ভাবে ক্ল্যাং-এ স্যুইচ করার পরামর্শ দিই।
- আপনি যদি ক্ল্যাং-এর সাথে সমস্যার সম্মুখীন হন, NDK-তে ক্ল্যাং-এর নির্দিষ্ট সমস্যার জন্য এখানে বাগ ফাইল করুন। আরও সাধারণ ক্ল্যাং সমস্যার জন্য, এই পৃষ্ঠার নির্দেশাবলী অনুসরণ করে বাগ ফাইল করুন।
- ঝনঝন 3.8svn (r243773, বিল্ড 2481030) এ আপডেট করা হয়েছে।
- এই সংস্করণটি প্রায় বিশুদ্ধ আপস্ট্রিম ক্ল্যাং।
- উইন্ডোজ 64-বিট ডাউনলোডযোগ্য NDK প্যাকেজে ক্ল্যাং-এর একটি 32-বিট সংস্করণ রয়েছে।
- আমরা দৃঢ়ভাবে ক্ল্যাং-এ স্যুইচ করার পরামর্শ দিই।
- সংযোজন
- Clang এখন অনুকরণ করা TLS-এর জন্য সমর্থন প্রদান করে।
- কম্পাইলার এখন pthread থ্রেড-নির্দিষ্ট ডেটা সহ ELF TLS অনুকরণ করে
__threadসমর্থন করে। - C++11
thread_localকিছু ক্ষেত্রে কাজ করে, কিন্তু নন-তুচ্ছ ধ্বংসকারীর সাথে ডেটার জন্য নয়, কারণ সেই ক্ষেত্রে libc থেকে সমর্থন প্রয়োজন। Android 6.0 (API লেভেল 23) বা নতুন সংস্করণে চলার সময় এই সীমাবদ্ধতা প্রযোজ্য নয়। - শেয়ার্ড লাইব্রেরি থেকে TLS ভেরিয়েবল অ্যাক্সেস করা হলে এমুলেটেড TLS এখনও Aarch64-এর সাথে কাজ করে না।
- কম্পাইলার এখন pthread থ্রেড-নির্দিষ্ট ডেটা সহ ELF TLS অনুকরণ করে
- Clang এখন অনুকরণ করা TLS-এর জন্য সমর্থন প্রদান করে।
- গুরুত্বপূর্ণ ঘোষণা
- জিসিসি
- গুরুত্বপূর্ণ ঘোষণা
- NDK-এ GCC এখন ক্ল্যাং-এর পক্ষে অবমূল্যায়িত।
- NDK 5.x-এ আপগ্রেড করা হবে না বা অ-সমালোচনামূলক ব্যাকপোর্ট গ্রহণ করবে না।
- 4.9-এ ভুল কম্পাইল এবং অভ্যন্তরীণ কম্পাইলার ত্রুটিগুলির জন্য রক্ষণাবেক্ষণ কেস বাই কেস ভিত্তিতে পরিচালনা করা হবে।
- অপসারণ
- GCC সরানো হয়েছে 4.8. সমস্ত লক্ষ্য এখন GCC 4.9 ব্যবহার করে।
- অন্যান্য পরিবর্তন
- r224707 এর সাথে google/gcc-4_9 সিঙ্ক্রোনাইজ করা হয়েছে। পূর্বে, এটি r214835 এর সাথে সিঙ্ক্রোনাইজ করা হয়েছিল।
- এনডিকে
- গুরুত্বপূর্ণ ঘোষণা
- নমুনা আর NDK প্যাকেজ অন্তর্ভুক্ত করা হয় না. তারা পরিবর্তে GitHub এ উপলব্ধ.
- ডকুমেন্টেশন আর NDK প্যাকেজ অন্তর্ভুক্ত করা হয় না. পরিবর্তে, এটি অ্যান্ড্রয়েড বিকাশকারী ওয়েবসাইটে রয়েছে।
- সংযোজন
-
android-23এ একটি নেটিভ ট্রেসিং API যোগ করা হয়েছে। -
android-23এ একটি নেটিভ মাল্টিনেটওয়ার্ক API যোগ করা হয়েছে। - API স্তর 21 থেকে শুরু করে সংস্করণযুক্ত চিহ্ন প্রদান করতে libc, m, এবং dl সক্ষম করা হয়েছে।
- API লেভেল N-এ ভলকান হেডার এবং লাইব্রেরি যোগ করা হয়েছে।
-
- অপসারণ
-
_WCHAR_IS_8BITএর জন্য সমর্থন সরানো হয়েছে। - sed সরানো হয়েছে.
- ম্যাকলিঙ্কার সরানো হয়েছে।
- পার্ল সরানো হয়েছে।
- NDK libc, m, এবং dl-এর সমস্ত সংস্করণ থেকে সরানো হয়েছে সমস্ত প্রতীক যা সেই libs-এর প্ল্যাটফর্ম সংস্করণ সমর্থন করে না।
- mips64r2 এর জন্য আংশিকভাবে সমর্থন সরানো হয়েছে। বাকিগুলো ভবিষ্যতে সরিয়ে ফেলা হবে।
-
- অন্যান্য পরিবর্তন
- এআরএম স্বতন্ত্র টুলচেইনকে ডিফল্টে arm7 এ পরিবর্তন করা হয়েছে।
- আপনি
armv5te-linux-androideabiহিসাবে-targetবিকল্পটি নির্দিষ্ট করে পাস করে পুরানো আচরণ পুনরুদ্ধার করতে পারেন।
- আপনি
- প্ল্যাটফর্মের জন্য
-isystemব্যবহার করার জন্য বিল্ড সিস্টেম পরিবর্তন করা হয়েছে।- সতর্কবাণী যে বায়োনিকের কারণে অ্যাপ বিল্ড আর ভাঙবে না।
- একটি সেগফল্ট সংশোধন করা হয়েছে যা ঘটেছিল যখন একটি বাইনারি gabi++ এর মাধ্যমে ব্যতিক্রমগুলি ছুঁড়ে দেয়৷ (ইস্যু 179410 )
- প্ল্যাটফর্ম libc++ এর সাথে ODR সমস্যা রোধ করতে libc++ এর ইনলাইন নামস্থান
std::__ndk1এ পরিবর্তন করা হয়েছে। - সমস্ত libc++ লাইব্রেরি এখন libc++ abi দিয়ে তৈরি।
- জিঞ্জারব্রেডে ডিফল্ট
APP_PLATFORMবাম্পড।- ভবিষ্যতের রিলিজে Froyo এবং তার বেশি বয়সের জন্য সমর্থন বাদ দেওয়া হবে বলে আশা করুন।
- এআরএম স্বতন্ত্র টুলচেইনকে ডিফল্টে arm7 এ পরিবর্তন করা হয়েছে।
- 64 বিটের জন্য gabi++
_Unwind_Exceptionstruct আপডেট করা হয়েছে। - cpufeatures এ নিম্নলিখিত ক্ষমতা যোগ করা হয়েছে:
- SSE4.1 এবং SSE4.2 সনাক্ত করুন।
- x86_64 এ cpu বৈশিষ্ট্য সনাক্ত করুন।
- আপস্ট্রিম r231075 এ libc++abi আপডেট করা হয়েছে।
- ToT Bionic থেকে
byteswap.h,endian.h,sys/procfs.h,sys/ucontext.h,sys/user.h, এবংuchar.hআপডেট করা হয়েছে৷ - সমস্ত API স্তর জুড়ে
sys/cdefs.hসিঙ্ক্রোনাইজ করা হয়েছে৷ - বাহুর জন্য
fegetenv and fesetenvফিক্সড। - mips64 এবং x86_64 এর জন্য
crtend_*এর শেষ পয়েন্টার সাইজ/সারিবদ্ধকরণ ঠিক করুন।
- গুরুত্বপূর্ণ ঘোষণা
- বিনুটিলস
- সংযোজন
- একটি নতুন বিকল্প যোগ করা হয়েছে:
--pic-veneer.
- একটি নতুন বিকল্প যোগ করা হয়েছে:
- অপসারণ
- 32-বিট উইন্ডোজ প্যাকেজে আর ld.gold নেই। আপনি পরিবর্তে 64-বিট উইন্ডোজ প্যাকেজ থেকে ld.gold পেতে পারেন।
- পরিবর্তন
- Android এবং ChromiumOS-এর মধ্যে ইউনিফাইড বিনুটিল সোর্স। এই পরিবর্তন সম্পর্কে আরো তথ্যের জন্য, এখানে মন্তব্য দেখুন.
- aarch64 এর জন্য সোনার উন্নত নির্ভরযোগ্যতা। bfd এর পরিবর্তে সোনা ব্যবহার করতে লিঙ্কের সময়
-fuse-ld=goldব্যবহার করুন। ডিফল্ট সম্ভবত পরবর্তী রিলিজে স্যুইচ হবে। - গোল্ড এআরএম ব্যাক এন্ডের জন্য বিশাল বাইনারিগুলির জন্য উন্নত লিঙ্ক করার সময় (ডিবাগযোগ্য ক্রোম ব্রাউজারের জন্য 50% পর্যন্ত লিঙ্কিং সময় হ্রাস)।
- সংযোজন
- জিডিবি
- অপসারণ
- ndk-gdb.py-এর পক্ষে ndk-gdb সরানো হয়েছে।
- পরিবর্তন
- 7.10 সংস্করণে gdb আপডেট করা হয়েছে।
- উন্নত কর্মক্ষমতা.
- উন্নত ত্রুটি বার্তা.
- স্থির আপেক্ষিক প্রকল্পের পথ।
- Ctrl-C কে ব্যাকগ্রাউন্ড করা gdbserver হত্যা করা থেকে বিরত করেছে।
- উন্নত উইন্ডোজ সমর্থন।
- অপসারণ
- ইয়াএসএম
- পরিবর্তন
- YASM 1.3.0 সংস্করণে আপডেট করা হয়েছে।
- পরিবর্তন
- পরিচিত সমস্যা
- x86 ASAN বর্তমানে কাজ করে না। আরও তথ্যের জন্য, এখানে আলোচনা দেখুন।
- ক্ল্যাং, x86, stlport_static, এবং অপ্টিমাইজেশান লেভেল
-O0এর চেয়ে বেশি সংমিশ্রণdynamic_castসাথে পরীক্ষায় ব্যর্থতার কারণ হয়। আরও তথ্যের জন্য, এখানে মন্তব্য দেখুন। - ARM32-এ c++_shared-এর সাথে ব্যতিক্রম হ্যান্ডলিং প্রায়ই ব্যর্থ হয়। মূল কারণ হল LLVM আনওয়াইন্ডারের মধ্যে অসঙ্গতি যা libc++ abi ARM32 এবং libgcc এর জন্য ব্যবহার করে। এই আচরণটি r10e থেকে রিগ্রেশন নয়।
Android NDK r10e (মে 2015)
- ডাউনলোড
- এই রিলিজের জন্য ডাউনলোডগুলি এখানে সংরক্ষণাগারভুক্ত করা হয়েছে।
- গুরুত্বপূর্ণ পরিবর্তন:
- Cortex-A53 Erratum 843419-এর জন্য
aarch64-linux-android-4.9লিঙ্কারে সমাধান করা হয়েছে। এই সমাধান সম্পর্কে আরও তথ্যের জন্য, Cortex-a53 erratum 843419-এর জন্য Workaround দেখুন। - যোগ করা ঝনঝন 3.6;
NDK_TOOLCHAIN_VERSION=clangএখন ডিফল্টরূপে ক্ল্যাং-এর সেই সংস্করণটি বেছে নেয়। - সরানো ঝনঝন 3.4.
- GCC সরানো হয়েছে 4.6.
- সমস্ত আর্কিটেকচারের জন্য
ld.goldএ মাল্টিথ্রেডিং সমর্থন প্রয়োগ করা হয়েছে। এটি এখন মাল্টিথ্রেডিংয়ের জন্য সমর্থন সহ বা ছাড়াই লিঙ্ক করতে পারে; ডিফল্ট ছাড়া এটি করতে হয়.- মাল্টিথ্রেডিংয়ের সাথে কম্পাইল করতে,
--threadsবিকল্পটি ব্যবহার করুন। - মাল্টিথ্রেডিং ছাড়াই কম্পাইল করতে,
--no-threadsবিকল্পটি ব্যবহার করুন।
- মাল্টিথ্রেডিংয়ের সাথে কম্পাইল করতে,
- সমস্ত আর্কিটেকচারের জন্য GDB/gdbserver 7.7-এ আপগ্রেড করা হয়েছে।
- 32-বিট ডারউইনের জন্য NDK প্যাকেজ সরানো হয়েছে।
- Cortex-A53 Erratum 843419-এর জন্য
- গুরুত্বপূর্ণ বাগ সংশোধন:
- প্রধান থ্রেডের বাইরে OpenMP লুপ থাকার সময় ঘটে যাওয়া একটি ক্র্যাশ সংশোধন করা হয়েছে।
- একটি GCC 4.9 অভ্যন্তরীণ কম্পাইলার ত্রুটি ( ICE ) সংশোধন করা হয়েছে যেটি ঘটেছিল যখন ব্যবহারকারী
#pragma GCC optimize ("O0")ঘোষণা করেছে, কিন্তু কমান্ড লাইনে নির্দিষ্ট অপ্টিমাইজেশনের একটি ভিন্ন স্তর ছিল৷pragmaপ্রাধান্য পায়। - নিম্নলিখিত ত্রুটি বার্তা সহ একটি ক্র্যাশ তৈরি করতে ব্যবহৃত একটি ত্রুটি সংশোধন করা হয়েছে:
in add_stores, at var-tracking.c:6000
- একটি ক্ল্যাং 3.5 ইস্যুর জন্য একটি ওয়ার্কঅ্যারাউন্ড প্রয়োগ করা হয়েছে যেখানে LLVM স্বয়ংক্রিয়-ভেক্টরাইজেশন
llvm.cttz.v2i64()তৈরি করে, একটি নির্দেশনা যার ARM নির্দেশনা সেটে কোন প্রতিরূপ নেই।
- অন্যান্য বাগ ফিক্স:
- নিম্নলিখিত শিরোনাম এবং লাইব্রেরি সংশোধন করা হয়েছে:
-
media/NdkMediaDrm.hএ স্থিরPROPERTY_* -
mips64এর জন্য স্থিরsys/ucontext.h. -
__builtin_isnanএবং__builtin_isinfজন্য ঝনঝন সংস্করণ চেক বাদ দেওয়া হয়েছে। -
android-21/arch-mips/usr/include/asm/reg.hএবংandroid-21/arch-mips64/usr/include/asm/reg.hযোগ করা হয়েছে। - জিসিসি 4.9 x86-এর জন্য উত্পাদিত হয়েছে এমন একটি জাল অ্যারে-বাউন্ড সতর্কতা স্থির করেছে, এবং GCC 4.9 এআরএম-এর জন্য উত্পাদিত সতর্কতামূলক অ্যারে বাউন্ড পুনরায় সক্রিয় করেছে। ARM-এর জন্য সতর্কতা পূর্বে নিঃশর্তভাবে নিষ্ক্রিয় করা হয়েছে।
- একটি লিখনযোগ্য
.gcc_except_tableবিভাগ তৈরি করতেmipsএবংmips64জন্য স্থির ক্ল্যাং 3.5, এইভাবে GCC আচরণের সাথে মিলে যায়। এই পরিবর্তন আপনাকে নিম্নলিখিত লিঙ্কার সতর্কতা এড়াতে অনুমতি দেয়:.../ld: warning: creating a DT_TEXTREL in a shared object
compiler-rtসমস্যাগুলির জন্য একটি ফিক্স ব্যাকপোর্ট করা হয়েছে যা ক্ল্যাংmips64এর জন্য কম্পাইল করার সময় ক্র্যাশের কারণ ছিল। আরও তথ্যের জন্য, এলএলভিএম ইস্যু 20098 দেখুন।- ফিক্সড ক্ল্যাং 3.5 ক্র্যাশ যা অ-ASCII মন্তব্যে ঘটেছে। (ইস্যু 81440 )
- স্থায়ী
stlport collate::compare-1এবং1সাথে তুলনা করুন। পূর্বে, এটি নির্বিচারে স্বাক্ষরিত সংখ্যা ফেরত দিয়েছিল। - 64-বিট ABI-এর জন্য স্থায়ী
ndk-gdb। (ইস্যু 118300 ) - রেন্ডারস্ক্রিপ্টের জন্য HelloComputeNDK নমুনা Android 4.4 (Android API স্তর 19) এ তৈরি করা ক্র্যাশটি ঠিক করেছে। আরও তথ্যের জন্য, এই পৃষ্ঠাটি দেখুন।
- GCC এর জন্য
libc++ __wrap_iterস্থির করা হয়েছে। আরও তথ্যের জন্য, এলএলভিএম ইস্যু 22355 দেখুন। - ABI
x86_64জন্য স্থায়ী.asmসমর্থন। - জিসিসি 4.8
stlportইস্যুটির জন্য একটি কার্যকারিতা প্রয়োগ করেছে। (ইস্যু 127773 ) - উইন্ডোজের প্রকল্পের পথ থেকে ট্রেলিং ডিরেক্টরি বিভাজক
\\(ইস্যু 160584 ) -
gradleথেকেndk-build.cmdকমান্ডটি সম্পাদন করে একটি একক.cফাইল সংকলন করার সময়no rule to make targetস্থির করে না। (সংখ্যা 66937 ) - নিম্নলিখিত হোস্ট টুলচেইনগুলি থেকে অনুপস্থিত ছিল
libatomic.aএবংlibgomp.aগ্রন্থাগারগুলি যুক্ত করেছে:-
aarch64-linux-android-4.9 -
mips64el-linux-android-4.9 -
mipsel-linux-android-4.9 -
x86_64-4.9
-
- অন্যান্য পরিবর্তন:
-
aarch64এর জন্যld.goldযুক্ত করা হয়েছে। ডিফল্ট লিঙ্কারটিld.bfdথেকে যায়। স্পষ্টভাবেld.goldসক্ষম করতে,LOCAL_LDFLAGSবাAPP_LDFLAGSভেরিয়েবলের সাথে-fuse-ld=goldযোগ করুন। -
binutils-2.25সাথে এমআইপিএস এবং এমআইপিএস 64 টুলচেইনগুলি নির্মিত, যা উন্নত আর 6 সমর্থন সরবরাহ করে। - তৈরি
-fstandalone-debug(সম্পূর্ণ ডিবাগ তথ্য) ক্ল্যাংয়ের জন্য একটি ডিফল্ট বিকল্প। -
-fstack-protectorআর্মের জন্য-fstack-protector-strongদিয়ে প্রতিস্থাপন করা হয়েছে, এআরসি 64৪, x86, এবং x86_64 টুলচেইনগুলি জিসিসি 4.9, ক্ল্যাং 3.5, এবং ক্ল্যাং 3.6 এর জন্য। - বিল্ড সিস্টেমটিকে প্যাকেজের নাম ওভাররাইড করার অনুমতি দেওয়ার জন্য
ndk-gdb--packageকমান্ড-লাইন স্যুইচ যুক্ত করুন। (সংখ্যা 56189 ) - এমআইপিএসের জন্য
-mno-ldc1-stc1অবমূল্যায়িত। এই বিকল্পটি নতুন-fpxxএবং-mno-odd-spregবিকল্পগুলির সাথে বা এফপিএক্সএক্স এবিআইয়ের সাথে কাজ করতে পারে না। -
cpu-featuresএমআইপিএস এমএসএ এবং আর 6 সনাক্তকরণ যুক্ত করেছে।
-
অ্যান্ড্রয়েড এনডিকে আর 10 ডি (ডিসেম্বর 2014)
- গুরুত্বপূর্ণ পরিবর্তন:
- সমস্ত 32-বিট এবিআইয়ের জন্য ডিফল্ট জিসিসি 4.8 তৈরি করেছে। জিসিসি 4.6 অবমূল্যায়িত, এবং এটি পরবর্তী প্রকাশটি সরিয়ে ফেলবে। পূর্ববর্তী আচরণটি পুনরুদ্ধার করতে, হয়
NDK_TOOLCHAIN_VERSION=4.6এ এনডিকে-বিল্ডে যুক্ত করুন, বা কমান্ড লাইনেmake-standalone-toolchain.sh-টুলচেইন.এসএইচ কার্যকর করার সময়--toolchain=arm-linux-androideabi-4.6যুক্ত করুন। জিসিসি 4.9 64-বিট এবিআইয়ের জন্য ডিফল্ট হিসাবে রয়ে গেছে। - সমস্ত x86 [_64] সরঞ্জামচেইনগুলি ডিফল্টরূপে
-mstackrealignযুক্ত করা থেকে বন্ধ করে দিয়েছে। এনডিকে টুলচেইন একটি 16-বাইট স্ট্যাক প্রান্তিককরণ ধরে নিয়েছে। ডিফল্টরূপে ব্যবহৃত সরঞ্জাম এবং বিকল্পগুলি এই নিয়মটি প্রয়োগ করে। কোনও ব্যবহারকারী রাইটিং অ্যাসেম্বলি কোড অবশ্যই স্ট্যাক প্রান্তিককরণ সংরক্ষণের বিষয়টি নিশ্চিত করতে হবে এবং অন্যান্য সংকলকরাও এই নিয়মটি মেনে চলতে পারে তা নিশ্চিত করতে হবে। (জিসিসি বাগ 38496 ) - আর্ম এবং x86 এবিসকে 3.5 সমর্থন ক্ল্যাং করতে স্যানিটাইজার কার্যকারিতা যুক্ত করা হয়েছে। এই পরিবর্তন সম্পর্কে আরও তথ্যের জন্য, ঠিকানা স্যানিটাইজার প্রকল্পটি দেখুন।
- বিল্ডিংয়ের সময়
-fPIE -pieব্যবহার করার জন্য এপিআই স্তর 21 থেকে শুরু করে প্রয়োজনীয়তাটি প্রবর্তন করে। এপিআই স্তর 16 এবং উচ্চতর, এনডিকে-বিল্ড বিল্ডিংয়ের সময়PIEব্যবহার করে। এই পরিবর্তনের বেশ কয়েকটি প্রভাব রয়েছে, যা বিকাশকারী পূর্বরূপ ইস্যু 888 এ আলোচনা করা হয়েছে। এই প্রভাবগুলি ভাগ করা লাইব্রেরিতে প্রযোজ্য নয়।
- সমস্ত 32-বিট এবিআইয়ের জন্য ডিফল্ট জিসিসি 4.8 তৈরি করেছে। জিসিসি 4.6 অবমূল্যায়িত, এবং এটি পরবর্তী প্রকাশটি সরিয়ে ফেলবে। পূর্ববর্তী আচরণটি পুনরুদ্ধার করতে, হয়
- গুরুত্বপূর্ণ বাগ ফিক্স:
- A53 ইরাতা #835769 সম্পর্কিত এআরসিএইচ 64-লিনাক্স-অ্যান্ড্রয়েড -4.9 লিঙ্কারে সম্পর্কিত আরও সংশোধন করেছেন। এর অংশ হিসাবে, জিসিসি একটি নতুন বিকল্প পাস করে,
--fix-cortex-a53-835769, যখন-mfix-cortex-a53-835769(ডিফল্ট দ্বারা সক্ষম করা হয়) নির্দিষ্ট করা হয়। আরও তথ্যের জন্য, এই বিনুটিলস বার্তা এবং এই বিনুটিলস বার্তাটি দেখুন। - এপিআই স্তর 21 -এ ঘটে যাওয়া একটি লিবিসি ++
sscanf/vsscanfহ্যাংয়ের জন্য একটি ফিক্স নথিভুক্ত করেছে The ফিক্স নিজেই আর 10 সি -তে প্রয়োগ করা হয়েছিল। (সংখ্যা 77988 ) - জিসিসি ৪.৯ এর সাথে ঘটেছিল এমন একটি অটোফডো (
-fauto-profile) ক্র্যাশ স্থির করে যখন-Osনির্দিষ্ট করা হয়েছিল। (ইস্যু 77571 )
- A53 ইরাতা #835769 সম্পর্কিত এআরসিএইচ 64-লিনাক্স-অ্যান্ড্রয়েড -4.9 লিঙ্কারে সম্পর্কিত আরও সংশোধন করেছেন। এর অংশ হিসাবে, জিসিসি একটি নতুন বিকল্প পাস করে,
- অন্যান্য বাগ ফিক্স:
- নিম্নলিখিত শিরোনাম এবং লাইব্রেরি ফিক্সগুলি তৈরি করেছে:
- এপিআই স্তর 16 এ
posix_memalignযুক্ত করা হয়েছে। এছাড়াও,stdlib.hএ এপিআই স্তরগুলিতে 16 থেকে 19 এ একটি প্রোটোটাইপ যুক্ত করেছেন। (ইস্যু 77861 ) - স্থির
stdatomic.hযাতে এটিতে<atomic>কেবলমাত্র সি ++ 11 এর জন্য অন্তর্ভুক্ত থাকে। - স্ট্যান্ডেলোন ব্যবহারের জন্য নিম্নলিখিত শিরোনামগুলি সংশোধন করা হয়েছে:
sys/user.h, এবংgl2ext.h,dlext.h,fts.h,sgidefs.hএপিআই স্তর 21 এর জন্য। -
mxcr_maskহিসাবেmxcsr_maskনাম পরিবর্তন করতে এবংu_ar0জন্য ডেটা প্রকার পরিবর্তন করতেsys/user.hসংশোধন করা হয়েছে -
sysconf()পরিবর্তিত হয়েছেintথেকেlongরিটার্ন মান প্রকার। -
LOCAL_ARM_MODEজন্য ফিক্সড এনডিকে-বিল্ডেরthumbহ্যান্ডলিং: আর 10 ডি-তে, এনডিকে-বিল্ডটিLOCAL_LDFLAGS+=-mthumbযুক্ত করে, যদি না নিম্নলিখিত শর্তগুলির একটি প্রযোজ্য না: - আপনি
LOCAL_ARM_MODEarmসমান সেট করেছেন। - আপনি একটি ডিবাগ বিল্ড করছেন (
APP_OPTIM=debugএবংAndroidManifest.xmlএর মতো সেটিংস সহandroid:debuggable="true"), যেখানে পূর্বের সরঞ্জামচেনগুলির সাথে সামঞ্জস্যতা ধরে রাখতে আর্ম মোড ডিফল্ট। (ইস্যু 74040 ) - উইন্ডোজ পরম পথগুলি ব্যবহার করতে এনডিকে-বিল্ডে ফিক্সড
LOCAL_SRC_FILESফিক্সড। (সংখ্যা 74333 ) - এনডিকে-জিডিবি থেকে বাশ-নির্দিষ্ট কোড সরানো হয়েছে। (সংখ্যা 73338 )
-
make-standalone-toolchain.shথেকে বাশ-নির্দিষ্ট কোড সরানো হয়েছে। (সংখ্যা 74145) -
System.loadLibrary()ট্রানজিটিভ নির্ভরতা। (সংখ্যা 41790 ) - এমন একটি সমস্যা সমাধান করা হয়েছে যা উবুন্টু 14.04 এবং ওএস এক্স 10.10 (ইয়োসেমাইট) এ 64-বিট প্যাকেজগুলি উত্তোলন থেকে আটকাতে বাধা দিচ্ছিল। (সংখ্যা 78148 )
- ক্ল্যাং সমর্থন উন্নত করতে
LOCAL_PCHদিয়ে একটি সমস্যা স্থির করে। (ইস্যু 77575 ) - এলডি.গোল্ডের কাছ থেকে সতর্কতা "এক্সিকিউটেবল স্ট্যাকের প্রয়োজন" স্পষ্ট। (সংখ্যা 79115 )
unsigned longথেকে স্ট্রাক্ট ইউজার_রেগস_স্ট্রাক্ট*।
অ্যান্ড্রয়েড এনডিকে আর 10 সি (অক্টোবর 2014)
- গুরুত্বপূর্ণ পরিবর্তন:
- ডাউনলোড স্ট্রাকচারে নিম্নলিখিত পরিবর্তনগুলি করেছেন:
- প্রতিটি প্যাকেজে এখন 32- এবং 64-বিট শিরোনাম, গ্রন্থাগার এবং এর নিজ নিজ প্ল্যাটফর্মের জন্য সরঞ্জাম উভয়ই রয়েছে।
- ডিবাগিং তথ্য সহ এসটিএল লাইব্রেরিগুলি আর আলাদাভাবে ডাউনলোড করার দরকার নেই।
- পূর্বে
Android-Lঅফিসিয়াল রিলিজের উপাধিতে বলা হয়েছে এমন সমস্ত কিছু পরিবর্তন করেছেন:android-21। - জিসিসি সংগ্রহস্থলের
googleশাখায় পুনরায় তৈরি করে জিসিসি 4.9 আপডেট হয়েছে। জিসিসি 4.9 এর উজানের সংস্করণ থেকে প্রধান পার্থক্যগুলির মধ্যে রয়েছে: -
-O2বিকল্পটি এখন লুপ খোসা ছাড়াই তবে আরও আক্রমণাত্মক আনরোলিং সহ ভেক্টরাইজেশন চালু করে। - এফডিও এবং লিপোতে বর্ধন
- সমস্ত হোস্টে ক্ল্যাং 3.5 সমর্থন যুক্ত করা হয়েছে:
NDK_TOOLCHAIN_VERSION=clangএখন ক্ল্যাং 3.5 বাছাই করে। উল্লেখ্য যে: - ইন্টিগ্রেটেড এসেম্বলার ব্যবহার করতে আর্ম এবং x86 ডিফল্ট। যদি এটি সমস্যার কারণ হয়ে থাকে তবে
-fno-integrated-asএকটি কার্যকারণ হিসাবে ব্যবহার করুন। - জিসিসি সমর্থন করে এমন
-finline-functionsবিকল্পের মতো অব্যবহৃত পতাকাগুলির জন্য আরও সতর্কতা জারি করে 3.5.৫ ক্ল্যাং। -
art-onবিকল্পটি নির্দিষ্ট করে আর্টকে তার ভার্চুয়াল মেশিন হিসাবে ব্যবহার করে একটি অ্যান্ড্রয়েড 5.0 ডিভাইসে ডিবাগ করার সময় আর্ট ডিবাগিং মোডে প্রবেশ করা সম্ভব করেছে। আরও তথ্যের জন্য, এনডিকেযুক্ত ডিরেক্টরিতেprebuilt/common/gdb/common.setupদেখুন। - ক্ল্যাং 3.3 এর জন্য সমর্থন সরানো।
- জিসিসি 4.6 অবমূল্যায়িত, এবং এটি ভবিষ্যতের প্রকাশগুলি থেকে সরাতে পারে।
- অভিন্ন কোড ফোল্ডিং ("আইসিএফ") সমর্থন সহ 2.8 এ ম্যাকলিংকার আপডেট করেছেন।
--icfবিকল্পটি ব্যবহার করে আইসিএফ নির্দিষ্ট করুন। - X86 এবং x86_64 এ বিস্তৃত
arm_neon.hসমর্থন, নিওন অভ্যন্তরীণদের ~ 93% এর কভারেজ অর্জন করে। নিয়ন সমর্থন সম্পর্কে আরও তথ্যের জন্য:- এনডিকে প্রোগ্রামারের গাইড (
docs/Programmers_Guide/html/) এ নেভিগেট করুন এবং আর্কিটেকচার এবং সিপিইউ> নিয়ন দেখুন। -
samples/আপডেট হওয়াhello-neonনমুনা পরীক্ষা করুন/। - আর্ম নিওন থেকে ইন্টেল এসএসই পর্যন্ত পোর্টিংয়ের জন্য ইন্টেলের গাইড দেখুন।
- এনডিকে প্রোগ্রামারের গাইড (
-
headers/libs/android-21এ_FORTIFY_SOURCEজন্য নথিভুক্ত সমর্থন, যা আর 10 এ প্রকাশিত হয়েছিল (যখনandroid-21এখনওAndroid-Lবলা হয়েছিল), তবে কোনও ডকুমেন্টেশন ছিল না।
আরও বিশদ তথ্যের জন্য, নীচে গুরুত্বপূর্ণ বাগ ফিক্সগুলি দেখুন।
জিসিসি ব্যবহার করে প্রকল্পগুলি থেকে স্থানান্তরিত করার সময়, আপনি দীর্ঘমেয়াদী কী করবেন সে সম্পর্কে সিদ্ধান্ত না নেওয়া পর্যন্ত অব্যবহৃত পতাকাগুলি উপেক্ষা করতে
-Wno-invalid-command-line-argumentএবং-Wno-unused-command-line-argumentব্যবহার করতে পারেন।- গুরুত্বপূর্ণ বাগ ফিক্স:
- GCC4.9/AARCH64 এর সাথে একটি অভ্যন্তরীণ সংকলক ত্রুটি স্থির করেছে যা নিম্নলিখিত ত্রুটি বার্তাটি তৈরি করেছিল (ইস্যু 77564 ):
- জিসিসি 4.9/এআরএম থেকে স্থির ভুল কোড জেনারেশন। (ইস্যু 77567 )
- জিসিসি 4.9/ইনলাইন-সমাবেশে জড়িত এমআইপিগুলির সাথে একটি অভ্যন্তরীণ সংকলক ত্রুটি স্থির করে। (ইস্যু 77568 )
- স্থির ভুল কোড যা জিসিসি 4.9/আর্ম
x = (cond) ? y : x। (ইস্যু 77569 ) - ডিফল্টরূপে কর্টেক্স-এ 53 ইরোটাম (835769) এর চারপাশে কাজ করার জন্য স্থির জিসিসি 4.9/এএআরসি 64 এবং ক্ল্যাং 3.5/এআরচ 64।
-mno-fix-cortex-a53-835769নির্দিষ্ট করে ওয়ার্কআউন্ডটি অক্ষম করুন।
internal compiler error: in simplify_const_unary_operation, at simplify-rtx.c:1539
- অন্যান্য বাগ ফিক্স:
- নিম্নলিখিত শিরোনাম এবং লাইব্রেরি
android-21এ ফিক্সগুলি তৈরি করেছে:- আরও টিভি কীকোড যুক্ত করেছেন:
android/keycodes.h -
android/sensor.hASensorManager_getDefaultSensorExআরও ধ্রুবক এবংASensor_getReportingModeনতুন সেন্সর ফাংশনASensor_getStringTypeASensor_getFifoReservedEventCountASensor_getFifoMaxEventCountASensor_isWakeUpSensor। - জিসিসি 4.6 এর সাথে সামঞ্জস্যতা উন্নত করতে স্থির
stdatomic.h<atomic> - সমস্ত এপিআই স্তরে
sys/ucontext.hএবংsys/user.hযুক্ত হয়েছে।signal.hশিরোনামে এখন<sys/ucontext.h>অন্তর্ভুক্ত রয়েছে। আপনিstruct ucontextযে কোনও বিদ্যমান সংজ্ঞা সরিয়ে ফেলতে পারেন। - 17, 18 এবং 19 এপিআই স্তরগুলিতে
posix_memalignযুক্ত করা হয়েছে। - সমস্ত আর্কিটেকচারে নিম্নলিখিত ফাংশনগুলি যুক্ত করা হয়েছে:
android_set_abort_message,posix_fadvise,posix_fadvise64,pthread_gettid_np। -
native-media/AndroidManifest.xmlনমুনায় প্রয়োজনীয় অনুমতিগুলি যুক্ত করা হয়েছে। (ইস্যু 106640 ) - 21 এপিআই স্তর 21 এ
clock_nanosleepএবংclock_settimeযুক্ত হয়েছে (( 77372 ইস্যু) - সমস্ত আর্কিটেকচার থেকে নিম্নলিখিত প্রতীকগুলি সরানো হয়েছে:
get_malloc_leak_info,free_malloc_leak_info,__srget,__swbuf,__srefill,__swsetup,__sdidinit,__sflags, __sfpp,__sfp,__sinit,__smakebuf,__sflush__sread,__swrite,__sseek,__sclose,_fwalk,__sglue,__get_thread,__wait4,__futex_wake,__open,__get_tls,__getdents64, এবংdlmalloc। - 64৪-বিট আর্কিটেকচার থেকে নিম্নলিখিত ফাংশনগুলি সরানো হয়েছে:
basename_r,dirname_r,__isthreaded,_flush_cache(এমআইপিএস 64)। - 32-বিট আর্কিটেকচার থেকে নিম্নলিখিত ফাংশনটি সরানো হয়েছে:
__signalfd4। - নিম্নলিখিত ফাংশনগুলিতে
size_tথেকেint-তে তৃতীয় আর্গুমেন্টের ধরণটি পরিবর্তন করেছে:strtoll_l,strtoull_l,wcstoll_l, এবংwcstoull_l। - নিম্নলিখিত ফাংশনগুলি 64-বিট আর্কিটেকচারে পুনরুদ্ধার করেছে:
arc4random,arc4random_buf, এবংarc4random_uniform। -
cxa_*এবংnewএবংdeleteঅপারেটরগুলিlibstdc++.so। এই পরিবর্তনটি আর 9 ডি আচরণ পুনরুদ্ধার করে; আর 10 এর পূর্ববর্তী সংস্করণগুলিতে স্থানধারক ফাইল রয়েছে।
- আরও টিভি কীকোড যুক্ত করেছেন:
- এমআইপিগুলির জন্য জিসিসি 4.8 এবং 4.9 এ এমএক্সইউ সমর্থন পুনরুদ্ধার করা হয়েছে। এই সমর্থনটি আর 10 এবং আর 10 বি থেকে অনুপস্থিত ছিল কারণ জিসিসির সেই সংস্করণগুলি বিনুটিলস -২.২৪ এর সাথে সংকলিত হয়েছিল, যা এমএক্সইউকে সমর্থন করে না। এটা এখন করে।
- ফিক্সড
--toolchain=make-standalone-toolchain.shটুলচেইন.এসএইচ যাতে এটি এখন সঠিকভাবে একটি প্রত্যয় ব্যবহারকে সমর্থন করে যা ক্ল্যাংয়ের একটি সংস্করণ নির্দিষ্ট করে। - LIBC ++/আর্মেবি
strtod()ফাংশনগুলি স্থির করে। -
docs/।
- নিম্নলিখিত শিরোনাম এবং লাইব্রেরি
- অন্যান্য পরিবর্তন:
- নিম্নলিখিত নির্দেশাবলী সেটগুলির জন্য এআরএমভি 8 সমর্থন সনাক্ত করতে বর্ধিত
cpu-features: এইএস, সিআরসি 32, এসএইচএ 2, এসএইচএ 1, এবং 64-বিট পিএমউল/পিএমউল 2। (ইস্যু 106360 ) - জিসিসি 4.8, জিসিসি 4.9, এবং ক্ল্যাংয়ে উপলব্ধ
*-gcc-arব্যবহার করার জন্য এনডিকে-বিল্ডটি পরিবর্তিত হয়েছে। ক্ল্যাং*-arএর পরিবর্তে এটি নির্দিষ্ট করে। এই সেটিংটি উন্নত এলটিও সমর্থন নিয়ে আসে। -
include-fixed/linux/a.out.hএবংinclude-fixed/linux/compiler.hজিসিসি সংকলক থেকে শিরোনামগুলি সরিয়ে ফেলুন। (সংখ্যা 73728 ) - ম্যাক ওএস এক্স -এ জিসিসি 4.8 এর সাথে
-fltoসম্পর্কিত একটি সমস্যা স্থির করেছে ত্রুটি বার্তাটি পড়ুন: build-binary.mk.(সংখ্যা 76992 )
.../ld: error: .../libexec/gcc/arm-linux-androideabi/4.9/liblto_plugin.so Symbol not found: _environ
- নিম্নলিখিত নির্দেশাবলী সেটগুলির জন্য এআরএমভি 8 সমর্থন সনাক্ত করতে বর্ধিত
- গুরুত্বপূর্ণ পরিচিত বিষয়:
- জিসিসি 4.9 -এ -ওএস (
-fauto-profile) নির্দিষ্ট করে ক্র্যাশ হওয়ার কারণ হতে পারে। (ইস্যু 77571 )
- জিসিসি 4.9 -এ -ওএস (
অ্যান্ড্রয়েড এনডিকে আর 10 বি (সেপ্টেম্বর 2014)
- গুরুত্বপূর্ণ নোট:
- ডাউনলোডযোগ্য প্যাকেজগুলিতে 512 এমবি আকারের সীমাবদ্ধতার কারণে, নিম্নলিখিত 32-বিট আইটেমগুলি 32-বিট এনডিকে ডাউনলোড প্যাকেজগুলিতে নেই। পরিবর্তে, তারা 64-বিটগুলিতে বাস করে:
- অ্যান্ড্রয়েড-এল শিরোনাম
- জিসিসি 4.9
- বর্তমানে, এনডিকে দ্বারা সরবরাহিত একমাত্র রেন্ডারস্ক্রিপ্ট সমর্থনটি অ্যান্ড্রয়েড 4.4 (এপিআই স্তর 19) এর সাথে 32-বিট রেন্ডারস্ক্রিপ্টের জন্য। আপনি রেন্ডারস্ক্রিপ্ট (32- বা 64-বিট) এবং অ্যান্ড্রয়েড সংস্করণের অন্য কোনও সংমিশ্রণ সহ হেলোকম্পিউটেন্ডকে (একমাত্র রেন্ডারস্ক্রিপ্ট নমুনা) তৈরি করতে পারবেন না।
- নেটিভ-কোডেক সংকলন করতে, আপনাকে অবশ্যই একটি 64-বিট এনডিকে প্যাকেজ ব্যবহার করতে হবে, যেখানে সমস্ত অ্যান্ড্রয়েড-এল শিরোনাম অবস্থিত।
- গুরুত্বপূর্ণ বাগ ফিক্স:
- অন্যান্য বাগ ফিক্স:
- জিসিসির সমস্ত সংস্করণের
include-fixed/ডিরেক্টরিগুলি থেকেstdio.hসরানো হয়েছে। (ইস্যু 73728। ) -
platforms/android-L/arch-*/usr/include/linux/netfilter*/ডিরেক্টরিগুলিতে উইন্ডোজ প্যাকেজগুলি থেকে সদৃশ শিরোনাম ফাইলগুলি সরানো হয়েছে। (ইস্যু 73704। ) - এমন একটি সমস্যা স্থির করেছে যা ক্ল্যাংকে হেলোকম্পুটেন্ডেক তৈরি করতে বাধা দেয়।
- স্থির atexit। (সংখ্যা 66595। )
-
docs/এবংsources/third_party/googletest/README.NDKডক্সে বিভিন্ন সংশোধন করেছে। (ইস্যু 74069। ) - অ্যান্ড্রয়েড-এল শিরোনামগুলিতে নিম্নলিখিত ফিক্সগুলি তৈরি করেছে:
-
ctype.hএবংwchar.h:dn_expand(),grantpt(),inet_nsap_addr(),inet_nsap_ntoa(),insque(),nsdispatch(),posix_openpt(),__pthread_cleanup_pop()__pthread_cleanup_push()remque()setfsgid()setfsuid()splice()tee()twalk()*_l() -
cmsg_nxthdrএর নামকরণ করা হয়েছে__cmsg_nxthdr। - সরানো
__libc_malloc_dispatch। -
ptrace()প্রোটোটাইপকেlong ptrace(int, ...);. - সরানো
sha1.h -
android/dlext.hএ বর্ধিতandroid_dlextinfo। -
stdlib.h,time.h,wchar.h, এবংcomplex.h-তে ফ্লোট- বা ডাবল-টাইপ মানগুলি গ্রহণ বা ফেরত দেওয়ার জন্য ফাংশনগুলির জন্য টীকাযুক্ত__NDK_FPABI__
- জিসিসির সমস্ত সংস্করণের
- অন্যান্য পরিবর্তন:
- আপডেট হয়েছে
mipsel-linux-android-4.9এবংmips64el-linux-android-4.9, একটি নতুন মাল্টিলিব ডিরেক্টরি লেআউট বাস্তবায়ন করে এবং জিডিবি -7.7 এর জন্য সহায়তা সরবরাহ করে - আরও এআরএম 64 বৈশিষ্ট্যগুলি সনাক্ত করতে বর্ধিত
cpu-features। (তালিকা পরিবর্তন 100339। )
- আপডেট হয়েছে
অ্যান্ড্রয়েড এনডিকে আর 10 (জুলাই 2014)
- গুরুত্বপূর্ণ পরিবর্তন:
- 3 টি নতুন এবিস যুক্ত করা হয়েছে, সমস্ত 64-বিট: এআরএম 64-ভি 8 এ, x86_64, এমআইপিএস 64। উল্লেখ্য যে:
- জিসিসি 4.9 হ'ল 64-বিট এবিআইএসের ডিফল্ট সংকলক। ক্ল্যাং বর্তমানে সংস্করণ 3.4।
NDK_TOOLCHAIN_VERSION=clangএআরএম 64-ভি 8 এ এবং এমআইপিএস 64 এর জন্য কাজ করতে পারে না। - অ্যান্ড্রয়েড-এল 64-বিট সমর্থন সহ প্রথম স্তর। নোট করুন যে এই এপিআই স্তরটি একটি অস্থায়ী, এবং কেবল এল-প্যাভিউয়ের জন্য। একটি আসল এপিআই স্তরের সংখ্যা এটি এল-রিলিজে প্রতিস্থাপন করবে।
- এই রিলিজটিতে এখন
APP_ABIজন্যall32এবংall64সেটিংস অন্তর্ভুক্ত রয়েছে।-
APP_ABI=all32APP_ABI=armeabi,armeabi-v7a,x86,mipsসমতুল্য। -
APP_ABI=all64APP_ABI=arm64-v8a,x86_64,mips64এর সমতুল্য। -
APP_ABI=allসমস্ত আবিস নির্বাচন করে।
-
- অ্যান্ড্রয়েড-এল-তে নতুন জিএনইউ libstdc ++ তে আপনার নিজের গণিতের ফাংশনটি সংজ্ঞায়িত করার আগে সমস্ত
<tr1/cmath>রয়েছে, লিঙ্কার থেকে "একাধিক সংজ্ঞা" ত্রুটি এড়ানোর জন্য ইতিমধ্যে সেই নামের সাথে একটি ফাংশন দেখতে_GLIBCXX_USE_C99_MATH_TR1পরীক্ষা করুন। - সিপিইউ-বৈশিষ্ট্য গ্রন্থাগারটি আর্মভি 8 কার্নেলের জন্য আপডেট করা হয়েছে। বিদ্যমান সিপিইউ-বৈশিষ্ট্য গ্রন্থাগারটি এআরএমভি 8 প্ল্যাটফর্মে নিয়নের উপস্থিতি সনাক্ত করতে ব্যর্থ হতে পারে। নতুন সংস্করণ দিয়ে আপনার কোডটি পুনরায় তৈরি করুন।
- একটি নতুন
platforms/android-L/এপিআই ডিরেক্টরি যুক্ত করেছে। এটি অন্তর্ভুক্ত: - আপডেট করা বায়োনিক শিরোনামগুলি, যা অ্যান্ড্রয়েড এপিআই স্তর 3 (কাপকেক) থেকে 19 (কিটকাট) এ পরিবর্তিত হয়নি। লেভেল এল এর জন্য এই নতুন সংস্করণটি এওএসপি -র সাথে সিঙ্ক্রোনাইজ করা উচিত।
- নতুন মিডিয়া এপিআই এবং একটি নেটিভ-কোডেক নমুনা।
- এসএলইএস/ওপেনসেলের জন্য একটি আপডেট হওয়া
Android.hশিরোনাম, অডিওপ্লেয়ারে একক-নির্ভুলতার জন্য ভাসমান-পয়েন্ট অডিও ফর্ম্যাটের জন্য সমর্থন সক্ষম করে। - Gles 3.1 এবং
libGLESv3.so. - GLES2 এবং GLES3 শিরোনামগুলি সর্বশেষতম অফিসিয়াল ক্রোনোস সংস্করণগুলিতে আপডেট হয়েছে।
- 32-/64-বিট এবিসে জিসিসি 4.9 সংকলক যুক্ত করেছেন। জিসিসি 4.9 হ'ল 64-বিট এবিআইয়ের জন্য ডিফল্ট (কেবলমাত্র) সংকলক, যেমনটি পূর্বে উল্লিখিত হয়েছে। 32-বিট এবিআইয়ের জন্য, আপনাকে অবশ্যই স্পষ্টভাবে জিসিসি 4.9 সক্ষম করতে হবে, কারণ জিসিসি 4.6 এখনও ডিফল্ট।
- এনডিকে-বিল্ডের জন্য, 32-বিট সক্ষম করুন, জিসিসি 4.9 বিল্ডিংটি
NDK_TOOLCHAIN_VERSION=4.9এApplication.mkযুক্ত করে বা কমান্ড লাইন থেকে পরিবেশের পরিবর্তনশীল হিসাবে রফতানি করে। - স্ট্যান্ডেলোন টুলচেইনের জন্য,
make-standalone-toolchain.shস্ক্রিপ্টে--toolchain=বিকল্পটি ব্যবহার করুন। উদাহরণস্বরূপ:--toolchain=arm-linux-androideabi-4.9. - জিসিসি 4.8/4.9 এবং x86*এ জিডিবি সংস্করণ 7.6 এ আপগ্রেড করা হয়েছে। যেহেতু জিডিবি এখনও জিসিসি 4.6 (এআরএম এবং এমআইপিএসের জন্য ডিফল্ট) সংস্করণে জিডিবি -7.3.x সংস্করণে রয়েছে, এনডিকে-জিডিবিকে জিডিবি 7.6 নির্বাচন করতে সক্ষম করতে আপনাকে অবশ্যই
NDK_TOOLCHAIN_VERSION=4.8বা4.9সেট করতে হবে। - এসএসএসই 3 সমর্থন সরবরাহের জন্য
-mssse3বিল্ড বিকল্পটি যুক্ত করেছে এবং এটি এবিআই x86 (এসএসই 3 থেকে আপগ্রেডিং) এর জন্য ডিফল্ট হিসাবে তৈরি করেছে। গুগল দ্বারা প্রকাশিত ছবিতে এসএসএসই 3 নির্দেশাবলী নেই। - জিসিসি 4.8 থেকে 4.8.3 আপডেট হয়েছে।
- উন্নত আর্ম libc ++ EH সমর্থন GABI থেকে Libc ++ ABI এ স্যুইচ করে। বিশদগুলির জন্য, ডকুমেন্টেশনের "সি ++ সমর্থন" বিভাগটি দেখুন। উল্লেখ্য যে:
- লোকেল ব্যতীত সমস্ত পরীক্ষা এখন ক্ল্যাং 3.4 এবং জিসিসি 4.8 এর জন্য পাস করে। আরও তথ্যের জন্য, ডকুমেন্টেশনের "সি ++ সমর্থন" বিভাগটি দেখুন।
- X86 এবং এমআইপিএস এলআইবিসি ++ এর জন্য LIBC ++ লাইব্রেরি এখনও GABI ++ ব্যবহার করে।
- জিসিসি 4.7 এবং পরে এখন <পারমাণবিক> ব্যবহার করতে পারে।
- আপনি যদি
<list>ব্যবহার করেন তবে আপনাকে অবশ্যই-fno-strict-aliasingযুক্ত করতে হবে, কারণ__list_imp::_end_ টিবিএএ বিধিগুলি ভেঙে দেয়। (ইস্যু 61571। ) - জিসিসি 4.6 হিসাবে, libcxx_force_rebuild: = সত্য আর LIBC ++ পুনর্নির্মাণ করে না। এটি পুনর্নির্মাণের জন্য একটি আলাদা সংকলক ব্যবহার প্রয়োজন। নোট করুন যে ক্ল্যাং 3.3 অনির্ধারিত।
- ম্যাকলিংকার এখন সংস্করণ ২.7, এবং এতে এআরচ 64 লিনাক্স সমর্থন রয়েছে।
-
LOCAL_PCHদ্বারা নির্দিষ্ট শিরোনামগুলির জন্য পূর্বনির্ধারিত শিরোনাম সমর্থন যুক্ত করা হয়েছে। (ইস্যু 25412 )।
- গুরুত্বপূর্ণ বাগ ফিক্স:
- স্থির লিবিসি ++ যাতে এটি এখন
std::feof, ইত্যাদি সংকলন করে ( 66668 ইস্যু)। - একটি ক্ল্যাং 3.3/3.4 পারমাণবিক লাইব্রেরি কল স্থির করেছে যা এবিআই আর্মেবির জন্য কিছু লিবিসি ++ পরীক্ষায় ক্র্যাশ ঘটায়।
- ফিক্সড ক্ল্যাং 3.4 ক্র্যাশগুলি যা পূর্বনির্ধারিত শিরোনামগুলি পড়ার ক্ষেত্রে ঘটেছিল। ( 66657 ইস্যু)।
- ক্ল্যাং 3.3/3.4
-O3এ স্থির করুন: - নিম্নলিখিত ক্ল্যাং 3.3/3.4 ক্র্যাশ স্থির করে:
llvm-3.2/llvm/include/llvm/MDBuilder.h:64: llvm::MDNode* llvm::MDBuilder::createBranchWeights(llvm::ArrayRef(ইস্যু 57381 )।): Assertion Weights.size() >= 2 && "Need at least two branch weights!" Assertion failed: (!Fn && "cast failed but able to resolve overload expression!!"), function CheckCXXCStyleCast, file Volumes/data/ndk-toolchain/src/llvm-3.3/llvm/tools/clang/lib/Sema/SemaCast.cpp, line 2018(সংখ্যা 66950 )।- স্থির লিবিসি ++ যাতে এটি এখন
- অন্যান্য বাগ ফিক্স:
- স্থির শিরোনাম:
- স্থির 32-বিট
ssize_tlong intএর পরিবর্তেintহতে হবে। - স্থির
WCHAR_MINএবংWCHAR_MAXফিক্সড যাতে তারা যে আর্কিটেকচার চালাচ্ছে সেগুলি অনুযায়ী তারা যথাযথ লক্ষণ গ্রহণ করে: - X86/এমআইপিএস: স্বাক্ষরিত।
- বাহু: স্বাক্ষরবিহীন
- X86/এমআইপিকে ডিফল্টে স্বাক্ষরযুক্ত করতে বাধ্য করতে,
-D__WCHAR_UNSIGNED__ব্যবহার করুন। -
wchar_t16 বিট হতে বাধ্য করার জন্য,-fshort-wcharব্যবহার করুন। - 32-বিট
libc.soথেকে অস্তিত্বহীন প্রতীকগুলি সরানো হয়েছে এবং অ্যান্ড্রয়েড এপিআই স্তর 12 এবং উচ্চতর জন্যpread64,pwrite64,ftruncate64যুক্ত করেছে। (সংখ্যা 69319 )। আরও তথ্যের জন্য, এওএসপি পরিবর্তন তালিকা 94137 এর সাথে কমিট বার্তাটি দেখুন। -
putcharপুনরায় সংজ্ঞা সম্পর্কে স্থির জিসিসি সতর্কতা। সতর্কতা বার্তা লেখা: - স্থির
make-standalone-toolchain.sh --stl=libc++যাতে এটি: - অনুলিপি
cxxabi.h। (ইস্যু 68001 )। - এনডিকে ইনস্টল ডিরেক্টরি ব্যতীত অন্য ডিরেক্টরিতে চলে। ( 67690 এবং 68647 ইস্যু)।
- বাহ্যিক প্রোগ্রামগুলিতে স্প্যানিং প্রক্রিয়াগুলির জন্য প্রয়োজন হলে কেবল যুক্তির উদ্ধৃতি দিতে জিসিসি/উইন্ডোজ স্থির করে। এই পরিবর্তনটি 32 কে দৈর্ঘ্যের সীমা ছাড়িয়ে যাওয়ার সম্ভাবনা হ্রাস করে।
- এমন একটি সমস্যা স্থির করেছে যা
APP_PLATFORMপরিবেশের পরিবর্তনশীল সামঞ্জস্য করা অসম্ভব করে তুলেছে। - ক্রেজি_লিংকারে
IsSystemLibrary()এর বাস্তবায়ন স্থির করে যাতে এটি লাইব্রেরির পাথের সত্য বেসনামটি খুঁজে পেতে স্ট্রচারstrrchr()এর পরিবর্তেstrchr()ব্যবহার করে। - ডিবাগ মোডে তৈরি করতে স্থির নেটিভ-অডিওর অক্ষমতা।
- চূড়ান্ত ভাসমান-পয়েন্ট নম্বরগুলি মুদ্রণ করতে স্থির জিডিবির অক্ষমতা। (ইস্যু 69203 )।
- স্থির ক্ল্যাং 3.4
-Wl,-shared(-sharedবিপরীতে, যার কোনও সংকলনের সমস্যা ছিল না) এর সাথে সংকলন করতে অক্ষমতা। সমস্যাটি ছিল যে ক্ল্যাং অ্যান্ড্রয়েড লক্ষ্যগুলির জন্য-pieযুক্ত করেছে যদি না-sharedবা-staticঅস্তিত্ব না থাকে। এই আচরণটি, যা ভুল ছিল, লিঙ্কারকে অভিযোগ করেছিল যে-sharedএবং-pieসহ -অস্তিত্ব রাখতে পারে না।
include/stdio.h:236:5: warning: conflicts with previous declaration here [-Wattributes] int putchar(int);(তালিকা 91185 পরিবর্তন করুন)।- অন্যান্য পরিবর্তন:
- X86 টুলচেইনে
arm_neon.hযুক্ত করা হয়েছে যাতে এটি এখন নিওনের ~ 47% অনুকরণ করে। বর্তমানে 64৪-বিট প্রকারের জন্য কোনও সমর্থন নেই। আরও তথ্যের জন্য, x86 ডকুমেন্টেশনে আর্ম নিওন ইন্ট্রাসিক্স সমর্থন সম্পর্কিত বিভাগটি দেখুন। - পোর্টেড এআরএম/গট_প্রেল অপ্টিমাইজেশন (জিসিসি গুগল শাখা থেকে নির্মিত জিসিসি 4.6 এ উপস্থিত) আর্ম জিসিসি 4.8/4.9 এ। এই অপ্টিমাইজেশন কখনও কখনও গ্লোবাল ভেরিয়েবলগুলি অ্যাক্সেস করার সময় নির্দেশ গণনা হ্রাস করে। উদাহরণ হিসাবে,
$NDK/tests/build/b14811006-GOT_PREL-optimization/বিল্ড.শ স্ক্রিপ্টটি দেখুন। - এসটিএল গ্যাবি ++, এসটিএলপোর্ট এবং লিবিসি ++ এর জন্য আর্ম সংস্করণ যুক্ত করা হয়েছে। তাদের এখন এটি এবং থাম্ব মোড উভয়ই রয়েছে।
-
--toolchain=x86_64-linux-android-4.9এর সাথে মেক-স্ট্যান্ডালোন-টুলচেইন.শ স্ক্রিপ্টটি কল করা এখন সম্ভব, যা--toolchain=x86_64-4.9এর সমতুল্য।
- X86 টুলচেইনে
অ্যান্ড্রয়েড এনডিকে আর 9 ডি (মার্চ 2014)
- গুরুত্বপূর্ণ পরিবর্তন:
- ক্ল্যাং 3.4 সংকলকের জন্য সমর্থন যুক্ত করা হয়েছে।
NDK_TOOLCHAIN_VERSION=clangবিকল্পটি এখন ক্ল্যাং 3.4 বাছাই করে। জিসিসি 4.6 এখনও ডিফল্ট সংকলক। - অতিরিক্ত মাল্টিলিব বিকল্প
-mfloat-abi=hardসহAPP_ABI=armeabi-v7a-hardযুক্ত করা হয়েছে। এই বিকল্পগুলি এআরএম জিসিসি 4.6/4.8 এবং ক্ল্যাং 3.3/3.4 (যা 4.8 এর এসেম্বলার, লিঙ্কার এবং এলআইবি ব্যবহার করে) এর সাথে ব্যবহারের জন্য। এই বিকল্পগুলি ব্যবহার করার সময়, নিম্নলিখিত পরিবর্তনগুলি নোট করুন: -
ndk-buildস্ক্রিপ্টটি কার্যকর করার সময়, আর্মেবি-ভি 7 এ টার্গেটের জন্য নিম্নলিখিত বিকল্পগুলি যুক্ত করুন: বিল্ট লাইব্রেরিটিTARGET_CFLAGS += -mhard-float -D_NDK_MATH_NO_SOFTFP=1 TARGET_LDFLAGS += -Wl,--no-warn-mismatch -lm_hard
libs/armeabi-v7aএ অনুলিপি করা হয়েছে। প্রত্যাশার মতো আচরণ করার জন্য, আপনিarmeabi-v7aএবংarmeabi-v7a-hardউভয়ই লক্ষ্য হিসাবে তৈরি করতে পারবেন না (যেমন, অ্যাপ_বি = লাইনে)। এটি করার ফলে তাদের মধ্যে একটিকে উপেক্ষা করা হয়। নোট করুন যেAPP_ABI=allএখনওarmeabi armeabi-v7a x86 mipsসমতুল্য। -
make-standalone-toolchain.shটুলচেইন.শ স্ক্রিপ্টটি/hardডিরেক্টরিগুলির অধীনে অতিরিক্ত গ্রন্থাগারগুলি অনুলিপি করে। জিসিসি বা ক্ল্যাংকে/hardলাইব্রেরির সাথে লিঙ্ক করতে সক্ষম করতে আপনার মেকফাইলে উপরেরCFLAGSএবংLFLAGSযুক্ত করুন। - ইয়াসম এসেম্বলার, পাশাপাশি x86 টার্গেটের জন্য
LOCAL_ASMFLAGSএবংEXPORT_ASMFLAGSফ্ল্যাগ যুক্ত করেছে।ndk-buildস্ক্রিপ্টটিLOCAL_SRC_FILESতৈরি করতেprebuilts/*/bin/yasm*ব্যবহার করে যা.asmএক্সটেনশন রয়েছে। - ম্যাকলিংকার 2.6.0 এ আপডেট হয়েছে, যা
-gc-sectionsসমর্থন যুক্ত করে। - পরীক্ষামূলক এলআইবিসি ++ সমর্থন যুক্ত করা হয়েছে (আপস্ট্রিম আর 201101)। এই পদক্ষেপগুলি অনুসরণ করে এই নতুন বৈশিষ্ট্যটি ব্যবহার করুন:
-
APP_STL := c++_staticবাAPP_STL := c++_sharedApplication.mkভাগ করা হয়েছে। আপনি উত্স থেকেLIBCXX_FORCE_REBUILD := true -
make-standalone-toolchain.sh --stl=libc++কার্যকর করুন libc ++ শিরোনাম/লিব সহ স্ট্যান্ডেলোন টুলচেইন তৈরি করতে।
CPLUSPLUS-SUPPORT.htmlদেখুন। (ইস্যু 36496 ) -
- ক্ল্যাং 3.4 সংকলকের জন্য সমর্থন যুক্ত করা হয়েছে।
- গুরুত্বপূর্ণ বাগ ফিক্স:
- জিসিসি 4.6/4.8 আর্ম ইএবিআইয়ের জন্য একটি অপ্রত্যাশিত ব্যতিক্রম হ্যান্ডলার থেকে একটি অনাবৃত থ্রো স্থির করেছে। (জিসিসি ইস্যু 59392 )
- স্থির জিসিসি 4.8 যাতে এটি এখন নির্ভরশীল, নন-টাইপ টেম্পলেট আর্গুমেন্ট সহ একটি টেম্পলেটটির আংশিক বিশেষীকরণের সঠিকভাবে সমাধান করে। (জিসিসি ইস্যু 59052 )
- প্রিলিল্ট পাইথন ( 59902 ইস্যু) এ আরও মডিউল যুক্ত করা হয়েছে:
- ম্যাক ওএস এক্স:
zlib,bz2,_curses,_curses_panel,_hashlib,_ssl - লিনাক্স:
zlib,nis,crypt,_cursesএবং_curses_panel
- ম্যাক ওএস এক্স:
- X86 এবং এমআইপিএস জিডিবিএসআরভার
event_getmsg_helperস্থির করে। - পুরানো ডিভাইস এবং সি ++ প্রতিচ্ছবি জুড়ে সামঞ্জস্যতা সহ সমস্যাগুলি সহ রেন্ডারস্ক্রিপ্ট এনডিকে টুলচেইনে অসংখ্য সমস্যা স্থির করে।
- অন্যান্য বাগ ফিক্স:
- শিরোনাম ফিক্স:
- অ্যান্ড্রয়েড এপিআই স্তর 13 এবং উচ্চতর জন্য
android/asset_manager.h-এ একটি অনুপস্থিত#include <sys/types.h>(সংখ্যা 64988 ) - একটি নিখোঁজ
#includeঅন্তর্ভুক্ত#includeঅ্যান্ড্রয়েড এপিআই স্তর 14 এবং উচ্চতর জন্যandroid/rect_manager.hএ। -
JNI_OnLoadএবংJNI_OnUnloadএjni.hএJNICALLযুক্ত করেছেন। নোট করুন যেJNICALLআরও তথ্যের জন্য__NDK_FPABI__হিসাবে সংজ্ঞায়িত করা হয়েছে,sys/cdefs.hদেখুন। - নিম্নলিখিত শিরোনামগুলি আপডেট করেছেন যাতে তাদের নির্ভরতাগুলি ম্যানুয়ালি অন্তর্ভুক্ত করার প্রয়োজন ছাড়াই তাদের অন্তর্ভুক্ত করা যেতে পারে (সংখ্যা 64679 ):
- সমস্ত আর্কিটেকচারের জন্য
sys/cachectl.hযুক্ত করা হয়েছে। এমআইপিএস বিকাশকারীরা এখন#ifdef __mips__লেখার পরিবর্তে এই শিরোনামটি অন্তর্ভুক্ত করতে পারেন। - স্থির
platforms/android-18/include/android/input.h__NDK_FPABI__ফ্লোট বা ডাবল মান গ্রহণ বা ফিরিয়ে আনতে ফাংশনগুলিতে যুক্ত করে। - ফিক্সড এমআইপিএস
struct stat, যা অ্যান্ড্রয়েড এপিআই স্তর 12 এবং পরে তার 64-বিট অংশের জন্য ভুলভাবে সেট করা হয়েছিল। এই ভুল সেটিংটি রিলিজ আর 9 সি -তে প্রবর্তিত একটি রিগ্রেশন ছিল। - সংজ্ঞায়িত
__PTHREAD_MUTEX_INIT_VALUE,__PTHREAD_RECURSIVE_MUTEX_INIT_VALUE, এবং__PTHREAD_ERRORCHECK_MUTEX_INIT_VALUEঅ্যান্ড্রয়েড এপিআই স্তর 9 এবং তার চেয়ে কম। - এপিআইএস 18 এবং তার পরে x86
libm.soএscalbln,scalblnfএবংscalblnlযুক্ত করা হয়েছে। -
sources/android/support/include/iconv.h-তে একটি টাইপো স্থির করে। (ইস্যু 63806 )
android/tts.h EGL/eglext.h fts.h GLES/glext.h GLES2/gl2ext.h OMXAL/OpenMAXSL_Android.h SLES/OpenSLES_Android.h sys/prctl.h sys/utime.h
- অ্যান্ড্রয়েড এপিআই স্তর 13 এবং উচ্চতর জন্য
- স্থির গাবি ++
std::unexpected()std::terminate()কল করতে যাতে কোনও ব্যবহারকারী-সংজ্ঞায়িতstd::terminate()হ্যান্ডলারের চালানোর সুযোগ থাকে। -
std::nullptr। - স্থির নমুনাগুলি টিপট এবং মোরেপটস:
- মাঝারি নির্ভুলতা ব্যবহার করতে স্পেকুলার ভেরিয়েবলগুলি পরিবর্তন করে টেগ্রা 2 এবং 3 চিপগুলির সাথে একটি সমস্যার সমাধান করেছেন। স্পেকুলার পাওয়ারের মানগুলি এখন 1.0 এর চেয়ে কম হতে পারে।
- নমুনাগুলি পরিবর্তন করেছে যাতে ভলিউম বোতাম টিপে নিমজ্জনিত মোড পুনরুদ্ধার করে এবং
SYSTEM_UI_FLAG_IMMERSIVE_STICKYঅবৈধ করে। স্ক্রিন রোটেশনonSystemUiVisibilityChangeচেঞ্জকে ট্রিগার করে না এবং তাই নিমজ্জনিত মোডটি পুনরুদ্ধার করে না।
- এক্সিকিউটেবলগুলি লিঙ্ক করতে
ld.bfdব্যবহার করার জন্যndk-buildস্ক্রিপ্টটি--rpath-link=$SYSROOT/usr/libএবং-rpath-link=$TARGET_OUTযুক্ত করতে স্থির করুন। (সংখ্যা 64266 ) - সমস্ত এসটিএল বিল্ডগুলি থেকে
-Bsymbolicসরানো হয়েছে। - ফিক্সড
ndk-gdb-py.cmdSHELLএটিpython.exeপাস করার পরিবর্তে পরিবেশের পরিবর্তনশীল হিসাবে সেট করে সেট করে, যা সেটিংটিকে উপেক্ষা করে। (সংখ্যা 63054 ) -
make-standalone-toolchain.shটুলচেইন.শ স্ক্রিপ্টটি স্থির করে যাতে--stl=stlportবিকল্পটি সিমলিংকিংয়ের পরিবর্তে গাবি ++ শিরোনামগুলি অনুলিপি করে;cmd.exeএবং মিংউ শেলগুলি সিগউইন দ্বারা নির্মিত সিমলিঙ্কগুলি বুঝতে পারে না।
- শিরোনাম ফিক্স:
- অন্যান্য পরিবর্তন:
- পূর্বে কেবলমাত্র
cmd.exeশেলটিতে ব্যবহারের উদ্দেশ্যে সমস্ত*cmdস্ক্রিপ্টগুলিতে প্রয়োগকৃত কার্যকরকরণের অনুমতিগুলি প্রয়োগ করা হয়, যদি বিকাশকারীরা প্রস্তাবিতndk-buildস্ক্রিপ্টের পরিবর্তে সাইগউইনেndk-build.cmdব্যবহার করতে পছন্দ করেন। - নির্দিষ্ট গন্তব্য ডিরেক্টরি বিদ্যমান না থাকলে অনুলিপি করার পরিবর্তে
make-standalone-toolchain.shটুলচেইন.শ স্ক্রিপ্টের গতি উন্নত করেছে।
- পূর্বে কেবলমাত্র
অ্যান্ড্রয়েড এনডিকে আর 9 সি (ডিসেম্বর 2013)
এটি কেবল একটি বাগ-ফিক্স-মুক্তি।
- গুরুত্বপূর্ণ বাগ ফিক্স:
- জিসিসি 4.8 আর্মের সাথে একটি সমস্যা স্থির করেছে, যেখানে স্ট্যাক পয়েন্টারটি খুব তাড়াতাড়ি পুনরুদ্ধার করা হয়। এই সমস্যাটি ফ্রেম পয়েন্টারটিকে স্ট্যাক ফ্রেমে নির্ভরযোগ্যভাবে একটি ভেরিয়েবল অ্যাক্সেস করতে বাধা দেয়। (জিসিসি ইস্যু 58854 )
- জিসিসি 4.8 লিবএসটিডিসি ++ এর সাথে একটি সমস্যা স্থির করেছে, যেখানে এসটিডি :: nth_element এ একটি বাগ কোডের প্রজন্মের কারণ ঘটায় যা একটি এলোমেলো সেগফল্ট তৈরি করে। (সংখ্যা 62910 )
- সিসি 1/সিসি 1 প্লাস
-fuse-ld=mcld-তে স্থির জিসিসি 4.8 আইসিই স্থির করুন, যাতে নিম্নলিখিত ত্রুটিটি আর ঘটে না:cc1: internal compiler error: in common_handle_option, at opts.c:1774
__builtinগণিত ফাংশনগুলির জন্য স্থির-mhard-floatসমর্থন। এসটিএল -এর সাথে-mhard-floatজন্য ফিক্সগুলির উপর চলমান তথ্যের জন্য, দয়া করে 61784 ইস্যু অনুসরণ করুন।
- অন্যান্য বাগ ফিক্স:
- শিরোনাম ফিক্স:
- জরিপে
pollপ্রোটোটাইপ পরিবর্তিত হয়েছেpoll(struct pollfd *, nfds_t, int);poll.h। - অ্যান্ড্রয়েড এপিআই স্তর 12 এবং 19 এর জন্য
libc.soএutimensatযুক্ত করা হয়েছে। এই লাইব্রেরিগুলি এখন সমস্ত অ্যান্ড্রয়েড এপিআই স্তরগুলির জন্য 12 থেকে 19 থেকে 19 এর জন্য অন্তর্ভুক্ত রয়েছে। - অ্যান্ড্রয়েড এপিআই স্তর 19 এর জন্য
libc.soএfutimensপরিচয় করিয়ে দিয়েছে। - অ্যান্ড্রয়েড এপিআই স্তর 8 এবং উচ্চতর জন্য অনুপস্থিত
clock_settime()clock_nanosleep()এবংtime.h। - যোগ করা
CLOCK_MONOTONIC_RAW, CLOCK_REALTIME_COARSE, CLOCK_MONOTONIC_COARSE, CLOCK_BOOTTIME, CLOCK_REALTIME_ALARM,এবংCLOCK_BOOTTIME_ALARMইনtime.h. - অপ্রচলিত
CLOCK_REALTIME_HRএবংCLOCK_MONOTONIC_HR.
- জরিপে
- নমুনাগুলিতে টিপট, মোরেটেপটস এবং
source/android/ndk_helper:- তাদের পরিবর্তন করেছে যাতে তারা এখন আর্মেবি-ভি 7 এ এর জন্য একটি হার্ড-ফ্লোট এবিআই ব্যবহার করে।
- অ্যান্ড্রয়েড এপিআই স্তর 19 এবং উচ্চতর এ নিমজ্জনিত মোড ব্যবহার করতে তাদের আপডেট করেছেন।
- X86 ডিভাইসে ক্র্যাশ ঘটায় যা
/system/lib/libdvm.soলাইব/লিবডিভিএম.এস. -তেCheck_ReleaseStringUTFCharsনিয়ে একটি সমস্যা স্থির করে।
- সিমলিঙ্কের মাধ্যমে এনডিকে প্যাকেজটি উল্লেখ করা হলে সিগউইনে ঘটে যাওয়া স্থির
ndk-buildব্যর্থ হয়। - ফিক্সড
ndk-build.cmdব্যর্থ হয় উইন্ডোজcmd.exeঘটে যখনLOCAL_SRC_FILESনিখুঁত পাথ থাকে। (সংখ্যা 69992 ) - রুটিন, ফাইলের নাম বা লাইন নম্বর খুঁজে পেতে অক্ষমতার কারণে এটি কোনও ফ্রেম পার্স করতে না পারলেও
ndk-stackস্ক্রিপ্টটি এগিয়ে যাওয়ার জন্য স্থির করে। এর মধ্যে যে কোনও ক্ষেত্রে, এটি প্রিন্ট করে??. - উইন্ডোজ-এক্স 64৪_64 লক্ষ্যগুলির জন্য
ndk-stackস্ট্যাকটি স্থির করে যাতে এটি ভুলভাবেstack:বিভাগে যাpc,eipবাipথাকে না। যেমন:I/DEBUG ( 1151): #00 5f09db68 401f01c4 /system/lib/libc.so
- স্থির গাবি ++ যাতে এটি:
- সি ++ থ্রেড-স্থানীয় অবজেক্টগুলি বরাদ্দ করতে ম্যালোক () ব্যবহার করে না।
- Libc.debug.malloc ইউজারডিবাগ/ইঞ্জি অ্যান্ড্রয়েড প্ল্যাটফর্ম বিল্ডগুলিতে শূন্য নয় এমন ক্ষেত্রে গাবি ++ এ অচলাবস্থা এড়ায়।
- শিরোনাম ফিক্স:
- অন্যান্য পরিবর্তন:
-
LOCAL_EXPORT_LDFLAGSযুক্ত করা হয়েছে। -
NDK_PROJECT_PATH=nullসেটিংটি পরিচয় করিয়ে দেয় যেখানে বিকল্পগুলি স্পষ্টভাবেndk-buildপাস করা হয়। এই সেটিংটি সহ,ndk-buildNDK_PROJECT_PATH.এই সেটিংটি NDK_PROJECT_PATH থেকে ডিফল্ট সেটিংস প্রাপ্তিতে ভেরিয়েবলগুলিও বাধা দেয়। ফলস্বরূপ, নিম্নলিখিত ভেরিয়েবলগুলি এখন স্পষ্টভাবে নির্দিষ্ট করা উচিত (তাদের যদি এ জাতীয় উপস্থিতি থাকলে তাদের ডিফল্ট মানগুলির সাথে):NDK_OUT, NDK_LIBS_OUT, APP_BUILD_SCRIPT, NDK_DEBUG(option চ্ছিক, ডিফল্ট 0), এবংApplication.mkঅন্তর্ভুক্ত অন্যান্যAPP_*। -
APP_ABIএখন একটি কমা-ধ্বংসাত্মক তালিকায় গণনা করা যেতে পারে। যেমন:APP_ABI := "armeabi,armeabi-v7a"
-
-gবিকল্পটি ব্যবহার করে, ডিবাগিং-ইনফো.জিপ-সহandroid-ndk-r9c-cxx-stl-libs-with-debugging-info.zipসিএক্সএক্সএক্স-এসটিএল-লিবস-এর সাথে পৃথক প্যাকেজে ডিবাগিং তথ্য সহ সমস্ত এসটিএল পুনর্নির্মাণের ক্ষমতা সরবরাহ করে। এই বিকল্পটিndk-stackস্ক্রিপ্টটিকে এসটিএল জুড়ে আরও ভাল স্ট্যাক ডাম্প সরবরাহ করতে সহায়তা করে। এই পরিবর্তনটি চূড়ান্ত, স্ট্রিপড ফাইলের কোড/আকারকে প্রভাবিত করবে না। - সংকলনে
APP_ABIরিপোর্ট করতেhello-jniনমুনাগুলি বর্ধিত। - স্থির গ্রন্থাগারগুলি তৈরি করতে ডিটারমিনিস্টিক মোডে (বিকল্প
-D)arসরঞ্জামটি ব্যবহার করে। (ইস্যু 60705 )
-
অ্যান্ড্রয়েড এনডিকে আর 9 বি (অক্টোবর 2013)
- গুরুত্বপূর্ণ পরিবর্তন:
- আপডেট করা হয়েছে
include/android/*hএবংmath.h18 পর্যন্ত সমস্ত অ্যান্ড্রয়েড এপিআই স্তরের জন্য, 13, 15, 16 এবং 17 স্তর সংযোজন সহ যুক্ত এপিআই সম্পর্কিত তথ্যের জন্য, 68012 এবং 68014 পরিবর্তনগুলির জন্য কমিট বার্তাগুলি দেখুন। ( 47150 , 58528 এবং 38423 ইস্যু) - রেন্ডারস্ক্রিপ্ট বাইন্ডিং সহ অ্যান্ড্রয়েড এপিআই স্তর 19 এর জন্য সমর্থন যুক্ত করা হয়েছে।
- বিদ্যমান আর্মেবি-ভি 7 এ এবিআই-তে
-mhard-floatজন্য সমর্থন যুক্ত করা হয়েছে। ক্ল্যাং সম্পর্কিত আরও তথ্য এবং বর্তমান বিধিনিষেধের জন্য,tests/device/hard-float/jni/Android.mkদেখুন। - জিএনইউ সংকলক সংগ্রহ (জিসিসি) থেকে 4.8 এ 4.8.2 থেকে স্থানান্তরিত হয়েছে এবং ডায়াগনস্টিক রঙ সমর্থন যুক্ত করেছে। ডায়াগনস্টিক রঙগুলি সক্ষম করতে, সেট
-fdiagnostics-color=auto,-fdiagnostics-color=always,বা নীচে দেখানো হিসাবেGCC_COLORSরফতানি করুন: আরও তথ্যের জন্য, জিসিসি ভাষার স্বতন্ত্র বিকল্পগুলি দেখুন।GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
- ওপেনজিএল ইএস 3.0 বৈশিষ্ট্যগুলি প্রদর্শন করতে দুটি নতুন নমুনা যুক্ত করা হয়েছে: টিপট এবং মোরেটেপটস। এই নমুনাগুলি অ্যান্ড্রয়েড 4.1 (এপিআই স্তর 16) এবং উচ্চতর ডিভাইসে চালিত হয়।
- অবমূল্যায়িত জিসিসি 4.7 এবং ক্ল্যাং 3.2 সমর্থন, যা পরবর্তী প্রকাশে সরানো হবে।
- আপডেট করা হয়েছে
- গুরুত্বপূর্ণ বাগ ফিক্স:
- আর্ম জিসিসি 4.6
thumb2এর সাথে স্থির সমস্যা 16-বিট আপেক্ষিক জাম্প টেবিল তৈরি করতে ব্যর্থ। ( জিসিসি ইস্যু ) - ফিক্সড জিসিসি 4.8
g++.dg/cpp0x/lambda/lambda-defarg3.Cতে অভ্যন্তরীণ সংকলক ত্রুটি (আইসিই)। ( পরিবর্তন 62770 , জিসিসি ইস্যু ) - উইন্ডোজ 32-বিট
*-gdb.exeএক্সিকিউটেবলগুলি চালু করতে ব্যর্থ হওয়ার সাথে একটি সমস্যা স্থির করেছে। ( সংখ্যা 58975 ) - বুলেট লাইব্রেরি তৈরি করার সময় স্থির জিসিসি 4.8 আইসিই। ত্রুটি বার্তাটি নিম্নরূপ:
( ইস্যু 58916 , জিসিসি ইস্যু )internal compiler error: verify_flow_info failed
- প্রোলগ কোড অনাবৃত করার জন্য
ARM.exidxডেটা এড়িয়ে যাওয়ার জন্য সংশোধিত জিডিবি/এআরএম বিল্ড এবং এক্সিডেক্স-ভিত্তিক স্ট্যাক আনওয়াইন্ডিং নিয়ন্ত্রণ করতে একটি কমান্ড (set arm exidx-unwinding) যুক্ত করেছে। ( সংখ্যা 55826 ) - স্থির ক্ল্যাং 3.3 এমআইপিএস সংকলক সমস্যা যেখানে এইচআই এবং এলও রেজিস্টারগুলি ভুলভাবে পুনরায় ব্যবহার করা হয়।
-
dbx_reg_numberএ এমআইপিএস 4.7 আইস সহ স্থির সমস্যা। ত্রুটি বার্তাটি নিম্নরূপ: ( জিসিসি প্যাচ )external/icu4c/i18n/decimfmt.cpp:1322:1: internal compiler error: in dbx_reg_number, at dwarf2out.c:10185
- আর্ম জিসিসি 4.6
- অন্যান্য বাগ ফিক্স:
- শিরোনাম ঠিক আছে
- স্পেক অনুসারে স্বাক্ষরযুক্ত হওয়ার জন্য বাহু
WCHAR_MINএবংWCHAR_MAXঠিক করা হয়েছে (x86/MIPS সংস্করণগুলি স্বাক্ষরিত)। পুরানো আচরণ পুনরুদ্ধার করতে_WCHAR_IS_ALWAYS_SIGNEDসংজ্ঞায়িত করুন। ( সংখ্যা 57749 ) -
TCP_INFOস্টেট এনাম ধারণ করতেinclude/netinet/tcp.h। ( ইস্যু 38881 ) - সি ++ 11 মোড ব্যবহার করার সময় জিসিসি 4.8 টুলচেইনে সতর্কতা উত্পন্ন করা বন্ধ করতে
cdefs_elh.hম্যাক্রো_C_LABEL_STRINGস্থির করে। ( ইস্যু 58135 , ইস্যু 58652 ) - হেডার
inttypes.hথেকে অস্তিত্বহীন ফাংশনগুলিimaxabsএবংimaxdivসরানো হয়েছে। -
pthread_exit()রিটার্ন মান এবংpthread_self()সাথে স্থির সমস্যা। ( 60686 ইস্যু ) - অনুপস্থিত
mkdtemp()ফাংশন যুক্ত করা হয়েছে, যা ইতিমধ্যেbionicহেডারstdlib.hএ বিদ্যমান।
- স্পেক অনুসারে স্বাক্ষরযুক্ত হওয়ার জন্য বাহু
- অ্যান্ড্রয়েড এপিআই স্তর 11 এ ক্ল্যাং সহ স্থির সমস্যা তৈরি
samples/gles3jni। - নিম্নলিখিত বিকল্পগুলির একাধিক সংঘর্ষের অনুমতি দেওয়ার জন্য স্থির ম্যাকলিংকার:
-gc-sectionsএবং--eh-frame-hdr। -
--no-warn-mismatchবিকল্পটি গ্রহণ করতে স্থির ম্যাকলিংকার। - সমস্ত ভিএফপিভি 4 ডিভাইসগুলি আইডিআইভি সমর্থন না করার জন্য পরিবর্তিত
cpu-featuresবিকল্প। এখন এই বিকল্পটি কেবল নেক্সাস 4 সহ সাদা-তালিকাভুক্ত ডিভাইসগুলিতে আইডিভ যুক্ত করেছে ( 57637 ইস্যু ) -
android_native_app_glue.cসহ স্থির সমস্যাটি ইভেন্টের পূর্বনির্ধারিত ক্রিয়াকলাপগুলিতে ভুলভাবে লগিং ত্রুটিগুলি। -
gabi++এ সমস্ত ক্রিয়াকলাপ স্থির করে এবং থ্রেড-নিরাপদ হতে অপ্রত্যাশিত_হ্যান্ডলার। - ক্ল্যাং
-integrated-asবিকল্পের সাথে বেশ কয়েকটি সমস্যা স্থির করে যাতে এটিssax-instructionsএবংfenvজন্য পরীক্ষাগুলি পাস করতে পারে। - স্থির জিসিসি 4.6/4.7/4.8 সংকলক লিঙ্কার বিকল্পটি পাস করার জন্য
--eh-frame-hdrএমনকি স্ট্যাটিক এক্সিকিউটেবলের জন্যও। আরও তথ্যের জন্য, জিসিসি প্যাচ দেখুন। -
CPU-ARCH-ABIS.html-এ স্থির অতিরিক্ত অ্যাপোস্ট্রোফ। আরও তথ্যের জন্য,NDK-DEPENDS.htmlদেখুন। ( ইস্যু 60142 ) - উইন্ডোজে এনডিকে-বিল্ড আউটপুটে স্থির অতিরিক্ত উদ্ধৃতি। ( Issue 60649 )
- Fixed Clang 3.3 to compile ARM's built-in, atomic operations such as
__atomic_fetch_add,__atomic_fetch_sub, and__atomic_fetch_or. - Fixed Clang 3.3 ICE with customized
vfprintf. ( Clang issue )
- শিরোনাম ঠিক আছে
- অন্যান্য পরিবর্তন:
- Enabled OpenMP for all GCC builds. To use this feature, add the following flags to your build settings:
For code examples, seeLOCAL_CFLAGS += -fopenmp LOCAL_LDFLAGS += -fopenmp
tests/device/test-openmp - Reduced the size of
ld.mcldsignificantly (1.5MB vs.ld.bfd3.5MB andld.gold7.5MB), resulting in a speed improvement of approximately 20%. - Added
LOCAL_CONLYFLAGSandAPP_CONLYFLAGSto specify options applicable to C only but not C++. The existingLOCAL_CFLAGSandAPP_CFLAGSare also used for C++ compilation (to save trouble of specifying most options twice), so options such as-std=gnu99may fail in g++ builds with a warning and clang++ builds with an error. - Added
gabi++array helper functions. - Modified GCC builds so that all
libgcc.afiles are built with-funwind-tablesto allow the stack to be unwound past previously blocked points, such as__aeabi_idiv0. - Added Ingenic MXU support in MIPS GCC4.6/4.7/4.8 with new
-mmxuoption. - Extended MIPS GCC4.6/4.7/4.8
-mldc1-sdc1to control ldxc1/sdxc1 too - Added crazy linker. For more information, see
sources/android/crazy_linker/README.TXT. - Fixed
bitmap-plasmato draw to full screen rather than a 200x200 pixel area. - Reduced linux and darwin toolchain sizes by 25% by creating symlinks to identical files.
- Enabled OpenMP for all GCC builds. To use this feature, add the following flags to your build settings:
Android NDK r9 (July 2013)
- গুরুত্বপূর্ণ পরিবর্তন:
- Added support for Android 4.3 (API level 18). For more information, see
STABLE-APIS.htmland new code examples insamples/gles3jni/README. - Added headers and libraries for OpenGL ES 3.0, which is supported by Android 4.3 (API level 18) and higher.
- Added GNU Compiler Collection (GCC) 4.8 compiler to the NDK. Since GCC 4.6 is still the default, you must explicitly enable this option:
- For
ndk-buildbuilds, exportNDK_TOOLCHAIN_VERSION=4.8or add it inApplication.mk. - For standalone builds, use the
--toolchain=option inmake-standalone-toolchain.sh, for example:
--toolchain=arm-linux-androideabi-4.8
Note: The
-Wunused-local-typedefsoption is enabled by-Wall. Be sure to add__attribute__((unused))if you use compile-time asserts likesources/cxx-stl/stlport/stlport/stl/config/features.h, line #311. For more information, see Change 55460Note: In the GCC 4.7 release and later, ARM compilers generate unaligned access code by default for ARMv6 and higher build targets. You may need to add the
-mno-unaligned-accessbuild option when building for kernels that do not support this feature. - For
- Added Clang 3.3 support. The
NDK_TOOLCHAIN_VERSION=clangbuild option now picks Clang 3.3 by default.Note: Both GCC 4.4.3 and Clang 3.1 are deprecated, and will be removed from the next NDK release.
- Updated GNU Project Debugger (GDB) to support python 2.7.5.
- Added MCLinker to support Windows hosts. Since
ld.goldis the default where available, you must add-fuse-ld=mcldinLOCAL_LDFLAGSorAPP_LDFLAGSto enable MCLinker. - Added
ndk-dependstool which prints ELF library dependencies. For more information, seeNDK-DEPENDS.html. ( Issue 53486 )
- Added support for Android 4.3 (API level 18). For more information, see
- Important bug fixes:
- Fixed potential event handling issue in
android_native_app_glue. ( Issue 41755 ) - Fixed ARM/GCC-4.7 build to generate sufficient alignment for NEON load and store instructions VST and VLD. ( GCC Issue 57271 )
- Fixed a GCC 4.4.3/4.6/4.7 internal compiler error (ICE) for a constant negative index value on a string literal. ( Issue 54623 )
- Fixed GCC 4.7 segmentation fault for constant initialization with an object address. ( Issue 56508 )
- Fixed GCC 4.6 ARM segmentation fault for
-Ovalues when using Boost 1.52.0. ( Issue 42891 ) - Fixed
libc.soandlibc.ato support thewait4()function. ( Issue 19854 ) - Updated the x86 libc.so and libc.a files to include the
clone()function. - Fixed
LOCAL_SHORT_COMMANDSbug where thelinker.listfile is empty or not used. - Fixed GCC MIPS build on Mac OS to use CFI directives, without which
ld.mcld --eh-frame-hdrfails frequently. - Fixed Clang 3.2 X86/MIPS internal compiler error in
llvm/lib/VMCore/Value.cpp. ( Change 59021 ) - Fixed GCC 4.7 64-bit Windows assembler crash. (Error:
out of memory allocating 4294967280 bytes). - Updated
ndk-gdbscript so that the--startor--launchactions now wait for the GNU Debug Server, so that it can more reliably hit breakpoints set early in the execution path (such as breakpoints in JNI code). ( Issue 41278 )Note: This feature requires jdb and produces warning about pending breakpoints. Specify the
--nowaitoption to restore previous behavior. - Fixed GDB crash when library list is empty.
- Fixed GDB crash when using a
stepicommand past abx pcorblx pcThumb instruction. ( Issue 56962 , Issue 36149 ) - Fixed MIPS
gdbserverto look forDT_MIPS_RLD_MAPinstead ofDT_DEBUG. ( Issue 56586 ) - Fixed a circular dependency in the ndk-build script, for example: If A->B and B->B, then B was dropped from build. ( Issue 56690 )
- Fixed potential event handling issue in
- Other bug fixes:
- Fixed the
ndk-buildscript to enable you to specify a version of Clang as a command line option (eg,NDK_TOOLCHAIN_VERSION=clang3.2). Previously, only specifying the version as an environment variable worked. - Fixed gabi++ size of
_Unwind_Exceptionto be 24 for MIPS build targets when using the Clang compiler. ( Change 54141 ) - Fixed the
ndk-buildscript to ensure that built libraries are actually removed from projects that include prebuilt static libraries when using thendk-build cleancommand. ( Change 54461 , Change 54480 ) - Modified the
NDK_ANALYZE=1option to be less verbose. - Fixed
gnu-libstdc++/Android.mkto include abackward/path for builds that use backward compatibility. ( Issue 53404 ) - Fixed a problem where
stlport newsometimes returned random values. - Fixed
ndk-gdbto match the order ofCPU_ABIS, notAPP_ABIS. ( Issue 54033 ) - Fixed a problem where the NDK 64-bit build on MacOSX chooses the wrong path for compiler. ( Issue 53769 )
- Fixed build scripts to detect 64-bit Windows Vista. ( Issue 54485 )
- Fixed x86
ntonl/swap32error:invalid 'asm': operand number out of range. ( Issue 54465 , Change 57242 ) - Fixed
ld.goldto merge string literals. - Fixed
ld.goldto handle large symbol alignment. - Updated
ld.goldto enable the--sort-section=nameoption. - Fixed GCC 4.4.3/4.6/4.7 to suppress the
-export-dynamicoption for statically linked programs. GCC no longer adds an.interpsection for statically linked programs. - Fixed GCC 4.4.3
stlportcompilation error about inconsistenttypedefof_Unwind_Control_Block. ( Issue 54426 ) - Fixed
awkscripts to handleAndroidManifest.xmlfiles created on Windows which may contain trailing\rcharacters and cause build errors. ( Issue 42548 ) - Fixed
make-standalone-toolchain.shto probe theprebuilts/directory to detect if the host is 32 bit or 64 bit. - Fixed the Clang 3.2
-integrated-asoption. - Fixed the Clang 3.2 ARM EHABI compact model
pr1andpr2handler data. - Added Clang
-mllvm -arm-enable-ehabioption to fix the following Clang error:clang: for the -arm-enable-ehabi option: may only occur zero or one times!
- Fixed build failure when there is no
uses-sdkelement in application manifest. ( Issue 57015 )
- Fixed the
- অন্যান্য পরিবর্তন:
- Header Fixes
- Modified headers to make
__set_errnoan inlined function, since__set_errnoinerrno.his deprecated, andlibc.sono longer exports it. - Modified
elf.hto includestdint.h. ( Issue 55443 ) - Fixed
sys/un.hto be included independently of other headers. ( Issue 53646 ) - Fixed all of the
MotionEvent_getHistoricalAPI family to take theconst AInputEvent* motion_event. ( Issue 55873 ) - Fixed
malloc_usable_sizeto takeconst void*. ( Issue 55725 ) - Fixed stdint.h to be more compatible with C99. ( Change 46821 )
- Modified
wchar.hto not redefineWCHAR_MAXandWCHAR_MIN - Fixed
<inttypes.h>declaration for pointer-relatedPRIandSCNmacros. ( Issue 57218 ) - Changed the
sys/cdefs.hheader so that__WCHAR_TYPE__is 32-bit for API levels less than 9, which means thatwchat_tis 32-bit for all API levels. To restore the previous behavior, define the_WCHAR_IS_8BITboolean variable. ( Issue 57267 )
- Modified headers to make
- Added more formatting in NDK
docs/and miscellaneous documentation fixes. - Added support for a thin archive technique when building static libraries. ( Issue 40303 )
- Updated script
make-standalone-toolchain.shto support thestlportlibrary in addition tognustl, when you specify the option--stl=stlport. For more information, seeSTANDALONE-TOOLCHAIN.html. - Updated the
make-standalone-toolchain.shscript so that the--llvm-version=option creates the$TOOLCHAIN_PREFIX-clangand$TOOLCHAIN_PREFIX-clang++scripts in addition toclangandclang++, to avoid using the host's clang and clang++ definitions by accident. - Added two flags to re-enable two optimizations in upstream Clang but disabled in NDK for better compatibility with code compiled by GCC:
- Added a
-fcxx-missing-return-semanticsflag to re-enable missing return semantics in Clang 3.2+. Normally, all paths should terminate with a return statement for a value-returning function. If this is not the case, clang inserts an undefined instruction (or trap in debug mode) at the path without a return statement. If you are sure your code is correct, use this flag to allow the optimizer to take advantage of the undefined behavior. If you are not sure, do not use this flag. The caller may still receive a random incorrect value, but the optimizer will not exploit it and make your code harder to debug. - Added a
-fglobal-ctor-const-promotionflag to re-enable promoting global variables with static constructor to be constants. With this flag, the global variable optimization pass of LLVM tries to evaluate the global variables with static constructors and promote them to global constants. Although this optimization is correct, it may cause some incompatibility with code compiled by GCC. For example, code may doconst_castto cast the constant to mutable and modify it. In GCC, the variable is in read-write and the code is run by accident. In Clang, the const variable is in read-only memory and may cause your application to crash.
- Added a
- Added
-mldc1-sdc1to the MIPS GCC and Clang compilers. By default, compilers align 8-byte objects properly and emit theldc1andsdc1instructions to move them around. If your app uses a custom allocator that does not always align with a new object's 8-byte boundary in the same way as the default allocator, your app may crash due toldc1andsdc1operations on unaligned memory. In this case, use the-mno-ldc1-sdc1flag to workaround the problem. - Downgraded the event severity from warning to info if
APP_PLATFORM_LEVELis larger thanAPP_MIN_PLATFORM_LEVEL. TheAPP_PLATFORM_LEVELmay be lower thanAPP_PLATFORMinjni/Application.mkbecause the NDK does not have headers for all levels. In this case, the actual level is shifted downwards. TheAPP_MIN_PLATFORM_LEVELis specified by theandroid:minSdkVersionin your application's manifest. ( Issue 39752 ) - Added the
android_getCpuIdArm()andandroid_setCpuArm()methods tocpu-features.c. This addition enables easier retrieval of the ARM CPUID information. ( Issue 53689 ) - Modified
ndk-buildto use GCC 4.7'sas/ldfor Clang compiling.Note: In GCC 4.7,
monotonic_clockandis_monotonichave been renamed tosteady_clockandis_steady, respectively. - Added the following new warnings to the
ndk-buildscript:- Added warnings if
LOCAL_LDLIBS/LDFLAGSare used in static library modules. - Added a warning if a configuration has no module to build.
- Added a warning for non-system libraries being used in
LOCAL_LDLIBS/LDFLAGSof a shared library or executable modules.
- Added warnings if
- Updated build scripts, so that if
APP_MODULESis not defined and only static libraries are listed inAndroid.mk, the script force-builds all of them. ( Issue 53502 ) - Updated
ndk-buildto support absolute paths inLOCAL_SRC_FILES. - Removed the
*-gdbtuiexecutables, which are duplicates of the*-gdbexecutables with the-tuioption enabled. - Updated the build scripts to warn you when the Edison Design Group (EDG) compiler front-end turns
_STLP_HAS_INCLUDE_NEXTback on. ( Issue 53646 ) - Added the environment variable
NDK_LIBS_OUTto allow overriding of the path forlibraries/gdbserverfrom the default$PROJECT/libs. For more information, seeOVERVIEW.html. - Changed ndk-build script defaults to compile code with format string protection
-Wformat -Werror=format-security. You may setLOCAL_DISABLE_FORMAT_STRING_CHECKS=trueto disable it. For more information, seeANDROID-MK.html - Added STL pretty-print support in
ndk-gdb-py. For more information, seeNDK-GDB.html. - Added tests based on the googletest frameworks.
- Added a notification to the toolchain build script that warns you if the current shell is not
bash.
- Header Fixes
Android NDK r8e (March 2013)
- গুরুত্বপূর্ণ পরিবর্তন:
- Added 64-bit host toolchain set (package name suffix
*-x86_64.*). For more information, seeCHANGES.HTMLandNDK-BUILD.html. - Added Clang 3.2 compiler. GCC 4.6 is still the default. For information on using the Clang compiler, see
CHANGES.HTML. - Added static code analyzer for Linux/MacOSX hosts. For information on using the analyzer, see
CHANGES.HTML. - Added MCLinker for Linux/MacOSX hosts as an experimental feature. The
ld.goldlinker is the default where available, so you must explicitly enable it. For more information, seeCHANGES.HTML. - Updated ndk-build to use topological sort for module dependencies, which means the build automatically sorts out the order of libraries specified in
LOCAL_STATIC_LIBRARIES,LOCAL_WHOLE_STATIC_LIBRARIESandLOCAL_SHARED_LIBRARIES. For more information, seeCHANGES.HTML. ( Issue 39378 )
- Added 64-bit host toolchain set (package name suffix
- Important bug fixes:
- Fixed build script to build all toolchains in
-O2. Toolchains in previous releases were incorrectly built without optimization. - Fixed build script which unconditionally builds Clang/llvm for MacOSX in 64-bit.
- Fixed GCC 4.6/4.7 internal compiler error:
gen_thumb_movhi_clobber at config/arm/arm.md:5832. ( Issue 52732 ) - Fixed build problem where GCC/ARM 4.6/4.7 fails to link code using 64-bit atomic built-in functions. ( Issue 41297 )
- Fixed GCC 4.7 linker DIV usage mismatch errors. ( Sourceware Issue )
- Fixed GCC 4.7 internal compiler error
build_data_member_initialization, at cp/semantics.c:5790. - Fixed GCC 4.7 internal compiler error
redirect_eh_edge_1, at tree-eh.c:2214. ( Issue 52909 ) - Fixed a GCC 4.7 segfault. ( GCC Issue )
- Fixed
<chrono>clock resolution and enabledsteady_clock. ( Issue 39680 ) - Fixed toolchain to enable
_GLIBCXX_HAS_GTHREADSfor GCC 4.7 libstdc++. ( Issue 41770 , Issue 41859 ) - Fixed problem with the X86 MXX/SSE code failing to link due to missing
posix_memalign. ( Change 51872 ) - Fixed GCC4.7/X86 segmentation fault in
i386.c, functiondistance_non_agu_define_in_bb(). ( Change 50383 ) - Fixed GCC4.7/X86 to restore earlier
cmovbehavior. ( GCC Issue ) - Fixed handling NULL return value of
setlocale()in libstdc++/GCC4.7. ( Issue 46718 ) - Fixed
ld.goldruntime undefined reference to__exidx_startand__exidx_start_end. ( Change 52134 ) - Fixed Clang 3.1 internal compiler error when using Eigen library. ( Issue 41246 )
- Fixed Clang 3.1 internal compiler error including
<chrono>in C++11 mode. ( Issue 39600 ) - Fixed Clang 3.1 internal compiler error when generating object code for a method call to a uniform initialized
rvalue. ( Issue 41387 ) - Fixed Clang 3.1/X86 stack realignment. ( Change 52154 )
- Fixed problem with GNU Debugger (GDB) SIGILL when debugging on Android 4.1.2. ( Issue 40941 )
- Fixed problem where GDB cannot set
source:linebreakpoints when symbols contain long, indirect file paths. ( Issue 42448 ) - Fixed GDB
read_program_headerfor MIPS PIE executables. ( Change 49592 ) - Fixed
STLportsegmentation fault inuncaught_exception(). ( Change 50236 ) - Fixed
STLportbus error in exception handling due to unaligned access ofDW_EH_PE_udata2,DW_EH_PE_udata4, andDW_EH_PE_udata8. - Fixed Gabi++ infinite recursion problem with
nothrow new[]operator. ( Issue 52833 ) - Fixed Gabi++ wrong offset to exception handler pointer. ( Change 53446 )
- Removed Gabi++ redundant free on exception object ( Change 53447 )
- Fixed build script to build all toolchains in
- Other bug fixes:
- Fixed NDK headers:
- Removed redundant definitions of
size_t,ssize_t, andptrdiff_t. - Fixed MIPS and ARM
fenv.hheader. - Fixed
stddef.hto not redefineoffsetofsince it already exists in the toolchain. - Fixed
elf.hto containElf32_auxv_tandElf64_auxv_t. ( Issue 38441 ) - Fixed the
#ifdefC++ definitions in theOpenSLES_AndroidConfiguration.hheader file. ( Issue 53163 )
- Removed redundant definitions of
- Fixed
STLportto abort after out of memory error instead of silently exiting. - Fixed system and Gabi++ headers to be able to compile with API level 8 and lower.
- Fixed
cpufeaturesto not parse/proc/self/auxv. ( Issue 43055 ) - Fixed
ld.goldto not depend on host libstdc++ and on Windows platforms, to not depend on thelibgcc_sjlj_1.dlllibrary. - Fixed Clang 3.1 which emits inconsistent register list in
.vsaveand fails assembler. ( Change 49930 ) - Fixed Clang 3.1 to be able to compile libgabi++ and pass the
test-stlporttests for MIPS build targets. ( Change 51961 ) - Fixed Clang 3.1 to only enable exception by default for C++, not for C.
- Fixed several issues in Clang 3.1 to pass most GNU exception tests.
- Fixed scripts
clangandclang++in standalone NDK compiler to detect-cc1and to not specify-targetwhen found. - Fixed
ndk-buildto observeNDK_APP_OUTset inApplication.mk. - Fixed X86
libc.soandlib.awhich were missing thesigsetjmpandsiglongjmpfunctions already declared insetjmp.h. ( Issue 19851 ) - Patched GCC 4.4.3/4.6/4.7 libstdc++ to work with Clang in C++ 11. ( Clang Issue )
- Fixed cygwin path in argument passed to
HOST_AWK. - Fixed
ndk-buildscript warning in windows when running from project's JNI directory. ( Issue 40192 ) - Fixed problem where the
ndk-buildscript does not build if makefile has trailing whitespace in theLOCAL_PATHdefinition. ( Issue 42841 )
- Fixed NDK headers:
- অন্যান্য পরিবর্তন:
- Enabled threading support in GCC/MIPS toolchain.
- Updated GCC exception handling helpers
__cxa_begin_cleanupand__cxa_type_matchto have default visibility from the previous hidden visibility in GNU libstdc++. For more information, seeCHANGES.HTML. - Updated build scripts so that Gabi++ and STLport static libraries are now built with hidden visibility except for exception handling helpers.
- Updated build so that
STLportis built for ARM in Thumb mode. - Added support for
std::set_new_handlerin Gabi++. ( Issue 52805 ) - Enabled
FUTEXsystem call in GNU libstdc++. - Updated
ndk-buildso that it no longer copies prebuilt static library to a project'sobj/local/<abi>/directory. ( Issue 40302 ) - Removed
__ARM_ARCH_5*__from ARMtoolchains/*/setup.mkscript. ( Issue 21132 ) - Built additional GNU libstdc++ libraries in thumb for ARM.
- Enabled MIPS floating-point
madd/msub/nmadd/nmsub/recip/rsqrtinstructions with 32-bit FPU. - Enabled graphite loop optimizer in GCC 4.6 and 4.7 to allow more optimizations:
-fgraphite,-fgraphite-identity,-floop-block,-floop-flatten,-floop-interchange,-floop-strip-mine,-floop-parallelize-all, and-ftree-loop-linear. ( info ) - Enabled
pollyfor Clang 3.1 on Linux and Max OS X 32-bit hosts which analyzes and optimizes memory access. ( info ) - Enabled
-fltoin GCC 4.7, 4.6, Clang 3.2 and Clang 3.1 on linux (Clang LTO via LLVMgold.so). MIPS compiler targets are not supported becauseld.goldis not available. - Enabled
--pluginand--plugin-optforld.goldin GCC 4.6/4.7. - Enabled
--text-reorderforld.goldin GCC 4.7. - Configured GNU libstdc++ with
_GLIBCXX_USE_C99_MATHwhich undefines theisinfscript in the bionic header. For more information, seeCHANGES.html. - Added
APP_LDFLAGSto the build scripts. For more information, seeANDROID-MK.html. - Updated build scripts to allow
NDK_LOG=0to disable theNDK_LOG. - Updated build scripts to allow
NDK_HOST_32BIT=0to disable the host developer environment 32-bit toolchain. - Changed the default GCC/X86 flags
-march=and-mtune=frompentiumproandgenerictoi686andatom. - Enhanced toolchain build scripts:
- Fixed a race condition in
build-gcc.shfor themingwbuild type which was preventing a significant amount of parallel build processing. - Updated
build-gabi++.shandbuild-stlport.shso they can now run from the NDK package. ( Issue 52835 ) - Fixed
run-tests.shin theMSysutilities collection. - Improved 64-bit host toolchain and Canadian Cross build support.
- Updated
build-mingw64-toolchain.shscript to more recent version. - Added option to build
libgnustl_static.aandstlport_static.awithout hidden visibility.
- Fixed a race condition in
Android NDK r8d (December 2012)
- গুরুত্বপূর্ণ পরিবর্তন:
- Added the GNU Compiler Collection (GCC) 4.7 compiler to the NDK. The GCC 4.6 compiler is still the default, so you must to explicitly enable the new version as follows:
- For
ndk-build, export theNDK_TOOLCHAIN_VERSION=4.7variable or add it toApplication.mk. - For standalone builds, add the
--toolchain=option tomake-standalone-toolchain.sh, for example:--toolchain=arm-linux-androideabi-4.7
Note: This feature is experimental. Please try it and report any issues .
- For
- Added
stlportexception support via gabi++. Note that the new gabi++ depends ondlopenand related code, meaning that:- You can no longer build a static executable using the
-staticoption or includelibstlport_static.ausingAPP_STL := stlport_static. (You can still use the-staticoption with a standalone toolchain.) Compiling a dynamic executable usinginclude $(BUILD_EXECUTABLE)continues to work because the compiler automatically adds the-ldloption. - If your project links using
-nostdliband {-Wl,--no-undefined}, you must manually include the-ldloption.
CPLUSPLUS-SUPPORT.html.Note: This feature is experimental and works better with the GCC 4.6/4.7 compilers than with GCC 4.4.3 or Clang 3.1. Please try it and report any issues .
- You can no longer build a static executable using the
- Added a
-mstack-protector-guard=option for x86 to choose between a global default path which is compatible with older Android C library (bionic) and a new tls path (%gs:20) for-fstack-protector,-fstack-protector-alland-fstack-protector-strongusing the GCC 4.6 and higher compilers.Note: The
-mstack-protector-guardsetting itself does not enable any-fstack-protector*options. - Added
android_setCpu()function tosources/android/cpufeatures/cpu-features.cfor use when auto-detection via/procis not possible in Android 4.1 and higher. ( Chromium Issue 164154 )
- Added the GNU Compiler Collection (GCC) 4.7 compiler to the NDK. The GCC 4.6 compiler is still the default, so you must to explicitly enable the new version as follows:
- Important bug fixes:
- Fixed unnecessary rebuild of object files when using the
ndk-buildscript. ( Issue 39810 ) - Fixed a linker failure with the NDK 8c release for Mac OS X 10.6.x that produced the following error:
This problem was caused by building on Mac OS X 10.7, which produced binaries that were not compatible with Mac OS 10.6.x and the NDK.dyld: lazy symbol binding failed: Symbol not found: _memmem Referenced from: ...../arm-linux-androideabi/bin/ld Expected in: /usr/lib/libSystem.B.dylib
- Removed the
-x c++options from the Clang++ standalone build script. ( Issue 39089 ) - Fixed issues using the
NDK_TOOLCHAIN_VERSION=clang3.1option in Cygwin. ( Issue 39585 ) - Fixed the
make-standalone-toolchain.shscript to allow generation of a standalone toolchain using the Cygwin or MinGW environments. The resulting toolchain can be used in Cygwin, MingGW or CMD.exe environments. ( Issue 39915 , Issue 39585 ) - Added missing
SL_IID_ANDROIDBUFFERQUEUESOURCEoption in android-14 builds for ARM and X86. ( Issue 40625 ) - Fixed x86 CPU detection for the
ANDROID_CPU_X86_FEATURE_MOVBEfeature. ( Issue 39317 ) - Fixed an issue preventing the Standard Template Library (STL) from using C++ sources that do not have a
.cppfile extension. - Fixed GCC 4.6 ARM internal compiler error at reload1.c:1061 . ( Issue 20862 )
- Fixed GCC 4.4.3 ARM internal compiler error at emit-rtl.c:1954 . ( Issue 22336 )
- Fixed GCC 4.4.3 ARM internal compiler error at postreload.c:396 . ( Issue 22345 )
- Fixed problem with GCC 4.6/4.7 skipping lambda functions. ( Issue 35933 )
- Fixed unnecessary rebuild of object files when using the
- Other bug fixes:
- NDK header file fixes:
- Fixed
__WINT_TYPE__andwint_tto be the same type. - Corrected typo in
android/bitmap.h. ( Issue 15134 ) - Corrected typo in
errno.h. - Added check for the presence of
__STDC_VERSION__insys/cdefs.h. ( Issue 14627 ) - Reorganized headers in
byteswap.handdirent.h. - Fixed
limits.hto includepage.hwhich providesPAGE_SIZEsettings. ( Issue 39983 ) - Fixed return type of
glGetAttribLocation()andglGetUniformLocation()frominttoGLint. - Fixed
__BYTE_ORDERconstant for x86 builds. ( Issue 39824 )
- Fixed
- Fixed
ndk-buildscript to not overwrite-Oswith-O2for ARM builds. - Fixed build scripts to allow overwriting of
HOST_AWK,HOST_SED, andHOST_MAKEsettings. - Fixed issue for
ld.goldonfsck_msdosbuilds linking objects built by the Intel C/C++ compiler (ICC). - Fixed ARM EHABI support in Clang to conform to specifications.
- Fixed GNU Debugger (GDB) to shorten the time spent on walking the target's link map during
solibevents. ( Issue 38402 ) - Fixed missing
libgcc.afile when linking shared libraries.
- NDK header file fixes:
- অন্যান্য পরিবর্তন:
- Backported 64-bit built-in atomic functions for ARM to GCC 4.6.
- Added documentation for audio output latency, along with other documentation and fixes.
- Fixed debug builds with Clang so that non-void functions now raise a
SIGILLsignal for paths without a return statement. - Updated
make-standalone-toolchain.shto accept the suffix-clang3.1which is equivalent to adding--llvm-version=3.1to the GCC 4.6 toolchain. - Updated GCC and Clang bug report URL to: https://source.android.com/source/report-bug s.html
- Added ARM ELF support to
llvm-objdump. - Suppressed treating c input as c++ warning for Clang builds.
- Updated build so that only the 32-bit version of
libiberty.ais built and placed inlib32/.
Android NDK r8c (November 2012)
- গুরুত্বপূর্ণ পরিবর্তন:
- Added the Clang 3.1 compiler to the NDK. The GNU Compiler Collection (GCC) 4.6 is still the default, so you must explicitly enable the Clang compiler option as follows:
- For
ndk-build, exportNDK_TOOLCHAIN_VERSION=clang3.1or add this environment variable setting toApplication.mk. - For standalone builds, add
--llvm-version=3.1tomake-standalone-toolchain.shand replaceCCandCXXin your makefile with<tool-path>/bin/clangand<tool-path>/bin/clang++. SeeSTANDALONE-TOOLCHAIN.htmlfor details.
Note: This feature is experimental. Please try it and report any issues .
- For
- Added Gold linker
ld.goldfor the Windows toolchain. Gold linker is also the default for ARM and X86 on all hosts. You may override it to use theld.bfdlinker by addingLOCAL_LDFLAGS += -fuse-ld=bfdtoAndroid.mk, or by passing-fuse-ld=bfdto the g++/clang++ command line that does the linking. - Added checks for spaces in the NDK path to the
ndk-build[.cmd]andndk-gdbscripts, to prevent build errors that are difficult to diagnose. - Made the following changes to API level handling:
- Modified build logic so that projects that specify
android-10throughandroid-13inAPP_PLATFORM,project.propertiesordefault.propertieslink againstandroid-9instead ofandroid-14. - Updated build so that executables using android-16 (Jelly Bean) or higher are compiled with the
-fPIEoption for position-independent executables (PIE). A newAPP_PIEoption allows you to control this behavior. SeeAPPLICATION-MK.htmlfor details.Note: All API levels above 14 still link against
platforms/android-14and no newplatforms/android-Nhave been added. - Modified
ndk-buildto provide warnings if the adjusted API level is larger thanandroid:minSdkVersionin the project'sAndroidManifest.xml.
- Modified build logic so that projects that specify
- Updated the
cpu-featureshelper library to include more ARM-specific features. Seesources/android/cpufeatures/cpu-features.hfor details. - Modified the long double on the X86 platform to be 8 bytes. This data type is now the same size as a double, but is still treated as a distinct type.
- Updated build for
APP_ABI=armeabi-v7a:- Modified this build type to pass the
-march=armv7-aparameter to the linker. This change ensures that v7-specific libraries andcrt*.oare linked correctly. - Added
-mfpu=vfpv3-d16tondk-buildinstead of the-mfpu=vfpoption used in previous releases.
- Modified this build type to pass the
- Added the Clang 3.1 compiler to the NDK. The GNU Compiler Collection (GCC) 4.6 is still the default, so you must explicitly enable the Clang compiler option as follows:
- Important bug fixes:
- Fixed an issue where running
make-standalone-toolchain.shwith root privileges resulted in the stand alone tool chain being inaccessible to some users. ( Issue 35279 )- All files and executables in the NDK release package are set to have read and execute permissions for all.
- The ownership/group of
libstdc++.ais now preserved when copied.
- Removed redundant
\rfrom Windows prebuiltecho.exe. The redundant\rcausedgdb.setupto fail in the GNU Debugger (GDB) because it incorrectly became part of the path. ( Issue 36054 ) - Fixed Windows parallel builds that sometimes failed due to timing issues in the
host-mkdirimplementation. ( Issue 25875 ) - Fixed GCC 4.4.3 GNU
libstdc++to not mergetypeinfonames by default. For more details, seetoolchain repo gcc/gcc-4.4.3/libstdc++-v3/libsupc++/typeinfo. ( Issue 22165 ) - Fixed problem on
nullcontext in GCC 4.6cp/mangle.c::write_unscoped_name, where GCC may crash when the context isnulland dereferenced inTREE_CODE. - Fixed GCC 4.4.3 crashes on ARM NEON-specific type definitions for floats. ( Issue 34613 )
- Fixed the
STLportinternal_IteWrapper::operator*()implementation where a stale stack location holding the dereferenced value was returned and caused runtime crashes. ( Issue 38630 ) - ARM-specific fixes:
- Fixed ARM GCC 4.4.3/4.6
g++to not warn that the mangling of <va_list> was changed in GCC 4.4 . The workaround using the-Wno-psabiswitch to avoid this warning is no longer required. - Fixed an issue when a project with
.armor.neonsuffixes inLOCAL_SRC_FILESalso usedAPP_STL. WithAPP_STL, thendk-buildscript searches for C++ files inLOCAL_SRC_FILESbefore adding STLheader/libpaths to compilation. Modifiedndk-buildto filter out.armand.neonsuffixes before the search, otherwise items inLOCAL_SRC_FILESlikemyfile.cpp.arm.neonwon't be compiled as C++ code. - Fixed
binutils-2.21/ld.bfdto be capable of linking object from older binutils withouttag_FP_arch, which was producing assertion fail error messages in GNU Binutils. ( Issue 35209 ) - Removed Unknown EABI object attribute 44 warning when
binutils-2.19/ldlinks prebuilt object by newerbinutils-2.21 - Fixed an issue in GNU
stdc++compilation with both-mthumband-march=armv7-a, by modifyingmake-standalone-toolchain.shto populateheaders/libsin sub-directoryarmv7-a/thumb. ( Issue 35616 ) - Fixed unresolvable R_ARM_THM_CALL relocation error. ( Issue 35342 )
- Fixed internal compiler error at
reload1.c:3633, caused by the ARM back-end expecting the wrong operand type when sign-extend fromchar. ( GCC Issue 50099 ) - Fixed internal compiler error with negative shift amount. ( GCC Issue )
- Fixed ARM GCC 4.4.3/4.6
- Fixed
-fstack-protectorfor X86, which is also the default for thendk-buildx86 ABI target. - MIPS-specific fixes:
- Fixed
STLportendian-ness by setting_STLP_LITTLE_ENDIANto 1 when compiling MIPSlibstlport_*. - Fixed GCC
__builtin_unreachableissue when compiling LLVM. ( GCC Issue 54369 ) - Backported fix for
cc1compile process consuming 100% CPU. ( GCC Issue 50380 )
- Fixed
- GNU Debugger-specific fixes:
- Disabled Python support in gdb-7.x at build, otherwise the gdb-7.x configure function may pick up whatever Python version is available on the host and build
gdbwith a hard-wired dependency on a specific version of Python. ( Issue 36120 ) - Fixed
ndk-gdbwhenAPP_ABIcontainsalland matches none of the known architectures. ( Issue 35392 ) - Fixed Windows pathname support, by keeping the
:character if it looks like it could be part of a Windows path starting with a drive letter. ( GDB Issue 12843 ) - Fixed adding of hardware breakpoint support for ARM in
gdbserver. ( GDB Issue ) - Added fix to only read the current
solibswhen the linker is consistent. This change speeds upsolibevent handling. ( Issue 37677 ) - Added fix to make repeated attempts to find
solibbreakpoints. GDB now retriesenable_break()during every call tosvr4_current_sos()until it succeeds. ( Change 43563 ) - Fixed an issue where
gdbwould not stop on breakpoints placed indlopen-edlibraries. ( Issue 34856 ) - Fixed
SIGILLin dynamic linker when callingdlopen(), on system where/system/bin/linkeris stripped of symbols andrtld_db_dlactivity()is implemented asThumb, due to not preservingLSBofsym_addr. ( Issue 37147 )
- Disabled Python support in gdb-7.x at build, otherwise the gdb-7.x configure function may pick up whatever Python version is available on the host and build
- Fixed an issue where running
- Other bug fixes:
- Fixed NDK headers:
- Fixed
arch-mips/include/asm/*code that was incorrectly removed from original kernel. ( Change 43335 ) - Replaced struct member data
__unusedwith__linux_unusedinlinux/sysctl.handlinux/icmp.hto avoid conflict with#define __unusedinsys/cdefs.h. - Fixed
fenv.hfor enclosed C functions with__BEGIN_DECLSand__END_DECLS. - Removed unimplemented functions in
malloc.h. - Fixed
stdint.hdefinition ofuint64_tfor ANSI compilers. ( Issue 1952 ) - Fixed preprocessor macros in
<arch>/include/machine/*. - Replaced
link.hfor MIPS with new version supporting all platforms. - Removed
linux-unistd.h - Move GLibc-specific macros
LONG_LONG_MIN,LONG_LONG_MAXandULONG_LONG_MAXfrom<pthread.h>to<limits.h>.
- Fixed
- Fixed a buffer overflow in
ndk-stack-parser. - Fixed
_STLP_USE_EXCEPTIONS, when not defined, to omit all declarations and uses of__Named_exception. Compiling and use of__Named_exceptionsettings only occurs whenSTLportis allowed to use exceptions. - Fixed building of Linux-only NDK packages without also building Windows code. Use the following settings to perform this type of build:
./build/tools/make-release.sh --force --systems=linux-x86
- Fixed
libc.soso it does not exportatexit()and__do_handler. These symbols are exported for ARM builds by the system version of the C library to support legacy native libraries. NDK-generated should never reference them directly. Instead, each shared library or executable should embed its own version of these symbols, provided bycrtbegin_*.o.If your project is linked with the
-nostdlib -Wl,--no-undefinedoptions, you must provide your own__dso_handlebecausecrtbegin_so.ois not linked in this case. The content of__dso_handledoes not matter, as shown in the following example code:extern "C" { extern void *__dso_handle __attribute__((__visibility__ ("hidden"))); void *__dso_handle; }
- Fixed symbol decoder for ARM used in
objdumpforpltentries to generate a more readable formfunction@plt. - Removed the following symbols, introduced in GCC 4.6
libgcc.a, from the X86 platformlibc.solibrary:__aeabi_idiv0,__aeabi_ldiv0,__aeabi_unwind_cpp_pr1, and__aeabi_unwind_cpp_pr2. - Removed unused
.ctors,.dtors, and.eh_framein MIPScrt*_so.S. - Updated
ndk-gdbso that it only takes the last line of output forndk-buildDUMP_XXXX. This change ensures that ifApplication.mkorAndroid.mkprint something with$(info ...)syntax, it does not get injected into the result ofDUMP_XXXX. ( আরো তথ্য )
- Fixed NDK headers:
- অন্যান্য পরিবর্তন:
- Removed
arch-x86andarch-mipsheaders fromplatforms/android-[3,4,5,8]. Those headers were incomplete, since both X86 and MIPS ABIs are only supported at API 9 or higher. - Simplified c++ include path in standalone packages, as shown below. ( Issue 35279 )
<path>/arm-linux-androideabi/include/c++/4.6.x-google to: <path>/include/c++/4.6/
- Fixed
ndk-buildto recognize more C++ file extensions by default:.cc .cp .cxx .cpp .CPP .c++ .C. You may still useLOCAL_CPP_EXTENSIONto overwrite these extension settings. - Fixed an issue in
samples/san-angelesthat caused a black screen or freeze frame on re-launch. - Replaced deprecated APIs in NDK samples. ( Issue 20017 )
-
hello-gl2from android-5 to android-7 -
native-activityfrom android-9 to android-10 -
native-audiofrom android-9 to android-10 -
native-plasmafrom android-9 to android-10
-
- Added new branding for Android executables with a simpler scheme in section
.note.android.ident(defined incrtbegin_static/dynamic.o) so that debugging tools can act accordingly. The structure member and values are defined as follows:static const struct { int32_t namesz; /* = 8, sizeof ("Android") */ int32_t descsz; /* = 1 * sizeof(int32_t) */ int32_t type; /* = 1, ABI_NOTETYPE */ char name[sizeof "Android"]; /* = "Android" */ int32_t android_api; /* = 3, 4, 5, 8, 9, 14 */ }
The previous branding options in section
.note.ABI-tagare deprecated. - Added a new script
run-tests-all.shwhich callsrun-tests.shandstandalone/run.shwith various conditions. The scriptrun-tests.shruns without the--abioption, and is enhanced to compile most of the tests for all supported ABIs and run on all attached devices
- Removed
Android NDK r8b (July 2012)
The main features of this release are a new GNU Compiler Collection (GCC) 4.6 toolchain and GNU Debugger (GDB) 7.3.x which adds debugging support for the Android 4.1 (API Level 16) system image.
- Important bug fixes:
- Fixed
LOCAL_SHORT_COMMANDSissues on Mac OS, Windows Cygwin environments for static libraries. List file generation is faster, and it is not regenerated to avoid repeated project rebuilds. - Fixed several issues in
ndk-gdb:- Updated tool to pass flags
-e,-dand-sto adb more consistently. - Updated tool to accept device serial names containing spaces.
- Updated tool to retrieve
/system/bin/linkinformation, sogdbon the host can set a breakpoint in__dl_rtld_db_dlactivityand be aware of linker activity (eg, rescansolibsymbols whendlopen()is called).
- Updated tool to pass flags
- Fixed
ndk-build cleanon Windows, which was failing to remove./libs/*/lib*.so. - Fixed
ndk-build.cmdto return a non-zeroERRORLEVELwhenmakefails. - Fixed
libc.soto stop incorrectly exporting the__exidx_startand__exidx_endsymbols. - Fixed
SEGVwhen unwinding the stack past__libc_initfor ARM and MIPS.
- Fixed
- গুরুত্বপূর্ণ পরিবর্তন:
- Added GCC 4.6 toolchain (
binutils2.21 withgoldand GDB 7.3.x) to co-exist with the original GCC 4.4.3 toolchain (binutils2.19 and GDB 6.6).- GCC 4.6 is now the default toolchain. You may set
NDK_TOOLCHAIN_VERSION=4.4.3inApplication.mkto select the original one. - Support for the
goldlinker is only available for ARM and x86 architectures on Linux and Mac OS hosts. This support is disabled by default. AddLOCAL_LDLIBS += -fuse-ld=goldinAndroid.mkto enable it. - Programs compiled with
-fPIErequire the newGDBfor debugging, including binaries in Android 4.1 (API Level 16) system images. - The
binutils2.21ldtool contains back-ported fixes from version 2.22:- Fixed
ld --gc-sections, which incorrectly retains zombie references to external libraries. ( আরো তথ্য )। - Fixed ARM
stripcommand to preserve the originalp_alignandp_flagsinGNU_RELROsection if they are valid. Without this fix, programs built with-fPIEcould not be debugged. (mor e info )
- Fixed
- Disabled
sincos()optimization for compatibility with older platforms.
- GCC 4.6 is now the default toolchain. You may set
- Updated build options to enable the Never eXecute (NX) bit and
relro/bind_nowprotections by default:- Added
--noexecstackto assembler and-z noexecstackto linker that provides NX protection against buffer overflow attacks by enabling NX bit on stack and heap. - Added
-z relroand-z nowto linker for hardening of internal data sections after linking to guard against security vulnerabilities caused by memory corruption. (more info: 1 , 2 ) - These features can be disabled using the following options:
- Disable NX protection by setting the
--execstackoption for the assembler and-z execstackfor the linker. - Disable hardening of internal data by setting the
-z norelroand-z lazyoptions for the linker. - Disable these protections in the NDK
jni/Android.mkby setting the following options:LOCAL_DISABLE_NO_EXECUTE=true # disable "--noexecstack" and "-z noexecstack" DISABLE_RELRO=true # disable "-z relro" and "-z now"
See
docs/ANDROID-MK.htmlfor more details. - Disable NX protection by setting the
- Added
- Added branding for Android executables with the
.note.ABI-tagsection (incrtbegin_static/dynamic.o) so that debugging tools can act accordingly. The structure member and values are defined as follows:static const struct { int32_t namesz; /* = 4, sizeof ("GNU") */ int32_t descsz; /* = 6 * sizeof(int32_t) */ int32_t type; /* = 1 */ char name[sizeof "GNU"]; /* = "GNU" */ int32_t os; /* = 0 */ int32_t major; /* = 2 */ int32_t minor; /* = 6 */ int32_t teeny; /* = 15 */ int32_t os_variant; /* = 1 */ int32_t android_api; /* = 3, 4, 5, 8, 9, 14 */ }
- Added GCC 4.6 toolchain (
- Other bug fixes:
- Fixed
mips-linux-gnurelocation truncated to fitR_MIPS_TLS_LDMissue. ( আরো তথ্য ) - Fixed
ldtool segfaults when using--gc-sections. ( আরো তথ্য ) - Fixed MIPS
GOT_PAGEcounting issue. ( আরো তথ্য ) - Fixed follow warning symbol link for
mips_elf_count_got_symbols. - Fixed follow warning symbol link for
mips_elf_allocate_lazy_stub. - Moved MIPS
.dynamicto the data segment, so that it is writable. - Replaced hard-coded values for symbols with correct segment sizes for MIPS.
- Removed the
-mno-sharedoption from the defaults in the MIPS toolchain. The default for Android toolchain is-fPIC(or-fpicif supported). If you do not explicitly specify-mshared,-fpic,-fPIC,-fpie, or-fPIE, the MIPS compiler adds-mno-sharedthat turns off PIC. Fixed compiler not to add-mno-sharedin this case. - Fixed wrong package names in samples
hello-jniandtwo-libsso that thetestsproject underneath it can compile.
- Fixed
- অন্যান্য পরিবর্তন:
- Changed locations of binaries:
- Moved
gdbserverfromtoolchain/<arch-os-ver>/prebuilt/gdbservertoprebuilt/android-<arch>/gdbserver/gdbserver. - Renamed x86 toolchain prefix from
i686-android-linux-toi686-linux-android-. - Moved
sources/cxx-stl/gnu-libstdc++/includeandlibtosources/cxx-stl/gnu-libstdc++/4.6when compiled with GCC 4.6, orsources/cxx-stl/gnu-libstdc++/4.4.3when compiled with GCC 4.4.3. - Moved
libbfd.aandlibintl.afromlib/tolib32/.
- Moved
- Added and improved various scripts in the rebuild and test NDK toolchain:
- Added
build-mingw64-toolchain.shto generate a new Linux-hosted toolchain that generates Win32 and Win64 executables. - Improved speed of
download-toolchain-sources.shby using theclonecommand and only usingcheckoutfor the directories that are needed to build the NDK toolchain binaries. - Added
build-host-gcc.shandbuild-host-gdb.shscripts. - Added
tests/check-release.shto check the content of a given NDK installation directory, or an existing NDK package. - Rewrote the
tests/standalone/run.shstandalone tests .
- Added
- Removed
if_dl.hheader from all platforms and architectures. TheAF_LINKandsockaddr_dlelements it describes are specific to BSD (ie, they don't exist in Linux).
- Changed locations of binaries:
Android NDK r8 (May 2012)
This release of the NDK includes support for MIPS ABI and a few additional fixes.
- নতুন বৈশিষ্ট্য:
- Added support for the MIPS ABI, which allows you to generate machine code that runs on compatible MIPS-based Android devices. Major features for MIPS include MIPS-specific toolchains, system headers, libraries and debugging support. For more details regarding MIPS support, see
docs/CPU-MIPS.htmlin the NDK package.By default, code is generated for ARM-based devices. You can add
mipsto yourAPP_ABIdefinition in yourApplication.mkfile to build for MIPS platforms. For example, the following line instructsndk-buildto build your code for three distinct ABIs:APP_ABI := armeabi armeabi-v7a mips
Unless you rely on architecture-specific assembly sources, such as ARM assembly code, you should not need to touch your
Android.mkfiles to build MIPS machine code. - You can build a standalone MIPS toolchain using the
--arch=mipsoption when callingmake-standalone-toolchain.sh. Seedocs/STANDALONE-TOOLCHAIN.htmlfor more details.
Note: To ensure that your applications are available to users only if their devices are capable of running them, Google Play filters applications based on the instruction set information included in your application ? no action is needed on your part to enable the filtering. Additionally, the Android system itself also checks your application at install time and allows the installation to continue only if the application provides a library that is compiled for the device's CPU architecture.
- Added support for the MIPS ABI, which allows you to generate machine code that runs on compatible MIPS-based Android devices. Major features for MIPS include MIPS-specific toolchains, system headers, libraries and debugging support. For more details regarding MIPS support, see
- Important bug fixes:
- Fixed a typo in GAbi++ implementation where the result of
dynamic_cast<D>(b)of base class objectbto derived classDis incorrectly adjusted in the opposite direction from the base class. ( Issue 28721 ) - Fixed an issue in which
make-standalone-toolchain.shfails to copylibsupc++.*.
- Fixed a typo in GAbi++ implementation where the result of
- Other bug fixes:
- Fixed
ndk-build.cmdto ensure thatndk-build.cmdworks correctly even if the user has redefined theSHELLenvironment variable, which may be changed when installing a variety of development tools in Windows environments.
- Fixed
Android NDK r7c (April 2012)
This release of the NDK includes an important fix for Tegra2-based devices, and a few additional fixes and improvements:
- Important bug fixes:
- Fixed GNU STL armeabi-v7a binaries to not crash on non-NEON devices. The files provided with NDK r7b were not configured properly, resulting in crashes on Tegra2-based devices and others when trying to use certain floating-point functions (eg,
cosf,sinf,expf).
- Fixed GNU STL armeabi-v7a binaries to not crash on non-NEON devices. The files provided with NDK r7b were not configured properly, resulting in crashes on Tegra2-based devices and others when trying to use certain floating-point functions (eg,
- গুরুত্বপূর্ণ পরিবর্তন:
- Added support for custom output directories through the
NDK_OUTenvironment variable. When defined, this variable is used to store all intermediate generated files, instead of$PROJECT_PATH/obj. The variable is also recognized byndk-gdb. - Added support for building modules with hundreds or even thousands of source files by defining
LOCAL_SHORT_COMMANDStotruein yourAndroid.mk.This change forces the NDK build system to put most linker or archiver options into list files, as a work-around for command-line length limitations. See
docs/ANDROID-MK.htmlfor details.
- Added support for custom output directories through the
- Other bug fixes:
- Fixed
android_getCpuCount()implementation in thecpufeatureshelper library. On certain devices, where cores are enabled dynamically by the system, the previous implementation would report the total number of active cores the first time the function was called, rather than the total number of physically available cores.
- Fixed
Android NDK r7b (February 2012)
This release of the NDK includes fixes for native Windows builds, Cygwin and many other improvements:
- Important bug fixes:
- Updated
sys/atomics.hto avoid correctness issues on some multi-core ARM-based devices. Rebuild your unmodified sources with this version of the NDK and this problem should be completely eliminated. For more details, readdocs/ANDROID-ATOMICS.html. - Reverted to
binutils2.19 to fix debugging issues that appeared in NDK r7 (which switched tobinutils2.20.1). - Fixed
ndk-buildon 32-bit Linux. A packaging error put a 64-bit version of theawkexecutable underprebuilt/linux-x86/binin NDK r7. - Fixed native Windows build (
ndk-build.cmd). Other build modes were not affected. The fixes include:- Removed an infinite loop / stack overflow bug that happened when trying to call
ndk-build.cmdfrom a directory that was not the top of your project path (eg, in any sub-directory of it). - Fixed a problem where the auto-generated dependency files were ignored. This meant that updating a header didn't trigger recompilation of sources that included it.
- Fixed a problem where special characters in files or paths, other than spaces and quotes, were not correctly handled.
- Removed an infinite loop / stack overflow bug that happened when trying to call
- Fixed the standalone toolchain to generate proper binaries when using
-lstdc++(ie, linking against the GNUlibstdc++C++ runtime). You should use-lgnustl_sharedif you want to link against the shared library version or-lstdc++for the static version.See
docs/STANDALONE-TOOLCHAIN.htmlfor more details about this fix. - Fixed
gnustl_sharedon Cygwin. The linker complained that it couldn't findlibsupc++.aeven though the file was at the right location. - Fixed Cygwin C++ link when not using any specific C++ runtime through
APP_STL.
- Updated
- অন্যান্য পরিবর্তন:
- When your application uses the GNU
libstdc++runtime, the compiler will no longer forcibly enable exceptions and RTTI. This change results in smaller code.If you need these features, you must do one of the following:
- Enable exceptions and/or RTTI explicitly in your modules or
Application.mk. (প্রস্তাবিত) - Define
APP_GNUSTL_FORCE_CPP_FEATURESto'exceptions','rtti'or both in yourApplication.mk. Seedocs/APPLICATION-MK.htmlfor more details.
- Enable exceptions and/or RTTI explicitly in your modules or
-
ndk-gdbnow works properly when your application has private services running in independent processes. It debugs the main application process, instead of the first process listed byps, which is usually a service process. - Fixed a rare bug where NDK r7 would fail to honor the
LOCAL_ARM_MODEvalue and always compile certain source files (but not all) to 32-bit instructions. -
STLport: Refresh the sources to match the Android platform version. This update fixes a few minor bugs:- Fixed instantiation of an incomplete type
- Fixed minor "==" versus "=" typo
- Used
memmoveinstead ofmemcpyinstring::assign - Added better handling of
IsNANorINF,IsINF,IsNegNAN, etc.
For complete details, see the commit log.
-
STLport: Removed 5 unnecessary static initializers from the library. - The GNU libstdc++ libraries for armeabi-v7a were mistakenly compiled for armeabi instead. This change had no impact on correctness, but using the right ABI should provide slightly better performance.
- The
cpu-featureshelper library was updated to report three optional x86 CPU features (SSSE3,MOVBEandPOPCNT). Seedocs/CPU-FEATURES.htmlfor more details. -
docs/NDK-BUILD.htmlwas updated to mentionNDK_APPLICATION_MKinstead ofNDK_APP_APPLICATION_MKto select a customApplication.mkfile. - Cygwin:
ndk-buildno longer creates an empty "NUL" file in the current directory when invoked. - Cygwin: Added better automatic dependency detection. In the previous version, it didn't work properly in the following cases:
- When the Cygwin drive prefix was not
/cygdrive. - When using drive-less mounts, for example, when Cygwin would translate
/hometo\\server\subdirinstead ofC:\Some\Dir.
- When the Cygwin drive prefix was not
- Cygwin:
ndk-builddoes not try to use the native Windows tools under$NDK/prebuilt/windows/binwith certain versions of Cygwin and/or GNU Make.
- When your application uses the GNU
Android NDK r7 (November 2011)
This release of the NDK includes new features to support the Android 4.0 platform as well as many other additions and improvements:
- নতুন বৈশিষ্ট্য
- Added official NDK APIs for Android 4.0 (API level 14), which adds the following native features to the platform:
- Added native multimedia API based on the Khronos Group OpenMAX AL 1.0.1 standard. The new
<OMXAL/OpenMAXAL.h>and<OMXAL/OpenMAXAL_Android.h>headers allow applications targeting API level 14 to perform multimedia output directly from native code by using a new Android-specific buffer queue interface. For more details, seedocs/openmaxal/index.htmland http://www.khronos.org/openmax/ . - Updated the native audio API based on the Khronos Group OpenSL ES 1.0.1 standard. With API Level 14, you can now decode compressed audio (eg MP3, AAC, Vorbis) to PCM. For more details, see
docs/opensles/index.htmland http://www.khronos.org/opensles/ .
- Added native multimedia API based on the Khronos Group OpenMAX AL 1.0.1 standard. The new
- Added CCache support. To speed up large rebuilds, define the
NDK_CCACHEenvironment variable toccache(or the path to yourccachebinary). When declared, the NDK build system automatically uses CCache when compiling any source file. যেমন:export NDK_CCACHE=ccache
Note: CCache is not included in the NDK release so you must have it installed prior to using it. For more information about CCache, see http://ccache.samba.org .
- Added support for setting
APP_ABItoallto indicate that you want to build your NDK modules for all the ABIs supported by your given NDK release. This means that either one of the following two lines in yourApplication.mkare equivalent with this release:APP_ABI := all APP_ABI := armeabi armeabi-v7a x86
This also works if you define
APP_ABIwhen callingndk-buildfrom the command-line, which is a quick way to check that your project builds for all supported ABIs without changing the project'sApplication.mk file. যেমন:ndk-build APP_ABI=all
- Added a
LOCAL_CPP_FEATURESvariable inAndroid.mkthat allows you to declare which C++ features (RTTI or Exceptions) your module uses. This ensures that the final linking works correctly if you have prebuilt modules that depend on these features. Seedocs/ANDROID-MK.htmlanddocs/CPLUSPLUS-SUPPORT.htmlfor more details. - Shortened paths to source and object files that are used in build commands. When invoking
$NDK/ndk-buildfrom your project path, the paths to the source, object, and binary files that are passed to the build commands are significantly shorter now, because they are passed relative to the current directory. This is useful when building projects with a lot of source files, to avoid limits on the maximum command line length supported by your host operating system. The behavior is unchanged if you invokendk-buildfrom a sub-directory of your project tree, or if you defineNDK_PROJECT_PATHto point to a specific directory.
- Added official NDK APIs for Android 4.0 (API level 14), which adds the following native features to the platform:
- পরীক্ষামূলক বৈশিষ্ট্য
- You can now build your NDK source files on Windows without Cygwin by calling the
ndk-build.cmdscript from the command line from your project path. The script takes exactly the same arguments as the originalndk-buildscript. The Windows NDK package comes with its own prebuilt binaries for GNU Make, Awk and other tools required by the build. You should not need to install anything else to get a working build system.Important:
ndk-gdbdoes not work on Windows, so you still need Cygwin to debug.This feature is still experimental, so feel free to try it and report issues on the public bug database or public forum . All samples and unit tests shipped with the NDK successfully compile with this feature.
- Important bug fixes
- Imported shared libraries are now installed by default to the target installation location (
libs/<abi>) ifAPP_MODULESis not defined in yourApplication.mk. For example, if a top-level modulefooimports a modulebar, then bothlibfoo.soandlibbar.soare copied to the install location. Previously, onlylibfoo.sowas copied, unless you listedbarin yourAPP_MODULEStoo. If you defineAPP_MODULESexplicitly, the behavior is unchanged. -
ndk-gdbnow works correctly for activities with multiple categories in their MAIN intent filters. - Static library imports are now properly transitive. For example, if a top-level module
fooimports static librarybarthat imports static libraryzoo, thelibfoo.sowill now be linked against bothlibbar.aandlibzoo.a.
- Imported shared libraries are now installed by default to the target installation location (
- অন্যান্য পরিবর্তন
-
docs/NATIVE-ACTIVITY.HTML: Fixed typo. The minimum API level should be 9, not 8 for native activities. -
docs/STABLE-APIS.html: Added missing documentation listing EGL as a supported stable API, starting from API level 9. -
download-toolchain-sources.sh: Updated to download the toolchain sources from android.googlesource.com , which is the new location for the AOSP servers. - Added a new C++ support runtime named
gabi++. More details about it are available in the updateddocs/CPLUSPLUS-SUPPORT.html. - Added a new C++ support runtime named
gnustl_sharedthat corresponds to the shared library version of GNU libstdc++ v3 (GPLv3 license). See more info atdocs/CPLUSPLUS-SUPPORT.html - Added support for RTTI in the STLport C++ runtimes (no support for exceptions).
- Added support for multiple file extensions in
LOCAL_CPP_EXTENSION. For example, to compile bothfoo.cppandbar.cxxas C++ sources, declare the following:LOCAL_CPP_EXTENSION := .cpp .cxx
- Removed many unwanted exported symbols from the link-time shared system libraries provided by the NDK. This ensures that code generated with the standalone toolchain doesn't risk to accidentally depend on a non-stable ABI symbol (eg any libgcc.a symbol that changes each time the toolchain used to build the platform is changed)
- Refreshed the EGL and OpenGLES Khronos headers to support more extensions. Note that this does not change the NDK ABIs for the corresponding libraries, because each extension must be probed at runtime by the client application.
The extensions that are available depend on your actual device and GPU drivers, not the platform version the device runs on. The header changes simply add new constants and types to make it easier to use the extensions when they have been probed with
eglGetProcAddress()orglGetProcAddress(). The following list describes the newly supported extensions:- GLES 1.x
-
GL_OES_vertex_array_object -
GL_OES_EGL_image_external -
GL_APPLE_texture_2D_limited_npot -
GL_EXT_blend_minmax -
GL_EXT_discard_framebuffer -
GL_EXT_multi_draw_arrays -
GL_EXT_read_format_bgra -
GL_EXT_texture_filter_anisotropic -
GL_EXT_texture_format_BGRA8888 -
GL_EXT_texture_lod_bias -
GL_IMG_read_format -
GL_IMG_texture_compression_pvrtc -
GL_IMG_texture_env_enhanced_fixed_function -
GL_IMG_user_clip_plane -
GL_IMG_multisampled_render_to_texture -
GL_NV_fence -
GL_QCOM_driver_control -
GL_QCOM_extended_get -
GL_QCOM_extended_get2 -
GL_QCOM_perfmon_global_mode -
GL_QCOM_writeonly_rendering -
GL_QCOM_tiled_rendering
-
- GLES 2.0
-
GL_OES_element_index_uint -
GL_OES_get_program_binary -
GL_OES_mapbuffer -
GL_OES_packed_depth_stencil -
GL_OES_texture_3D -
GL_OES_texture_float -
GL_OES_texture_float_linear -
GL_OES_texture_half_float_linear -
GL_OES_texture_npot -
GL_OES_vertex_array_object -
GL_OES_EGL_image_external -
GL_AMD_program_binary_Z400 -
GL_EXT_blend_minmax -
GL_EXT_discard_framebuffer -
GL_EXT_multi_draw_arrays -
GL_EXT_read_format_bgra -
GL_EXT_texture_format_BGRA8888 -
GL_EXT_texture_compression_dxt1 -
GL_IMG_program_binary -
GL_IMG_read_format -
GL_IMG_shader_binary -
GL_IMG_texture_compression_pvrtc -
GL_IMG_multisampled_render_to_texture -
GL_NV_coverage_sample -
GL_NV_depth_nonlinear -
GL_QCOM_extended_get -
GL_QCOM_extended_get2 -
GL_QCOM_writeonly_rendering -
GL_QCOM_tiled_rendering
-
- ইজিএল
-
EGL_ANDROID_recordable -
EGL_NV_system_time
-
-
Android NDK r6b (August 2011)
This release of the NDK does not include any new features compared to r6. The r6b release addresses the following issues in the r6 release:
- Important bug fixes
- Fixed the build when
APP_ABI="armeabi x86"is used for multi-architecture builds. - Fixed the location of prebuilt STLport binaries in the NDK release package. A bug in the packaging script placed them in the wrong location.
- Fixed
atexit()usage in shared libraries with the x86standalone toolchain. - Fixed
make-standalone-toolchain.sh --arch=x86. It used to fail to copy the proper GNU libstdc++ binaries to the right location. - Fixed the standalone toolchain linker warnings about missing the definition and size for the
__dso_handlesymbol (ARM only). - Fixed the inclusion order of
$(SYSROOT)/usr/includefor x86 builds. See the bug for more information. - Fixed the definitions of
ptrdiff_tandsize_tin x86-specific systems when they are used with the x86 standalone toolchain.
- Fixed the build when
Android NDK r6 (July 2011)
This release of the NDK includes support for the x86 ABI and other minor changes. For detailed information describing the changes in this release, read the CHANGES.HTML document included in the NDK package.
- General notes:
- Adds support for the x86 ABI, which allows you to generate machine code that runs on compatible x86-based Android devices. Major features for x86 include x86-specific toolchains, system headers, libraries and debugging support. For all of the details regarding x86 support, see
docs/CPU-X86.htmlin the NDK package.By default, code is generated for ARM-based devices, but you can add x86 to your
APP_ABIdefinition in yourApplication.mkfile to build for x86 platforms. For example, the following line instructsndk-buildto build your code for three distinct ABIs:APP_ABI := armeabi armeabi-v7a x86
Unless you rely on ARM-based assembly sources, you shouldn't need to touch your
Android.mkfiles to build x86 machine code. - You can build a standalone x86 toolchain using the
--toolchain=x86-4.4.3option when callingmake-standalone-toolchain.sh. Seedocs/STANDALONE-TOOLCHAIN.htmlfor more details. - The new
ndk-stacktool lets you translate stack traces inlogcatthat are generated by native code. The tool translates instruction addresses into a readable format that contains things such as the function, source file, and line number corresponding to each stack frame. For more information and a usage example, seedocs/NDK-STACK.html.
- Adds support for the x86 ABI, which allows you to generate machine code that runs on compatible x86-based Android devices. Major features for x86 include x86-specific toolchains, system headers, libraries and debugging support. For all of the details regarding x86 support, see
- অন্যান্য পরিবর্তন:
-
arm-eabi-4.4.0, which had been deprecated since NDK r5, has been removed from the NDK distribution.
Android NDK r5c (June 2011)
This release of the NDK does not include any new features compared to r5b. The r5c release addresses the following problems in the r5b release:
- Important bug fixes:
-
ndk-build: Fixed a rare bug that appeared when trying to perform parallel builds of debuggable projects. - Fixed a typo that prevented
LOCAL_WHOLE_STATIC_LIBRARIESto work correctly with the new toolchain and added documentation for this indocs/ANDROID-MK.html. - Fixed a bug where code linked against
gnustl_staticcrashed when run on platform releases older than API level 8 (Android 2.2). -
ndk-gdb: Fixed a bug that caused a segmentation fault when debugging Android 3.0 or newer devices. -
<android/input.h>: Two functions that were introduced in API level 9 (Android 2.3) were incorrect and are fixed. While this breaks the source API, the binary interface to the system is unchanged. The incorrect functions were missing ahistory_indexparameter, and the correct definitions are shown below:float AMotionEvent_getHistoricalRawX(const AInputEvent* motion_event, size_t pointer_index, size_t history_index); float AMotionEvent_getHistoricalRawY(const AInputEvent* motion_event, size_t pointer_index, size_t history_index);
- Updated the C library ARM binary for API level 9 (Android 2.3) to correctly expose at link time new functions that were added in that API level (for example,
pthread_rwlock_init).
-
- Minor improvements and fixes:
- Object files are now always linked in the order they appear in
LOCAL_SRC_FILES. This was not the case previously because the files were grouped by source extensions instead. - When
import-modulefails, it now prints the list of directories that were searched. This is useful to check that theNDK_MODULE_PATHdefinition used by the build system is correct. - When
import-modulesucceeds, it now prints the directory where the module was found to the log (visible withNDK_LOG=1). - Increased the build speed of debuggable applications when there is a very large number of include directories in the project.
-
ndk-gdb: Better detection ofadb shellfailures and improved error messages. -
<pthread.h>: Fixed the definition ofPTHREAD_RWLOCK_INITIALIZERfor API level 9 (Android 2.3) and higher. - Fixed an issue where a module could import itself, resulting in an infinite loop in GNU Make.
- Fixed a bug that caused the build to fail if
LOCAL_ARM_NEONwas set to true (typo inbuild/core/build-binary.mk). - Fixed a bug that prevented the compilation of
.sassembly files (.Sfiles were okay).
- Object files are now always linked in the order they appear in
Android NDK r5b (January 2011)
This release of the NDK does not include any new features compared to r5. The r5b release addresses the following problems in the r5 release:
- The r5 binaries required glibc 2.11, but the r5b binaries are generated with a special toolchain that targets glibc 2.7 or higher instead. The Linux toolchain binaries now run on Ubuntu 8.04 or higher.
- Fixes a compiler bug in the arm-linux-androideabi-4.4.3 toolchain. The previous binary generated invalid thumb instruction sequences when dealing with signed chars.
- Adds missing documentation for the "gnustl_static" value for APP_STL, that allows you to link against a static library version of GNU libstdc++. দ
- Fixed the following
ndk-buildissues:- A bug that created inconsistent dependency files when a compilation error occurred on Windows. This prevented a proper build after the error was fixed in the source code.
- A Cygwin-specific bug where using very short paths for the Android NDK installation or the project path led to the generation of invalid dependency files. This made incremental builds impossible.
- A typo that prevented the cpufeatures library from working correctly with the new NDK toolchain.
- Builds in Cygwin are faster by avoiding calls to
cygpath -mfrom GNU Make for every source or object file, which caused problems with very large source trees. In case this doesn't work properly, defineNDK_USE_CYGPATH=1in your environment to usecygpath -magain. - The Cygwin installation now notifies the user of invalid installation paths that contain spaces. Previously, an invalid path would output an error that complained about an incorrect version of GNU Make, even if the right one was installed.
- Fixed a typo that prevented the
NDK_MODULE_PATHenvironment variable from working properly when it contained multiple directories separated with a colon. - The
prebuilt-common.shscript contains fixes to check the compiler for 64-bit generated machine code, instead of relying on the host tag, which allows the 32-bit toolchain to rebuild properly on Snow Leopard. The toolchain rebuild scripts now also support using a 32-bit host toolchain. - A missing declaration for
INET_ADDRSTRLENwas added to<netinet/in.h>. - Missing declarations for
IN6_IS_ADDR_MC_NODELOCALandIN6_IS_ADDR_MC_GLOBALwere added to<netinet/in6.h>. - 'asm' was replaced with '__asm__' in
<asm/byteorder.h>to allow compilation with-std=c99.
Android NDK r5 (December 2010)
This release of the NDK includes many new APIs, most of which are introduced to support the development of games and similar applications that make extensive use of native code. Using the APIs, developers have direct native access to events, audio, graphics and window management, assets, and storage. Developers can also implement the Android application lifecycle in native code with help from the new NativeActivity class. For detailed information describing the changes in this release, read the CHANGES.HTML document included in the downloaded NDK package.
- General notes:
- Adds support for native activities, which allows you to implement the Android application lifecycle in native code.
- Adds native support for the following:
- Input subsystem (such as the keyboard and touch screen)
- Access to sensor data (accelerometer, compass, gyroscope, etc).
- Event loop APIs to wait for things such as input and sensor events.
- Window and surface subsystem
- Audio APIs based on the OpenSL ES standard that support playback and recording as well as control over platform audio effects
- Access to assets packaged in an
.apkfile.
- Includes a new toolchain (based on GCC 4.4.3), which generates better code, and can also now be used as a standalone cross-compiler, for people who want to build their stuff with
./configure && make. See docs/STANDALONE-TOOLCHAIN.html for the details. The binaries for GCC 4.4.0 are still provided, but the 4.2.1 binaries were removed. - Adds support for prebuilt static and shared libraries (docs/PREBUILTS.html) and module exports and imports to make sharing and reuse of third-party modules much easier (docs/IMPORT-MODULE.html explains why).
- Provides a default C++ STL implementation (based on STLport) as a helper module. It can be used either as a static or shared library (details and usage examples are in sources/android/stlport/README). Prebuilt binaries for STLport (static or shared) and GNU libstdc++ (static only) are also provided if you choose to compile against those libraries instead of the default C++ STL implementation. C++ Exceptions and RTTI are not supported in the default STL implementation. For more information, see docs/CPLUSPLUS-SUPPORT.HTML.
- Includes improvements to the
cpufeatureshelper library that improves reporting of the CPU type (some devices previously reported ARMv7 CPU when the device really was an ARMv6). We recommend developers that use this library to rebuild their applications then upload to Google Play to benefit from the improvements. - Adds an EGL library that lets you create and manage OpenGL ES textures and services.
- Adds new sample applications,
native-plasmaandnative-activity, to demonstrate how to write a native activity. - Includes many bugfixes and other small improvements; see docs/CHANGES.html for a more detailed list of changes.
Android NDK r4b (June 2010)
- NDK r4b notes:
Includes fixes for several issues in the NDK build and debugging scripts — if you are using NDK r4, we recommend downloading the NDK r4b build. For detailed information describing the changes in this release, read the CHANGES.TXT document included in the downloaded NDK package.
- General notes:
- Provides a simplified build system through the new
ndk-buildbuild command. - Adds support for easy native debugging of generated machine code on production devices through the new
ndk-gdbcommand. - Adds a new Android-specific ABI for ARM-based CPU architectures,
armeabi-v7a. The new ABI extends the existingarmeabiABI to include these CPU instruction set extensions:- Thumb-2 instructions
- VFP hardware FPU instructions (VFPv3-D16)
- Optional support for ARM Advanced SIMD (NEON) GCC intrinsics and VFPv3-D32. Supported by devices such as Verizon Droid by Motorola, Google Nexus One, and others.
- Adds a new
cpufeaturesstatic library (with sources) that lets your app detect the host device's CPU features at runtime. Specifically, applications can check for ARMv7-A support, as well as VFPv3-D32 and NEON support, then provide separate code paths as needed. - Adds a sample application,
hello-neon, that illustrates how to use thecpufeatureslibrary to check CPU features and then provide an optimized code path using NEON instrinsics, if supported by the CPU. - Lets you generate machine code for either or both of the instruction sets supported by the NDK. For example, you can build for both ARMv5 and ARMv7-A architectures at the same time and have everything stored to your application's final
.apk. - To ensure that your applications are available to users only if their devices are capable of running them, Google Play now filters applications based on the instruction set information included in your application — no action is needed on your part to enable the filtering. Additionally, the Android system itself also checks your application at install time and allows the installation to continue only if the application provides a library that is compiled for the device's CPU architecture.
- Adds support for Android 2.2, including a new stable API for accessing the pixel buffers of
Bitmapobjects from native code.
- Provides a simplified build system through the new
Android NDK r3 (March 2010)
- General notes:
- Adds OpenGL ES 2.0 native library support.
- Adds a sample application,
hello-gl2, that illustrates the use of OpenGL ES 2.0 vertex and fragment shaders. - The toolchain binaries have been refreshed for this release with GCC 4.4.0, which should generate slightly more compact and efficient machine code than the previous one (4.2.1). The NDK also still provides the 4.2.1 binaries, which you can optionally use to build your machine code.
Android NDK r2 (September 2009)
Originally released as "Android 1.6 NDK, Release 1".
- General notes:
- Adds OpenGL ES 1.1 native library support.
- Adds a sample application,
san-angeles, that renders 3D graphics through the native OpenGL ES APIs, while managing activity lifecycle with aGLSurfaceViewobject.
Android NDK r1 (June 2009)
Originally released as "Android 1.5 NDK, Release 1".
- General notes:
- Includes compiler support (GCC) for ARMv5TE instructions, including Thumb-1 instructions.
- Includes system headers for stable native APIs, documentation, and sample applications.