rlottie icon indicating copy to clipboard operation
rlottie copied to clipboard

Compile error in arm

Open xaowang96 opened this issue 4 years ago • 7 comments

  • 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

xaowang96 avatar Nov 30 '21 04:11 xaowang96

  • 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?

xaowang96 avatar Dec 01 '21 02:12 xaowang96

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 .

smohantty avatar Dec 06 '21 12:12 smohantty

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?

xaowang96 avatar Dec 07 '21 02:12 xaowang96

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

smohantty avatar Dec 09 '21 04:12 smohantty

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

Thanks.

xaowang96 avatar Dec 09 '21 06:12 xaowang96

@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.

xaowang96 avatar Dec 09 '21 08:12 xaowang96

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_guardstd::mutex 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?

B2B-Rohit avatar Mar 15 '24 08:03 B2B-Rohit