Error failed to connect to remote target tizen

The world runs on you.

Tizen Baseline SDK

Cannot run the Tizen emulator

To run the Tizen emulator in Windows 10 or higher, you must disable the Hyper-V feature.

The distributor certificate for Galaxy Watch cannot be updated

You cannot add another Galaxy Watch device unique identifier (DUID) to the existing distributor certificate file.

App installation error

Invalid certificate

There are two types of certificate profiles: one for Tizen platform devices and one for Samsung devices.
When you build the application using the incorrect certificate for your target device, the following error occurs:

The certificate file must match the running device:

Device Certificate
Tizen Emulator Tizen Certificate Profile
Samsung Device Samsung Certificate Profile

Version conflict between the application API and platform

This error occurs when the API version of the application is higher than the version of the platform to install. For example, when you try to install an application using 5.0 API version on the Tizen 4.0 platform device, the following error occurs:

# Visual Studio Output Window

Operation not allowed [-4] failed
# log message

Package's API version (5) is higher than platform version (4.0.0)
Error during processing
Failure occurs in step: CheckTizenVersion

To resolve this error, change the API version in the tizen-manifest.xml from 5 to 4, and reinstall the application.

‘Permit to install applications’ error

When you create a Samsung certificate for Samsung wearable devices, the device DUID is required.

For devices with DUIDs that start with 1.0#, get permission for app installation through the Tizen Studio Device Manager:

Tizen Studio Device Manager > Remote Device Manager > make connections with a device > Right-click Permit to install applications.

For more details, go here.

For devices with DUIDs that start with 2.0# (for example, Galaxy Watch), the following error message appears when you select Permit to install applications.

If no issues occur when installing an application, you can ignore this error.

Connection issue between a watch and Device Manager

Refer to Testing Your App on Galaxy Watch for information about developing your application and testing it on your watch.

Even if you follow every step correctly, you may face the following error:

 ERROR: failed to connect to remote target '192.168.0.X'

 You may get this message for following reasons:
  - This remote device is already connected by another one.
  - This remote device is running on a non-standard port.
  - There is no IP address, please check the physical connection.

Workaround

  • Check if both devices are connected to the same Wi-Fi network.
  • Reboot your PC and the watch, and connect to the network.

Languages

Gear S2 Not Connecting Remotely


Casey Baggz

By Casey Baggz

28 Oct 2015 08:15
English
6 Replies

Hello,

I’ve been developing on the new Gear S2 for a while now. Unfortunately, my S2 out of nowhere stopped being able to be connected to any computer anymore. Nothing changed with any settings, it just stopped connecting to anything remotely… (which sucks because there is no way to connect the watch to your computer with the NFC charger….).

Here are the steps:

  1. 1. Debugging is on
  2. 2. Wifi is on and on the same network as any machine I try
  3. 3. Bluetooth is off (keep in mind — this was working fine ever since I bought it from the store)
  4. 4. Double check the IP on the watch
  5. 5. Run  sdb connect <IP address>:26101
    1. * Error: failed to connect to remote target ‘<IP address>’

I’ve tried this on 3 different machines (Ubuntu 15.04, Mac Yosemite, Mac El Capitan) and 3 different networks. I have the latest software with both the Gear Manager and S2. Also, the watch has no problem connecting remotely to the phone. Needless to say, super frustrating having the watch connect fine for weeks and all the sudden stop. About to just return the watch.

Thanks in advance for anyone with the fix.

Edited by: Casey Baggz on 28 Oct, 2015

Ошибка: не удалось подключиться к удаленной цели после обновления до 4.0.0.2

Я обновил свое спортивное снаряжение несколько дней назад. После обновления до 4.0.0.2 я больше не могу подключиться к часам. Вот моя команда:

Как я могу решить эту проблему?

На устройстве перейдите к Settings -> About watch -> Software , оттуда нажимайте несколько раз, Software version пока не Developer Mode будет включено. Затем перезагрузите устройство и попробуйте подключиться.

Вот решение: выключите BT Restart Watch (ВЫКЛ и ВКЛ) Подключитесь через Wi-Fi с помощью диспетчера устройств.

Я могу подтвердить успешные шаги, это должны быть ВСЕ эти шаги, а затем перезапустить часы.

Bluetooth: выкл., Wi-Fi: вкл., Отладка: вкл., Режим разработчика: вкл. Затем перезапустите часы.

Он подключится после того, как ВСЕ эти настройки будут в этих ТОЧНЫХ состояниях. Никакая другая комбинация не сработала, даже после перезапуска часов, кроме того, мой компьютер подключен к маршрутизатору через кабель cat5, но часы подключены через Wi-Fi.

Windows 10, Tizen Studio 3.6 (22.11.2019), Galaxy Watch Active 2 (Tizen 4.0.0.7, One UI 1.5)

Источник

Tizen Baseline SDK

Cannot run the Tizen emulator

To run the Tizen emulator in Windows 10 or higher, you must disable the Hyper-V feature.

The distributor certificate for Galaxy Watch cannot be updated

You cannot add another Galaxy Watch device unique identifier (DUID) to the existing distributor certificate file.

App installation error

Invalid certificate

There are two types of certificate profiles: one for Tizen platform devices and one for Samsung devices. When you build the application using the incorrect certificate for your target device, the following error occurs:

The certificate file must match the running device:

Device Certificate
Tizen Emulator Tizen Certificate Profile
Samsung Device Samsung Certificate Profile

Version conflict between the application API and platform

This error occurs when the API version of the application is higher than the version of the platform to install. For example, when you try to install an application using 5.0 API version on the Tizen 4.0 platform device, the following error occurs:

To resolve this error, change the API version in the tizen-manifest.xml from 5 to 4 , and reinstall the application.

‘Permit to install applications’ error

When you create a Samsung certificate for Samsung wearable devices, the device DUID is required.

For devices with DUIDs that start with 1.0# , get permission for app installation through the Tizen Studio Device Manager:

Tizen Studio Device Manager > Remote Device Manager > make connections with a device > Right-click Permit to install applications.

For more details, go here.

For devices with DUIDs that start with 2.0# (for example, Galaxy Watch), the following error message appears when you select Permit to install applications.

If no issues occur when installing an application, you can ignore this error.

Connection issue between a watch and Device Manager

Refer to Testing Your App on Galaxy Watch for information about developing your application and testing it on your watch.

Even if you follow every step correctly, you may face the following error:

Источник

Tizen Developers

Community

Community

I’ve been developing on the new Gear S2 for a while now. Unfortunately, my S2 out of nowhere stopped being able to be connected to any computer anymore. Nothing changed with any settings, it just stopped connecting to anything remotely. (which sucks because there is no way to connect the watch to your computer with the NFC charger. ).

Here are the steps:

  1. 1. Debugging is on
  2. 2. Wifi is on and on the same network as any machine I try
  3. 3. Bluetooth is off (keep in mind — this was working fine ever since I bought it from the store)
  4. 4. Double check the IP on the watch
  5. 5. Run sdb connect :26101
    1. * Error: failed to connect to remote target ‘ ‘

I’ve tried this on 3 different machines (Ubuntu 15.04, Mac Yosemite, Mac El Capitan) and 3 different networks. I have the latest software with both the Gear Manager and S2. Also, the watch has no problem connecting remotely to the phone. Needless to say, super frustrating having the watch connect fine for weeks and all the sudden stop. About to just return the watch.

Thanks in advance for anyone with the fix.

Responses

I would suggest you to check IP address of your pc as I experienced same problem in office. In my case, connection issue was gone after I changed IP address of my PC to use same gateway of WiFi hub .

I know this thread is old, but that I would make an addition since I ran into the same thing.

After turning debug mode to «on» it helps if the watch is reset. This is listed in Samsung’s instructions but it’s something I had overlooked. After that when I attempted to connect my attention was on the success/error response from my PC. I didn’t notice that SDB had successfully initiated communication with the watch and the watch was asking me whether or not to accept a certificate from the computer. Once I accepted the certificate I had no further problems.

My Gear S3 is indeed at 192.55.226.111 and I can ping (though not all pings get through). In the past I’ve gotten SDB to work but then application download fails for «unknown reasons». How do I debug this?

In my case it worked. the process I had gone through:

1. Reset the Gear. Settings > Gear Info > Reset Gear > Light Reset/Factory Reset (Do not recover settings)

2. Enable Debbuging.

3. Enter Static IP for Gear if needed.

4. Check the time settings on each device and correct it if necessary.

5. Run ‘sdb connect ‘ command repeatedly. (four-five times may do the trick).

Sharing my solution.

I had the exact same issue and troublshooted over 2 days, I tried everything mentioned in these posts.

Not only I reset my watch, reinstalled Tizen Studio (1.1 and 1.2), I even tried connecting from different different PCs.

After enabling debug mode, I rebooted my watch (not reset), only then I was propmpted to accept the certificate (as Joel montioned) and that solved it.

So, when all fails make sure you have been prompted and accepted the certificate.

Thanks Rich Mabb, For sharing your experience. Updating the List 🙂

6. Accept the promt asking for certificate acceptance on your Gear.

Источник

Tizen Developers

Community

Community

I’ve been developing on the new Gear S2 for a while now. Unfortunately, my S2 out of nowhere stopped being able to be connected to any computer anymore. Nothing changed with any settings, it just stopped connecting to anything remotely. (which sucks because there is no way to connect the watch to your computer with the NFC charger. ).

Here are the steps:

  1. 1. Debugging is on
  2. 2. Wifi is on and on the same network as any machine I try
  3. 3. Bluetooth is off (keep in mind — this was working fine ever since I bought it from the store)
  4. 4. Double check the IP on the watch
  5. 5. Run sdb connect :26101
    1. * Error: failed to connect to remote target ‘ ‘

I’ve tried this on 3 different machines (Ubuntu 15.04, Mac Yosemite, Mac El Capitan) and 3 different networks. I have the latest software with both the Gear Manager and S2. Also, the watch has no problem connecting remotely to the phone. Needless to say, super frustrating having the watch connect fine for weeks and all the sudden stop. About to just return the watch.

Thanks in advance for anyone with the fix.

Responses

I would suggest you to check IP address of your pc as I experienced same problem in office. In my case, connection issue was gone after I changed IP address of my PC to use same gateway of WiFi hub .

I know this thread is old, but that I would make an addition since I ran into the same thing.

After turning debug mode to «on» it helps if the watch is reset. This is listed in Samsung’s instructions but it’s something I had overlooked. After that when I attempted to connect my attention was on the success/error response from my PC. I didn’t notice that SDB had successfully initiated communication with the watch and the watch was asking me whether or not to accept a certificate from the computer. Once I accepted the certificate I had no further problems.

My Gear S3 is indeed at 192.55.226.111 and I can ping (though not all pings get through). In the past I’ve gotten SDB to work but then application download fails for «unknown reasons». How do I debug this?

In my case it worked. the process I had gone through:

1. Reset the Gear. Settings > Gear Info > Reset Gear > Light Reset/Factory Reset (Do not recover settings)

2. Enable Debbuging.

3. Enter Static IP for Gear if needed.

4. Check the time settings on each device and correct it if necessary.

5. Run ‘sdb connect ‘ command repeatedly. (four-five times may do the trick).

Sharing my solution.

I had the exact same issue and troublshooted over 2 days, I tried everything mentioned in these posts.

Not only I reset my watch, reinstalled Tizen Studio (1.1 and 1.2), I even tried connecting from different different PCs.

After enabling debug mode, I rebooted my watch (not reset), only then I was propmpted to accept the certificate (as Joel montioned) and that solved it.

So, when all fails make sure you have been prompted and accepted the certificate.

Thanks Rich Mabb, For sharing your experience. Updating the List 🙂

6. Accept the promt asking for certificate acceptance on your Gear.

Источник

kotor1 wrote:I’ve done it right.

1. Download «Tizen Studio»

https://developer.tizen.org/development

… o/download
2. Install
3. Сreate a certificate. Learn more here

4. Turn TV into developer mode

For Samsung’s latest series, this is done in a similar way
Go to Apps
On the remote, press 1,2,3,4,5
In the window that appears, write local IP of PC where Tizen SDK is installed
Ok
Reboot the TV

5. Open «Tizen Studio»
6. In Connection Explorer, click the «Remote Device Manager» icon.
Next press «Scan», choose your TV, toggle switch «ON», press «Close»
7. download the widget

http://ss-iptv.com/files/tizen.wgt

8. Go to File-> Import-> Tizen-> Tizen Project by clicking «Next»

Check the point «Archive file», press «Browse» looking for the downloaded file «tizen.wgt», press «open»,
Then «Next»

9. In the window that appears, change the column «Version» from «2.3» to «3.0»
And on the left put tickers in front of «Name» and «Tizen», press «Finish»

10. Now in the «Project Explorer» window has appeared the file «tizen-tv-3.0»
11. Click on it with the right mouse button and choose «Build Signed Package»
12. Finally, again, with the right mouse button, send the widget to the TV «Run As» -> «1 Tizen Web Application»

Everything is working properly. When you turn the TV off and on again application is lost.
Where I was wrong? My tv is J 5502

It’s normaly by «J» series
i did not see any good solution for that.
But try this->
1 install again the app via tizen studio
2 go out from app
3 turn off tv
4 turn on after a minute and wait a minute again
5 press SmartHub button
6 choise ss-iptv from last installed apps
if it’s not appears->
7 use «search» option for «ss-iptv»

i think the app going lost when you go to «apps» section
so may be bring it to the front apps-panel
idk

На чтение 9 мин Просмотров 1.3к.

Содержание

  1. Установка и настройка Tizen SDK
  2. Создание сертификатов автора и дистрибьютора
  3. Создание сертификатов автора и дистрибьютора. Способ №2
  4. Создание проекта в Tizen Studio и установка приложений в телевизор
  5. Установка и настройка Tizen Studio
  6. Создание проекта в Tizen Studio и установка приложений на телевизор

I assume Samsung forums devoted to Tizen would the the first place to resolve this issue but after reading through them it seems that nobody has succeeded with this and the support has not provided any valuable information either so I’ll just hope that there are some SO users working with Tizen TVs who have encountered and maybe solved this themselves.

I am trying to connect to a Tizen Smart TV from the Tizen >sdb command line tool seem to work ( I’ve described the behavior in detail in this post to the Samsung Tizen forum).

The sdb tool seems to fail with any command other than sdb connect . Connection seems to succeed but after that any other command like sdb dlog or sdb shell simply print that the connection has been closed. Wireshark also approves this – every TCP message gets a CLSE reply.

Is there anyone on SO who has successfully deployed a native application via the developer mode on a Tizen Smart TV and could share the recipe?

Создан 25 окт. 15 2015-10-25 12:38:53 Rudolfs Bundulis

В данной статья рассмотрим установку с помощью новой среды разработки Tizen Studio, предыдущая статья с Tizen SDK устарела, так как её удалили с официального сайта. Данный способ установки подходит для любого устройства с Tizen OS, Samsung Smart TV R/Q (2019), N/Q (2018), M/Q (2017), K (2016) и J (2015) серий. На J серии по прежнему после перезапуска телевизора приложение удаляется.

Установка и настройка Tizen SDK

В первую очередь скачаем и установим всё нужное на компьютер. Скачиваем и устанавливаем Java , после него скачиваем Tizen Studio with IDE installer . Обязательно скачивайте подходящие по разрядности к вашей Windows, 32 bit – X86 или 64 bit – X64.

Запускаем скаченный установщик Tizen Studio, соглашаемся с лицензией, при необходимости меняем путь установки и нажимаем Istall.После завершения установки нажимаем Finish. Запустится Package Manager, если этого не произошло то заходим в папку которую установили tizen-studiopackage-manager и запускаем package-manager.exe или PackageManagerV2.jar.

Нажимаем install напротив Tizen SDK tools.

Далее нажимаем на вкладку Extension SDK и нажимаем install напротив Extras.

Пока скачиваются и устанавливаются пакеты Tizen Studio переходим на сайт Samsung и регистрируемся.

После регистрации узнаем IP адрес компьютера. Заходим в Центр управления сетями и общим доступом – Подключение по локальной сети (либо wi-fi) – Сведения – Ваш адрес будет в строке IPv4.

Переходим к телевизору. Заходим в Smart Hub, далее в раздел Приложения и по очередности нажимаем цифры на пульте 1-2-3-4-5. В появившемся окне выбираем ON и нажимаем Enter, в пустое поле вводим IP адрес компьютера и затем нажимаем на OK.

После этого телевизор попросит перезапустится. Для более точного результата выключите его с пульта и выдерните вилку из розетки на секунд 30.

Включаем его и опять заходим в Приложения, должна появиться надпись Developer Mode.

Входим на телевизоре в свой ранее созданный аккаунт на сайте Самсунг. Нажимаем на значок плюса и вводим свои данные.

Теперь узнаём IP адрес телевизора, нажимаем кнопку Menu и заходим Сеть – Состояние сети, выбираем Настройки IP и видим адрес.

Возвращаемся к компьютеру, ждём пока закончится установка Tizen Studio и запускаем его, находится он в папке в которую вы устанавливали, tizen-studio/ide/TizenStudio.exe.

После его загрузки нажимаем на значок Подключение ТВ, нажимаем на Плюс, вводим произвольное Name, IP телевизора который узнали ранее и нажимаем Add.

Нажимаем переключатель.

Создание сертификатов автора и дистрибьютора

Заходим в Tools – Certificate Manager.

Далее нажимаем на значок Плюса.

Выбираем Tizen.

Вводим произвольное имя сертификата.

Ничего не меняя нажимаем Next.

Далее вводим произвольные данные.

Ничего не меняя нажимаем Finish и OK.

Создание сертификатов автора и дистрибьютора. Способ №2

Заходим в Tools – Certificate Manager.

Далее нажимаем на значок Плюса.

Выбираем Samsung.

Ставим галочку на TV и нажимаем Next.

Вводим произвольное название сертификата.

Вводим произвольные Author name и Password, запомните их или запишите, возможно понадобится в будущем. После нажатия Next появится окно с просьбой войти в свой аккаунт, нажимаем OK.

Вводим данные аккаунта, который ранее создали на сайте Samsung.

После удачного входа просто нажимаем Next.

Ещё раз Next.

Далее вводим Password, можно такой же как ранее создавали, всё остальное оставляем как есть.

Если всё сделали правильно появится окно с сообщением о создании сертификатов. Обязательно сохраните в другом месте сертификаты, возможно получить их можно только один раз на телевизор, папка с сертификатами находится в Диск:UsersИмя пользователяSamsungCertificate.

Создание проекта в Tizen Studio и установка приложений в телевизор

Нажимаем на значок создания проекта, выбираем Template и нажимаем.

В Custom выбираем TV-samsung v3.0 или TV-samsung v4.0, в зависимости от того какой у вас доступен, нажимаем Next.

Web Application.

Basic Project.

Вводим произвольное Project name и нажимаем Finish.

Скачиваем и распаковываем приложение для Tizen TV GetsTV или Другие. Открываем архив с файлами приложения и перетаскиваем в проект, соглашаемся со всем.

Далее нажимаем правой кнопкой по названию проекта и выбираем Run As – 1 Tizen Web Application. Если всё сделали правильно приложение запустится на телевизоре.

–>Просмотров : 114596 | –>Добавил 30.11.2017 : Admin | –>Рейтинг : 2.0 / 1

–>Всего комментариев : 93 1 2 3 . 17 18 »

Дата публикации: 16.01.2020 в 18:42

Дата публикации: 14.01.2020 в 15:43

Здравствуйте. У меня на последней стадии После нажатия «Tizen Web Application» выходит окно

«Problem occurred»
Launching GetsTV has encountered а problem.
Installing the package. > Fail
Unexpected error occurred at the below step.
«Installing the package. »
Tizen Web Application instll failed. Please try again later.

Несколько раз пробовал, и разные приложения, всё тоже самое. В чем причина? Как быть?

Подробная инструкция по установке виджетов (приложений) на Samsung Smart TV Q, R (2019), N (2018), M (2017), K (2016) и J (2015) серий на Tizen OS с помощью новой среды разработки Tizen Studio.

Установка и настройка Tizen Studio

Для начала, нужно скачать и установить нужный софт на Ваш ПК или ноутбук. Загружаем и ставим Java, далее нужно скачать Tizen Studio with >Важно : выбирайте версию которая соответствует Вашей системе Windows: 32/64 bit.

После установки Java, переходим к установке Tizen Studio, если необходимо, то можно поменять путь установки.

После успешной установки приложения, должен появится Package Manager, но если в друг этого не произошло то идём в папку с установленной программой (tizen-studiopackage-manager) и находим там файл package-manager.exe и запускаем Package Manager.

Далее выбираем install напротив Tizen SDK tools.

После установки переходим на вкладку Extension SDK и выбираем install напротив Extras.

Установка пакетов Tizen Studio, займёт какое то время, поэтому идём на официальный сайт Samsung и регистрируемся (если ещё нет аккаунта). Дальше, Вам нужно узнать IP адрес вашего компьютера или ноутбука. Для этого, нужно зайти в «Центр управления сетями и общим доступом», далее выбираем «Подключение по локальной сети» (или же wi-fi), выбираем «Сведения» — Ваш текущий адрес находится в строке IPv4 (как показано на фото ниже).

Теперь переходим к настройке самого телевизора на Tizen OS. Открываем Smart Hub, переходим в раздел Приложения и по очередности нажмите на пульте последовательно кнопку «1», «2», «3», «4», «5», если их нет на пульте нажмите на экранном пульте. В окне разработки выбираем ON и нажимаем Enter, далее введите IP вашего компьютера и выбираем OK.

Далее перезагружаем телевизор. (Выключаем с пульта и отключаем от электро сети секунд на 30)

Теперь включаем телевизор и переходим в раздел Приложения, если Вы всё сделали правильно, то появиться надпись Developer Mode .

Теперь заходим в Ваш, ранее созданный аккаунт Самсунг. Нажимаете на плюсик и вводите свои данные.

Также, Вам нужно узнать IP адрес тв, для этого переходим в Menu и выбираем Сеть/Состояние сети/ Настройки IP.

Теперь, возвращаемся к Вашему ПК, и запускаем уже установленное приложение Tizen Studio, найти его можно в папке 9tizen-studio/ide/TizenStudio.exe). После запуска Tizen Studio: 1) Выбираем Подключение ТВ, 2) выбираем Плюсик, 3) вводим любое имя (Name), 4) вводим IP телевизора, 5) теперь нажимаем Add (как показано на фото ниже).

Далее переводим переключатель в положение On.

Теперь нужно создать сертификат автора и дистрибьютора. Для этого, нужно зайти в раздел Tools, и выбрать Certificate Manager.

Теперь устанавливаем галочку на TV и выбираем далее (Next).

Здесь можете ввести любое название сертификата.

Дальше нужно ввести любое Author name и Password ( Важно : эти данные нужно где то сохранить, так как вполне возможно они понадобится вам будущем.

Дальше видим окно с просьбой войти в свой аккаунт. Вводим данные аккаунта, который ранее создали на оф сайте Samsung.

После удачного входа переходим дальше Next.

Теперь нужно ввести Password, можно использовать такой же как ранее создавали, всё остальное оставляем как есть.

Если всё сделано правильно, то появится окно с сообщением о создании сертификатов. Важно : нужно сохранить сертификаты в другом месте, не факт, что получить их можно только один раз на конкретный телевизор, папка с сертификатами находится в Диск:UsersИмя пользователяSamsungCertificate.

Создание проекта в Tizen Studio и установка приложений на телевизор

Выбираем значок создания проекта (слева в вверху), выбираем Template и нажимаем далее.

Здесь нужно выбирать TV.

Теперь выбираем Web Application.

Здесь можно ввести любое Project name и выбираем Finish.

Теперь, Вам нужно скачать и распаковать, например приложение ForkPlayer для Tizen TV или выбрать Другое. Дальше нужно открыть архив с файлами приложения и перетащить в проект, согласившись со всем.

Теперь нужно нажимать правой кнопкой мышки по названию проекта и выбрать Run As — 1, а затем Tizen Web Application. Если всё сделано правильно, то приложение запустится на вашем телевизоре.

0

3 комментария

LeakedGms

24.09.2022

https://download.tizen.org/sdk/tizenstudio
поменяй ссылку на реп

Index of /sdk/tizenstudio/

Index of /sdk/tizenstudio/

download.tizen.org

Ответить

Развернуть ветку

Bohdan Shymanovskyi

24.09.2022


Автор

Спасибо большое

Ответить

Развернуть ветку

Bohdan Shymanovskyi

24.09.2022


Автор

зависло на 95%, не знаешь что можно сделать?

Ответить

Развернуть ветку

Написать комментарий…

Читать все 3 комментария

Понравилась статья? Поделить с друзьями:
  • Error failed to complete negotiation with the server error
  • Error failed to commit transaction invalid or corrupted package
  • Error failed to commit transaction conflicting files archlinux
  • Error failed to build gem native extension ruby
  • Error failed to build gem native extension error failed to build gem native extension