-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Cannot run a new app on Windows #2871
Comments
This part is the interesting bit @amrbashir :
Thanks for the stacktrace @SyntaxRules |
Can you verify that |
@nothingismagick Yup it is there! |
Just so we leave no stone unturned: does |
Yup same error when running
|
This is a weird error tbh, Can you try replacing |
@amrbashir Here are a couple more data points for you. First, renaming an icon and editing The stacktrace:
|
Second, if I replace the icon with one of my own I get the same error as before. Note this icon has to be named icon.ico because of the comment above. The stack trace:
|
Thanks for the info, we will try to investigate this. |
Seems like you don't have the Windows SDK installed. Your output shows |
@lucasfernog Thank you for clarifying this in the docs, however this doesn't seem to be the cause of this issue. I have the windows 10 SDK installed (version 10.0.19041.0) and |
I'm digging deeper, It looks like the issue pops up in the use of the
Let me look further into the winres crate and see if I can figure out what is going on there. |
Root causeThe error is produced by an incorrect RC path (like @lucasfernog suggested). The The SolutionIf I edit how I'm calling
I verified this by running a hard-coded version of tauri-build that had this path in it. The two fixes i propose are:
I'll get to work on these PRs right away. |
Nice job @SyntaxRules |
I have the exact same issue. Is a new beta release planned soon? EDIT: Just saw the "Feature Freeze" issue. my bad. |
see tauri-apps/tauri#2871 the hard codes path to the win sdk can be overwritten via feature flags - win_sdk_ver to overwrite version only - win_sdk_path to overwrite whole path win_sdk_ver takes precedence
see tauri-apps/tauri#2871 the hard codes path to the win sdk can be overwritten via feature flags - win_sdk_ver to overwrite version only - win_sdk_path to overwrite whole path win_sdk_ver takes precedence
I experienced this issue as well because i was using the wrong toolchain. Switching the rust toolchain from x86_64-pc-windows-gnu to x86_64-pc-windows-msvc solved it for me. |
This comment was marked as outdated.
This comment was marked as outdated.
For me it was as simple as having renamed my script.
Silly small issue, but figured this comment could save some people a bit of a headache since this thread is one of the first results on Google for the same error I had. |
This will be investigated ASAP
…On Sat, Sep 30, 2023 at 11:12 PM Nikhil-Swami ***@***.***> wrote:
[image: image]
<https://user-images.githubusercontent.com/54004431/271795236-90a667da-edae-425f-a092-9cfa568ce428.png>
hello, i think i found a potential clue for the same issue as being
discussed in thread,
Hint: Source code and windows executables like windres are in different
drives.
im not rust expert(on way to become one),
so please validate this hint, as i have no definitive way
of testing it out bcs im trying to build a tauri app first time, but faced
with this error.
—
Reply to this email directly, view it on GitHub
<#2871 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNL7BCYDUH75IROGNJS3ATX5CDLLANCNFSM5HYWBDHQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
*MIGUEL GARGALLO*
Graduate Student
Harvard University | Extended School
51 Brattle Street | *Cambridge*, *MA* 02138-3722
*office:* +1 (407) 706 7844 | *mobile:* +34 636 570 727
*hours:* M-T 10-6, F 10-2
*pronouns: **He/him/his*
*dce.harvard.edu <https://www.dce.harvard.edu/>*
Mail | Miguel Gargallo | Andorra La Vella | Andorra |
The information in this e-mail and any attachment(s) is intended solely for
the personal and confidential use of the designated recipients. This
message may be an attorney-client communication protected by privilege. If
you are not the intended recipient, you may not review, use, copy, forward,
or otherwise disseminate this message. Please notify us of the
transmission error by reply e-mail and delete all copies of the message and
any attachment(s) from your systems. The use of the sender's name in this
message is not intended as an electronic signature under any applicable
law. Thank you.
|
can you post the output of |
Do I really have a config issue? Looks good to me, no?! |
Yeah your config looks alright. What's confusing is that the resource compiler thinks you're compiling for the gnu target with the msvc toolchain. Also, rustup show and tauri info show different rust versions. Did you upgrade them inbetween or do you indeed have 2 installs where 1 could be interfering here 🤔 |
I only have one rust installation. Actually the full path have should been redacted but I have missed the last part (obviously). Just corrected it. Let's assume the installation is under This is how my project looks like. There is no Any other ideas? |
@FabianLars maybe? |
@exislow I have to stick with what i said. That error can realistically only happen when you compile with/for the gnu toolchain, or if cargo/rust thinks you do. |
I have the same issue, installed everything by the book today and get the following output:
|
Describe the bug
A clear and concise description of what the bug is. This is probably the same thing happening in #2867
To Reproduce
Steps to reproduce the behavior: TLDR; follow the tauri website
yarn create tauri-app
cd tauri-app
(or whatever you called it)yarn tauri info
yarn tauri dev
<- errorsExpected behavior
Tauri app compiles & runs
Platform and Versions (required):
Additional context
Fresh install
Stack Trace
Try 2:
The text was updated successfully, but these errors were encountered: