Compiling RepRapFirmware on Linux without Eclipse May 28, 2014 04:03PM |
Registered: 10 years ago Posts: 157 |
Re: Compiling RepRapFirmware on Linux without Eclipse May 28, 2014 06:21PM |
Registered: 10 years ago Posts: 256 |
Re: Compiling RepRapFirmware on Linux without Eclipse May 28, 2014 07:37PM |
Registered: 10 years ago Posts: 14,672 |
Re: Compiling RepRapFirmware on Linux without Eclipse May 29, 2014 05:27AM |
Registered: 10 years ago Posts: 157 |
Re: Compiling RepRapFirmware on Linux without Eclipse May 29, 2014 05:40AM |
Registered: 10 years ago Posts: 378 |
Re: Compiling RepRapFirmware on Linux without Eclipse May 29, 2014 05:42AM |
Registered: 10 years ago Posts: 14,672 |
Quote
3D-ES
If the script finds a folder called ArduinoCorePatches it copies the files to the Arduino folder,
since the RepRapPro version of the firmware does not contain this folder, it will not be copied.
Re: Compiling RepRapFirmware on Linux without Eclipse May 29, 2014 06:48AM |
Registered: 12 years ago Posts: 1,611 |
Re: Compiling RepRapFirmware on Linux without Eclipse May 29, 2014 04:13PM |
Registered: 9 years ago Posts: 30 |
Re: Compiling RepRapFirmware on Linux without Eclipse May 30, 2014 08:51AM |
Registered: 10 years ago Posts: 157 |
Re: Compiling RepRapFirmware on Linux without Eclipse May 30, 2014 07:29PM |
Registered: 10 years ago Posts: 157 |
Re: Compiling RepRapFirmware on Linux without Eclipse May 31, 2014 05:44AM |
Registered: 10 years ago Posts: 378 |
cp -r --preserve=timestamps ${FIRMWARE}/ArduinoCorePatches/sam ${ARDUINO}/hardware/arduinoto
cp -r -p ${FIRMWARE}/ArduinoCorePatches/sam ${ARDUINO}/hardware/arduino
Re: Compiling RepRapFirmware on Linux without Eclipse May 31, 2014 06:23AM |
Registered: 10 years ago Posts: 157 |
Re: Compiling RepRapFirmware on Linux without Eclipse May 31, 2014 01:44PM |
Registered: 10 years ago Posts: 378 |
$ ./lsusb Bus 026 Device 002: ID 8087:0024 Intel Corporation Hub Bus 026 Device 003: ID 05ac:8510 Apple Inc. FaceTime HD Camera (Built-in) Serial: CC2D8N0C8GND7F6B Bus 029 Device 002: ID 8087:0024 Intel Corporation Hub Bus 029 Device 003: ID 0424:2512 SMSC Hub Bus 029 Device 005: ID 0a5c:4500 Broadcom Corp. BRCM20702 Hub Bus 029 Device 006: ID 2341:003e 2341 Composite Device Bus 029 Device 008: ID 05ac:828c Apple Inc. Bluetooth USB Host Controller Bus 029 Device 004: ID 05ac:0259 Apple Inc. Apple Internal Keyboard / Trackpad Bus 010 Device 001: ID 05ac:8007 Apple Inc. XHCI Root Hub USB 2.0 Simulation Bus 026 Device 001: ID 05ac:8006 Apple Inc. EHCI Root Hub Simulation Bus 010 Device 001: ID 05ac:8007 Apple Inc. XHCI Root Hub USB 2.0 Simulation Bus 029 Device 001: ID 05ac:8006 Apple Inc. EHCI Root Hub Simulation
$ ./make.sh install Erase your board to start the upload. Please press MCU_ERASE and then RESET. Found an empty board, starting upload. Bossac is searching, this can take a while... Bossac is searching, this can take a while... Bossac is searching, this can take a while... Device found on cu.usbmodem1d111 Erase flash Write 242240 bytes to flash [==============================] 100% (947/947 pages) Verify 242240 bytes of flash [==============================] 100% (947/947 pages) Verify successful Set boot flash true CPU reset.
Re: Compiling RepRapFirmware on Linux without Eclipse May 31, 2014 02:31PM |
Registered: 10 years ago Posts: 157 |
Re: Compiling RepRapFirmware on Linux without Eclipse May 31, 2014 03:33PM |
Registered: 10 years ago Posts: 157 |
Re: Compiling RepRapFirmware on Linux without Eclipse June 01, 2014 12:27PM |
Registered: 10 years ago Posts: 157 |
Re: Compiling RepRapFirmware on Linux without Eclipse June 01, 2014 06:03PM |
Registered: 10 years ago Posts: 157 |
Re: Compiling RepRapFirmware on Linux without Eclipse February 05, 2015 09:50PM |
Registered: 10 years ago Posts: 15 |
Re: Compiling RepRapFirmware on Linux without Eclipse July 07, 2015 08:05AM |
Registered: 8 years ago Posts: 2 |
Re: Compiling RepRapFirmware on Linux without Eclipse July 07, 2015 08:34AM |
Registered: 10 years ago Posts: 665 |
Re: Compiling RepRapFirmware on Linux without Eclipse July 09, 2015 09:28AM |
Registered: 8 years ago Posts: 2 |
Re: Compiling RepRapFirmware on Linux without Eclipse July 09, 2015 05:47PM |
Registered: 10 years ago Posts: 51 |
Re: Compiling RepRapFirmware on Linux without Eclipse July 09, 2015 07:27PM |
Registered: 10 years ago Posts: 665 |
Re: Compiling RepRapFirmware on Linux without Eclipse October 14, 2015 02:02AM |
Registered: 8 years ago Posts: 21 |
Re: Compiling RepRapFirmware on Linux without Eclipse April 07, 2016 08:56PM |
Registered: 8 years ago Posts: 776 |
Quote
jstck
Again, thanks for making this. I have very little patience for cranky IDE's and compilers, and this gets me right by the whole thing.
Re: Compiling RepRapFirmware on Linux without Eclipse April 08, 2016 05:01AM |
Registered: 10 years ago Posts: 14,672 |
Re: Compiling RepRapFirmware on Linux without Eclipse April 08, 2016 06:12AM |
Registered: 10 years ago Posts: 665 |
Quote
lkcl
i had *no idea* that there would be people working on it who don't bother to provide Makefiles - the absolute bedrock standard way of compiling and managing a project. that was a bit of a shock.
Re: Compiling RepRapFirmware on Linux without Eclipse April 08, 2016 07:39AM |
Registered: 10 years ago Posts: 2,472 |
Quote
lkcl
i'm running on a space-limited machine and constantly having to delete stuff. the thought of installing 300mb of crapware to compile up an executable that's *four* orders of magnitude smaller than the environment used to build it is just....
Re: Compiling RepRapFirmware on Linux without Eclipse April 10, 2016 03:03PM |
Registered: 8 years ago Posts: 776 |
Quote
dc42
The reason why we use IDEs is that RepRapFirmware is no longer a simple project. There is no way I would be without some of the features found in all modern IDEs (except Arduino, which doesn't deserve to be called an IDE IMO), in particular the "Go to definition" and "Find all references" features.
exuberant-ctags and vim (or emacs - not a fan but i know people are) have exactly those features: after running "ctags -R", in vim you simply press ctrl-] and, regardless of the programming language, you get automatically taken to the definition of the function [or struct, or class, or variable]. typing ":tn" takes you to the next definition if there are several. i think emacs might actually have built-in definition-search and "find-all-references" - it is an enormous lisp program, after all.
Quote
Generating makefiles for C and C++ projects is also a complex process, especially when there are multiple build configurations as there now are in some forks of RepRapFirmware.
that's a problem that's been solved for almost thirty years [without requiring 300mb of java]. i'm a fan of autoconf because i was one of the major contributors to samba back in 1996-2000, but i know that many people are fond of scons, cmake, and so on. yes you're absolutely right - the practice of storing configuration info about the OS in Makefiles themselves was something that created absolute dog's dinner messes in the Unix community for 15+ years... then, thank god, autoconf came along.
in this case however, the advantages of autoconf [etc.] are slightly taken away because this is cross-compiling, not native compiling. autoconf [etc.] do host-level checking (what's the size of an int, what's the size of long, etc. etc.] which used to be the major cause of compile-headaches when there were 20+ different kinds of Unix around...
Quote
I am not especially fond of Eclipse, I prefer Microsoft Visual Studio, or Atmel Software Framework. But those are Windows-only IDEs, and the community expects to be able to build firmware under Linux and Mac as well. Eclipse has the advantage of being cross-platform, and have have learned to live with it. Now that I have eliminated the need for the Arduino plug-in, it is fairly straightforward to set up an Eclipse build environment for RepRapFirmware.
I can see that users who want to make just small changes to RepRapFirmware may prefer to use just an editor and a make program, so I am happy that others are providing suitable makefiles. Perhaps one day I will get into the habit of checking in the makefiles that Eclipse generates.
six of one, half a dozen of the other, as it's a compile-target (auto-generated) it's generally bad practice to check in "downstream" auto-generated files... but in this case as people (such as chrishamm and 3d-es) are actually creating substitute systems including makefiles, it might help.... i'm hand-waving, here the only big software libre project i know that's broken this rule is python: they checked in the "configure" script into the repository (which is a bad idea, it's auto-generated from configure.in) - but the justification there was to be able to keep a close eye on any changes (made by an upgrade to autoconf *or* by any contributors).
dc42, if i get into ReprapFirmware in a big way, i'll help out, ok?
Re: Compiling RepRapFirmware on Linux without Eclipse April 10, 2016 03:06PM |
Registered: 8 years ago Posts: 776 |