Fixed Build fails for v2020-05-09 — Desktop Game — debug mode (msvc)

wick

Member
3rd Party Module Dev
Tutorial Author
Patreon Bronze
Joined
Jul 17, 2017
Messages
69
I just downloaded the newest release from itch & building for desktop debug is failing.

Html5 and desktop release are still working fine.

Here's the end of the console for bouncyaliens demo:

Code:
ResourceCompile:
  C:\Program Files (x86)\Windows Kits\8.1\bin\x86\rc.exe /l"0x0409" /nologo /fo"C:\Cerberus\examples\mojo2\bouncyaliens\bouncyaliens.buildv2020-05-09\glfw3\msvc\build\Debug\CerberusGame.res" CerberusGame.rc 
CerberusGame.rc(54): error RC2135: file not found: ..\..\cerberus.ico [C:\Cerberus\examples\mojo2\bouncyaliens\bouncyaliens.buildv2020-05-09\glfw3\msvc\CerberusGame.vcxproj]
CerberusGame.rc(55): error RC2135: file not found: ..\..\cerberus.ico [C:\Cerberus\examples\mojo2\bouncyaliens\bouncyaliens.buildv2020-05-09\glfw3\msvc\CerberusGame.vcxproj]

Done Building Project "C:\Cerberus\examples\mojo2\bouncyaliens\bouncyaliens.buildv2020-05-09\glfw3\msvc\CerberusGame.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\Cerberus\examples\mojo2\bouncyaliens\bouncyaliens.buildv2020-05-09\glfw3\msvc\CerberusGame.sln" (default targets) -- FAILED.
Build FAILED.

"C:\Cerberus\examples\mojo2\bouncyaliens\bouncyaliens.buildv2020-05-09\glfw3\msvc\CerberusGame.sln" (default target) (1) ->
"C:\Cerberus\examples\mojo2\bouncyaliens\bouncyaliens.buildv2020-05-09\glfw3\msvc\CerberusGame.vcxproj" (default target) (2) ->
(ResourceCompile target) -> 

  CerberusGame.rc(54): error RC2135: file not found: ..\..\cerberus.ico [C:\Cerberus\examples\mojo2\bouncyaliens\bouncyaliens.buildv2020-05-09\glfw3\msvc\CerberusGame.vcxproj]
  CerberusGame.rc(55): error RC2135: file not found: ..\..\cerberus.ico [C:\Cerberus\examples\mojo2\bouncyaliens\bouncyaliens.buildv2020-05-09\glfw3\msvc\CerberusGame.vcxproj]

    0 Warning(s)
    2 Error(s)

Time Elapsed 00:00:05.92
TRANS FAILED: Error executing '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" /p:Configuration=Debug', return code=1
Done.
 

dawlane

Well-known member
CX Code Contributor
Joined
Jun 21, 2017
Messages
795
@wick:
Work around.
Open the targets/glfw/msvc/CerberusGame.rc and change the icon paths to:
Code:
IDI_ICON1               ICON                    "..\\cerberus.ico"
GLFW_ICON               ICON                    "..\\cerberus.ico"
Don't forget to delete the old build directory.
 

dawlane

Well-known member
CX Code Contributor
Joined
Jun 21, 2017
Messages
795
Yup, I have just uploaded a new version. Was that what you ment before @dawlane ?
Yes. Though I think that you better check that any user icons still work.
I would suggest that the create and copy icon code is placed into it's own module and not part of transcc directly.
 
Top Bottom