Go to Post I encourage the communication of constructive ideas on how to make FIRST a better program. - meaubry [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-02-2016, 18:33
axton900's Avatar
axton900 axton900 is offline
Programming Co-Captain
FRC #1403 (Cougar Robotics)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: New Jersey USA
Posts: 45
axton900 has a spectacular aura aboutaxton900 has a spectacular aura aboutaxton900 has a spectacular aura about
Running Toolchains on Debian?

After spending hours researching this, I was wondering if anyone knows how to install the c++ toolchains in Debian. The instructions that FIRST provide are not that welly written and I was wondering if anyone has the solution.
Thanks so much!!
Reply With Quote
  #2   Spotlight this post!  
Unread 02-03-2016, 02:02
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 802
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: Running Toolchains on Debian?

Which Debian? Jessie? amd64?

I've probably got the packages somewhere I could get to you. We build exclusively on Jessie. That being said, we use Bazel (bazel.io) instead of any of the suggested build tools, so I can't be all that helpful in actually using it the way you are supposed to use it.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-03-2016, 08:04
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 146
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
You should be able to add the WPILib toolchain ppa to your apt lists and install with apt-get. The version of the ppa you want to add is dependent on which version of Debian you are running. Something like this: https://wiki.debian.org/CreatePackageFromPPA. Note that building from source will take a while, so you might try using the binary version first. I recall trusty working on Jessie the last time I tried.
Reply With Quote
  #4   Spotlight this post!  
Unread 16-05-2016, 06:15
kmckay's Avatar
kmckay kmckay is offline
Registered User
FRC #5401 (Fightin' Robotic Owls)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Bensalem, PA
Posts: 46
kmckay will become famous soon enough
Re: Running Toolchains on Debian?

I'm having a similar problem, I'm trying to install to Raspbian. I want to try and use a pi as our pit coding station to save space and possibly reach a point where students could be provided the inexpensive pis to take home and work on.
Problem is, I'm also new to Linux, so everything needs to be explained to me like I'm a five year old. I got dependency issues when I tried to just apt get the toolchain and when I followed the wiki to install the source.
Any help available?
Reply With Quote
  #5   Spotlight this post!  
Unread 16-05-2016, 11:11
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 146
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
The problem with using a pi is that the pi is an ARM chip, not a x64 chip. In order to get the toolchains working, you'd have to cross-compile it for arm.
Reply With Quote
  #6   Spotlight this post!  
Unread 16-05-2016, 15:53
kmckay's Avatar
kmckay kmckay is offline
Registered User
FRC #5401 (Fightin' Robotic Owls)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Bensalem, PA
Posts: 46
kmckay will become famous soon enough
Re: Running Toolchains on Debian?

OK. Can you point me in the direction of how to do that?
Next thing I'm trying is downloading and building the source using the PPA link above. I apologize for my ignorance, too many years in aerospace using enterprise sanitized tools.
Reply With Quote
  #7   Spotlight this post!  
Unread 16-05-2016, 16:20
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 146
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
I'm going to be honest: I don't think you're going to have a good time doing this. It'd be a much better idea to get something like a Kangaroo or some other x64 computer. However, if you're set on using the pi, you can find the toolchain source here https://bitbucket.org/byteit101/toolchain-builder/.
Reply With Quote
  #8   Spotlight this post!  
Unread 16-05-2016, 18:48
Landonh12's Avatar
Landonh12 Landonh12 is offline
270 points
AKA: Landon Haugh
FRC #0364 (Team Fusion)
Team Role: College Student
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Gulfport, MS
Posts: 211
Landonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud of
Re: Running Toolchains on Debian?

You could also get some cheap Thinkpads on eBay (x100e and X200 come to mind) that run Debian great and will be good enough for a coding station/driver station laptop.
__________________
Team Fusion 364 - Driver/Programmer 2012-2015; Controls Mentor 2016-Present
Reply With Quote
  #9   Spotlight this post!  
Unread 16-05-2016, 19:55
kmckay's Avatar
kmckay kmckay is offline
Registered User
FRC #5401 (Fightin' Robotic Owls)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Bensalem, PA
Posts: 46
kmckay will become famous soon enough
Re: Running Toolchains on Debian?

Stupid question: Does all of this go away if we were using Java? (We have been contemplating a change)
Reply With Quote
  #10   Spotlight this post!  
Unread 16-05-2016, 20:22
Landonh12's Avatar
Landonh12 Landonh12 is offline
270 points
AKA: Landon Haugh
FRC #0364 (Team Fusion)
Team Role: College Student
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Gulfport, MS
Posts: 211
Landonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud of
Re: Running Toolchains on Debian?

If you want to upload and compile code on Debian through the command line, you can create an Eclipse project and then edit code through your favorite text editor. When you want to deploy, go to the root directory of your code and run "ant". This will run the same thing eclipse does and it will upload your code.
__________________
Team Fusion 364 - Driver/Programmer 2012-2015; Controls Mentor 2016-Present
Reply With Quote
  #11   Spotlight this post!  
Unread 17-05-2016, 11:09
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 146
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
It would be easier to do this with Java, yes. There's no cross-compilation necessary, since there's already a jdk compiled for the arm platform, and you don't need to compile anything with a native toolchain.
Reply With Quote
  #12   Spotlight this post!  
Unread 17-05-2016, 11:10
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 146
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
Quote:
Originally Posted by Landonh12 View Post
If you want to upload and compile code on Debian through the command line, you can create an Eclipse project and then edit code through your favorite text editor. When you want to deploy, go to the root directory of your code and run "ant". This will run the same thing eclipse does and it will upload your code.
You'll still need the toolchains, though. We take advantage of the eclipse internal builder with c++, so the ant scripts are only responsible for sending your code to the rio.
Reply With Quote
  #13   Spotlight this post!  
Unread 17-05-2016, 11:16
Landonh12's Avatar
Landonh12 Landonh12 is offline
270 points
AKA: Landon Haugh
FRC #0364 (Team Fusion)
Team Role: College Student
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Gulfport, MS
Posts: 211
Landonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud of
Re: Running Toolchains on Debian?

Quote:
Originally Posted by fsilberberg View Post
You'll still need the toolchains, though. We take advantage of the eclipse internal builder with c++, so the ant scripts are only responsible for sending your code to the rio.
I was referencing his question about Java.
__________________
Team Fusion 364 - Driver/Programmer 2012-2015; Controls Mentor 2016-Present
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 13:08.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi