Author Topic: DOWNLOAD IT HERE !!!  (Read 21272 times)

0 Members and 1 Guest are viewing this topic.

Offline zachnfine

  • Newbie
  • *
  • Posts: 2
  • Milliwatts: 0
    • View Profile
Re: DOWNLOAD IT HERE !!!
« Reply #15 on: July 17, 2017, 05:08:49 pm »
Hmm, just finally got back to this (been away a while). Can't find my compiled copy of Laserboy so am starting over with the newest 2017 version (LaserBoy_2017_06_27.zip). Got through the editing of Makefile.brew to point to /usr/local, and then hit a ton of errors (pastebin link) when trying to compile. Based on this comment, it looks like newer versions of boost don't use 'ifstream' but instead 'std::ifstream' (and equivalent for of stream).


I added a "fix_boost" flag to the Makefile.brew to change all instances of ifstream and ofstream to their std:: equivalents, but after running 'make -f Makefile.brew fix_boost' am running into other similar-sounding errors about references to 'fstream' being ambiguous.


Here's my Makefile.brew in case anyone wants to take it from where I've gotta leave it, since I'm out of tinkering time for the day.

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2081
  • Milliwatts: 46
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: DOWNLOAD IT HERE !!!
« Reply #16 on: July 18, 2017, 01:03:25 pm »
I really do not have any experience with MacOSX. I'm sorry. I wish I could help. You could try asking on the Photonlexicon to see if there is anyone there who could help you.

If you figure it out, please post the solution here so others can see how to do it. :)

It sounds like it might have something to do with the version of Boost C++ you are compiling and linking to.

If you were able to compile it before, I don't think I have modified the code so much that it wouldn't compile on the same system.
« Last Edit: July 18, 2017, 03:48:41 pm by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2081
  • Milliwatts: 46
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: DOWNLOAD IT HERE !!!
« Reply #17 on: July 19, 2017, 03:42:16 pm »
When I get a chance to spend some real time on this, I will see if I can update my Linux machine with the very latest version of Boost C++ and see if I get the same errors. If so, I will have a platform to test on and I can fix all of that. Of course it will still need to compile correctly on my Windows machine.
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2081
  • Milliwatts: 46
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: DOWNLOAD IT HERE !!!
« Reply #18 on: July 22, 2017, 06:49:53 pm »
OK. I fixed it!

I just upgraded my Linux machine to the newest Boost C++ libs: version 1.64.0 and I got all the same errors about fstream, ifstream and ofstream.

So I had to edit every occurrence of an instantiation of any of these classes to scope them to std, ie: std::fstream.

Now it compiles with no errors and it still compiles on my old Windows machine without having updated my Boost C++ libs there.

http://laserboy.org/code/LaserBoy_2017_07_22.zip

Now it should compile properly on a Mac!

Enjoy!

James.

PS. None of the functionality of the code has changed in any way since the last version.
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2081
  • Milliwatts: 46
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: DOWNLOAD IT HERE !!!
« Reply #19 on: August 06, 2017, 03:02:01 pm »
Fixed another bug!

http://laserboy.org/code/LaserBoy_2017_08_06.zip

Used to be that if you went into menu k and backspaced out all the vertices and the hit x X y Y z Z or q w e, the app would crash.

Not any more!

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

Offline harzi

  • Newbie
  • *
  • Posts: 2
  • Milliwatts: 0
    • View Profile
Re: DOWNLOAD IT HERE !!!
« Reply #20 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.

Offline harzi

  • Newbie
  • *
  • Posts: 2
  • Milliwatts: 0
    • View Profile
Re: DOWNLOAD IT HERE !!!
« Reply #21 on: January 16, 2018, 03:06:27 am »
Now it compiles. I added an abs() to the int() function.

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2081
  • Milliwatts: 46
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: DOWNLOAD IT HERE !!!
« Reply #22 on: January 25, 2018, 04:58:33 pm »
Cool. Thanks!

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