Compiling the GPX on Ubuntu

91 views
Skip to first unread message

James Feng

unread,
Mar 16, 2016, 4:35:54 AM3/16/16
to GPX converter
Hi all, I am a beginner.

I want to convert g-code to x3g, and print my 3D model with Makerbot2.(Use the SD Card)

setp1: download the source code from http://github.com/whpthomas/GPX
setp2: unzip the package to my local directory
setp3: make ; make install ... ...

When I make the files, some errors were coming. (see the attachment file)

What shall I do next?

waiting for the replay... ...
Selection_001.png

Mark Walker

unread,
Mar 16, 2016, 4:57:57 AM3/16/16
to GPX converter
You might be able to use the binary linux package from here: https://github.com/markwal/GPX/releases  Also, the most current sources are in that repository, so you may have better luck with those anyway (updated Makefile for one).

I don't think whpthomas (original author and the repo you linked) released it for Linux.  Just for osx and windows.  He put his releases over here: http://www.thingiverse.com/thing:81425/#files 

Chow Loong Jin

unread,
Mar 16, 2016, 11:03:41 AM3/16/16
to James Feng, GPX converter
On Wed,
whpthomas's gpx has no "install" rule in its Makefile, so you can only run it
from the source directory or manually copy it into a directory in your PATH.

If you don't intend to do any development on gpx itself, you shouldn't need to
compile it at all. Just install it using Ubuntu's package manager:

sudo apt-get install gpx

--
Kind regards,
Loong Jin
signature.asc

Chow Loong Jin

unread,
Mar 16, 2016, 11:33:56 AM3/16/16
to James Feng, GPX converter
Okay, I might be wrong about whpthomas's gpx not having install. If you've run
it, you should have a /usr/local/bin/gpx. I suggest removing it and just using
the Debian package (the one that comes in via apt-get).

The basic usage of gpx looks like: "gpx blah.gcode", and it should spit out
blah.x3g. For more options, look at the manpage (man gpx) or the help message
(gpx --help).
signature.asc

Martin Bogomolni

unread,
Mar 16, 2016, 11:40:17 AM3/16/16
to GPX converter

The debian package is behind-the-times, as is the ubuntu one.   We need a PPX with the current bleeding edge ... Dan had an important branch that corrects a critical error in GPX ( gpx-2.1.1 and forward )

Chow Loong Jin

unread,
Mar 16, 2016, 11:46:52 AM3/16/16
to Martin Bogomolni, GPX converter
On Wed, Mar 16, 2016 at 10:39:37AM -0500, Martin Bogomolni wrote:
> The debian package is behind-the-times, as is the ubuntu one. We need a
> PPX with the current bleeding edge ... Dan had an important branch that
> corrects a critical error in GPX ( gpx-2.1.1 and forward )

I noticed. I'm working on 2.2.1 right now.
signature.asc

Chow Loong Jin

unread,
Mar 16, 2016, 11:47:41 AM3/16/16
to Martin Bogomolni, GPX converter
Er wait, what critical error?
signature.asc

James Feng

unread,
Mar 16, 2016, 12:07:35 PM3/16/16
to GPX converter, fengji...@gmail.com

Thanks for your reply!

http://installion.co.uk/ubuntu/vivid/universe/g/gpx/install/index.html
《How To Install Gpx On Ubuntu 15.04》

I have tried this guide, and installed the gpx on ubuntu 14.04 successfully. :)


在 2016年3月16日星期三 UTC+8下午11:33:56,Loong Jin Chow写道:

Chow Loong Jin

unread,
Mar 16, 2016, 12:09:11 PM3/16/16
to James Feng, GPX converter, fengji...@gmail.com
On Wed, Mar 16, 2016 at 09:07:35AM -0700, James Feng wrote:
>
> Thanks for your reply!
>
> http://installion.co.uk/ubuntu/vivid/universe/g/gpx/install/index.html
> 《How To Install Gpx On Ubuntu 15.04》
>
> I have tried this guide, and installed the gpx on ubuntu 14.04
> successfully. :)

Great. :)
signature.asc

James Feng

unread,
Mar 16, 2016, 12:10:28 PM3/16/16
to GPX converter
Thanks for your reply!

I will try it later. ;-)

在 2016年3月16日星期三 UTC+8下午4:57:57,Mark Walker写道:

Chow Loong Jin

unread,
Mar 16, 2016, 12:19:51 PM3/16/16
to Martin Bogomolni, GPX converter
Okay, I just uploaded gpx 2.2.1 to Debian and my PPA for 3dprinter packages:
https://launchpad.net/~hyperair/+archive/ubuntu/3dprinter/
signature.asc

Dan Newman

unread,
Mar 16, 2016, 12:50:39 PM3/16/16
to Chow Loong Jin, Martin Bogomolni, GPX converter
Well, there were errors fixed including some which dealt with the wrong tool being
used thanks to comments in the gcode.... I think those were picked up in the past
by Chow Loong Jin. However, Mark Walker and I merged our branches a while back
and now do all the work out of his branch/fork/whatever,

https://github.com/markwal/GPX

Dan

Chow Loong Jin

unread,
Mar 16, 2016, 12:58:10 PM3/16/16
to Dan Newman, Martin Bogomolni, GPX converter
Whoops, should I be packaging from there then? This is getting quite confusing.
Could one of you please just become the "canonical" fork of GPX? Something like
https://github.com/gpx/gpx would make it very clear where people should look.

Additionally, it looks like markwal is adding a -markwal suffix to all his
tagged releases which gives it a slightly "unofficial" look.
signature.asc

Mark Walker

unread,
Mar 16, 2016, 3:11:09 PM3/16/16
to GPX converter, dan.n...@mtbaldy.us, marti...@gmail.com
I think whpthomas has wandered off for the time being, so Dan and I are the only active developers at the moment.  So canonical is at https://github.com/markwal/GPX

Are your debian package sources on github somewhere?

I can get rid of the "markwal".  I was just doing it so I could easily tell if people were using the canonical fork (markwal) or something else.  :-)

Chow Loong Jin

unread,
Mar 16, 2016, 3:32:10 PM3/16/16
to Mark Walker, GPX converter, dan.n...@mtbaldy.us, marti...@gmail.com
On Wed, Mar 16, 2016 at 12:11:08PM -0700, Mark Walker wrote:
> I think whpthomas has wandered off for the time being, so Dan and I are the
> only active developers at the moment. So canonical is at
> https://github.com/markwal/GPX

Alright, I'll package the latest tag later.

> Are your debian package sources on github somewhere?

They're at http://anonscm.debian.org/cgit/3dprinter/packages/gpx.git.

> I can get rid of the "markwal". I was just doing it so I could easily tell
> if people were using the canonical fork (markwal) or something else. :-)

That would be quite helpful. :)
signature.asc

Dan Newman

unread,
Mar 16, 2016, 3:40:56 PM3/16/16
to Chow Loong Jin, Mark Walker, GPX converter, marti...@gmail.com
On 16/03/2016 12:32 PM, Chow Loong Jin wrote:
> On Wed, Mar 16, 2016 at 12:11:08PM -0700, Mark Walker wrote:
>> I think whpthomas has wandered off for the time being, so Dan and I are the
>> only active developers at the moment. So canonical is at
>> https://github.com/markwal/GPX
>
> Alright, I'll package the latest tag later.

Thanks!

Dan

Reply all
Reply to author
Forward
0 new messages