Tuesday, May 14, 2013

Could not find a package configuration file - OpenCVConfig.cmake

Currently, I am playing nowadays with OpenCV for visual computing using C++ on Mac OS platform.

I installed openCV and by default, it get installed in "/opt/local". I wrote a test program in c++ using opencv library and tried to build it using cmake. But, I found following errors while running cmake.


CMake Error at CMakeLists.txt:3 (find_package):
  By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "OpenCV", but
  CMake did not find one. 
  Could not find a package configuration file provided by "OpenCV" with any
  of the following names: 
    OpenCVConfig.cmake
    opencv-config.cmake 
  Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
  "OpenCV_DIR" to a directory containing one of the above files.  If "OpenCV"
  provides a separate development package or SDK, be sure it has been
  installed.

-- Configuring incomplete, errors occurred!

This means that you have to provide opencv directory information so that the opencv libs get available during making of the opencv project. 

Here are the solution:

Quick solution: "Export the OpenCV_DIR into the current terminal"

export OpenCV_DIR=/opt/local/lib/cmake/
 If it works then,

Permanent Solution: "Save it into .profile of MacOS"
$ vim ~/.profile 
And it will there as far as your MacOS survives. ;-)

Tuesday, March 12, 2013

Obama's socialism worked?????

PS: This was taken directly from a facebook post. I liked it, so I posted on my blog for sharing. This all implies to our current reservation status in India where reservation became a bigger tool for vote bank rather than sensible need to implement it so that deserving people get benefit of it rather than already rich and benefited people.

An economics professor at a local college made a statement that he had never failed a single student before, but had recently failed an entire class. That class had insisted that Obama's socialism worked and that no one would be poor and no one would be rich, a great equalizer.

The professor then said, "OK, we will have an experiment in this class on Obama's plan".. All grades will be averaged and everyone will receive the same grade so no one will fail and no one will receive an A.... (substituting grades for dollars - something closer to home and more readily understood by all).

After the first test, the grades were averaged and everyone got a B. The students who studied hard were upset and the students who studied little were happy. As the second test rolled around, the students who studied little had studied even less and the ones who studied hard decided they wanted a free ride too so they studied little.

The second test average was a D! No one was happy.
When the 3rd test rolled around, the average was an F.

As the tests proceeded, the scores never increased as bickering, blame and name-calling all resulted in hard feelings and no one would study for the benefit of anyone else.

To their great surprise, ALL FAILED and the professor told them that socialism would also ultimately fail because when the reward is great, the effort to succeed is great, but when government takes all the reward away, no one will try or want to succeed. Could not be any simpler than that. (Please pass this on) These are possibly the 5 best sentences you'll ever read and all applicable to this experiment:

1. You cannot legislate the poor into prosperity by legislating the wealthy out of prosperity.

2. What one person receives without working for, another person must work for without receiving.

3. The government cannot give to anybody anything that the government does not first take from somebody else.

4. You cannot multiply wealth by dividing it!

5. When half of the people get the idea that they do not have to work because the other half is going to take care of them, and when the other half gets the idea that it does no good to work because somebody else is going to get what they work for, that is the beginning of the end of any nation.

Can you think of a reason for not sharing this?
Neither could I.

Friday, January 11, 2013

Beastie Boys - Glasgow 1999 (FULL)


I was excited to watch this concert of Beastie Boys. So, I wanted to share it with world.

Awesoooomeee!!!!

Tuesday, October 23, 2012

Difference between "Congress" & "BJP" voters


In a restaurant they announced proudly a new item 'pumpkin & grape ". A customer asked "OK-what is the ratio of each of ingredients. " 
waiter replied 50-50.
Customer asked " How can you afford such costly grapes ? ". 
To this waiter replied- "simple , we add one grape to one pumpkin" that's how it is 50-50.
BJP's corruption is like a grape in comparison to congress's pumpkin size corruptions. Yet, there is big difference. BJP voters are not ready to ignore any corruption while Congress voters never care about corruption! 
So, even a small corruption hurts BJP more but Congress easily get away even while indulging in humongous corruptions. It is better BJP get rid of Gadkari and bring in some honest fellow.

Wednesday, October 17, 2012

We are to Blame for the Present Mess in India

Let me pose a simple question here. Who is voting these governments to power. It's the people of the country. Where does these politician come from? Again, these are very much Indians. Why did Indian people keep voting congress to power for 65 years and counting even after the abysmal state of the country. The thing is Indians in general are corrupt. I am not saying everyone is corrupt but given the opportunity most of them would resort to so called *corrupt* practices. The first invaders who came to India in late 900s, early 1000 AD were all helped by the local Indians who either wanted to dethrone current ruler or wanted to make money. So betrayal and opportunism is in the blood of Indians since eternity. Same thing happened when Britishers came. Now once in while we get people who are upright like Mr Khemka but again you can see what happens to them. So I would say just blaming politicians and government about everything is not the solution. If India actually want to make some progress, it has to start from the ground. There is no morality, integrity in the so called "common man". How can you expect that people in power suddenly behave as honest? They are the reflection of society they come from.