Code Monkey home page Code Monkey logo

Comments (24)

maujin111 avatar maujin111 commented on May 17, 2024 2

I don't think it is a good idea. I think that if we have to postpone the first RC, it is postponed. if there are already some bugs on native platforms with wine on mac there must be many more. including retina display. Today, Sunday, I will spend all day with my head in, making the mac compilation.

from libresprite.

maujin111 avatar maujin111 commented on May 17, 2024

Here is what I did:

- Compile skia

mkdir $HOME/deps
cd $HOME/deps
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
git clone -b aseprite-m81 https://github.com/aseprite/skia.git
export PATH="${PWD}/depot_tools:${PATH}"
cd skia
python tools/git-sync-deps
gn gen out/Release-x64 --args="is_debug=false is_official_build=true skia_use_system_expat=false skia_use_system_icu=false skia_use_system_libjpeg_turbo=false skia_use_system_libpng=false skia_use_system_libwebp=false skia_use_system_zlib=false skia_use_sfntly=false skia_use_freetype=true skia_use_harfbuzz=true skia_pdf_subset_harfbuzz=true skia_use_system_freetype2=false skia_use_system_harfbuzz=false target_cpu="x64" extra_cflags=["-stdlib=libc++", "-mmacosx-version-min=10.9"] extra_cflags_cc=["-frtti"]"
ninja -C out/Release-x64 skia modules

- Clone libresprite

git clone --recursive https://github.com/LibreSprite/LibreSprite
cd LibreSprite
git pull
git submodule update --init --recursive

- Compile LibreSprite

mkdir build
cd build

cmake
-DCMAKE_OSX_ARCHITECTURES=x86_64
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.7
-DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
-DUSE_ALLEG4_BACKEND=OFF
-DUSE_SKIA_BACKEND=ON
-DSKIA_DIR=$HOME/deps/skia
-DWITH_HarfBuzz=OFF
-G Ninja
..

- Output:

https://pastebin.com/eKtaEap0

- fix

add: set (CMAKE_CXX_FLAGS "-stdlib=libc++") on cmakelist.txt file at line 37

Delete build folder

- Try to compile again

mkdir build
cd build

cmake
-DCMAKE_OSX_ARCHITECTURES=x86_64
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.7
-DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
-DUSE_ALLEG4_BACKEND=OFF
-DUSE_SKIA_BACKEND=ON
-DSKIA_DIR=$HOME/deps/skia
-DWITH_HarfBuzz=OFF
-G Ninja
..

-output

https://pastebin.com/y4j9jsWc


Any suggestions on how to fix it or am I doing something wrong?

from libresprite.

 avatar commented on May 17, 2024

@maujin111 Great to have the output. If you don't mind, could you edit your post to replace the logs with pastebin links (preferably never expiring)? It helps to keep the conversation easy to read.

from libresprite.

maujin111 avatar maujin111 commented on May 17, 2024

Sorry for that, Done

from libresprite.

MintStudios avatar MintStudios commented on May 17, 2024

I know this wouldn't be ideal, but maybe we could somehow bundle the program with WINE? I don't know about the data folder if that has host-specific details.

from libresprite.

 avatar commented on May 17, 2024

Packaging with WINE is unacceptable. If it takes ripping out old Skia code and updating to the latest version, it's worth it not to package with an emulator.

This issue can't even get past CMake. I really wish I could help with a mac, I was only able to attempt a Linux compilation of Skia and that failed due to the google authorization tokens being outdated in that Skia branch (guess they want everyone to move up).

from libresprite.

MintStudios avatar MintStudios commented on May 17, 2024

Yeah, if I had a Mac, I would try for myself. I think that if we get really stuck in the MacOS building, we could contact dacap and ask for help.

from libresprite.

maujin111 avatar maujin111 commented on May 17, 2024

@PerryHugh @MintStudios Whenever you want you can connect Remotely to my Mac and give it a try

from libresprite.

maujin111 avatar maujin111 commented on May 17, 2024

When I tried to compile libreSprite it threw errors at me, which I have solved by installing libpng using: brew install libpng and setting: USE_SHARED_ZLIB = on
USE_SHARED_CURL = on
USE_SHARED_LIBPNG = on.
I have come to the conclusion that the problem is when compiling skia I have tried to compile with branch 53 and 55 but it always gets stuck in this process "python tools / git-sync-deps"

Specifically in the third-party sdl o glslang library

Captura de Pantalla 2020-08-03 a la(s) 09 55 20

I'll keep trying

from libresprite.

maujin111 avatar maujin111 commented on May 17, 2024

some one please could send me or upload a compile version of skia on windows?

from libresprite.

MintStudios avatar MintStudios commented on May 17, 2024

@maujin111 How is the compilation going for MacOS? Is there any success?

from libresprite.

maujin111 avatar maujin111 commented on May 17, 2024

@MintStudios well, not yet. I tried to install Mac OS X 10.11 on a VM but I have no success. I was making a custom skia branch but to be honest, lately i have been busy with my Job. I finish my the project i'm working on this week and
I'm going to borrow an old mac to try there.

from libresprite.

MintStudios avatar MintStudios commented on May 17, 2024

It's fine. There is no rush. I was looking into using a VM, but it's not the easiest thing to do.

from libresprite.

ryandesign avatar ryandesign commented on May 17, 2024

FYI, there is no problem compiling Aseprite 1.2.25, and its required Skia, on macOS. Maybe you can adapt what they do.

from libresprite.

MintStudios avatar MintStudios commented on May 17, 2024

@maujin111 any progress updates?

from libresprite.

ALX-00 avatar ALX-00 commented on May 17, 2024

Hi! I have a mackintosh with Big Sur installed, I was trying to compile LibreSprite on my own, but I cannot find the original tutorial anywhere, and the link provided in the first comment does not work anymore. (even WayBack Machine don't work)

from libresprite.

maujin111 avatar maujin111 commented on May 17, 2024

@ALX-00 here

from libresprite.

ALX-00 avatar ALX-00 commented on May 17, 2024

@ALX-00 here

Thank you. Also, yesterday I tried to compile but failed miserably. I managed to compile Aseprite though.
I'll test different things and report if I manage to do working build

from libresprite.

ALX-00 avatar ALX-00 commented on May 17, 2024

Yikes, this is crazy. When compiling it seems to struggle to find some libraries that apparently are in /src/she.
The thing is, i try to search in google about this libraries and nothing (useful) appears.
Also, i'm not sure, but it seems like this build uses a lot of old stuff, when i followed the aseprite building instructions i didn't had any problems. It managed to build and works fine.
The compiling instructions @maujin111 provided are outdated, as for skia it uses the 53 branch, the syncing is done with a deprecated tool (that fails to sync lol).
I see that @maujin111 used the aseprite instructions to build skia, and that for him it worked (also for me).
I'll try to do more research.
If someone has more info about the /src/she problem, it would be cool to know.

from libresprite.

maujin111 avatar maujin111 commented on May 17, 2024

@ALX-00 I was able to compile on macOs Big Sur using the new skia branch, but when I open the program it shows nothing. I had to change some methods that are desecrated on the new skia branch some of them are to draw the window on the screen and i think i used the wrong one. the weird thing is while compiling it show me no error. What i did was, change the headers files on the skia libs, change the cmake file on the she folder to call the new libs and update some methods on src/she/skia folder files

from libresprite.

ALX-00 avatar ALX-00 commented on May 17, 2024

@ALX-00 I was able to compile on macOs Big Sur using the new skia branch, but when I open the program it shows nothing. I had to change some methods that are desecrated on the new skia branch some of them are to draw the window on the screen and i think i used the wrong one. the weird thing is while compiling it show me no error. What i did was, change the headers files on the skia libs, change the cmake file on the she folder to call the new libs and update some methods on src/she/skia folder files

What I didn't mention was that I tried to make symbolic links to new libraries, but it didn't work.
I'll try again if I have more time.
What you commented gave me some hope. Also, I found out that older versions of xcode seems to work better.

from libresprite.

maujin111 avatar maujin111 commented on May 17, 2024

@ALX-00 I was able to compile on macOs Big Sur using the new skia branch, but when I open the program it shows nothing. I had to change some methods that are desecrated on the new skia branch some of them are to draw the window on the screen and i think i used the wrong one. the weird thing is while compiling it show me no error. What i did was, change the headers files on the skia libs, change the cmake file on the she folder to call the new libs and update some methods on src/she/skia folder files

What I didn't mention was that I tried to make symbolic links to new libraries, but it didn't work.
I'll try again if I have more time.
What you commented gave me some hope. Also, I found out that older versions of xcode seems to work better.

i upload a new branch for mac os check the changes i did there, also i use this

Download SDK 10.11

https://github.com/phracker/MacOSX-SDKs/releases

XQuartz

https://github.com/XQuartz/XQuartz/releases/tag/XQuartz-2.8.1

If Curl Tests Fails

https://curl.se/download.html
./configure --prefix=/usr/local/curl --with-openssl=/usr/local/opt/openssl/

brew instal libgit2
brew install libCurl

Params

cmake
-DCMAKE_OSX_ARCHITECTURES=x86_64
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.7
-DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
-DUSE_ALLEG4_BACKEND=OFF
-DUSE_SKIA_BACKEND=ON
-DSKIA_DIR=$HOME/deps/Skia/
-DWITH_HarfBuzz=OFF
-G Ninja
..

from libresprite.

ALX-00 avatar ALX-00 commented on May 17, 2024

@ALX-00 I was able to compile on macOs Big Sur using the new skia branch, but when I open the program it shows nothing. I had to change some methods that are desecrated on the new skia branch some of them are to draw the window on the screen and i think i used the wrong one. the weird thing is while compiling it show me no error. What i did was, change the headers files on the skia libs, change the cmake file on the she folder to call the new libs and update some methods on src/she/skia folder files

What I didn't mention was that I tried to make symbolic links to new libraries, but it didn't work.
I'll try again if I have more time.
What you commented gave me some hope. Also, I found out that older versions of xcode seems to work better.

i upload a new branch for mac os check the changes i did there, also i use this

Download SDK 10.11

https://github.com/phracker/MacOSX-SDKs/releases

XQuartz

https://github.com/XQuartz/XQuartz/releases/tag/XQuartz-2.8.1

If Curl Tests Fails

https://curl.se/download.html
./configure --prefix=/usr/local/curl --with-openssl=/usr/local/opt/openssl/

brew instal libgit2
brew install libCurl

Params

cmake
-DCMAKE_OSX_ARCHITECTURES=x86_64
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.7
-DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
-DUSE_ALLEG4_BACKEND=OFF
-DUSE_SKIA_BACKEND=ON
-DSKIA_DIR=$HOME/deps/Skia/
-DWITH_HarfBuzz=OFF
-G Ninja
..

Cool, thanks. It would be great if we manage to "revive" this

from libresprite.

Zughy avatar Zughy commented on May 17, 2024

As we've moved onto SDL2, this issue has become kind of deprecated: closing

from libresprite.

Related Issues (20)

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.