Игры здесь
Пятница, 19.04.2024, 17:12



Приветствую Вас Гость | RSS
[ Главная ] [ ] [ Регистрация ] [ Вход ]
Меню сайта

Наш опрос
Оцените мой сайт
Всего ответов: 23

Статистика

Онлайн всего: 1
Гостей: 1
Пользователей: 0

Форма входа

Главная » 2012 » Февраль » 23 » How to solve problem with Motodev Eclipse for Android 3.1: wrong PATH
19:07
How to solve problem with Motodev Eclipse for Android 3.1: wrong PATH

Recently, I followed Plicatibu tutorials for Cocos2d-x development under Linux (I have Ubuntu 32 bit):

Part 1: Developing with cocos2d-x for android on Linux

Part 2: How to debug cocos2d-x and Java code using Eclipse

When I tried to build project, I got error:


**** Build of configuration Default for project HelloJni ****


ndk-build all

Cannot run program "ndk-build”: Unknown reason

Error: Program "ndk-build” is not found in PATH

PATH=[/usr/bin:/bin:/usr/sbin:/sbin]


**** Build Finished ****


Solution is:

Go to Window -> Preferences in MOTODEV. From there go to "C/C++ ->Environment" like on picture:












Here you will see PATH variable, which is used by MOTODEV Eclipse. It must APPEND system PATH, but it OVERRIDES it for some reason... Delete it. Then close window clicking "OK".


Now we will check, if it works. Go to your project properties. Find C/C++ -> Environment:














See, if PATH, specified here is the same as your system path now. If not, you must specify it by yourself:

1. Open up console (ctrl+alt+t). Write:

echo $PATH






Copy your path from here. Return to Project Properties in MOTODEV. Click "edit" to edit MOTODEV PATH. Paste your system path there. Click ok. That's all!

 Now build must work well!


Note: Probably, you must perform "Clean", then "Build all" and "Build Project" on your project now to make Include be filled automatically, like on picture:



Please, try my games

Просмотров: 61331 | Добавил: DoubleVenom | Теги: 32, C/C++, cocos2d-x, android, linux, Cannot run program “ndk-build”, eclipse, android-ndk, /usr/bin:/bin:/usr/sbin:/sbin, motodev | Рейтинг: 0.0/0
Всего комментариев: 0
Добавлять комментарии могут только зарегистрированные пользователи.
[ Регистрация | Вход ]
Поиск

Календарь
«  Февраль 2012  »
ПнВтСрЧтПтСбВс
  12345
6789101112
13141516171819
20212223242526
272829

Архив записей

Друзья сайта
  • Официальный блог
  • Сообщество uCoz
  • FAQ по системе
  • Инструкции для uCoz

  • Михаил, 2024      Создать бесплатный сайт с uCoz