Author Topic: Installing LaserBoy on macOS Big Sur 11.6.5  (Read 26134 times)

0 Members and 1 Guest are viewing this topic.

Offline Prodical

  • Newbie
  • *
  • Posts: 8
  • Milliwatts: 0
    • View Profile
Installing LaserBoy on macOS Big Sur 11.6.5
« on: April 26, 2022, 02:40:42 pm »
Hiya


I've followed the instructions in the 'installing LaserBoy on OSX 10.8 post - https://laserboy.org/forum/index.php?topic=555.0 - albeit that I've installed macPorts for Big Sur and boost is now python v3.1...

but I'm getting the following compilation errors...

lewis-mbp@lewis-MBP-2 src % make -f Makefile.osx   
g++ -c LaserBoy.cpp -o ../build/LaserBoy.osx -D__WITH_SDL2__ -std=c++17 -O3 -msse2 -mfpmath=sse -Wall -Wextra -frounding-math -fsignaling-nans -Wno-unused-parameter -Wno-implicit-fallthrough -Wno-missing-field-initializers -Wno-misleading-indentation -Wno-unused-but-set-variable -fexpensive-optimizations -static -I/opt/local/include -L/opt/local/lib -L/opt/local/lib -lSDL -lSDLMain -lboost_system-mt -lboost_filesystem-mt -pg -g3 -framework Cocoa
clang: warning: -lSDL: 'linker' input unused [-Wunused-command-line-argument]clang: warning: -lSDLMain: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -lboost_system-mt: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -lboost_filesystem-mt: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -framework Cocoa: 'linker' input unused [-Wunused-command-line-argument]clang: warning: optimization flag '-fsignaling-nans' is not supported [-Wignored-optimization-argument]
clang: warning: optimization flag '-fexpensive-optimizations' is not supported [-Wignored-optimization-argument]
clang: warning: argument unused during compilation: '-L/opt/local/lib' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/opt/local/lib' [-Wunused-command-line-argument]
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean '-Wno-unused-const-variable'? [-Wunknown-warning-option]
In file included from LaserBoy.cpp:30:
./LaserBoy_SDL_GUI.hpp:35:10: fatal error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^~~~~~~~~~~~
1 warning and 1 error generated.
make: *** [../build/LaserBoy.osx] Error 1

I only have limited experience of compiling apps from the command line... so trying to resolve these errors is a bit beyond me...

Any advice and/or info that might help would be much appreciated.

Best

Lewis

Offline Prodical

  • Newbie
  • *
  • Posts: 8
  • Milliwatts: 0
    • View Profile
Re: Installing LaserBoy on macOS Big Sur 11.6.5
« Reply #1 on: April 26, 2022, 03:07:23 pm »
I've subsequently tried a Homebrew install method as per this "Building in OS X 10.10 with homebrew" post - https://laserboy.org/forum/index.php?topic=626.0 - but also no joy...


The compile errors look almost identical:


lewis-mbp@lewis-MBP-2 src % make -f Makefile.brew 
g++ -c LaserBoy.cpp -o ../build/LaserBoy.osx -D__WITH_SDL2__ -std=c++17 -O3 -msse2 -mfpmath=sse -Wall -Wextra -frounding-math -fsignaling-nans -Wno-unused-parameter -Wno-implicit-fallthrough -Wno-missing-field-initializers -Wno-misleading-indentation -Wno-unused-but-set-variable -fexpensive-optimizations -static -I/usr/local/include -L/usr/local/lib -lSDL2 -lSDL2Main -lboost_filesystem -lboost_system -lpthread -framework Cocoa
clang: warning: -lSDL2: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -lSDL2Main: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -lboost_filesystem: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -lboost_system: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -framework Cocoa: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: optimization flag '-fsignaling-nans' is not supported [-Wignored-optimization-argument]
clang: warning: optimization flag '-fexpensive-optimizations' is not supported [-Wignored-optimization-argument]
clang: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument]
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean '-Wno-unused-const-variable'? [-Wunknown-warning-option]
In file included from LaserBoy.cpp:30:
./LaserBoy_SDL_GUI.hpp:35:10: fatal error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^~~~~~~~~~~~
1 warning and 1 error generated.
make: *** [../build/LaserBoy.osx] Error 1


Again... any info or advice appreciated.

Best


Lewis

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: Installing LaserBoy on macOS Big Sur 11.6.5
« Reply #2 on: April 26, 2022, 08:47:57 pm »
Hi Lewis!

DL the current version https://laserboy.org/code/LaserBoy_Current.zip

It has up to date instructions for Mac OSX using homebrew.

Let me know if this works for you or if you have any other questions.

Good luck!

James.
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline Prodical

  • Newbie
  • *
  • Posts: 8
  • Milliwatts: 0
    • View Profile
Re: Installing LaserBoy on macOS Big Sur 11.6.5
« Reply #3 on: April 27, 2022, 06:03:14 am »
Hey James


Thanks for the prompt response and heads up...


Sure... I'll check the instructions in the current download... and let you know how I get on.


Really keen to try out LaserBoy for myself...


Best


Lewis




Offline Prodical

  • Newbie
  • *
  • Posts: 8
  • Milliwatts: 0
    • View Profile
Re: Installing LaserBoy on macOS Big Sur 11.6.5
« Reply #4 on: April 27, 2022, 07:17:12 am »
Hey James


OK... I followed the instructions in the 'doc' > 'Compiling_for_MacOS.txt' file - and I have gotten further... though not quite there yet..


Homebrew wouldn't install for the root user...


lewis-mbp@lewis-MBP-2 ~ % sudo su
Password:
sh-3.2# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
==> Checking for `sudo` access (which may request your password)...
Don't run this as root!
sh-3.2#


and neither would SDL2...


sh-3.2# brew install SDL2
Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.
sh-3.2#


So I installed SDL2 & boost as my regular user, navigated to the 'LaserBoy' > 'src' folder and ran time make -f Makefile.osx
[/size]
It compiled (I can see a bunch of new files in the 'build' directory)... and yes threw up multiple warnings in the process... but also this final error... and it didn't launch the app...


[/size]ld: symbol(s) not found for architecture x86_64clang: error: linker command failed with exit code 1 (use -v to see invocation)make: *** [../LaserBoy] Error 1make -f Makefile.osx  133.81s user 4.58s system 99% cpu 2:19.04 total[size=78%]


After navigating back to the LaserBoy root directory I ran [/size]./LaserBoy 1600 980[/size] [/size]but got the error...
[/size]
[/size]zsh: no such file or directory: ./LaserBoyAny other ideas? I do appreciate you don't use macOS... though it is UNIX based... [/font][/font][/size][/font][/font][/size]Best[/font][/font][/size][/font][/font][/size]Lewis[/font][/font][/size]

Offline Prodical

  • Newbie
  • *
  • Posts: 8
  • Milliwatts: 0
    • View Profile
Re: Installing LaserBoy on macOS Big Sur 11.6.5
« Reply #5 on: April 27, 2022, 07:21:20 am »
Sorry... mucked up the post formatting at the end of that last post...


When I run ./LaserBoy 1600 980[/size][size=78%] [/size]


I get the error:


[/size]zsh: no such file or directory: ./LaserBoy[size=78%]


Any ideas? I appreciated you don't use macOS... though it is UNIX based...


Best


Lewis

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: Installing LaserBoy on macOS Big Sur 11.6.5
« Reply #6 on: April 27, 2022, 10:54:58 am »
I will ask a group of Mac LaserBoy users about homebrew run as root.

The command

make -f Makefile.osx clean

will delete all of the object files and the executable if there is one. If your build fails, you should clean before you try it again.
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: Installing LaserBoy on macOS Big Sur 11.6.5
« Reply #7 on: April 28, 2022, 05:21:06 pm »
If you are on Facebook, you should join a group called Vector Synthesis. There are quite a few people there who use LaserBoy on a Mac and they do a lot of other neat stuff too!

One of the members there compiled the code for you!

https://laserboy.org/code/LaserBoy_OSX.zip

Let me know when you get it and if it works. This is just the executable. I don't want to leave this out there for very long. I want to delete it. Also let me know what version this is.

Thanks!
James.
« Last Edit: April 28, 2022, 05:25:47 pm by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline Prodical

  • Newbie
  • *
  • Posts: 8
  • Milliwatts: 0
    • View Profile
Re: Installing LaserBoy on macOS Big Sur 11.6.5
« Reply #8 on: April 29, 2022, 04:26:30 am »
Hi James


Thanks for trying to sort that for me... unfortunately I get a 'Permission denied' error in Terminal when I run it.


I've tried changing file permissions to match the compiled .exe but no joy...


I will checkout the Facebook Vector Synthesis group - I know a few people involved with the VectorHack Festival - so there's likely some crossover there.


Will ask for some advice there too...


You can delete the executable now...


Best


Lewis




Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: Installing LaserBoy on macOS Big Sur 11.6.5
« Reply #9 on: April 29, 2022, 12:12:03 pm »
Derek Holzer organized Vector Hack Festival and started Vector Synthesis. I was a presenter in VHF 2020. Great bunch of people.

Try setting the permissions for rwx all to on as root.

chmod 777 LaserBoy

Then run it as root.

Also, make sure the executable is in the .../LaserBoy folder and when you run it your shell is in that folder too.
« Last Edit: April 29, 2022, 12:33:27 pm by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline Prodical

  • Newbie
  • *
  • Posts: 8
  • Milliwatts: 0
    • View Profile
Re: Installing LaserBoy on macOS Big Sur 11.6.5
« Reply #10 on: April 29, 2022, 01:51:29 pm »
Hey James


OK... that worked... LaserBoy running... yay ;-)


Thanks for all the advice and support... and do pass that on to whoever compiled it for me from the Vector Synthesis group... I'll be sure to checkin there once I read through the LaserBoy docs and try things out for myself.


Best


Lewis

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: Installing LaserBoy on macOS Big Sur 11.6.5
« Reply #11 on: April 29, 2022, 03:45:10 pm »
Fantastic!

Welcome to the world of LaserBoy!

What is the version (date) on the main menu?

Looking forward to seeing you on FB.

James.
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline Prodical

  • Newbie
  • *
  • Posts: 8
  • Milliwatts: 0
    • View Profile
Re: Installing LaserBoy on macOS Big Sur 11.6.5
« Reply #12 on: April 29, 2022, 05:50:09 pm »
Hiya James


It's LaserBoy-03-18-2022...


I'm kinda busy with other projects for the next couple of weeks... but sure... looking forward to catching you on the VB FB group after that once I've had a proper play with LaserBoy - and have some questions ;-)


Thanks again...


Best


Lewis

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: Installing LaserBoy on macOS Big Sur 11.6.5
« Reply #13 on: April 29, 2022, 06:30:30 pm »
Excellent! You have the most current version!
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

 

SMF spam blocked by CleanTalk
SimplePortal 2.3.7 © 2008-2024, SimplePortal