Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sniffnet fails to build using the cargo installation (error RC2135 : file not found: ./resources/packaging/windows/graphics/sniffnet.ico) #681

Open
1 task done
Quorsor opened this issue Jan 16, 2025 · 0 comments
Assignees
Labels
bug Something isn't working Windows Something related to Windows operating system
Milestone

Comments

@Quorsor
Copy link

Quorsor commented Jan 16, 2025

Is there an existing issue for this?

  • I have searched the existing issues.

What's the problem?

Sniffnet fails to build using the cargo installation.

How did you install the app?

installed from crates.io

Operating System

Windows

Additional context

command output

Caused by:
  process didn't exit successfully: `C:\Users\Admin\`AppData\Local\Temp\cargo-installcBCKZH`\release\build\sniffnet-d42dcf163b623d06\build-script-build` (exit code: 101)
  --- stdout
  cargo:rerun-if-changed=./resources/packaging/windows/graphics/sniffnet.ico
  cargo:rerun-if-changed=./services.txt
  package.metadata.winres does not exist
  "C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\x64\\rc.exe"
  Selected RC path: 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\rc.exe'
  RC Output:
  Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
  Copyright (C) Microsoft Corporation.  All rights reserved.


  C:\Users\Admin\`AppData\Local\Temp\cargo-installcBCKZH`\release\build\sniffnet-08d41838ec031ad8\out\resource.rc(25) : error RC2135 : file not found: ./resources/packaging/windows/graphics/sniffnet.ico

  ------
  RC Error:

  ------

  --- stderr
  thread 'main' panicked at C:\Users\Admin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\sniffnet-1.3.2\build.rs:31:23:
  called `Result::unwrap()` on an `Err` value: Custom { kind: Other, error: "Could not compile resource file" }
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `sniffnet v1.3.2`, intermediate artifacts can be found at `C:\Users\Admin\`AppData\Local\Temp\cargo-installcBCKZH``.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
@GyulyVGC GyulyVGC added bug Something isn't working Windows Something related to Windows operating system labels Jan 16, 2025
@GyulyVGC GyulyVGC self-assigned this Jan 16, 2025
@GyulyVGC GyulyVGC added this to the v1.4.0 milestone Jan 16, 2025
@GyulyVGC GyulyVGC changed the title error RC2135 : file not found: ./resources/packaging/windows/graphics/sniffnet.ico Sniffnet fails to build using the cargo installation (error RC2135 : file not found: ./resources/packaging/windows/graphics/sniffnet.ico) Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Windows Something related to Windows operating system
Projects
None yet
Development

No branches or pull requests

2 participants