Discussion:
Need help compiling openCV with Borland C++ Builder 6
gabrl007
2006-08-09 04:20:46 UTC
Permalink
Can someone help me, how to setup step by step Borland C++ Builder
compiling options in order to compile openCV code? I keep getting
some linker errors and i tried adding some of the openCV lib paths to
the project options include and lib paths. I even tried to add the
header files and ddl's files into the same directory as my project
file and non of this seem to work.

Thanks,

Gabriel








Change settings: http://www.yahoogroups.com/mygroups, select
Get Emails (get all posts)
Daily Digest (one summary email per day)
Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-***@yahoogroups.com
domatore74
2006-08-10 11:45:14 UTC
Permalink
1) convert .lib files provided with opencv from COFF to OMF format (use
coff2omf.exe from BCB bin directory). I suggest that you put output
files in a separate dir.
1a) alternatively you can create import libs with the implib.exe tool.
example: implib -a cv.lib cv097.dll
2) add opencv to include and lib path
3) switch on -VF (MFC ocmpatibility) and -VM (microsoft visual C++
compatibility) options in the compiler
4) add #pragma link "cv.lib", #pragma link "cxcore.lib", etc etc to your
project's main cpp file
5) enjoy opencv'ing with Borland
ciao
- Lorenzo -
Post by gabrl007
Can someone help me, how to setup step by step Borland C++ Builder
compiling options in order to compile openCV code? I keep getting
some linker errors and i tried adding some of the openCV lib paths to
the project options include and lib paths. I even tried to add the
header files and ddl's files into the same directory as my project
file and non of this seem to work.
Thanks,
Gabriel
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com


Change settings: http://www.yahoogroups.com/mygroups, select
Get Emails (get all posts)
Daily Digest (one summary email per day)
Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-***@yahoogroups.com
gabrl007
2006-08-11 02:05:05 UTC
Permalink
Hey Lorenzo it worked perfectly, molto grazie...

openCV + Borland C Builder = universe control
Post by domatore74
1) convert .lib files provided with opencv from COFF to OMF format (use
coff2omf.exe from BCB bin directory). I suggest that you put output
files in a separate dir.
1a) alternatively you can create import libs with the implib.exe tool.
example: implib -a cv.lib cv097.dll
2) add opencv to include and lib path
3) switch on -VF (MFC ocmpatibility) and -VM (microsoft visual C++
compatibility) options in the compiler
4) add #pragma link "cv.lib", #pragma link "cxcore.lib", etc etc to your
project's main cpp file
5) enjoy opencv'ing with Borland
ciao
- Lorenzo -
Post by gabrl007
Can someone help me, how to setup step by step Borland C++ Builder
compiling options in order to compile openCV code? I keep getting
some linker errors and i tried adding some of the openCV lib paths to
the project options include and lib paths. I even tried to add the
header files and ddl's files into the same directory as my project
file and non of this seem to work.
Thanks,
Gabriel
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
Change settings: http://www.yahoogroups.com/mygroups, select
Get Emails (get all posts)
Daily Digest (one summary email per day)
Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-***@yahoogroups.com
Loading...