Samsung / rlottie

A platform independent standalone library that plays Lottie Animation.
Other
1.11k stars 218 forks source link

Compile error in arm #500

Open xaowang96 opened 2 years ago

xaowang96 commented 2 years ago

Compiling on the Arm platform, uint will be redefined, and error occur.

xaowang96 commented 2 years ago
  • Platform Arm
  • OS nuttx

Compiling on the Arm platform, uint will be redefined, and error occur.

  • typedef unsigned int uint; in nuttx/inclue/sys/types.h:273
  • using uint = uint32_t; in lottie/src/vector/vglobal.h:32 20211130-12021

What can i do to fix this error?

smohantty commented 2 years ago

not sure if i can create a patch for this . usually unit is not defined in standard headers . so one option is just include types.h and comment the using unit = uint32_t .

xaowang96 commented 2 years ago

not sure if i can create a patch for this . usually unit is not defined in standard headers . so one option is just include types.h and comment the using unit = uint32_t .

Thank you for your reply, now i comment the using uint = uin32_t. Can you notify me if you create the resolved patch?

smohantty commented 2 years ago

@xaowang96 , have pushed a patch #506 for the same.

xaowang96 commented 2 years ago

@xaowang96 , have pushed a patch #506 for the same.

Thanks.

xaowang96 commented 2 years ago

@xaowang96 , have pushed a patch #506 for the same.

I am sorry to tell you that i got another error during compilation, like this: 截屏2021-12-09 下午4 19 50

Add i push a patch https://github.com/Samsung/rlottie/pull/508 to solve it.

B2B-Rohit commented 4 months ago

Any update on this issue? I am getting the same errors along with

../rlottie/src/vector/vdrawhelper.cpp:66:34: error: 'mutex' is not a member of 'std' 66 std::lock_guard guard(mMutex);

I am currenly trying to compile it for NXP IMXRT1050 using the MCUXpresso IDE I tried with multiple versions of C++ 11, C++ 14 and C++ 17. I have one demo code which has precompiled "librlottie.a" which works fine but I want to rebuild the library from the source code I am new to rlottie and has no experience in cross compilation? So can you atleast tell me how to integrate it?