Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added dynamic lib versions of opencv... the static-linked version was…

…n't working on other machines
  • Loading branch information...
commit 92fdb8d321d2ef3af55ca2bd9bb599c5b51cac1d 1 parent a447e9d
@kroo authored
View
45 imageRegistration/SConstruct
@@ -1,4 +1,4 @@
-import os
+import os, glob
if ARGUMENTS.get('debug', 0):
env = Environment(ENV = {'PATH' : os.environ['PATH']}, CCFLAGS = '-g')
else:
@@ -8,13 +8,13 @@ else:
# compile the avcodec example program (this grabs frames from an h264 movie, and
# churns out the individual frames)
env.Program(
- 'avcodec_sample',
- 'avcodec_sample.cpp',
+ 'avcodec_sample',
+ 'avcodec_sample.cpp',
LIBS = [
- 'avformat',
- 'avcodec',
- 'avutil',
- 'swscale',
+ 'avformat',
+ 'avcodec',
+ 'avutil',
+ 'swscale',
'z'
],
LIBPATH = "/opt/local/lib",
@@ -67,23 +67,28 @@ env.Program(
'bbs_registration.cpp',
'CAR_scoring_function.c',
'GREEN_scoring_function.c',
- 'ROAD_scoring_function.c'
- ],
+ 'ROAD_scoring_function.c',
+ ] + glob.glob("./libs/*.a"),
LIBS = [
'm',
- 'cv',
- 'highgui',
- 'cvaux',
'stdc++',
+ 'objc',
'cxcore',
- 'avformat',
- 'avcodec',
- 'avutil',
- 'swscale',
- 'z'
+ 'libcvaux',
+ 'libcv'
+ ],
+ FRAMEWORKS = [
+ 'CoreFoundation',
+ 'QuartzCore',
+ 'Cocoa',
+ 'QTKit',
+ 'ApplicationServices',
+ 'Foundation',
+ 'CoreVideo',
+ 'AppKit'
],
- LIBPATH = ["/usr/local/lib", "/opt/local/lib"],
+ LIBPATH = ["/usr/local/lib", "./dynlibs"],
CPPPATH = ["/usr/local/include", "/usr/include/opencv", "/opt/local/include"],
- # CCFLAGS = "-arch i386",
- # LINKFLAGS = "-arch i386"
+ CCFLAGS = "-m64",
+ LINKFLAGS = "-m64"
)
View
BIN  imageRegistration/dynlibs/libcv.4.dylib
Binary file not shown
View
BIN  imageRegistration/dynlibs/libcv.dylib
Binary file not shown
View
BIN  imageRegistration/dynlibs/libcvaux.4.dylib
Binary file not shown
View
BIN  imageRegistration/dynlibs/libcvaux.dylib
Binary file not shown
View
BIN  imageRegistration/dynlibs/libcxcore.4.dylib
Binary file not shown
View
BIN  imageRegistration/dynlibs/libcxcore.dylib
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.