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

cmake ARCHIVE_EXTRACT command #78

Open
ivangermes opened this issue Mar 9, 2024 · 6 comments
Open

cmake ARCHIVE_EXTRACT command #78

ivangermes opened this issue Mar 9, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@ivangermes
Copy link

ivangermes commented Mar 9, 2024

Used a CMake ARCHIVE_EXTRACT command that supports only from CMake 3.18.
But required cmake version is 3.10 ( for linux ) or 3.14 ( for windows ).

This leads to embarrassing errors ( ubuntu 20.04 with out-of-box cmake version 3.16 ):

CMake Error at 
flutter/ephemeral/.plugin_symlinks/serious_python_linux/linux/CMakeLists.txt:25 
(file):
  file does not recognize sub-command ARCHIVE_EXTRACT


Unable to generate build files

Error building Flet app - see the log of failed command above.

CMake docs about ARCHIVE_EXTRACT:
https://cmake.org/cmake/help/latest/command/file.html#archive-extract

ARCHIVE_EXTRACT usage:

file(ARCHIVE_EXTRACT INPUT ${PYTHON_FILE} DESTINATION ${CMAKE_BINARY_DIR})

file(ARCHIVE_EXTRACT INPUT ${PYTHON_FILE} DESTINATION ${PYTHON_PACKAGE})

I suggest increase requirement version of cmake to 3.18.
There will be a clearer error message.
And it will also allow to learn the list_prepend function. Because list(TRANSFORM ..) and list(PREPEND..) will already be supported in cmake 3.18.
E.g. here

@hasanelfalakiy
Copy link

same issue

@ndonkoHenri ndonkoHenri added the bug Something isn't working label Aug 21, 2024
@mkasajim
Copy link

I am using CMake version 3.22.1, but I am also getting the same issue. How do I fix this?

@pullenrc
Copy link

Has there been any update or workaround to this issue? I have just install Flet 0.24.1, and Flutter 3.24.3, and am getting this error.

@FeodorFitsner
Copy link
Contributor

@pullenrc where do you get that error, while using flet build?

@szho42
Copy link

szho42 commented Nov 19, 2024

I had the same issue when run flet build for linux platform. I am using the flutter installed via snap, while the flet official documentations strongly suggest to have flutter installed in the manual way. Not sure whether it is relevant.

Update: tested with flutter manually installed, the same issue remains.

@ARaycove
Copy link

flet build linux produced the following Message:

[09:02:24] Created Flutter bootstrap project from gh:flet-dev/flet-build-template with ref 0.24.1 ✅
Customized app icons and splash images ✅
[09:02:36] Generated app icons ✅
[09:02:56] Packaged Python app ✅
[09:03:07] Resolving dependencies...
Downloading packages...
characters 1.3.0 (1.3.1 available)
clock 1.1.1 (1.1.2 available)
collection 1.18.0 (1.19.1 available)
fl_chart 0.68.0 (0.69.0 available)
flutter_launcher_icons 0.13.1 (0.14.1 available)
flutter_lints 2.0.3 (5.0.0 available)
http_parser 4.0.2 (4.1.1 available)
intl 0.19.0 (0.20.0 available)
js 0.6.7 (0.7.1 available)
lints 2.1.1 (5.1.0 available)
material_color_utilities 0.11.1 (0.12.0 available)
meta 1.15.0 (1.16.0 available)
! package_info_plus 8.1.1 (overridden)
path 1.9.0 (1.9.1 available)
screen_retriever 0.1.9 (0.2.0 available)
sensors_plus 4.0.2 (6.1.0 available)
sensors_plus_platform_interface 1.2.0 (2.0.0 available)
serious_python 0.7.1 (0.8.2 available)
serious_python_android 0.7.1 (0.8.2 available)
serious_python_darwin 0.7.1 (0.8.2 available)
serious_python_linux 0.7.1 (0.8.2 available)
serious_python_platform_interface 0.7.1 (0.8.2 available)
serious_python_windows 0.7.1 (0.8.2 available)
toml 0.15.0 (0.16.0 available)
url_strategy 0.2.0 (discontinued)
! wakelock_plus 1.2.8 (overridden)
! web 1.1.0 (overridden)
web_socket_channel 2.4.5 (3.0.1 available)
window_manager 0.3.9 (0.4.3 available)
Got dependencies!
1 package is discontinued.
26 packages have newer versions incompatible with dependency constraints.
Try flutter pub outdated for more information.

       Building Linux application...                                                                                                                                                     
                                                                                                                                                                                         
       CMake Error at flutter/ephemeral/.plugin_symlinks/serious_python_linux/linux/CMakeLists.txt:25 (file):                                                                            
         file does not recognize sub-command ARCHIVE_EXTRACT                                                                                                                             
                                                                                                                                                                                         
                                                                                                                                                                                         
       Unable to generate build files                                                                                                                                                    
                                                                                                                                                                                         
       Error building Flet app - see the log of failed command above.  

flet --version
---> 0.24.1
The documentation shows nothing on how to resolve these errors OR how to ensure the packages are up to date
https://flet.dev/docs/publish/linux
The documentation also did not mention that I need to install flutter, which I did using: sudo snap install flutter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants