I am trying to get our WinCE C++ project up and running on Torizon. We use a TCP/IP server with WinSock under WinCE. For Torizon I thought of Boost.Asio. According to this post this should work in principle. But the poster uses Eclipse and I guess Linux and I use Visual Studio under Windows with WSL.
So what I tried so far:
- Added ‘IMAGE_INSTALL_append = " boost boost-dev"’ to the local.conf and build it with bitbake. This works.
- Compiled the SDK with ‘bitbake torizon-core-dock -c populate_sdk’ and got “torizon-glibc-x86…sh” file, which is 590MB big.
But how should I install or deploy this SDK unter Windows? Install in my WSL? Is there a manual how I can do this in VS under Windows?
The approach you took while valid, is more suited to our non-Torizon Linux BSP. For including libraries like Boost into your Torizon application there’s a different approach.
As a starting point I’d suggest going through this article: C/C++ Development and Debugging on Torizon Using Visual Studio | Toradex Developer Center
One thing you need to keep in mind is that with Torizon there’s a separation between host OS and the containerized environment. What you did was add the boost packages/libraries to the host OS. But with Torizon what we intend is for users to run their application in a customized container environment. Therefore it’s sufficient and encouraged to only add application libraries/packages in the container environment.
The article I linked shows you how to add such libraries/packages using our Visual Studio extension. Via the extension you list whatever software packages you need that your application requires to compile or run. Then on application build/deploy the extension will spit out a customized container as to your specifications.
I hope this helped clear things up, please let me know if you need further clarification.