-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Replies: 1 comment · 11 replies
-
Hi, can you share the output of |
Beta Was this translation helpful? Give feedback.
All reactions
-
There's already a ⬆️ reaction you can use, just commenting you're experiencing the issue as well isn't all that useful, especially as a response to someone 's message because now we're poking Fabian needlessly as responses to his comment instead of as new comments on the actual thread 😅 |
Beta Was this translation helpful? Give feedback.
All reactions
-
Got it, I'm willing to help, just don't know how to. I'm not really sure if this is related but, I found this issue on llvm project but I'm clueless if the problem is in Tauri or on a dependency. Is this a bug or do we have an issue related to this error? I mean, if it's not external, cause in this case I think there isn't much we could do. Gonna post the full output of the command with the --verbose flag
|
Beta Was this translation helpful? Give feedback.
All reactions
-
I get notified either way 🤣 But yeah, no idea what to do here and since it's still working fine on my machines (including VMs with different mac versions) i can't even mindlessly play around with it :( One thing to try is to remove everything that may be reladed to clang or llvm that was installed via homebrew so that there's really only the xcode clang installation left. Also would be cool if you could check if compiling a non-tauri rust app still works with the cargo-xwin instructions (from our docs or theirs) |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
You must be missing the brew install llvm
echo 'export PATH="/opt/homebrew/opt/llvm/bin:$PATH"' >> ~/.zshrc
echo 'export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"' >> ~/.zshrc
echo 'export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"' >> ~/.zshrc
source ~/.zshrc If llvm@18 errors, downgrade to llvm@17 or lower brew uninstall llvm
brew install llvm@17
echo 'export PATH="/opt/homebrew/opt/llvm@17/bin:$PATH"' >> ~/.zshrc
export LDFLAGS="-L/opt/homebrew/opt/llvm@17/lib"
export CPPFLAGS="-I/opt/homebrew/opt/llvm@17/include"
for rustup target add x86_64-pc-windows-msvc
pnpm tauri build --runner cargo-xwin --target x86_64-pc-windows-msvc for rustup target add aarch64-pc-windows-msvc
pnpm tauri build --runner cargo-xwin --target aarch64-pc-windows-msvc In #[cfg(target_os = "windows")]
fn main() {
let mut windows = tauri_build::WindowsAttributes::new();
windows = windows.app_manifest(
r#"
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2024/WindowsSettings">
<supportedArchitectures>amd64 arm64</supportedArchitectures>
</asmv3:windowsSettings>
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
"#,
);
tauri_build::try_build(tauri_build::Attributes::new().windows_attributes(windows))
.expect("failed to run build script");
}
#[cfg(not(target_os = "windows"))]
fn main() {
tauri_build::build();
} |
Beta Was this translation helpful? Give feedback.
All reactions
-
UP |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am using macOS 14 and tauri v1.
I already followed this post https://tauri.app/v1/guides/building/cross-platform to install all necessary things to build windows. But when running the script to run build, it raises error
I am not sure how to fix this one.
Beta Was this translation helpful? Give feedback.
All reactions