-
Notifications
You must be signed in to change notification settings - Fork 204
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
Ubuntu flutter app fails to build after 0.9.1 - 0.10.1 upgrade. Cmake compile failure undefined symbols #291
Comments
I'm facing the same issue on rive: ^0.10.1
|
Hi @BPattersonRaven and @hrithikwins it may be related to this: #279 (comment) Which will require you to update the Clang compiler and to VS 2022 This is a requirement for Windows, and I believe for Linux as well. Additional details here: #285 (comment) Please let me know if this works after updating the above and I'll be sure to update our documentation |
On my Linux machine I have installed clang.
I still get the same result. |
Hi @BPattersonRaven and @hrithikwins, I'm not able to reproduce the errors you are reporting can you confirm the build build commands you are running? and which linux distro you are using? also are there any errors or warnings before the error traces that you have shared? can you confirm that you have ran also can you share the verbose error outputs? also, if you are comfortable with it, it would be helpful to have access to a repo that reproduces this issue (you can contact us directly at [email protected]) |
btw, I've been trying to reproduce this via a docker file (this is just building a sample project) do you run into the same issue trying to build a new flutter project using rive? (or for example building that sample project?) what does your android/app/build.gradle look like? has this been customized at all? are you targeting specific sdk versions?
|
@hrithikwins I noticed you should specify @BPattersonRaven its interesting that your cmake is running from 3.10.2, I've installed that manually and ran the ninja command against a clean version of rive_common, but I have not been able to avoid 3.18.1 being used so far by can you share the output of (from that container)
|
Sorry it took a while to get back to you. I have been busy testing and releasing the first production version of our app. Here is my flutter doctor output
|
Any updates? I am facing the same problem. I've tested in and empty project (setting the I am able to run See failure log
Flutter doctor
|
Hi @BPattersonRaven, I can see that your clang version is @jmorgadov this to me like its got some issues linking in |
@mjtalbot I even tried updating the whole system (including the clang and gcc related packages that I had already installed) but still had the same problem. However, I have a workaround to this issue that worked for me. I've been playing with the
void __assert_fail(const char * assertion, const char * file, unsigned int line, const char * function)
{
abort();
}
/*
* Copyright (C) 2014-2019 Muhammad Tayyab Akram
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <SBConfig.h>
#include <SheenBidi.h>
#ifdef SB_CONFIG_UNITY
#include "BidiChain.c"
#include "BidiTypeLookup.c"
#include "BracketQueue.c"
#include "GeneralCategoryLookup.c"
#include "IsolatingRun.c"
#include "LevelRun.c"
#include "PairingLookup.c"
#include "RunQueue.c"
#include "SBAlgorithm.c"
#include "SBAssert.c" // <---- here it is
#include "SBBase.c"
#include "SBCodepointSequence.c"
#include "SBLine.c"
#include "SBLog.c"
#include "SBMirrorLocator.c"
#include "SBParagraph.c"
#include "SBScriptLocator.c"
#include "ScriptLookup.c"
#include "ScriptStack.c"
#include "StatusStack.c"
#endif This is not the best solution by far, but at least this allows me to use the last versions of |
fascinating, looking at the issue, and the part where it works when you run so i assume |
@mjtalbot I just test
|
After upgrading rive from 0.9.1 to 0.10.4 in our project it also tries to access cmake version I was able to fix local build by installing needed version of cmake in Android Studio: We still have flutter-build step failing on bitrise with exact same problem. On bitrise job I was trying to pre-install correct version of cmake with brew, but then also noticed that we are experiencing a slight fat apk size increase mentioned in #274 (135MB -> 142MB) and made a pause for now. |
@jmorgadov, I've tried to reproduce your issue using a docker container. But I am unable to, can you take a look at the setup here to see if this differs from your project in an obvious way? A repro of the issue would really help getting this resolved, I am simply building a test project in Dockerfile to test buildingI tried base, base-devel, latest... If anything here looks off please let me know, I've not run archlinux before.
Flutter doctor outputThe linux toolchain looks identical to yours
|
@millerovv, I don't think we should be locking in a specific version of cmake, i would have expected 3.22.1 to be enough Can you share the error message you are seeing? I have not really used bitrise before, so do feel free to point out blatant mistakes. But I made a quick project and pointed it at I fixed the flutter version to 3.7.2 (it was set to stable but installed 2.x for some reason). Removed the tests, and added Does this setup differ significantly from yours? Can you share a repro for the error you are seeing? |
@mjtalbot Just tried to prepare an example, but noticed that it works just fine on a completely new project. By default it does everything just as in your bitrise build – selects version 3.18.1 and install it automatically 🤔
But I still cant' figure out why it selects CMake 3.10.2 on our existing project. Unless I install cmake 3.10.2 manually (in android studio) it just crashes each time with:
Also wondering if this quote from doc could be relevant:
|
For anyone experiencing the issue:
In our case the error was caused by using old gradle version 4.2.2. The solution was updating gradle dependency in
After this change, CMake v3.18.1 gets automatically isntalled by gradle task during build:
|
Description
I am trying to upgrade all the flutter packages in my app. When I try to upgrade Rive from 0.9.1 to 0.10.1 I can no longer build my app. These changes work on windows but not on my Ubuntu machine. I am not sure how to resolve this build issue and for now I have stuck with version 0.9.1. I do not have much experience with compiling C++ code so any help would be appreciated.
I get the following stack trace:
I have used the same NDK version suggested:
[✓] Flutter (Channel stable, 3.7.1, on Ubuntu 22.04.1 LTS 5.15.0-58-generic, locale en_NZ.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2021.3)
[✓] VS Code
[✓] Connected device (3 available)
[✓] HTTP Host Availability
The text was updated successfully, but these errors were encountered: