-
Notifications
You must be signed in to change notification settings - Fork 55
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
clang++: error: linker command failed with exit code 1 (use -v to see invocation) #128
Comments
Please try "flutter run -v" to run your project to get more infomation, which can help us fix the issue. |
|
Thank for reply |
I'm not sure if the webview_cef_example can run on your device? There is no build error but link error. There are too many environmental factors that may cause link error. |
have you add below lines to linux/main.cpp ?
and these lines to linux/my_application.cc
|
I did not reproduce the issue you mentioned when creating a new empty project. What is your Flutter version? |
thank you so much <3 you save my day. |
I cannot fix this problem yet. I want to add webview_cef to appflowy but I can't |
Oh I found the problem.
|
I found this line. |
When I temporarily remove
|
It looks like two libraries reference different versions/path of the same dependencies. Try to use command |
Thank you for your quick reply. How can I understand these messages? media_kit
webview_cef
|
I didn't find any problems. Let me try introducing media_kit into my project |
jeet-patel07@jeet-patel07:~/Desktop/webview_cef_demo$ flutter run -v [ +253 ms] ensureAnalyticsSent: 251ms |
We are also using The issue we saw was this:
The solution was to do export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
# And now you can run flutter
# `flutter run -d Linux` This made Linux work for us. (Of course, this assumes you already install other libraries for EDIT: Just noting that the app worked if only |
Dear webview_cef team
I tried to integrate the package to flutter app in linux (ubuntu 24.04 - amd64). Currently, i got the following issue.
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
The text was updated successfully, but these errors were encountered: