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

Errors while building #3

Open
zielakxar opened this issue Feb 23, 2024 · 1 comment
Open

Errors while building #3

zielakxar opened this issue Feb 23, 2024 · 1 comment

Comments

@zielakxar
Copy link

zielakxar commented Feb 23, 2024

I get the following errors when trying to make a build with flutter:

CMake Error at runner/CMakeLists.txt:4 (add_executable):
  The target name "Crunch Textures" is reserved or not valid for certain
  CMake features, such as generator expressions, and may result in undefined
  behavior.


CMake Error at CMakeLists.txt:34 (target_compile_features):
  Cannot specify compile features for target "Crunch Textures" which is not
  built by this project.
Call Stack (most recent call first):
  runner/CMakeLists.txt:14 (apply_standard_settings)


CMake Error at runner/CMakeLists.txt:15 (target_compile_definitions):
  Cannot specify compile definitions for target "Crunch Textures" which is
  not built by this project.


CMake Error at runner/CMakeLists.txt:16 (target_link_libraries):
  Cannot specify link libraries for target "Crunch Textures" which is not
  built by this project.

I've spent multiple hours downloading all sorts of necessary software trying to create a build, tested different flutter versions but no luck. Simple executable file shared in repository could save a lot of time for people unfamiliar with flutter. If that's not possible - any ideas how to handle above errors?

@zielakxar
Copy link
Author

Ok so I've figured out what was the issue. Firstly you cannot use latest version of flutter to build it. Newest that worked for me was 3.7.12 (something about dart and null safety).
Secondly you need to remove space in project name "Crunch Textures" > "CrunchTextures" in multiple files. I did so in:
crunch_textures-master\kometa_images\macos\Runner\Configs\AppInfo.xcconfig
crunch_textures-master\kometa_images\windows\CMakeLists.txt
crunch_textures-master\kometa_images\windows\runner\main.cpp
crunch_textures-master\kometa_images\windows\runner\Runner.rc

Then it finally builds but sadly the tool is almost useless without batch option. If you select a folder with 50png files it will take 2-3 minutes to load them... then you'll be able to modify ONE of those png-s after which return to window where you're able to select another file will cost you 2-3 minutes again cause it'll do the same folder-wide search repeatedly.

Some further research and I've found programs that convert whole folders by batch in manner of seconds. I've spent 4 hours learning about flutter and dart which was only benefit of this repository but I can't recommend it for people with time constraints on their projects.

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

1 participant