Menu

#3 Patches V3

Unstable (example)
open
nobody
None
5
2019-12-16
2017-08-15
Mike Nix
No

Version 3 of my changes....
This version includes a whole bunch of things I have added over the last 5 years (wow has it been that long?)

Apply this patch against the original 1.0.7 source code (do not apply previous versions of my patches) then run
aclocal
autoconf
configure
make

Things you get with this patch:
A target view with perspective (ie what you will see through the scope) including
various markings for reticles and many standard ISSF and NRA targets.
MOA, MIL and degrees markings on the quick plot and target view.
An expanded range table with MIL, MOA and other info.
You can specify a solution file on the command line so you can open GEBC with
your favourite ammo by default.
Up to 4 solutions can be plotted on one display (3 memories+current)
This version also has displays useful with the Pulsar Digisight range of Digital Night Vision
scopes which use different reticles and click values.

1 Attachments

Discussion

  • Mike Nix

    Mike Nix - 2017-08-15

    As there seems to be no activity by the maintainers here as far as updated releases, I thought I'd be nice and upload binaries of my current version to save people having to roll their own.
    Contains both a 32-bit windows EXE, and a 64-bit linux binary built on slackware 14.2 (but should run on most distributions).
    Don't forget to scan for viruses just in case :)

     
  • Scott A. Conway

    Scott A. Conway - 2018-08-23

    Thanks for the useful supplementary patches.
    I applied them, but I ran into a problem with it failing the compile in Linux every time, getting the following error (showing the compile line above the error itself) every time:

    g++ -O3 -O3 -mtune=haswell -fomit-frame-pointer -fPIC -pipe -w -L./lib/ballistics -o gebc InputWindow.o PlotWindow.o RangeWindow.o LicenseWindow.o AboutWindow.o PBRWindow.o GBCSolution.o GNU_Ballistics.o -lhpdf -lballistics -L/usr/lib64 -lfltk_images -lpng -lz -ljpeg -lfltk -lXcursor -lXfixes -lXext -lfontconfig -lfreetype -lXft -lfontconfig -lXinerama -lpthread -ldl -lm -lX11
    /usr/bin/ld: InputWindow.o: in function InputWindow::cb_Target(Fl_Widget*, void*)': InputWindow.cpp:(.text+0x444): undefined reference toTargetWindow::TargetWindow(int, int, GBCSolution, GBCSolution, GBCSolution, GBCSolution)'

    I dug around a bit, finding that your patch doesn't compile TargetWindow.cpp at all, so after I patched Makefile.in by hand to add lines to compile that, it built without problems.
    I was able to get the binary to run, and I could see the enhancements you made with your patch over the original unpatched code when running both versions side-by-side.
    The only problem (probably of no consequence, but it's still there) is that I get a segmentation fault with my patched version each time I exit, but I otherwise have no problems with it.
    Perhaps you might know how to get rid of the segfault on your own, but here's the extra bit that's required to build that I made in the form of the attached patch file.
    Thanks again!

     
  • david rankin

    david rankin - 2019-12-16

    Mike, there seems to be a problem opening .gbc files saved with earlier patchlevels on Linux. I just built with patch3 and attempting to open an earlier saved file results in a scrambled title and data as shown in the attachment.

    Not sure what the case is there. Never had a problem before. Reverting to patch 2 and all is well again.

     

    Last edit: david rankin 2019-12-16

Log in to post a comment.