vsgpath
c_string c
w_string w
MyPath(string) string 1
print(wchar_t) 0x16bb47518
I tested the new vsg::Path. It builds on the Mac, vsgpath prompts:vsgpath
c_string c
w_string w
MyPath(string) string 1
print(wchar_t) 0x16bb47518
On windows the build of VulkanSceneGraph is broken due to typos. I couldn't create a pull request, so I send the changed file to you.After applying these changes I got this answer on windows:vsgpath
c_string char
w_string wchar_t
MyPath(string) string 1
print(wchar_t) 000000A918AFF6B0
These problems will have existed prior to the vsg::Path work so it's not a regression, rather just having a new set of tests to hammer existing functions. While it's good to catch these prior to 1.0 it does mean it'll take me a bit longer to wrap up the vsg::Path work.
I tested the actual vsgPath related changes on Mac and Windows 10 (VS2022) again. On Windows I got tons of build errors, fortunately with 2 changes (#include <sstream>) I was able to fix it.
The vsgpath example runs into an infinite loop. sizeof(wchar_t) == 2 on windows, but sizeof(wchar_t) == 4 on the Mac (guess same as Linux). I changed it, now the Mac and Windows example run. That are the good news.
Under Windows I wasn't able to build vsgXchange and I don't know what to do. Do you have an idea?
I rolled back the changes to Data.h and Node.h and I got the appended build log.
I'm now wondering whether the ostream and istream operators at the bottom of Path.h are requiring the sstream include. I'll experiment with putting these operators along with the other stream operators into the include/vsg/io/stream.h.
we have come ahead. vsg and vsgExamples build on Windows 10 now. The problem with the missing headers is fixed, I followed your hint with the .string() missing in vs2022. It also worked. The build of vsgExamples is broken now (see attachment).
I will now review Assimp loader to see what best there.
sorry for the dely, I wasn't at home. The last result of my testing on Windows is an error in vsgExchange. The changed file is attached.
I was hoping that we might be able to pass a whar_t* filename to Assimp but it looks like we are limited to just char* filenames. I will look into whether Assimp will handle the utf8 encoding that vsg::Path provides when using Path::string() one Windows.
Good news: after pulling the last commits everything can be built and the examples run well.