04-18-2014 01:38 PM - edited 04-18-2014 01:47 PM
I have compiled ffmpeg along with the other libraries I need for Blackberry 10. I am getting the following two errors when including the library in my project
Could someone help me out with these issues? I'm not completey sure where to go. When I find int64_t in time.h and select "Open Declaration" it takes me to its declaration in stdint.h (/Applications/Momentics.app/target_10_2_0_1155/qn
* Get the current time in microseconds.
Solved! Go to Solution.
04-21-2014 11:36 AM
After reading doturner's guide (http://supportforums.blackberry.com/t5/Native-Deve
../ffmpeg/include/libavutil/common.h:178:47: error: 'UINT64_C' was not declared in this scope
Maybe something to do with the compiler used to compile ffmpeg?
04-22-2014 03:54 PM - edited 04-22-2014 03:55 PM
Well I may have spoken too soon. The initial errors returned. I was able to get rid of the UINT64_C error by adding this to the labavutil/common.h file:
#ifndef INT64_C #define INT64_C(c) (c ## LL) #define UINT64_C(c) (c ## ULL) #endif
Now I'm back to the int64_t and strftime issues. Anyone have any ideas?
04-26-2014 10:56 AM - edited 04-26-2014 10:59 AM
In case anyone comes across this, I was able to get the library compiled and included in the project. The instructions on doturner's post are correct. I was sourcing the wrong bbndk-env script and I think that was causing some issue. I still received the UINT64_C error, but they were fixed by including the library headers like this:
#define UINT64_C uint64_t
#define INT64_C int64_t
You don't need to change the library files at all, so don't do what I did in the post above. The definition of UINT64_C and INT64_C take care of it.