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

Have some trouble in compiling flutter engine #189

Open
OnClickListener2048 opened this issue Jul 29, 2023 · 10 comments
Open

Have some trouble in compiling flutter engine #189

OnClickListener2048 opened this issue Jul 29, 2023 · 10 comments

Comments

@OnClickListener2048
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@welcome
Copy link

welcome bot commented Jul 29, 2023

Hi! Thanks for opening your first issue here! 😄

@fzyzcjy
Copy link
Owner

fzyzcjy commented Jul 29, 2023

Hi, it would be great to provide a bit more details about errors in engine compilation.

for basic context maybe refer to #182

@OnClickListener2048
Copy link
Author

@fzyzcjy thank you indeed for your response, my environment is OS: windows 11 and when i compile engine i get this
image
what confusing me is i'm my compiling platform is android but the error is telling me i'm compiling window's engine.

@fzyzcjy
Copy link
Owner

fzyzcjy commented Jul 29, 2023

Hmm I have not compiled it on windows yet (only on macos). In #182 (comment), it seems that macos compiles well while windows fail to compile.

@jmquilez
Copy link

jmquilez commented Jul 31, 2023

Hello! @OnClickListener2048 those flutter_windows libs are probably mandatory for the system to work, don't worry because you are indeed building for android. Have you installed libs for spectre (x64 and x86) for visual studio? I ran into (I believe) the same issue, although I was on Windows 10; from the last line of the error message it looks like maybe the file
atls.lib is missing from the out/android_debug_unopt_arm64/ (this is the error I was getting). Try to copy it from $(VSInstallDir)\Tools\MSVC\<version>\atlmfc\lib (if there are separate folders for x86, x64, arm64 etc, make sure to pick the arm64 one) into out/android_debug_unopt_arm64/ and then try to rebuild the engine again.

@fzyzcjy
Copy link
Owner

fzyzcjy commented Jul 31, 2023

(btw given #182 (comment) it seems that @OnClickListener2048 will be I won't be able to use a computer for the next 12-14 days since I'm going on holiday, although I think I'll be able to answer questions from my phone that do not require direct programming)

@OnClickListener2048
Copy link
Author

@jmquilez @fzyzcjy Thank you, this is heartwarming response and i will reset my environment as you said and recompile it again, and thank you, @fzyzcjy hope you have a good holiday!

@jmquilez
Copy link

jmquilez commented Aug 1, 2023

No problem, it is always a pleasure to help @OnClickListener2048 :D

@OnClickListener2048
Copy link
Author

@jmquilez Hi, I did reset my environment and recompile it and i got this error
image
I decode this somehow and it says that i don't have link.exe and i searched about it, it should be setup while my visual studio installed, but i can't find it in the dir C:\Program Files\Microsoft Visual Studio\2022\Community\VC (my visual studio install dir), it doesn't even have bin dir, so by any chance , do you have any idea what is going on here?

@jmquilez
Copy link

jmquilez commented Aug 6, 2023

Hi again! Sorry for not answering earlier. I am finally back from my holidays.

it doesn't even have bin dir,

It looks like in visual studio 2022 this link.exe file is under C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\Hostx64\x64\link.exe. Please check if it's there and if so, copy and paste it into out/android_debug_unopt_arm64/ and try to rebuild the engine again. Here is the Microsoft thread where I found the link.exe file path:
https://learn.microsoft.com/en-us/answers/questions/1162016/how-to-fix-the-c-compiler-c-program-files-microsof

I hope it helps, if you have any other issues please contact us again :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants