I am trying to setup OPENCV Environment using Predefined steps from here
But I am Getting Errors
root@colibri-t20:~# opkg install opencv
Collected errors:
* opkg_prepare_url_for_install: Couldn't find anything to satisfy 'opencv'.
I am trying to setup OPENCV Environment using Predefined steps from here
But I am Getting Errors
root@colibri-t20:~# opkg install opencv
Collected errors:
* opkg_prepare_url_for_install: Couldn't find anything to satisfy 'opencv'.
For 2.7b2 images, OpenCV can only be included using OpenEmbedded. OpenCV is not available in feeds.
Please Provide steps to do that.
and Can you provide a Pre-build Image with OpenCV
It is already documented here.
Why ignore the error message where it clearly tells what has to be done?
Traceback (most recent call last):
File "/usr/lib/oe-core/.repo/repo/main.py", line 531, in <module>
_Main(sys.argv[1:])
File "/usr/lib/oe-core/.repo/repo/main.py", line 507, in _Main
result = repo._Run(argv) or 0
File "/usr/lib/oe-core/.repo/repo/main.py", line 180, in _Run
result = cmd.Execute(copts, cargs)
File "/usr/lib/oe-core/.repo/repo/subcmds/init.py", line 404, in Execute
self._ConfigureUser()
File "/usr/lib/oe-core/.repo/repo/subcmds/init.py", line 298, in _ConfigureUser
name = self._Prompt('Your Name', mp.UserName)
File "/usr/lib/oe-core/.repo/repo/project.py", line 784, in UserName
self._LoadUserIdentity()
File "/usr/lib/oe-core/.repo/repo/project.py", line 797, in _LoadUserIdentity
u = self.bare_git.var('GIT_COMMITTER_IDENT')
File "/usr/lib/oe-core/.repo/repo/project.py", line 2747, in runner
(self._project.name, name, p.stderr))
error.GitError: manifests var:
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'root@ubuntu.(none)')
Also please do not do the installation or run installation commands while in /usr/lib. One has to be in the home directory after the Prerequisites are done and not in the /usr/lib directory.
I have Re Installed the Dependencies without errors and Installed the Phablet-tool and I am Working on the home directory again as suggested by you but the problem is that I am Unable to tackle down the errors
Generated at the Tarball stage ,Kindy Guide me on the same.
I have Re Installed the Dependencies without errors and Installed the Phablet-tool and I am Working on the home directory again as suggested by you but the problem is that I am Unable to tackle down the errors Generated at the Tarball stage ,Kindy Guide me on the same.
Did you run the following
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
What other errors you face after doing the above? What do you mean tarball stage?
The 60GB or more of free space is taken up after the complete build for the downloaded packages, the complete toolchain, cross compiled libraries and header files.
I need to ask that how much is the downloading size of the Sources and toolchain?
root@ubuntu:/usr/lib# apt-get install phablet-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
phablet-tools-citrain
The following NEW packages will be installed:
phablet-tools
0 upgraded, 1 newly installed, 0 to remove and 362 not upgraded.
Need to get 0 B/41.9 kB of archives.
After this operation, 213 kB of additional disk space will be used.
(Reading database ... 188676 files and directories currently installed.)
Preparing to unpack .../phablet-tools_1.2+16.04.20160317-0ubuntu1_all.deb ...
Unpacking phablet-tools (1.2+16.04.20160317-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/phablet-tools_1.2+16.04.20160317-0ubuntu1_all.deb (--unpack):
trying to overwrite '/usr/bin/repo', which is also in package repo 1.12.32-2
Errors were encountered while processing:
/var/cache/apt/archives/phablet-tools_1.2+16.04.20160317-0ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@ubuntu:/usr/lib# apt-get install phablet-tools --fix-missing
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
phablet-tools-citrain
The following NEW packages will be installed:
phablet-tools
0 upgraded, 1 newly installed, 0 to remove and 362 not upgraded.
Need to get 0 B/41.9 kB of archives.
After this operation, 213 kB of additional disk space will be used.
(Reading database ... 188676 files and directories currently installed.)
Preparing to unpack .../phablet-tools_1.2+16.04.20160317-0ubuntu1_all.deb ...
Unpacking phablet-tools (1.2+16.04.20160317-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/phablet-tools_1.2+16.04.20160317-0ubuntu1_all.deb (--unpack):
trying to overwrite '/usr/bin/repo', which is also in package repo 1.12.32-2
Errors were encountered while processing:
/var/cache/apt/archives/phablet-tools_1.2+16.04.20160317-0ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@ubuntu:/usr/lib# apt-get install repo --fix-missing
Reading package lists... Done
Building dependency tree
Reading state information... Done
repo is already the newest version (1.12.32-2).
The following packages were automatically installed and are no longer required:
android-tools-adb android-tools-fastboot at bzr bzr-builddeb
click-ubuntu-policy dctrl-tools debian-archive-keyring debootstrap
debsig-verify devscripts distro-info dput javascript-common
libdistro-info-perl libjs-jquery libxdelta2 libxmltok1 pbuilder pbzip2
pristine-tar pybootchartgui python-bzrlib python-cairo python-cffi-backend
python-chardet python-configobj python-crypto python-cryptography
python-dbus python-debian python-debianbts python-defusedxml
python-distro-info python-dns python-enum34 python-gi python-gobject-2
python-gpgme python-gtk2 python-httplib2 python-idna python-ipaddress
python-keyring python-launchpadlib python-lazr.restfulclient python-lazr.uri
python-lzma python-ndg-httpsclient python-oauth python-openssl
python-pkg-resources python-pyasn1 python-pycurl python-pysimplesoap
python-reportbug python-requests python-secretstorage python-simplejson
python-six python-soappy python-ubuntutools python-urllib3 python-wadllib
python-wstools python-xdg python-zope.interface python3-magic
qemu-user-static quilt reportbug ubuntu-dev-tools ubuntu-device-flash xdelta
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 362 not upgraded.
root@ubuntu:/usr/lib# mkdir oe-core
mkdir: cannot create directory ‘oe-core’: File exists
root@ubuntu:/usr/lib# cd oe-core
root@ubuntu:/usr/lib/oe-core# repo init -u http://git.toradex.com/toradex-bsp-platform.git -b LinuxImageV2.7
Traceback (most recent call last):
File "/usr/lib/oe-core/.repo/repo/main.py", line 531, in <module>
_Main(sys.argv[1:])
File "/usr/lib/oe-core/.repo/repo/main.py", line 507, in _Main
result = repo._Run(argv) or 0
File "/usr/lib/oe-core/.repo/repo/main.py", line 180, in _Run
result = cmd.Execute(copts, cargs)
File "/usr/lib/oe-core/.repo/repo/subcmds/init.py", line 404, in Execute
self._ConfigureUser()
File "/usr/lib/oe-core/.repo/repo/subcmds/init.py", line 298, in _ConfigureUser
name = self._Prompt('Your Name', mp.UserName)
File "/usr/lib/oe-core/.repo/repo/project.py", line 784, in UserName
self._LoadUserIdentity()
File "/usr/lib/oe-core/.repo/repo/project.py", line 797, in _LoadUserIdentity
u = self.bare_git.var('GIT_COMMITTER_IDENT')
File "/usr/lib/oe-core/.repo/repo/project.py", line 2747, in runner
(self._project.name, name, p.stderr))
error.GitError: manifests var:
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'root@ubuntu.(none)')
root@ubuntu:/usr/lib/oe-core# repo sync
Fetching project meta-browser.git
Fetching project meta-linaro.git
Fetching project meta-lxde.git
Fetching project meta-freescale-distro.git
Fetching projects: 5% (1/17) Fetching project meta-qt4
Fetching projects: 11% (2/17) Fetching project meta-toradex-bsp-common.git
Fetching projects: 17% (3/17) Fetching project meta-toradex-nxp.git
Fetching projects: 23% (4/17) Fetching project meta-toradex-tegra.git
Fetching projects: 29% (5/17) Fetching project meta-openembedded.git
Fetching projects: 35% (6/17) Fetching project meta-freescale-3rdparty.git
Fetching projects: 41% (7/17) Fetching project meta-toradex-demos.git
Fetching projects: 47% (8/17) Fetching project meta-jetson-tk1.git
Fetching projects: 52% (9/17) Fetching project meta-qt5.git
Fetching projects: 58% (10/17) Fetching project openembedded-core.git
Fetching projects: 64% (11/17) Fetching project meta-angstrom.git
Fetching projects: 70% (12/17) Fetching project meta-freescale.git
Fetching projects: 76% (13/17) Fetching project bitbake.git
Fetching projects: 100% (17/17), done.
Syncing work tree: 100% (17/17), done.
root@ubuntu:/usr/lib/oe-core# . export
### Shell environment set up for builds. ###
You can now run 'bitbake <target>'
Common targets are:
core-image-minimal
core-image-sato
meta-toolchain
meta-ide-support
You can also run generated qemu images with a command like 'runqemu qemux86'
Toradex targets are:
angstrom-lxde-image
console-tdx-image
angstrom-qt-x11-image
root@ubuntu:/usr/lib/oe-core/build# cd ..
root@ubuntu:/usr/lib/oe-core# . export
### Shell environment set up for builds. ###
You can now run 'bitbake <target>'
Common targets are:
core-image-minimal
core-image-sato
meta-toolchain
meta-ide-support
You can also run generated qemu images with a command like 'runqemu qemux86'
Toradex targets are:
angstrom-lxde-image
console-tdx-image
angstrom-qt-x11-image
root@ubuntu:/usr/lib/oe-core/build# bitbake -k angstrom-lxde-image
ERROR: Execution of event handler 'config_reparse_eventhandler' failed
Traceback (most recent call last):
File "/usr/lib/oe-core/layers/openembedded-core/bitbake/lib/bb/build.py", line 261, in exec_func(func='oecore_update_bblayers', d=<bb.data_smart.DataSmart object at 0x7f5f1938ac88>, dirs=None, pythonexception=True):
if ispython:
> exec_func_python(func, d, runfile, cwd=adir, pythonexception=pythonexception)
else:
File "/usr/lib/oe-core/layers/openembedded-core/bitbake/lib/bb/build.py", line 306, in exec_func_python(func='oecore_update_bblayers', d=<bb.data_smart.DataSmart object at 0x7f5f1938ac88>, runfile='/usr/lib/oe-core/build/tmp-glibc/work/armv7at2hf-vfp-angstrom-linux-gnueabi/defaultpkgname/1.0-r0/temp/run.oecore_update_bblayers.3903', cwd=None, pythonexception=True):
comp = utils.better_compile(code, func, "exec_python_func() autogenerated")
> utils.better_exec(comp, {"d": d}, code, "exec_python_func() autogenerated", pythonexception=pythonexception)
except (bb.parse.SkipRecipe, bb.build.FuncFailed):
File "/usr/lib/oe-core/layers/openembedded-core/bitbake/lib/bb/utils.py", line 399, in better_exec(code=<code object <module> at 0x7f5f18e91e40, file "exec_python_func() autogenerated", line 2>, context={'d': <bb.data_smart.DataSmart object at 0x7f5f1938ac88>}, text='\noecore_update_bblayers(d)\n', realfile='exec_python_func() autogenerated', pythonexception=True):
try:
> exec(code, get_context(), context)
except (bb.BBHandledException, bb.parse.SkipRecipe, bb.build.FuncFailed, bb.data_smart.ExpansionError):
File "exec_python_func() autogenerated", line 2, in <module>
File "/usr/lib/oe-core/build/../layers/openembedded-core/meta/classes/sanity.bbclass", line 84, in oecore_update_bblayers(d=<bb.data_smart.DataSmart object at 0x7f5f1938ac88>):
current_lconf = int(d.getVar('LCONF_VERSION', True))
> lconf_version = int(d.getVar('LAYER_CONF_VERSION', True))
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
ERROR: Error parsing configuration files
Traceback (most recent call last):
File "/usr/lib/oe-core/layers/openembedded-core/bitbake/lib/bb/build.py", line 261, in exec_func(func='oecore_update_bblayers', d=<bb.data_smart.DataSmart object at 0x7f5f1938ac88>, dirs=None, pythonexception=True):
if ispython:
> exec_func_python(func, d, runfile, cwd=adir, pythonexception=pythonexception)
else:
File "/usr/lib/oe-core/layers/openembedded-core/bitbake/lib/bb/build.py", line 306, in exec_func_python(func='oecore_update_bblayers', d=<bb.data_smart.DataSmart object at 0x7f5f1938ac88>, runfile='/usr/lib/oe-core/build/tmp-glibc/work/armv7at2hf-vfp-angstrom-linux-gnueabi/defaultpkgname/1.0-r0/temp/run.oecore_update_bblayers.3903', cwd=None, pythonexception=True):
comp = utils.better_compile(code, func, "exec_python_func() autogenerated")
> utils.better_exec(comp, {"d": d}, code, "exec_python_func() autogenerated", pythonexception=pythonexception)
except (bb.parse.SkipRecipe, bb.build.FuncFailed):
File "/usr/lib/oe-core/layers/openembedded-core/bitbake/lib/bb/utils.py", line 399, in better_exec(code=<code object <module> at 0x7f5f18e91e40, file "exec_python_func() autogenerated", line 2>, context={'d': <bb.data_smart.DataSmart object at 0x7f5f1938ac88>}, text='\noecore_update_bblayers(d)\n', realfile='exec_python_func() autogenerated', pythonexception=True):
try:
> exec(code, get_context(), context)
except (bb.BBHandledException, bb.parse.SkipRecipe, bb.build.FuncFailed, bb.data_smart.ExpansionError):
File "exec_python_func() autogenerated", line 2, in <module>
File "/usr/lib/oe-core/build/../layers/openembedded-core/meta/classes/sanity.bbclass", line 84, in oecore_update_bblayers(d=<bb.data_smart.DataSmart object at 0x7f5f1938ac88>):
current_lconf = int(d.getVar('LCONF_VERSION', True))
> lconf_version = int(d.getVar('LAYER_CONF_VERSION', True))
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
root@ubuntu:/usr/lib/oe-core/build#
Thank you for that reply ,i just Neglected that Input,That was so silly of me.
So Every thing is now setup to Run BitBake But I need to know some thing,
-What does 60Gb of Space is required for,I mean after building image and other stuff it might take a lot of free space
-During downloading of module (Bitbake Angstrom Image)how much Downloading File size will be required?
Loaded 1234 entries from dependency cache.
WARNING: /home/ubuntu/oe-core/build/../layers/openembedded-core/meta/recipes-core/meta/meta-environment.bb: Exception during build_dependencies for toolchain_create_sdk_version
WARNING: /home/ubuntu/oe-core/build/../layers/openembedded-core/meta/recipes-core/meta/meta-environment.bb: Error during finalise of /home/ubuntu/oe-core/build/../layers/openembedded-core/meta/recipes-core/meta/meta-environment.bb
ERROR: ExpansionError during parsing /home/ubuntu/oe-core/build/../layers/openembedded-core/meta/recipes-core/meta/meta-environment.bb
Traceback (most recent call last):
bb.data_smart.ExpansionError: Failure expanding variable METADATA_REVISION, expression was ${@base_detect_revision(d)} which triggered exception CmdError: Execution of 'git rev-parse HEAD' failed: [Errno 12] Cannot allocate memory
Summary: There were 2 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.