Comments (24)
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.
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:
- 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
Any suggestions on how to fix it or am I doing something wrong?
from libresprite.
@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.
Sorry for that, Done
from libresprite.
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.
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.
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.
@PerryHugh @MintStudios Whenever you want you can connect Remotely to my Mac and give it a try
from libresprite.
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
I'll keep trying
from libresprite.
some one please could send me or upload a compile version of skia on windows?
from libresprite.
@maujin111 How is the compilation going for MacOS? Is there any success?
from libresprite.
@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.
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.
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.
@maujin111 any progress updates?
from libresprite.
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.
from libresprite.
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.
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.
@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 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.
@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 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 libCurlParams
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.
As we've moved onto SDL2, this issue has become kind of deprecated: closing
from libresprite.
Related Issues (20)
- Scripts not being recognized in .config folder. HOT 2
- INSTALL.md is missing informations about how to build for android HOT 2
- Building error
- Preview window is blocking canvas
- Native cursor setting not takes in account HOT 2
- Does not build. HOT 1
- Please bulid new version 1.1 HOT 3
- Brush popup
- Error building HOT 2
- Saving a Palette without selecting a format crashes
- not letting me save as flc or fli HOT 2
- (Screen Scaling & UI Element Scaling) Scaling 400% should be removed to prevent this. HOT 2
- Symmetry options have invalid positioning on a frame of an imported Sprite Sheet HOT 1
- touch screen not working
- Replacing colors does not work
- sdl fails to initialize on wayland
- LibreSprite crashes on launch (macOS 10.13.6) HOT 1
- Fonts, icons are very small in high resolution screen HOT 1
- Double click no longer selecting entire tile HOT 1
- Crashes when "Play Once" is selected in the timeline (macOS at least) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libresprite.