Quick note to self on getting OpenCV up on Linux with EPD.
When you run cmake (ccmake for the curses gui), toggle the advanced options. The python includes, binary, and lib directories are options that only show as advanced options. Change these to reflect your location for EPD. After running make, the cv.so library that python gets its functions from gets installed by default to /usr/local/lib/python2.7/site-packages/cv.so. Copy it instead to EPD_INSTALL_DIR/lib/python2.7/site-packages. You should be good to go, now.
Also, one other problem:
Ubuntu 11.04 has pulled the old switcheroo on library locations. If you've installed all the dev versions of the necessary libraries (libjpeg, libpng, libtiff, libzip were my problem libraries), you also need to create symlinks from their new locations to the locations that OpenCV's make/CMake is expecting to find them:
ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/libjpeg.so
ln -s /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/libpng.so
ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.4 /usr/lib/libtiff.so
ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/libz.so
This hint courtesy of:
http://www.nigeldunn.com/2011/05/14/ubuntu-11-04-libjpeg-so-libpng-so-php-installation-issues/
Edit, Nov 19, 2011
NOTE: this post is out of date. Instead, please see the project here:
DM plugin - serial communication
This project uses relative paths everywhere, and sets output filenames dynamically based on the project name. To use it, extract/sync the github repository to an installation of the DMSDK, then rename the project in Visual Studio. You should be able to safely rename the project folder without breaking anything.
======================= Original post below ===================================
Yes, VS 2003 is out of date. I use it to compile C++ extension plugins for Gatan Digital Micrograph (DM), which we use to control our microscopes and acquire/process data. The SDK for DM is designed for Visual Studio 2003 (or older).
Part of the problem of doing something that very few others do is that the documentation is usually poor. This is very much the case with the SDK.
Here was my problem:
- I don't know how to create a new project and have it compile. The SDK is sufficiently complicated and different from any standard Visual Studio project that it is difficult to take this path.
- I don't know how to rename my VS 2003 project files without breaking the project. Thus, I am unwilling to distribute the source code to my project, since it is named something completely unrelated.
Here's my solution:
A letter to the UCD chancellor, in response to the police brutality that occurred on November 18:
http://www.youtube.com/watch?feature=player_embedded&v=6AdDLhPwpp4
http://www.youtube.com/watch?v=WmJmmnMkuEM
=========================================
Chancellor Katehi,
The events at the student rally on November 18 have deeply saddened and upset me. The police - your police - demonstrated wanton and dispassionate abuse of peaceful protestors. These are not acceptable actions for any human being, let alone representatives of a world-class facility for intellectual development and exploration. I am appalled to be associated with a place that is host to such brutality.
I will be watching your reaction to these crimes carefully, and I hope your future actions and the actions of the University will sincerely reflect your supposed commitment to the Principles of Community.
Sincerely,
Michael C Sarahan, PhD
UCD Alumnus, 2010