Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - harzi

Pages: [1]
1
LaserBoy !!! / Re: DOWNLOAD IT HERE !!!
« on: January 16, 2018, 03:06:27 am »
Now it compiles. I added an abs() to the int() function.

2
LaserBoy !!! / Re: DOWNLOAD IT HERE !!!
« on: January 16, 2018, 02:01:36 am »
I try to compile LaserBoy_2017_08_06 on raspian stretch.
I followed the Raspberry_Pi.txt. Everything went well, except that this "error"
# rpi-update 192
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Performing self-update
 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Invalid hash given

I am not sure if that is an issue ^^ Anyhow the code does not compile here
$ time make
g++ -c LaserBoy.cpp -o ../src/LaserBoy.obj -O3 -fexpensive-optimizations -Wall -static
In file included from LaserBoy_utility.hpp:34:0,
                 from LaserBoy_real_segment.hpp:34,
                 from LaserBoy_segment.hpp:35,
                 from LaserBoy_frame.hpp:34,
                 from LaserBoy_frame_set.hpp:34,
                 from LaserBoy_space.hpp:34,
                 from LaserBoy_TUI.hpp:33,
                 from LaserBoy_GUI_base.hpp:33,
                 from LaserBoy_SDL_GUI.hpp:34,
                 from LaserBoy.cpp:30:
LaserBoy_vertex.hpp: In member function ‘void LaserBoy_vertex::to_fstream_wave(std::fstream&, LaserBoy_wave_header&, const u_int*, const bool&, const bool&) const’:
LaserBoy_vertex.hpp:718:40: error: switch quantity not an integer
         switch(abs(header.signal_id[5])) // sign indicates polarity of chanel data
                                        ^
In file included from LaserBoy_utility.hpp:34:0,
                 from LaserBoy_real_segment.hpp:34,
                 from LaserBoy_segment.hpp:35,
                 from LaserBoy_frame.hpp:34,
                 from LaserBoy_frame_set.hpp:34,
                 from LaserBoy_space.hpp:34,
                 from LaserBoy_TUI.hpp:33,
                 from LaserBoy_GUI_base.hpp:33,
                 from LaserBoy_SDL_GUI.hpp:34,
                 from LaserBoy.cpp:30:
LaserBoy_vertex.hpp: In member function ‘void LaserBoy_vertex::to_fstream_wave_inverted(std::fstream&, LaserBoy_wave_header&, const u_int*, const bool&, const bool&) const’:
LaserBoy_vertex.hpp:879:40: error: switch quantity not an integer
         switch(abs(header.signal_id[5])) // sign indicates polarity of channel data
                                        ^
Makefile:32: recipe for target '../src/LaserBoy.obj' failed
make: *** [../src/LaserBoy.obj] Error 1

real    0m28.528s
user    0m25.400s
sys     0m1.120s

Do you may help? Thank you in advance.

Pages: [1]
SMF spam blocked by CleanTalk
SimplePortal 2.3.7 © 2008-2024, SimplePortal