Read/Edit/Write Gerber Job files
I wanted to add that the latest version I spoke about in my feature request above that doesn't work is version 2.7 located here. I guess that may be another fork. https://sourceforge.net/projects/gerbv/files/gerbv/
Feature request to save color presets
Please add a method to save default colors
Is there any way to save the pallet of colors so i does not change every time. Not having such a feature is annoying. Sam
I use the following cli options to display the board mirrored and rotated: -r, --rotate=<degree> Set initial orientation for all layers. -m, --mirror=<axis> Set initial mirroring axis (X or Y). Did you try them?</axis></degree> For example, to see the board up-side-down (flipped along y-axis) and rotated 90 deg: $ gerbv -my -r90 -p Gerber/gerbv.gvp &
Rotate and Mirror view
Again, it is now 8 years later, this seems to be an easy fix to associate the gerber file extensions with a specific color. Anybody?
It is now 8 years later, can we fix this simple thing?
gerbv: fix build on gcc-10 (-fno-common)
Development has restarted on GitHub
Thank you for your input. The development on this project has been a bit stale for many years, but has now (just a few months back) been restarted on GitHub. https://github.com/gerbv . Please refer to that site and they also make all the calls. (Yes, I saw your issue on gerbv and wanted to assure you that the GitHub site is now the center of development.)
Gerbv drill format T-code tool number out-of-bounds write vulnerability (TALOS-2021-1402)
I have created a binary of gerbv2.7.0 for Windows with critical bug fixes and a few enhancement patches. https://github.com/kitanokitsune/gerbv_for_win
Crash may occur on opening/saveing files
Spin control will not accept the keyboard input
Fix casting pointer to different size integer
Another solution.
The patch shared is based on the code from this link: https://sourceforge.net/p/gerbv/patches/56/#128b
Gerbv routing command support
Eagle ground pour traces obscured in gerbv's Export (as PDF) but not its display
I have a version of the code that I ran through valgrind and it passes my tests. I think that valgrind would catch any double open. My version with fixes is here: https://github.com/eyal0/gerbv Let me know if that fixes it for you, too.
I fixed it on my own branch in github: https://github.com/eyal0/gerbv/commit/957603baeaba04a7368391e8d8229cb85fda2ee3
More details here: https://stackoverflow.com/questions/65412785/multiple-definition-error-when-linking-c-but-only-on-mingw
I see this bug, too. The problem will only occur under new versions of gcc where -fno-common is now the default. The solution is to modify the definition of CALLBACKS_SAVE_FILE_TYPE. Instead of: enum { ... } CALLBACKS_SAVE_FILE_TIME; it should be enum CALLBACKS_SAVE_FILE_TIME { ... }; There are other enums in the same file that need the same treatment.
It seems that this results from blanks in the drill file. The standard CADSTAR (version 18 for me) drill file definition contains the line "SPACES 1" which results in drill files with blanks between the coordinates like that: T4 X-0887150 Y0459500 X-0830000 Y0427700 This seems to be misinterpreted by gerbv. A workaround would be to set the CADSTAR definition to "SPACES 0", however this may not be easy to do in a company with shared drill file definitions. I would prefer that gerbv can accept the...
Compilation error fix for duplicate enum variables
Allow non-ASCII install path on MS-Windows
Open non-ASCII filename
Fix double-freeing memory
Memory Double-Free Problem
After more use, i have discovered that most of the time you can align 2 layers with this new feature. It only dosent work if the apitures are not standard shapes, When it works, which i have found is most of the time, its a huge time saver. Thanks This ticket could maybe be closed now, as i can see why nonstandard or poured aptitures would be very hard to align by.
gerbv fails to display logo.
Align 2 layers by apitures, with diffrent sized / shaped apitures
C# and GERBv
Hi Team, Can you please review the comments and share feedback?
Hi Team, Can you please review the comments and share feedback?
Hi Team, CAn you plerase review the comments and share feedback?
error while build under msys2 64bit, windows 10
Gerbv extension warning
GUI usability features
I have another example, where a dot is not shown, maybe because it is defined as a polygon rather than a circle? See attached, Gerbv is missing the dot in the center.
It works for me. If I save the project and reload it, it always appear as inverted.
Ah, wait, there is another: @@ -1119,6 +1120,7 @@ drill_parse_T_code(gerb_file_t *fd, drill_state_t *state, /* Set the current tool to the correct one */ state->current_tool = tool_num; + apert = image->aperture[tool_num]; /* Check for a size definition */ temp = gerb_fgetc(fd); @@ -1155,7 +1157,6 @@ drill_parse_T_code(gerb_file_t *fd, drill_state_t *state, "at line %ld in file \"%s\""), size, tool_num, file_line, fd->filename); } else { - apert = image->aperture[tool_num]; if (apert != NULL) { /*...
Great! Would you also like to fix memory leaks and the reading of uninitialized memory? https://sourceforge.net/p/gerbv/bugs/250/ If you fix those then you will have fixed all of the memory leaks and memory errors that valgrind found when running pcb2gcode.
Allow 'gerbv foo.gvp' to act like 'gerbv -p foo.gvp' was specified
Added patch here: https://sourceforge.net/p/gerbv/patches/75/
Fix bounding box calculation for slots
Patch to add support for parentheses in macros
After a bit of digging and fiddling, I have the following additional info: The drill file's coordinate precision was 3.5. The problem goes away when I reduce the file precision to 3.4. So, it appears that gerbv cannot handle more than 4 digits after the decimal place. I also find it strange that, with a file precision of 3.3, the autodetect doesn't pick up the right number of digits and I have to edit the file format after importing.
Opening drill file causes blank workspace
Couldn't save project - Failed to write project
diff --git a/src/gerb_image.c b/src/gerb_image.c index 5e66e73..88458e6 100644 --- a/src/gerb_image.c +++ b/src/gerb_image.c @@ -173,6 +173,7 @@ gerbv_destroy_image(gerbv_image_t *image) gerbv_layer_t *tempLayer = layer; layer = layer->next; + g_free (tempLayer->name); g_free (tempLayer); } for (state = image->states; state != NULL; ) { @@ -312,6 +313,7 @@ gerbv_image_return_new_layer (gerbv_layer_t *previousLayer) previousLayer->next = newLayer; /* clear this boolean so we only draw the knockout...
diff --git a/src/gerb_image.c b/src/gerb_image.c index 5e66e73..88458e6 100644 --- a/src/gerb_image.c +++ b/src/gerb_image.c @@ -173,6 +173,7 @@ gerbv_destroy_image(gerbv_image_t image) gerbv_layer_t tempLayer = layer; layer = layer->next; g_free (tempLayer->name); g_free (tempLayer); } for (state = image->states; state != NULL; ) { @@ -312,6 +313,7 @@ gerbv_image_return_new_layer (gerbv_layer_t previousLayer) previousLayer->next = newLayer; / clear this boolean so we only draw the knockout once...
Here's a fix, tested in valgrind to show that it solves the problem. g_free(NULL) was also tested to be safe and the setting of layer->name = NULL was also tested to be necessary.
Memory leak in layer->name
unicode dash in the source code in drill.c near line 743
slots bounding box calculation is wrong
gerbv max zoom range reduced compared to previous version
New API call to explicitly load drill file
Fix dirty pointer in image duplication
Fix uninitialized pointer (file descriptor)
I have a second similar example. The viewer is not showing my pin 1 dots. Other viewers handle just fine.
Sorry for not replying so far. Thanks for the feedback! Right now I can't really find time to fix the patch. Maybe someone else can pick up this bug?
GerbV Has Trouble Loading Drill Files
GerbV 'Not Responding' when running in Windows 10 Pro
Cheers thanks for your reply On Tue, 21 May 2019, 08:08 Sergey Alyoshin, asvl@users.sourceforge.net wrote: On Sat, May 18, 2019 at 12:07 PM Paul Walsh paulhwalsh@users.sourceforge.net wrote: align layers greyed out what to do to activate it. Select two apertures on layers to be aligned. Sent from sourceforge.net because you indicated interest in < https://sourceforge.net/p/gerbv/wiki/Home/> To unsubscribe from further messages, please visit < https://sourceforge.net/auth/subscriptions/>
On Sat, May 18, 2019 at 12:07 PM Paul Walsh paulhwalsh@users.sourceforge.net wrote: align layers greyed out what to do to activate it. Select two apertures on layers to be aligned.
align layers greyed out what to do to activate it. cheers
Cannot open project!
You can find the latest Windows build (version 2.7) here.
Windows build
Gerbv 2.7 cli dxf export not working
Can't build due to trailing backslash in Makefile.am
Thank you, fixed in b5f1eacd798f327ab319af939f89031db4b7c10a
Can't build due to trailing backslash in Makefile.am
Gerbv project failed to load when located outside the Gerber files in WIndows
I don't have gEDA yet. I guess there is something more new to learn.
It looks to me as very specific implementation. Although it is easy to implement, I will not do this because it is specific. With Gerbv 2.7 you can export Gerber file to gEDA pcb (or pcb-rnd) format, add drills in pcb program with comfort and then export to Excellon file. Good enough?
Where would "SELECTED DRILLS" be defined? There is no drill data yet in the process. The image is a gerber copper traces image but NO drill data has been defined.... so what I am asking for is a way to mouse through the image on the screen and point to intended holes and click...or "alt Q" and generate drill data like ;FILE:audioamp2.xln for TOP and BOTTOM M48 INCH,LZ % G05 G90 T01C0.040 X003491Y008467 X005637Y005818 X010614Y003079 X013902Y005636 X010706Y006777 X007053Y009015 for each click where...
Yes it does! Thank you!
Does adding "Save selected drills" action to File menu will be good enough to do the same?
Does this patch fix the problem?
Save Inverted Gerber
request: MOUSEWHEEL CLICK output X Y to notepad
gerbv 2.7.0 fails to build with -Werror=format-security
I have uploaded gerbv version 2.7 with dxf version 3.17. Please see my previous post for the download link.
Windows build of gerbv version 2.7.0 both 32-bit and 64-bit is available on this link in PortableApps.com format. You can install/extract and you can find the 32-bit under Apps/gerbv and the 64-bit under Apps/gerbv64 directories. Unfortunately no dxflib support.
MinGW compile: error in gerb_file.c:111:27
Oh, and += actually bad for some platforms.
Yes in a Makefile. But is configure.ac interpreted by autoconf. I would seem that autoconf dont and the space. :)
But this is strange, += operator in make should add space separator, see attached example.
several bugs in gerbv .
Thank you :)
CPPFLAGS fix
Applied as git commit cf21aa2b32e911b72fc5dc0ef87bf94af30d8983
For a first trial seems to run , Ithank you very much for your support. I will tell of yours program to a firen of mine which needs a simple tool to see gerbers files. Thanks and Happy new year. Best regards riccardo vatta