To add to this conversation, you can parlay consulting into software without a ton of problems.
Do work for customers. While doing work, try and find a shared pain point across your industry/customers. Build software for it and use your existing relationship to sell it. Or sell it and then build. Whichever.