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

macOS support #9

Open
ZtereoHYPE opened this issue Mar 18, 2022 · 33 comments
Open

macOS support #9

ZtereoHYPE opened this issue Mar 18, 2022 · 33 comments
Labels
enhancement New feature or request

Comments

@ZtereoHYPE
Copy link

ZtereoHYPE commented Mar 18, 2022

Since macs do not have that text by default, and i heavily miss it from my windows days (i have a bootcamp drive just to see the overlay!) it would be amazing for a macOS version to be made aswell. :)

@StereoMadnessss
Copy link

This is for linux, as such this does not work on MacOS. As I said, this is made for linux and not MacOS.

@MrGlockenspiel
Copy link
Owner

I would port it but i havent used a mac in years, much less owned one, and I know nothing about development on them, nor do I particularly want to

@MrGlockenspiel
Copy link
Owner

If someone does manage to make it cross platform feel free to submit a PR

@MrGlockenspiel MrGlockenspiel added the enhancement New feature or request label Mar 22, 2022
@Snivine
Copy link

Snivine commented Mar 22, 2022

I'mma make it but for Windows

@Arkhtek
Copy link

Arkhtek commented Mar 25, 2022

Noooo dont port it to macos let them suffer

@MrGlockenspiel
Copy link
Owner

Probably compiles on MacOS now, but wont run because I need to strip out the code that makes it require 32 bit color support

@Devnol
Copy link

Devnol commented Apr 5, 2022

Can confirm, compiles and segfaults in macOS (libxfixes was also needed)

@Devnol
Copy link

Devnol commented Apr 5, 2022

Not really good at debugging but I tried running it inside lldb and the output was as follows:

(lldb) target create "bin/activate_macos"
run
Current executable set to '/Users/pakou/Documents/CS_Projects/activate-linux/bin/activate_macos' (x86_64).
(lldb) run
Process 84575 launched: '/Users/pakou/Documents/CS_Projects/activate-linux/bin/activate_macos' (x86_64)
Process 84575 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xe8)
    frame #0: 0x0000000100003a5a activate_macos`main + 42
activate_macos`main:
->  0x100003a5a <+42>: movq   0xe8(%rcx), %rax
    0x100003a61 <+49>: movslq 0xe0(%rcx), %rcx
    0x100003a68 <+56>: shlq   $0x7, %rcx
    0x100003a6c <+60>: movq   0x10(%rax,%rcx), %rax
Target 0: (activate_macos) stopped.

@MrGlockenspiel
Copy link
Owner

I put a workaround for the 32 bit color support a couple days ago, might make a VM and fix it on there sometime

@MrGlockenspiel MrGlockenspiel changed the title fails to compile on macos macOS support Apr 11, 2022
@MrGlockenspiel MrGlockenspiel pinned this issue Apr 11, 2022
@Ruby-Dragon
Copy link
Contributor

not sure if installing from makefile is supported on Mac. I have never owned a mac so I really don't know, but that may be something to work on.

@Devnol
Copy link

Devnol commented Apr 26, 2022

Make install is basically just copying files to places so yeah it is supported as long as you have the right perms. Not sure how that would affect it though, since the output binary isn't installed anywhere

@Ruby-Dragon
Copy link
Contributor

I know some people with macs and might be able to get them to test out this

@IAMACAR10
Copy link

i have a friend with a mac and i wanna look into testing this. also need to change the text to say 'activate macOS'

@Devnol
Copy link

Devnol commented May 16, 2022

It already does that, see here

@ZtereoHYPE
Copy link
Author

I have already tested and everything works if not for transparency for lack of support of it in macOS's XQuartz and the fact that it does not stay on top of all windows for non standard implementation of X11.

@ZtereoHYPE
Copy link
Author

This issue is left open only so people see that it doesn't work perfectly.

@Devnol
Copy link

Devnol commented May 16, 2022

wait how did you compile it?

@ghost
Copy link

ghost commented May 16, 2022

I installed xorg-server, cairo and xorg-libXinerama with ports, restarted shell, changed flags to CFLAGS = -L/opt/local/lib -lX11 -lXfixes -lXinerama -lcairo -I/opt/local/include/cairo -I/opt/local/include, it compiles, but crashes with segfault when I run it.

I tried to debug it with gdb but it it says ?? instead of file names, so idk where it crashes.

If you can guide me how to debug it better, I can help. I haven't worked with c.

I'm not even sure how is xorg supposed to work on mac, do you need to run it somehow?

@Devnol
Copy link

Devnol commented May 16, 2022

Ok wtf it runs now. It used to not run at all after compiling (see above). However, for some reason it looks like this:
image
It also doesn't stay on top at all and it has an xquartz icon in the dock (would be better if it could run in the background and only be killable by terminal if possible)

@MrGlockenspiel
Copy link
Owner

Yeah these are all because of the non-standard X implementation on macOS and there's nothing I can really do

@MikeHingley22
Copy link

Yeah these are all because of the non-standard X implementation on macOS and there's nothing I can really do

could you copy the window pixels for that areas, and then use that as a bitmap to render the text onto (not an expert - just wondering if it is something possible)

@Ruby-Dragon
Copy link
Contributor

Ruby-Dragon commented May 16, 2022

That plus a gaussian blur is how windows does acrylic

@Naville
Copy link

Naville commented May 17, 2022

It already does that, see here

@Devnol FYI it should be "System Preferences", just for the fully immersive experience.

image

@cake03
Copy link
Contributor

cake03 commented May 17, 2022

no

@b3z
Copy link

b3z commented May 18, 2022

Pls I need this so I can finally throw away my windows bootcamp partition.

@Naville
Copy link

Naville commented May 18, 2022

Lakr233/ActivateMac FYI

@Mega-Touk
Copy link

Pls port it to Chromebook now

@Ruby-Dragon
Copy link
Contributor

Chromebooks are linux. Just turn on linux mode and install

@MrGlockenspiel
Copy link
Owner

I would be interested so see how well it works on there
I'd assume flawlessly

@IAMACAR10
Copy link

IAMACAR10 commented Oct 11, 2022 via email

@rollingmoai
Copy link

If this is going to be cross-platform, the repo should be renamed to something like activate-watermark. Windows support is now available so we are nearly there.

@Ruby-Dragon
Copy link
Contributor

i mean, i guess, but Linux is still the best supported platform for this project

@MrGlockenspiel
Copy link
Owner

everything outside of linux is an afterthought, plus activate-linux just sounds better and is funnier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests