Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: C++ Builder XE 10.1 Berlin - type_traits not found BUG!



Permlink Replies: 8 - Last Post: Mar 12, 2018 4:39 AM Last Post By: Marc Le Douarain Threads: [ Previous | Next ]
İbrahim Ak

Posts: 23
Registered: 5/23/16
C++ Builder XE 10.1 Berlin - type_traits not found BUG!
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 17, 2016 12:46 PM
I compile a basic project for Android with C++ Builder XE 10.1 Berlin. But I get this error:
[https://s14.postimg.org/5cqq1lpgx/image.png]

I uncheked "Use the Classic Borland Compiler" from Project -> Options -> C++ Compiler -> Classic Compiler. But I get same error.

How can I solve this bug? I reinstall Rad Studio Xe 10.1 but it is not solved.
Antonio Estevez

Posts: 665
Registered: 4/12/00
Re: C++ Builder XE 10.1 Berlin - type_traits not found BUG!
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 18, 2016 12:38 AM   in response to: İbrahim Ak in response to: İbrahim Ak
El 17/09/2016 a las 21:46, İbrahim Ak escribió:
I compile a basic project for Android with C++ Builder XE 10.1 Berlin. But I get this error:
[https://s14.postimg.org/5cqq1lpgx/image.png]

I uncheked "Use the Classic Borland Compiler" from Project -> Options -> C++ Compiler -> Classic Compiler. But I get same error.

How can I solve this bug? I reinstall Rad Studio Xe 10.1 but it is not solved.

The "type_traits" file belongs to the Android NDK.

Do you have correctly configured the paths to the Android SDK/NDK?
Menu Tools > Options > SDK Manager

Do the following after trying to compile the application:
Select the "Build" tab from the "Messages" panel at the bottom of the IDE window.
Expand the bccaarm command line for "Project1PCH1.h" node
Verify that the command line contains a path similar to
....\android-ndk-r9c\sources\cxx-stl\gnu-libstdc++\4.6\include
or
....\android-ndk-r9c\sources\cxx-stl\gnu-libstdc++\4.8\include

Verify that the full path exists in your system and it contains the "type_taraits" file

İbrahim Ak

Posts: 23
Registered: 5/23/16
Re: C++ Builder XE 10.1 Berlin - type_traits not found BUG!
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 18, 2016 7:38 AM   in response to: Antonio Estevez in response to: Antonio Estevez
Antonio Estevez wrote:
El 17/09/2016 a las 21:46, İbrahim Ak escribió:
I compile a basic project for Android with C++ Builder XE 10.1 Berlin. But I get this error:
[https://s14.postimg.org/5cqq1lpgx/image.png]

I uncheked "Use the Classic Borland Compiler" from Project -> Options -> C++ Compiler -> Classic Compiler. But I get same error.

How can I solve this bug? I reinstall Rad Studio Xe 10.1 but it is not solved.

The "type_traits" file belongs to the Android NDK.

Do you have correctly configured the paths to the Android SDK/NDK?
Menu Tools > Options > SDK Manager

Do the following after trying to compile the application:
Select the "Build" tab from the "Messages" panel at the bottom of the IDE window.
Expand the bccaarm command line for "Project1PCH1.h" node
Verify that the command line contains a path similar to
....\android-ndk-r9c\sources\cxx-stl\gnu-libstdc++\4.6\include
or
....\android-ndk-r9c\sources\cxx-stl\gnu-libstdc++\4.8\include

Verify that the full path exists in your system and it contains the "type_taraits" file


Thanks, I see different folders for 4.8 and 4.9. You can see pictures:

[Messages_Panel|https://s12.postimg.org/tpwc3nvel/rad_messages_screen.png]
[type_traits Directory|https://s12.postimg.org/cdvzi81x9/rad_type_traits_exists.png]

I need 4.8 folder but I have 4.9 folder. And type_traist file is exists in the 4.9 folder. How can I change 4.8 to 4.9?
Thanks.
Antonio Estevez

Posts: 665
Registered: 4/12/00
Re: C++ Builder XE 10.1 Berlin - type_traits not found BUG!
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 18, 2016 8:25 AM   in response to: İbrahim Ak in response to: İbrahim Ak
El 18/09/2016 a las 16:38, İbrahim Ak escribió:
Antonio Estevez wrote:
El 17/09/2016 a las 21:46, İbrahim Ak escribió:
I compile a basic project for Android with C++ Builder XE 10.1 Berlin. But I get this error:
[https://s14.postimg.org/5cqq1lpgx/image.png]

I uncheked "Use the Classic Borland Compiler" from Project -> Options -> C++ Compiler -> Classic Compiler. But I get same error.

How can I solve this bug? I reinstall Rad Studio Xe 10.1 but it is not solved.

The "type_traits" file belongs to the Android NDK.

Do you have correctly configured the paths to the Android SDK/NDK?
Menu Tools > Options > SDK Manager

Do the following after trying to compile the application:
Select the "Build" tab from the "Messages" panel at the bottom of the IDE window.
Expand the bccaarm command line for "Project1PCH1.h" node
Verify that the command line contains a path similar to
....\android-ndk-r9c\sources\cxx-stl\gnu-libstdc++\4.6\include
or
....\android-ndk-r9c\sources\cxx-stl\gnu-libstdc++\4.8\include

Verify that the full path exists in your system and it contains the "type_taraits" file


Thanks, I see different folders for 4.8 and 4.9. You can see pictures:

[Messages_Panel|https://s12.postimg.org/tpwc3nvel/rad_messages_screen.png]
[type_traits Directory|https://s12.postimg.org/cdvzi81x9/rad_type_traits_exists.png]

I need 4.8 folder but I have 4.9 folder. And type_traist file is exists in the 4.9 folder. How can I change 4.8 to 4.9?
Thanks.

Menu Tools > Options -> SDK Manager
Select the Android SDK from the "SDK versions" list
Select the "NDK" tab
İbrahim Ak

Posts: 23
Registered: 5/23/16
Re: C++ Builder XE 10.1 Berlin - type_traits not found BUG!
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 18, 2016 10:12 AM   in response to: Antonio Estevez in response to: Antonio Estevez
Thanks but I get same error. I choose SDK and NDK:
https://s9.postimg.org/ywozodrrj/create_android_sdk.png
https://s9.postimg.org/f3cvvoedr/create_android_sdk_2.png
I can not see any problem in this pictures.

Then I control my SDK Version:
https://s9.postimg.org/aeww0hp73/bds_2016_09_18_19_59_28.png

I get type_traits error.

NOTE: I did not install Android SDK and NDK with Rad Studio XE 10.1 Berlin. I installed Android SDK and NDK with Android Studio.
And Delphi XE 10.1 Berlin is working good for Android. I compiled app for Android with Delphi but I can not compiled app for Android with C++ Builder.
Antonio Estevez

Posts: 665
Registered: 4/12/00
Re: C++ Builder XE 10.1 Berlin - type_traits not found BUG!
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 18, 2016 11:17 AM   in response to: İbrahim Ak in response to: İbrahim Ak
El 18/09/2016 a las 19:12, İbrahim Ak escribió:
Thanks but I get same error. I choose SDK and NDK:
https://s9.postimg.org/ywozodrrj/create_android_sdk.png
https://s9.postimg.org/f3cvvoedr/create_android_sdk_2.png
I can not see any problem in this pictures.

Then I control my SDK Version:
https://s9.postimg.org/aeww0hp73/bds_2016_09_18_19_59_28.png

I get type_traits error.

NOTE: I did not install Android SDK and NDK with Rad Studio XE 10.1 Berlin. I installed Android SDK and NDK with Android Studio.
And Delphi XE 10.1 Berlin is working good for Android. I compiled app for Android with Delphi but I can not compiled app for Android with C++ Builder.

I think that the IDE has the path hardcoded so it can't be changed.

So you need a NDK version which contains GNU 4.8 compiler.
I have installed NDK r9d and it works fine for me.

You can download it from the link at the bottom of this page:
https://github.com/android-ndk/ndk/wiki
İbrahim Ak

Posts: 23
Registered: 5/23/16
Re: C++ Builder XE 10.1 Berlin - type_traits not found BUG!
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 18, 2016 12:46 PM   in response to: Antonio Estevez in response to: Antonio Estevez
Antonio Estevez wrote:
El 18/09/2016 a las 19:12, İbrahim Ak escribió:
Thanks but I get same error. I choose SDK and NDK:
https://s9.postimg.org/ywozodrrj/create_android_sdk.png
https://s9.postimg.org/f3cvvoedr/create_android_sdk_2.png
I can not see any problem in this pictures.

Then I control my SDK Version:
https://s9.postimg.org/aeww0hp73/bds_2016_09_18_19_59_28.png

I get type_traits error.

NOTE: I did not install Android SDK and NDK with Rad Studio XE 10.1 Berlin. I installed Android SDK and NDK with Android Studio.
And Delphi XE 10.1 Berlin is working good for Android. I compiled app for Android with Delphi but I can not compiled app for Android with C++ Builder.

I think that the IDE has the path hardcoded so it can't be changed.

So you need a NDK version which contains GNU 4.8 compiler.
I have installed NDK r9d and it works fine for me.

You can download it from the link at the bottom of this page:
https://github.com/android-ndk/ndk/wiki

Thanks, I installed Android NDK r9d and I set Tools -> Options -> SDK Manager for NDK r9d. Then it is works fine for me.
Servando martin...

Posts: 1
Registered: 5/29/00
Re: C++ Builder XE 10.1 Berlin - type_traits not found BUG!
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 6, 2017 7:10 AM   in response to: İbrahim Ak in response to: İbrahim Ak
İbrahim Ak wrote:
Antonio Estevez wrote:
El 18/09/2016 a las 19:12, İbrahim Ak escribió:
Thanks but I get same error. I choose SDK and NDK:
https://s9.postimg.org/ywozodrrj/create_android_sdk.png
https://s9.postimg.org/f3cvvoedr/create_android_sdk_2.png
I can not see any problem in this pictures.

Then I control my SDK Version:
https://s9.postimg.org/aeww0hp73/bds_2016_09_18_19_59_28.png

I get type_traits error.

NOTE: I did not install Android SDK and NDK with Rad Studio XE 10.1 Berlin. I installed Android SDK and NDK with Android Studio.
And Delphi XE 10.1 Berlin is working good for Android. I compiled app for Android with Delphi but I can not compiled app for Android with C++ Builder.

I think that the IDE has the path hardcoded so it can't be changed.

So you need a NDK version which contains GNU 4.8 compiler.
I have installed NDK r9d and it works fine for me.

You can download it from the link at the bottom of this page:
https://github.com/android-ndk/ndk/wiki

Thanks, I installed Android NDK r9d and I set Tools -> Options -> SDK Manager for NDK r9d. Then it is works fine for me.

Hello,
I'm experiencing the same problem and, at last, I found where the IDE is referencing de compiler version 4.8.
It is defined in $(BDS)/bin/CodeGear.Cpp.Targets under the Android Sections.
If you change the value for 4.8 with 4.9 then all the references to the new compiler are good.
Remember to make a backup copy of the original file.

Best regards.
Servando.
Marc Le Douarain

Posts: 1
Registered: 10/22/10
Re: C++ Builder XE 10.1 Berlin - type_traits not found BUG!
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 12, 2018 4:31 AM   in response to: Antonio Estevez in response to: Antonio Estevez
With the help of the excellent Embarcadero support,
here with version 10.2 (Tokyo), I had an error with blank string instead of "4.8" in some paths of the compiler line:

...\PlatformSDKs\android-ndk-r9c\sources\cxx-stl\gnu-libstdc++\ \include
(instead of ...\PlatformSDKs\android-ndk-r9c\sources\cxx-stl\gnu-libstdc++\4.8\include)

By using regedit.exe tool, verify in the following key :
HKEY_CURRENT_USER\Software\Embarcadero\BDS\19.0\PlatformSDKs\AndroidSDK24.3.3_32bit.sdk
if the value is correctly "4.8" for "GnuSTLVersion" !

In case of it could also helps others people...

Edited by: Marc Le Douarain on Mar 12, 2018 4:38 AM

Edited by: Marc Le Douarain on Mar 12, 2018 4:39 AM
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02