I am trying to build a small linux image using the Yocto project.While i was searching the net, i found that i can remove some DISTRO FEATURES that i don't need for my image. How can i check which distro features i m using now ?
You can use the following command:
bitbake -e | grep ^DISTRO_FEATURES=
To shrink Yocto image, you can base your work on poky-tiny and look at Building a tiny system manual chapter.
Related
I'm doing a yocto build for an Altera ARM processor. I'm trying to build the userland for core-image-minimal and I run into a dependency on pandoc. Whats the best way to add pandoc to the yocto build?
In case that You want to add some package into image, Yocto framework provide the IMAGE_INSTALL variable:
IMAGE_INSTALL_append = " pandoc"
Try to build Dartium 1.21.0 on Ubuntu 16.10, following the instructions https://github.com/dart-lang/sdk/wiki/Building-Dartium
Replacing gclient config --deps-file tools/deps/dartium.deps/DEPS --name=src/dart https://github.com/dart-lang/sdk.git
with gclient config --deps-file tools/deps/dartium.deps/DEPS --name=src/dart https://github.com/dart-lang/sdk.git#1.21.0
With some minor tweaks, things works, until hit by same as this https://github.com/js-platform/node-webrtc/issues/221
Fixed in a later version of boringssl
https://boringssl.googlesource.com/boringssl/+/241364c6f4d44165ce2dc707b9ad141dcc880d1b
Chromium builds more or less of the box.
To continue, two options occur. To step the boringssl version and update the build files, alternativly find at matching os distro and version. What distro and version is Dartium build on? Goobuntu is based on Ubuntu, maybe 16.04 should be used? Or are there some other tweaks that will fix this?
ps. yes, I know at the moment the future of Dartium is uncertain (will use a build to look into the dart bindings towards blinks web idl).
I want to use opengl in a gtkmm application. I found some widgets like gtkglextmm but that is for gtkmm 2.4 and I'm using gtkmm 3.0. cluttermm isn't in the ubuntu repositories and i'm not sure it's what I'm looking for.
You can use cluttermm (maybe cairomm too, I don't know if it has any direct OpenGL support) by installing it by hand. Shouldn't be a big problem, specially if you use Gnome: get a deb or tarball and install.
Another option is to use another distro which is more develop-oriented. For example, Fedora is RedHat's "sandbox" for RHEL, and RedHat is the biggest sponsor of Gnome and has employees working on Gnome, so on Fedora you find a variety of Gnome packages, including devtools. Including cluttermm :)
I've been googling and trying for days now, trying to figure out how to get 32-bit OpenCV working on OS X Lion, but can just find 64-bit version.
So i have the following questions:
OpenCV libraries come in 32-bit or 64-bit arch, is that correct?
How do I get 32-bit OpenCV working on Lion? I've trying the following ways:
- Install OpenCV via MacPorts: nope, MacPorts installs a 64-bit version.BI removed OpenCV and MacPorts.
Install OpenCV 2.4.1 via Homebrew, using the following command:
brew install opencv --build32
but looks like they are 64-bit too. Removed OpenCV and Homebrew.
Install OpenCV 2.4.1 by myself using standard unix makefiles. Nope, they still look like 64-bit.
I've written "they look like 64-bit" because i have to replace OpenC in a Xcode project made under OS X Snow Leopard, targeted for 32-bit Mac, and I always get tons of errors like:
ld: warning: ignoring file /usr/local/Cellar/opencv/2.4.1/lib/libopencv_calib3d.2.4.1.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
so i suppose that the OpenCV stuff is 64-bit. If i force the project to run in 64-bit, it rubs but doesn't work properly and gets stuck.
Is there a standard way to check if my OpenCV libraries are 64-bit or 32-bit?
Where can i get 32-bit OpenCV?
Solved the problem.
Recap: it is possible to have 32-bit OpenCV libraries on 64-bit Mac OSX Lion.
How?
Step 1: Download OpenCV 2.4.0
Step 2: Download and install CMake.
Step 3: Untar the OpenCV package.
Step 4: Make a separate directory inside the OpenCV package for building
mkdir build
cd build
cmake -G "Unix Makefiles" -D CMAKE_OSX_ARCHITECTURES=i386 -D CMAKE_C_FLAGS=-m32 -D CMAKE_CXX_FLAGS=-m32 ..
(this will force the 32-bit compile)
make -j8
sudo make install
Step 5: Enjoy!
For forther reference please visit Mac OS X OpenCV Port Page
Thanks all for putting me on the right track:
#karlphilip: I tried to do as you suggested, but without the make options the compile phase fails, because the architectures are incoherent.
#hamstergene: MacPorts got stuck after the new installation, maybe I have some remains of the older install :( (strange, i followed the official instrusctions to remove it).
#Adrien: That's what I've done, but i had to merge 2 approaches :)
I ve had a hard time configuring OpenCv libraries on a number od different OSs. Turns out that the thing is auto-generating a sample project and then bulding business logic inside it.
See the installation instructions here
The web site of the OpenCV project has been significantly upgraded in the last year.
A new tutorial section is avaiable, i was able to install OpenCV on my 32-bit core Mac OS Lion.
A very cool tutorial is also available at Sadeep's Tech Blog, covering an interesting range of details.
Hope this helps!
Here's something you can try: download OpenCV 2.4 sources and edit the CMakeLists.txt in the root directory. Around line 242 you will see:
# ----------------------------------------------------------------------------
# Path for build/platform -specific headers
# ----------------------------------------------------------------------------
set(OPENCV_CONFIG_FILE_INCLUDE_DIR "${CMAKE_BINARY_DIR}/" CACHE PATH "Where to create the platform-dependant cvconfig.h")
add_definitions(-DHAVE_CVCONFIG_H)
ocv_include_directories(${OPENCV_CONFIG_FILE_INCLUDE_DIR})
below the add_definitions() call, add this one:
add_definitions(-m32)
This question already has answers here:
How to check for openCV on Ubuntu 9.10
(7 answers)
Closed 8 years ago.
I would like to find out what version of OpenCV is installed on my computer (i am running Ubuntu 10.04). Is there a simple way to check it if ? If not then can i find out the directories where files (samples, etc) are installed ?
I am trying to run some code that i have already tested on another computer with OpenCV 2.3 installed and i get many errors.
The other methods here didn't work for me, so here's what does work in Ubuntu 12.04 'precise'.
On Ubuntu and other Debian-derived platforms, dpkg is the typical way to get software package versions. For more recent versions than the one that #Tio refers to, use
dpkg -l | grep libopencv
If you have the development packages installed, like libopencv-core-dev, you'll probably have .pc files and can use pkg-config:
pkg-config --modversion opencv
You can look at the headers or libs installed. pkg-config can tell you where they are:
pkg-config --cflags opencv
pkg-config --libs opencv
Alternatively you can write a simple program and print the following defs:
CV_MAJOR_VERSION
CV_MINOR_VERSION
A similar question has been also asked here:
1) Direct Answer:
Try this:
sudo updatedb
locate OpenCVConfig.cmake
For me, I get:
/home/pkarasev3/source/opencv/build/OpenCVConfig.cmake
To see the version, you can try:
cat /home/pkarasev3/source/opencv/build/OpenCVConfig.cmake
giving
....
SET(OpenCV_VERSION 2.3.1)
....
2) Better Answer:
"sudo make install" is your enemy, don't do that when you need to compile/update the library often and possibly debug step through it's internal functions. Notice how my config file is in a local build directory, not in /usr/something. You will avoid this confusion in the future, and can maintain several different versions even (debug and release, for example).
Edit: the reason this questions seems to arise often for OpenCV as opposed to other libraries is that it changes rather dramatically and fast between versions, and many of the operations are not so well-defined / well-constrained so you can't just rely on it to be a black-box like you do for something like libpng or libjpeg. Thus, better to not install it at all really, but just compile and link to the build folder.
There is also a flag CV_VERSION which will print out the full version of opencv
To install this product you can see this tutorial: OpenCV on Ubuntu
There are listed the packages you need. So, with:
# dpkg -l | grep libcv2
# dpkg -l | grep libhighgui2
and more listed in the url you can find which packages are installed.
With
# dpkg -L libcv2
you can check where are installed
This operative is used for all debian packages.