What would it take to directly make carbohydrates?

Previous discussion.