Hello Friends,
I have bought Allied-vision GC2450 GigE camera and download its sample Code for Viewing its Imageries/Video. i need to just compile these sample code by typing command like
# make sample it generate a executable file and
# ./SampleViewer launch it's GUI which Display image or video capture from GC2450C
all the sample code provided by Allied-vision use their libraries like PvAPI.h
when i write a sample "hello world" code and cross compile using command
#arm-linux-gnueabi-gcc-4.4 test.cpp -o test
and load this file to SocKit and run it , it display Hello World Perfectively
then i just add the PvAPI.h file to same hello world file it generate various error like
/home/kaushal/Desktop/ArmCode/test/PvApi.h:103: error: #error Define PVDECL to be your compiler keyword for "standard call"/home/kaushal/Desktop/ArmCode/test/PvApi.h:368: error: #error Define specific data types for your platform./home/kaushal/Desktop/ArmCode/test/PvApi.h:259: error: expected ‘)’ before ‘*’ token/home/kaushal/Desktop/ArmCode/test/PvApi.h:353: error: expected ‘)’ before ‘*’ token/home/kaushal/Desktop/ArmCode/test/PvApi.h:443: error: expected initializer before ‘PvVersion’/home/kaushal/Desktop/ArmCode/test/PvApi.h:463: error: expected initializer before ‘PvInitialize’/home/kaushal/Desktop/ArmCode/test/PvApi.h:476: error: expected initializer before ‘PvUnInitialize’/home/kaushal/Desktop/ArmCode/test/PvApi.h:510: error: expected initializer before ‘PvLinkCallbackRegister’
whereas the same files works fine while i do "make sample"
now my question is how do i cross compile this code for ARM processor
i have Altera SoCKIT Board having ARM CORTEX-A9 Processor
Regards
kaushal