sherlockchou86/VideoPipe

Can run on mac m1?

kbscolin opened this issue · 5 comments

Can VideoPipe run on mac m1?

Thanks!

yeah, it depends on gstreamer and opencv which are portable on mac m1.

Ok, thanks! I compile according to the default way. An error happens:
VideoPipe/nodes/infers/vp_face_swap_node.cpp:233:29: error: non-constant-expression cannot be narrowed from type 'int' to 'float' in initializer list [-Wc++11-narrowing]
One/project/opensource/industry/ai/sherlockchou86/VideoPipe/nodes/infers/vp_sface_feature_encoder_node.cpp:57:43: {{kps[0].first, kps[0].second},
error: ^~~~~~~~~~~~~
non-constant-expression cannot be narrowed from type 'int' to 'float' in initializer list [-Wc++11-narrowing]
{i->key_points[2].first, i->key_points[2].second},

VideoPipe/nodes/infers/vp_sface_feature_encoder_node.cpp:57:43: note: insert an explicit cast to silence this issue
{i->key_points[2].first, i->key_points[2].second},
^~~~~~~~~~~~~~~~~~~~~~~
static_cast( )

I use opencv 4.10.0 and gcc 14.1.0_2, the os is mac 12.7.5 (M1 Pro). Thanks!

some syntax compatibility issues on mac os, fix it by google.