Android NDK Compile Protobuf error - android-ndk

I try to compile ProtoBuf 2.5 with NDK.But when I build ProtoBuf 2.5 in eclipse, I get error info as below in console
bash "E:\\Android\\android-ndk-r8e\\ndk-build.cmd" all
E:\Android\android-ndk-r8e\ndk-build.cmd: line 1: #echo: command not found
E:\Android\android-ndk-r8e\ndk-build.cmd: line 2: rem: command not found
E:\Android\android-ndk-r8e\ndk-build.cmd: line 6: rem: command not found
E:\Android\android-ndk-r8e\ndk-build.cmd: line 7: goto: command not found
E:\Android\android-ndk-r8e\ndk-build.cmd: line 8: :FOO: command not found
E:\Android\android-ndk-r8e\ndk-build.cmd: line 27: syntax error: unexpected end of file
I didn't edited ndk-build.cmd.
Please help me! Thandks

It looks like Eclipse is calling ndk-build.cmd, but your shell is a Cygwin/MinGW shell. You need to call the ndk-build script, not ndk-build.cmd

Related

I can't launch google-chrome. I get "command not found" errors when i try launching google-chrome from the terminal

After messing up with my PATH environment variables i tried, I completely deleted Java from my PC and suddenly chrome doesn't work anymore. Nothing happens when i click the icon and i get the following errors when i try launching chrome from the terminal.
/usr/bin/google-chrome: line 8: readlink: command not found
/usr/bin/google-chrome: line 24: mkdir: command not found
/usr/bin/google-chrome: line 45: exec: cat: not found
/usr/bin/google-chrome: line 46: exec: cat: not found
Please help. I use Ubuntu 18.04

Trying to run a venv of python 3.6 on linux as an interpreter but even its activation on terminal is not possible due to the following errors

The command: pyAI3.6/Scripts/activate
The results:
pyAI3.6/Scripts/activate: line 3: $'\r': command not found
pyAI3.6/Scripts/activate: line 4: syntax error near unexpected token $'{\r'' 'yAI3.6/Scripts/activate: line 4: deactivate () {
The command: pyAI3.6/Scripts/activate , works perfectly on windows
please use below command to activate:
source <venv-folder>/bin/activate

Error while executing Pylint command from terminal on Django Project directory

When i run the below command from my terminal i end up getting the below error, i am running this pylint on my django-project.
(venv) mypc:~/path/django-project$ pylint --rcfile=.pylintrc ./* > lint_ouput.txt
Error: Traceback (most recent call last): File "/usr/lib/python3.6/tokenize.py", line 390, in find_cookie
line_string = line.decode('utf-8') UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfa in position 9: invalid start byte
pylint.exceptions.InvalidMessageError: Message E0001 must provide line, got None
To make it clear for other users I sum up the solution:
The ./* symbol is not needed. It looks like Pylint is unable to parse your command properly. if you want to run Pylint on the entire folder use the folder name. e.g:
pylint --rcfile=.pylintrc <file1_name> <file2_name>
if for a specific file use the file name (Relative path)
pylint --rcfile=.pylintrc <dir_name>

UltiSnips plugin does not working on MacVim

I installed UltiSnips plugin on MacVim using vundle. When I run :UltiSnipsEdit command, I got error below:
Error detected while processing /Users/arya/.vim/bundle/ultisnips/autoload/UltiSnips.vim:
line 7:
E319: Sorry, the command is not available in this version: py3 import vim
line 8:
E319: Sorry, the command is not available in this version: py3 from UltiSnips import UltiSnips_Manager
Error detected while processing function UltiSnips#Edit:
line 6:
E319: Sorry, the command is not available in this version: py3 vim.command("let file = '%s'" % UltiSnips_Manager._file_to_edit(vim.eval("type"), vim.eval('a:bang')))
What might be the problem here and how can I fix it?
Do you have python3(not python2) installed?
If not, you can easily install it with macports or homebrew.
edit1:
You can also check vim dynamic python support by :echo has("python_dynamic"). It should return 1.
And then add
set pythonthreehome=your python3 home dir

Why won't Sublime Text3 run the code webbrowser.open('URL')

When I run the code:
import webbrowser
webbrowser.open('https://youtube.com')
in sublime text 3, it gives me this:
/bin/sh: osascript: command not found
/bin/sh: osascript: command not found
/bin/sh: osascript: command not found
/bin/sh: osascript: command not found
and then it says code finished. However, when I run the same code in terminal it works perfectly fine. Is there some kind of package that I need to install?

Resources