Code Monkey home page Code Monkey logo

Comments (2)

LyffLyff avatar LyffLyff commented on August 18, 2024 1

Yeah, you were dead right, the reason for this Error was that godot was running in the background. It doesn't matter if it crashed because of an error or someting. Running apps in godot must be properly closed with F8 so it works. There has been one instance were the error occured even though everything was closed, but this happend once and resolved itself very quickly.

I know we have probably a found the issue, but heres the whole build output since you asked:

Rebuild started...
1>------ Rebuild All started: Project: ZERO_CHECK, Configuration: Debug x64 ------
1>Checking Build System
2>------ Rebuild All started: Project: gdnative-example, Configuration: Debug x64 ------
2>Building Custom Rule C:/Users/hinte/GodotProjects/MusicPlayer/godot-native-example/CMakeLists.txt
2>Godot.cpp
2>C:\Users\hinte\GodotProjects\MusicPlayer\godot-native-example\src\Godot.cpp(78,24): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
2> Creating library C:/Users/hinte/GodotProjects/MusicPlayer/godot-native-example/work/Debug/gdnative-example.lib and object C:/Users/hinte/GodotProjects/MusicPlayer/godot-native-example/work/Debug/gdnative-example.exp
2>gdnative-example.vcxproj -> C:\Users\hinte\GodotProjects\MusicPlayer\godot-native-example\work\Debug\gdnative-example.dll
2>Done building project "gdnative-example.vcxproj".
3>------ Rebuild All started: Project: ALL_BUILD, Configuration: Debug x64 ------
3>Building Custom Rule C:/Users/hinte/GodotProjects/MusicPlayer/godot-native-example/CMakeLists.txt
4>------ Rebuild All started: Project: INSTALL, Configuration: Debug x64 ------
4>-- Install configuration: "Debug"
4>-- Installing: C:/Users/hinte/GodotProjects/MusicPlayer/godot-native-example/work/../app/addons/example/./gdnative-example.lib
4>-- Installing: C:/Users/hinte/GodotProjects/MusicPlayer/godot-native-example/work/../app/addons/example/./gdnative-example.dll
4>CMake Error at cmake_install.cmake:49 (file):
4> file INSTALL cannot copy file
4> "C:/Users/hinte/GodotProjects/MusicPlayer/godot-native-example/work/Debug/gdnative-example.dll"
4> to
4> "C:/Users/hinte/GodotProjects/MusicPlayer/godot-native-example/work/../app/addons/example/./gdnative-example.dll":
4> Permission denied.
4>
4>
4>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: The command "setlocal
4>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake
4>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
4>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: :cmEnd
4>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
4>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: :cmErrorLevel
4>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: exit /b %1
4>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: :cmDone
4>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
4>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: :VCEnd" exited with code 1.
4>Done building project "INSTALL.vcxproj" -- FAILED.
========== Rebuild All: 3 succeeded, 1 failed, 0 skipped ==========

from godot-native-example.

samsface avatar samsface commented on August 18, 2024

Can you paste the whole build output? CMake/Visual studio integration sucks so the error is actually before this.

However, my guess... the install task copies the built dll into the example directory. Maybe you're building with Godot and the dll loaded so Windows has locked the file and won't let you overwrite it.

from godot-native-example.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.