makepanda does not build opencv

Bug #273694 reported by rdb
2
Affects Status Importance Assigned to Milestone
Panda3D
Fix Released
High
rdb
1.6.x
Invalid
Undecided
Unassigned

Bug Description

It seems that makepanda does not define HAVE_OPENCV somehow, because it seems not to be enabled in the builds (as of 1.5.3).
We'd probably also need to add a thirdparty package for OpenCV, to have it included.

Tags: makepanda
rdb (rdb)
Changed in panda3d:
importance: Undecided → High
Revision history for this message
rdb (rdb) wrote :

Hmm, the stuff for vc7 seems to be included, but not for vc8.

Changed in panda3d:
status: New → Confirmed
Revision history for this message
rdb (rdb) wrote :

Just been compiling OpenCV for 64-bits, with these configure commands:
(I didn't know where exactly to put the -fPIC so to be sure I put them in all env vars):
export LDFLAGS=-fPIC
export CFLAGS=-fPIC
export CXXFLAGS=-fPIC
export CPPFLAGS=-fPIC
./configure --without-1394libs --without-v4l --without-v4l2 --prefix=~/Projects/panda3d/thirdparty/linux-libs-x64/opencv --without-python --without-swig --disable-apps

If someone here wants to compile the 32-bits version, please make sure you first install stuff like ffmpeg and gtk+ so they will be linked in.

Changed in panda3d:
status: Confirmed → In Progress
Revision history for this message
rdb (rdb) wrote :

Committed linux 32-bits and 64-bits libraries. Also used without fmod and --enable-static.
Also checked in the necessary changes for makepanda.
Still need to do windows.

rdb (rdb)
Changed in panda3d:
assignee: nobody → niertie1
milestone: none → 1.6.0
Revision history for this message
rdb (rdb) wrote :

Terribly sorry guys, I probably had a massive lack of coffee.
I totally screwed up the OpenCV builds. I recompiled em and will soon commit em.
Here are the corrected compile commands: (after the -fPIC things)
Linux:
./configure --without-1394libs --prefix=/home/pro-rsoft/Projects/panda3d/thirdparty/linux-libs-x64/opencv --without-python --without-swig --disable-apps --enable-static --disable-shared --without-ffmpeg
OSX:
./configure --disable-apps --enable-static --disable-shared --prefix=/Users/pro-rsoft/panda3d/thirdparty/darwin-libs-a/opencv/ --without-python
Windows:
Still have to do it.

Revision history for this message
rdb (rdb) wrote :

Done. It's OpenCV 1.0.0, for the record.

Changed in panda3d:
status: In Progress → Fix Committed
rdb (rdb)
Changed in panda3d:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.