Compile error in arm
- 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
- Platform Arm
- OS nuttx
Compiling on the Arm platform,
uintwill be redefined, and error occur.
typedef unsigned int uint;in nuttx/inclue/sys/types.h:273using uint = uint32_t;in lottie/src/vector/vglobal.h:32![]()
What can i do to fix this error?
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 .
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 , have pushed a patch #506 for the same.
@xaowang96 , have pushed a patch #506 for the same.
Thanks.
@xaowang96 , have pushed a patch #506 for the same.
I am sorry to tell you that i got another error during compilation, like this:

Add i push a patch https://github.com/Samsung/rlottie/pull/508 to solve it.
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?