Nothing happen when runing generate_solution_win.bat
-
Hi Community,
I am trying to take the first step with the C++ plugin, Then I tried to create theplugins.sln
file by holding down the steps of the C++ SDK on Windows.
And I run thegenerate_solution_win.bat
file but nothing happen, just a window popup and close qucikly.
is that i'm missing something or do something wrong? -
Hey @gheyret,
Thank your for reaching out to us. That is a bit odd but I have hunch to what could be the issue. Try to replace the content of the file with this:
@echo off setlocal :: Check if the project tool exists. set "ptool=%~dp0tools\projecttool\kernel_app_64bit.exe" if not exist "%ptool%" ( echo "Project tool not found at '%ptool%'." exit /b 1 ) :: Run the project tool on the project and create a symbolic link to the solution. echo Running project tool on project at '%~dp0'. %ptool% g_updateproject=%~dp0 endlocal
I.e., I removed the bit where it creates a symbolic link to the solution file for you. When even this does not work, I would have to ask you to try to run the project tool manually. This could also be something
%~dp0
related. Do you have any non-unicode or whitespace characters in your paths? The windows terminal does not like them, and you cannot properly escape them in batch files.d:\projects\cinema\2024_SDK #OK - Just ASCII, no whitespaces d:\projects\cinema and stuff\2024_SDK #NOK - white spaces in path d:\projects\cínemüß\2024_SDK #NOK - Non-ASCII characters, can lead to troubles too
Cheers,
Ferdinand -
Hi @ferdinand,
I replace the content, but it's same as the video on top. -
Hm,
hard to trouble shoot, have you check the paths?
-
Yes, And I'm sure I don't have any non-unicode character in my path
-
@ferdinand
Oh! sorry for that, it's white space! -
It works correctly!
Thank you so much for your help!
-
Yeah, no worries, and I am glad that it works for you. The windows terminal also drives me nuts every time (I in fact hate ALL terminals equally ).
Maybe I'll add a little warning to the getting started guides about this ...
-
Yeah, it's a little bit anoying, but the problem's solve!
Ready for rocking with C++! wohoo~