https://bugs.kde.org/show_bug.cgi?id=400716

--- Comment #5 from Svend Tofte <sto...@gmail.com> ---
Hello Jos, I'm not able to build the demo app (using cmake and the same
approach as used for the todo sample). It breaks on the usage of a "build"
command, which is not found.

Looking at the generated msbuild files (specificallly "rust_target.vcxproj",
which is generated in both cases). In todos, the build steps look like this:

<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Generating
rust/target/release/rust.lib</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">setlocal
cd C:\src\rust-qt-binding-generator\examples\todos\rust
if %errorlevel% neq 0 goto :cmEnd
C:
if %errorlevel% neq 0 goto :cmEnd
C:\Users\svto\.cargo\bin\cargo.exe build --release
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal &amp; call :cmErrorLevel %errorlevel% &amp; goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd</Command>

The same section for the demo project looks like this:

<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Generating
rust/rust.lib</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">setlocal
cd C:\src\rust-qt-binding-generator\demo\rust
if %errorlevel% neq 0 goto :cmEnd
C:
if %errorlevel% neq 0 goto :cmEnd
build
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal &amp; call :cmErrorLevel %errorlevel% &amp; goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd</Command>

The bare "build" line causes the issue. Might be as simple as quotes missing? I
will try to investigate during the week and see if I can learn anything.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to