How to build the Flex Branch?

I solved it finally!! …after 3 days of trial and error…