I noticed the comment about versions of g++ and gcc. If you do get more errors and/or things don't run properly I was told once that "the version of gcc/g++ used to compile the toolchain, libraries, kernel and your filesystem should be the same". This would seem difficult to achieve using two different cross-compilers. Hopefully, the version of gcc used to cross-compile the toolchain, (C) libraries and kernel will work when the filesystem and your application have been cross-compiled with g++.

Thanks mate. If your interested i have fixed up the code and uploaded full instructions to my githubhttps://github.com/leonyuhanov/NanoPi_APA102This will drive any APA102/SK9822 pixels, its basically a very advanced "blink" for driving these kid of pixels!