Code Monkey home page Code Monkey logo

aseprite-windows-docker-build's Introduction

aseprite-windows-docker-build's People

Contributors

alanparadis avatar chfhhd avatar eddex avatar nyukhalov avatar wu0lss4j avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

aseprite-windows-docker-build's Issues

Build fails on Windows 10

Everything seems to check out fine then when it goes to build the CMake file, it fails. See the output below. Are there external dependencies that I'm missing here?

D:\github\eddex\aseprite-windows-docker-build\deps\skia\aseprite\build>cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLAF_BACKEND=skia -DSKIA_DIR=C:\deps\skia -DSKIA_LIBRARY_DIR=C:\deps\skia\out\Release-x64 -DSKIA_LIBRARY=C:\deps\skia\out\Release-x64\skia.lib -G Ninja ..
CMake Deprecation Warning at CMakeLists.txt:17 (cmake_policy):
  The OLD behavior for policy CMP0046 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:32 (project):
  No CMAKE_C_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:32 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!

D:\github\eddex\aseprite-windows-docker-build\deps\skia\aseprite\build>ninja aseprite
ninja: error: loading 'build.ninja': The system cannot find the file specified.

GitHub domain fails to resolve when building Docker image

Just tried to run this today but the Docker image build fails like so:

C:\deps\skia>powershell -command "wget -UseBasicParsing -OutFile skia.zip https://github.com/aseprite/skia/releases/download/m102-861e4743af/Skia-Windows-Release-x64.zip"
wget : The remote name could not be resolved: 'github.com'
At line:1 char:1
+ wget -UseBasicParsing -OutFile skia.zip https://github.com/aseprite/s ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:Htt
   pWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShe
   ll.Commands.InvokeWebRequestCommand


C:\deps\skia>powershell -command "Expand-Archive -Path .\skia.zip -DestinationPath ."
Expand-Archive : The path '.\skia.zip' either does not exist or is not a valid
file system path.
At line:1 char:1
+ Expand-Archive -Path .\skia.zip -DestinationPath .
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (.\skia.zip:String) [Expand-Arc
   hive], InvalidOperationException
    + FullyQualifiedErrorId : ArchiveCmdletPathNotFound,Expand-Archive


C:\deps\skia>echo "switch to VS dev cmd"
"switch to VS dev cmd"

C:\deps\skia>call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\VsDevCmd.bat" -arch=x64
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.11.18
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
"build ninja"
fatal: destination path 'ninja' already exists and is not an empty directory.
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
CMake Error: The source directory "C:/ninja" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
Error: could not load cache
"build aseprite"
Cloning into 'aseprite'...
fatal: unable to access 'https://github.com/aseprite/aseprite.git/': Could not resolve host: github.com
The system cannot find the path specified.
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
A subdirectory or file build already exists.
CMake Error: The source directory "C:/" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
ninja: error: loading 'build.ninja': The system cannot find the file specified.

The command 'cmd /S /C C:\build.bat' returned a non-zero code: 1

It probably goes without saying that GitHub does resolve just fine outside of the Docker image; I'm on it writing this issue right now.

Direction Unclear, foot caught in elevator.

Totally new to Containers, please excuse the ignorance.

Downloaded all. Placed in a single Folder,
Ran Start, Downloaded Files; CMD prompt closed on completion
Ran Build, Downloaded a Series of Files; Same as above
I have a folder now at c:\Aseprite full of folders and documents, but not .exe.

I had Docker open but it didn't appear to get used / nothing appeared in images.

Can't find location of /bin file.

Is there a next set of directions I'm supposed to find somewhere?

Please Direct Further,
V/R
Mei

Failed to build

When i try to build, i run into this error:

[1296/1440] Building CXX object src\app\CMakeFiles\app-lib.dir\ui\color_selector.cpp.obj
FAILED: src/app/CMakeFiles/app-lib.dir/ui/color_selector.cpp.obj
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe"  /nologo /TP -DCMARK_STATIC_DEFINE -DCURL_STATICLIB -DENABLE_DATA_RECOVERY -DENABLE_NEWS -DENABLE_SAVE -DENABLE_SCRIPTING -DENABLE_UI -DENABLE_UPDATER -DENABLE_WEBP -DENABLE_WEBSOCKET -DFMT_LOCALE -DHAVE_CONFIG_H -DHAVE_CONFIG_OVERRIDE_H=1 -DIXWEBSOCKET_USE_ZLIB -DLAF_SKIA -DLAF_WINDOWS -DLAF_WITH_REGION -DLIBARCHIVE_STATIC -DLUA_FLOORN2I=1 -DNDEBUG -DPNG_NO_MMX_CODE -DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1 -DSK_BUILD_FOR_WIN -DSK_ENABLE_SKSL=1 -DSK_GAMMA_APPLY_TO_A8 -DSK_GAMMA_SRGB -DSK_GL=1 -DSK_INTERNAL -DSK_SCALAR_TO_FLOAT_EXCLUDED -DSK_SUPPORT_GPU=1 -DTIXML_USE_STL -DUNICODE -DWINVER=0x0A00 -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_WIN32_WINNT=0x0A00 -I..\third_party\zlib -Ithird_party\zlib -I..\third_party\libpng -Ithird_party\libpng -I..\third_party\tinyxml -I..\third_party\pixman\pixman -I. -I..\third_party\giflib -I..\third_party\jpeg -I..\third_party\curl\include -I..\third_party\simpleini -IC:\deps\skia\third_party\externals\libwebp\src -I..\src\.. -I..\src\observable -Isrc\app -I..\laf -Ilaf -I..\src -I..\src\doc\.. -IC:\deps\skia -IC:\deps\skia\third_party\externals\freetype\include -IC:\deps\skia\third_party\externals\harfbuzz\src -I..\src\fixmath\.. -I..\src\dio\.. -I..\third_party\fmt\include -I..\src\observable\. -I..\third_party\cmark\src -Ithird_party\cmark\src -I..\third_party\giflib\lib -I..\third_party\json11 -I..\third_party\libarchive\libarchive -I..\third_party\tinyexpr -I..\third_party\lua -I..\third_party\IXWebSocket /DWIN32 /D_WINDOWS /GR /EHsc /MT /Zi /O2 /Ob1 /D NDEBUG -MT   -wd4267 -wd4244 -std:c++17 /showIncludes /Fosrc\app\CMakeFiles\app-lib.dir\ui\color_selector.cpp.obj /Fdsrc\app\CMakeFiles\app-lib.dir\app-lib.pdb /FS -c ..\src\app\ui\color_selector.cpp
..\src\app\ui\color_selector.cpp(474): error C2660: 'SkRuntimeShaderBuilder::makeShader': function does not take 0 arguments
C:\deps\skia\include/effects/SkRuntimeEffect.h(452): note: see declaration of 'SkRuntimeShaderBuilder::makeShader'
..\src\app\ui\color_selector.cpp(489): error C2660: 'SkRuntimeShaderBuilder::makeShader': function does not take 0 arguments
C:\deps\skia\include/effects/SkRuntimeEffect.h(452): note: see declaration of 'SkRuntimeShaderBuilder::makeShader'
..\src\app\ui\color_selector.cpp(502): error C2660: 'SkRuntimeShaderBuilder::makeShader': function does not take 0 arguments
C:\deps\skia\include/effects/SkRuntimeEffect.h(452): note: see declaration of 'SkRuntimeShaderBuilder::makeShader'
[1297/1440] Building CXX object src\app\CMakeFiles\app-lib.dir\ui\color_spectrum.cpp.obj
[1298/1440] Building CXX object src\app\CMakeFiles\app-lib.dir\ui\color_shades.cpp.obj
ninja: build stopped: subcommand failed.
The command 'cmd /S /C C:\build.bat' returned a non-zero code: 1

C:\Users\.\aseprite-windows-docker-build>

Did i miss a step or do something wrong? I did have to follow the instructions in #4

Not for Windows 10 Home

Not an issue. Just info.

You might note in your readme that this does not work on Windows 10 Home because Docker can only run WSL2 containers on Windows 10 Home. The menu option to switch to Windows containers is still there on Windows 10 Home -- Docker just gets hung in starting mode when trying it. Only in settings does Docker tell you that you can't turn off WSL2 containers.

Otherwise, in a Linux container (WSL2), it fails with this message when trying docker build (after the 7GB download):

failed to register layer: Error processing tar file(exit status 1): link /Files/Program Files/common files/Microsoft Shared/Ink/en-US/micaut.dll.mui /Files/Program Files (x86)/common files/Microsoft Shared/ink/en-US/micaut.dll.mui: no such file or directory

Anyhow, thanks for putting this together.

Build fails on Windows 10 (for another reason)

This is the whole output when I run start.bat. I really can't understand why it cannot find the image, since the image is actually still available.

>start.bat
Building Aseprite using Docker
[+] Building 436.5s (5/7)                                                                                                                                                                                                     docker:default
 => [internal] load .dockerignore                                                                                                                                                                                                       0.0s
 => => transferring context: 2B                                                                                                                                                                                                         0.0s
 => [internal] load build definition from Dockerfile                                                                                                                                                                                    0.0s
 => => transferring dockerfile: 117B                                                                                                                                                                                                    0.0s
 => [internal] load metadata for docker.io/abrarov/msvc-2022:2.15.0                                                                                                                                                                     1.8s
 => [internal] load build context                                                                                                                                                                                                       0.0s
 => => transferring context: 903B                                                                                                                                                                                                       0.0s
 => ERROR [1/3] FROM docker.io/abrarov/msvc-2022:2.15.0@sha256:108339140b0279672903b7c10d74116d89164dd5ac657f79bb40135dc44b83ed                                                                                                       434.5s
 => => resolve docker.io/abrarov/msvc-2022:2.15.0@sha256:108339140b0279672903b7c10d74116d89164dd5ac657f79bb40135dc44b83ed                                                                                                               0.0s
 => => sha256:b111c3320c949bea81612bf4554f1b6592c2f504920b5bf57ba340a1d4d52c93 1.88GB / 1.88GB                                                                                                                                        334.4s
 => => sha256:ca73064362226b7df47e746a33e9d3f10628ad09224721ff795618c85e2ff104 1.29kB / 1.29kB                                                                                                                                          0.3s
 => => sha256:f49435d194108cd56f173ad5bc6a27c70eed98b7e8cd54488f5acd85efbd51c9 7.69kB / 7.69kB                                                                                                                                          0.0s
 => => sha256:108339140b0279672903b7c10d74116d89164dd5ac657f79bb40135dc44b83ed 3.61kB / 3.61kB                                                                                                                                          0.0s
 => => sha256:294d77ac553d7210b662d07674ef9e39a6c2e88dc15b9d2788d51e509bc8b54e 800.55MB / 800.55MB                                                                                                                                    239.9s
 => => sha256:52e8bf960487dc434a52fd2c35af27d90be2a68350e23f11e4e3e8efe5f1e74a 3.81kB / 3.81kB                                                                                                                                          0.5s
 => => sha256:d0423104b1e8eb4ba8f6f8b92f29f150f61c99e3ae0155329524ac2b435ae82f 1.26GB / 1.26GB                                                                                                                                         88.0s
 => => sha256:e955cb691f75ed421e352c2b78022deb5a85b9b9ecf344a3f8ed9e3da1f896aa 1.29kB / 1.29kB                                                                                                                                         88.7s
 => => sha256:12ba4d046135d63a754b968f6937a1fd6222c1da6862395b9e85e3e2174c2af5 1.29kB / 1.29kB                                                                                                                                         88.8s
 => => sha256:ab9c362daf8c54ee2d2df390e3fdba4380942f37abe0c599fd5816a565af61b1 1.29kB / 1.29kB                                                                                                                                         89.1s
 => => sha256:51697aeca9c923aafcaf27c9bb41acce16613190efcd28e4c5c0bd7d94837e2a 1.28kB / 1.28kB                                                                                                                                         89.2s
 => => sha256:f70742e625f6f5679c93c40c2f866804438ed81c58b7f5c3e90dbb2e7dc311b6 2.44kB / 2.44kB                                                                                                                                         89.5s
 => => sha256:d8ad052ff44426c3b9ed8e60880065e2bfe232a1cce8109b8fc5521150f1d942 1.93GB / 1.93GB                                                                                                                                        207.2s
 => => sha256:38911ee4e4541823cdf83482d30d85ac7b786dc0ef7e0ee4495b47225360bcae 1.33kB / 1.33kB                                                                                                                                        207.6s
 => => sha256:a9fbf00bb9e2c596caa789fa21bc99b3ba4f80f921f3e569ac16019d5b01c3c9 1.29kB / 1.29kB                                                                                                                                        207.9s
 => => sha256:05e5f3eaa5fee2508b8b10b748fc39800dba467e43617d4e090b9c8d31ced6f1 1.29kB / 1.29kB                                                                                                                                        208.2s
 => => extracting sha256:b111c3320c949bea81612bf4554f1b6592c2f504920b5bf57ba340a1d4d52c93                                                                                                                                              86.0s
 => => extracting sha256:294d77ac553d7210b662d07674ef9e39a6c2e88dc15b9d2788d51e509bc8b54e                                                                                                                                              13.5s
------
 > [1/3] FROM docker.io/abrarov/msvc-2022:2.15.0@sha256:108339140b0279672903b7c10d74116d89164dd5ac657f79bb40135dc44b83ed:
------
Dockerfile:3
--------------------
   1 |     # escape=`
   2 |
   3 | >>> FROM abrarov/msvc-2022:2.15.0
   4 |
   5 |     COPY build.bat C:\
--------------------
ERROR: failed to solve: failed to register layer: link /Files/Program Files/common files/Microsoft Shared/Ink/en-US/micaut.dll.mui /Files/Program Files (x86)/common files/Microsoft Shared/ink/en-US/micaut.dll.mui: no such file or directory
Copy Aseprite from Docker container
Unable to find image 'eddex/aseprite:latest' locally
docker: Error response from daemon: pull access denied for eddex/aseprite, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
Error response from daemon: No such container: aseprite
Error response from daemon: No such container: aseprite
Error response from daemon: No such container: aseprite
Error response from daemon: No such image: eddex/aseprite:latest
Done

If I try to pull this image alone I get the following strange error:

>docker pull docker.io/abrarov/msvc-2022:2.15.0
2.15.0: Pulling from abrarov/msvc-2022
b111c3320c94: Pulling fs layer
294d77ac553d: Pulling fs layer
ca7306436222: Download complete
52e8bf960487: Waiting
...
image operating system "windows" cannot be used on this platform: operating system is not supported

Access denied to eddex/aseprite

Build fails with an error about access denied to eddex/aseprite. Indeed, I can't seem to find this image anywhere online. I have checked and I am logged in.

PS C:\Users\frost\Downloads\a\a> .\start.bat
Building Aseprite using Docker
[+] Building 43.0s (6/8)                                                                                                                                                                                                                                        docker:default
 => [internal] load .dockerignore                                                                                                                                                                                                                                         0.0s
 => => transferring context: 2B                                                                                                                                                                                                                                           0.0s
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                                      0.0s
 => => transferring dockerfile: 117B                                                                                                                                                                                                                                      0.0s
 => [internal] load metadata for docker.io/abrarov/msvc-2022:2.15.0                                                                                                                                                                                                       1.6s
 => [auth] abrarov/msvc-2022:pull token for registry-1.docker.io                                                                                                                                                                                                          0.0s
 => [internal] load build context                                                                                                                                                                                                                                         0.0s
 => => transferring context: 31B                                                                                                                                                                                                                                          0.0s
 => CANCELED [1/3] FROM docker.io/abrarov/msvc-2022:2.15.0@sha256:108339140b0279672903b7c10d74116d89164dd5ac657f79bb40135dc44b83ed                                                                                                                                       41.3s
 => => resolve docker.io/abrarov/msvc-2022:2.15.0@sha256:108339140b0279672903b7c10d74116d89164dd5ac657f79bb40135dc44b83ed                                                                                                                                                 0.0s
 => => sha256:108339140b0279672903b7c10d74116d89164dd5ac657f79bb40135dc44b83ed 3.61kB / 3.61kB                                                                                                                                                                            0.0s
 => => sha256:f49435d194108cd56f173ad5bc6a27c70eed98b7e8cd54488f5acd85efbd51c9 7.69kB / 7.69kB                                                                                                                                                                            0.0s
 => => sha256:b111c3320c949bea81612bf4554f1b6592c2f504920b5bf57ba340a1d4d52c93 56.62MB / 1.88GB                                                                                                                                                                          41.3s
 => => sha256:294d77ac553d7210b662d07674ef9e39a6c2e88dc15b9d2788d51e509bc8b54e 2.10MB / 800.55MB                                                                                                                                                                         41.3s
 => => sha256:ca73064362226b7df47e746a33e9d3f10628ad09224721ff795618c85e2ff104 1.29kB / 1.29kB                                                                                                                                                                            0.2s
 => => sha256:52e8bf960487dc434a52fd2c35af27d90be2a68350e23f11e4e3e8efe5f1e74a 3.81kB / 3.81kB                                                                                                                                                                            0.4s
 => => sha256:d0423104b1e8eb4ba8f6f8b92f29f150f61c99e3ae0155329524ac2b435ae82f 158.33MB / 1.26GB                                                                                                                                                                         41.3s
ERROR: failed to solve: Canceled: context canceled
Terminate batch job (Y/N)?
^CCopy Aseprite from Docker container
Unable to find image 'eddex/aseprite:latest' locally
docker: Error response from daemon: pull access denied for eddex/aseprite, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
Error response from daemon: No such container: aseprite
Error response from daemon: No such container: aseprite
Error response from daemon: No such container: aseprite
Error response from daemon: No such image: eddex/aseprite:latest
Done

The system cannot find the file specified.

Error response from daemon: open \.\pipe\docker_engine_windows: The system cannot find the file specified."

I keep getting this after switching to Windows Containers.

If I stick on linux, It works until it has to do a link that fails.

I've tried clean vers multiple times, same thing

Unknown download location

Hi, I'm new to this, but I downloaded Docker and the zip, and then ran the start.bat
I left my computer running and now when I come back, I don't find a bin/ anywhere. The command prompt closed on its own, and I am not sure where I can find the files. I know they exist on my PC now because my C: drive is down ~10GB.

"Unable to find image" error

image
I have no clue what is going on (I do not know anything about Docker or what I assume is CMake), all I know is that this error appears every time I attempt to run the batch file

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.