Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
LaserBoy !!! / Re: Installing LaserBoy on macOS Big Sur 11.6.5
« Last post by James 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.
22
LaserBoy !!! / Re: Installing LaserBoy on macOS Big Sur 11.6.5
« Last post by Prodical 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
23
LaserBoy !!! / Re: Installing LaserBoy on macOS Big Sur 11.6.5
« Last post by Prodical 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]
24
LaserBoy !!! / Re: Installing LaserBoy on macOS Big Sur 11.6.5
« Last post by Prodical 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



25
LaserBoy !!! / Re: Installing LaserBoy on macOS Big Sur 11.6.5
« Last post by James 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.
26
LaserBoy !!! / Re: Installing LaserBoy on macOS Big Sur 11.6.5
« Last post by Prodical 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
27
LaserBoy !!! / Installing LaserBoy on macOS Big Sur 11.6.5
« Last post by Prodical 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
29
DACs / What hardware is required for a 2w rgb club laser I've got 2 of these
« Last post by Litwood on January 30, 2022, 06:34:07 am »
Hi James


I came across laserboy from reddit.
As much as I have gathered


1. Buy a usb snd8 card?
2. You may have a 40$ kit for purchase.
3. Would I need a ilda cable to go from the (1-snd8 card) to my ilda port on the laser?
30
Construction / Re: Teensy Laser Control
« Last post by James on January 23, 2022, 01:13:53 am »
You don't understand what you think of as (your own) common sense is actually extremely specific, self-taught and rare.

I am very good at the things I have pursued for decades.

Don't assume I know everything around the edges. I really don't. As a matter of fact, my narrow focus on what I know sometimes makes it just that much more difficult to grasp outside concepts.

But I must say that I have learned so much by engaging with other people who are interested in what I am doing and want to use it to do what they envision as their next thing.
Pages: 1 2 [3] 4 5 ... 10
SMF spam blocked by CleanTalk
SimplePortal 2.3.7 © 2008-2024, SimplePortal