Hi embedizm,

I am also getting the same error. 

Did you solve your problem?

On Wednesday, 22 August 2012 23:26:45 UTC+5:30, embedizm wrote:
>
> Hi;
> my opencv library is on /usr/local/lib
> my opencv directory is on /usr/local/include/opencv
>
> I wrote ;
>
> g++ -I/usr/local/include/opencv opencv.cpp -o mycode 
>
> but I got this error;
>
> /tmp/ccSN8mc2.o: In function `main':
> opencv.cpp:(.text+0x19): undefined reference to `cvLoadImage'
> opencv.cpp:(.text+0x31): undefined reference to `cvNamedWindow'
> opencv.cpp:(.text+0x45): undefined reference to `cvShowImage'
> opencv.cpp:(.text+0x51): undefined reference to `cvWaitKey'
> opencv.cpp:(.text+0x5d): undefined reference to `cvReleaseImage'
> opencv.cpp:(.text+0x69): undefined reference to `cvDestroyWindow'
> collect2: ld returned 1 exit status
>
> How can I solve this?
> 2012/8/22 Robin Steven <[email protected] <javascript:>>
>
>> Hi:
>>
>> Tell gcc where is opencv header in, for example:
>>
>> $ gcc -I {directory of your opencv headers} -o {binary} your_programm.c
>>
>>
>>
>>  On Wed, Aug 22, 2012 at 10:28 PM, embedizm <[email protected]<javascript:>
>> > wrote:
>>
>>>
>>> Hi;
>>>
>>> I can cross-compile any c or c++ source file with CodeSourcery for 
>>> Beaglebone
>>>
>>> But,  I want to cross- compile opencv c++ source files to place them 
>>> into beaglebone.
>>>
>>> I tried but I faced compilation error (can not find opencv-based header 
>>> files) .
>>>
>>> I there any way to cross- compile opencv source files?
>>>
>>> Thanks... 
>>>
>>> -- To join: http://beagleboard.org/discuss
>>> To unsubscribe from this group, send email to:
>>> [email protected] <javascript:>
>>> Frequently asked questions: http://beagleboard.org/faq
>>>
>>
>>
>>
>> -- 
>> 罗峥嵘(Steven Luo)
>> CELLPHONE:   +86-13580326828
>> MSN:               [email protected] <javascript:>
>> Skype:             vortune.luo
>> QQ:                 15808390
>> EMAIL:             [email protected] <javascript:>
>> ==================================================
>> 广州市合创源精密机电有限公司
>> 地址:             广州市萝岗区科学城科学大道182号创新大厦C2-208室
>> 邮政编号:       511660
>> 电话:             +86-020-62880399
>> 网站:             http://www.hopetruly.com
>>
>> ----------------------------------------------------------------------------------------------------
>> Guangzhou Hopetruly Electromechanics Co., LTD
>> WEBSITE:       http://www.hopetruly.com   
>> ADDRESS:      Room NO. 208, Building NO.C2, NO.182 of Kexue Avenue,
>>                        Science Town of Luoguang District, 
>>                        Guangzhou, Guangdong, China
>> POSTCODE:    511660
>> TEL:                +86-020-62880399
>>
>>  
>> ---------------------------------------------------------------------------------------------------
>>
>>  -- To join: http://beagleboard.org/discuss
>> To unsubscribe from this group, send email to:
>> [email protected] <javascript:>
>> Frequently asked questions: http://beagleboard.org/faq
>>
>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to