Go to Post For the first time, tears of joy came to my eyes when I realized how much I love FIRST. - Arefin Bari [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 26-11-2016, 02:52
colescott's Avatar
colescott colescott is offline
Registered User
FRC #4159 (CardinalBotics)
Team Role: Programmer
 
Join Date: Mar 2015
Rookie Year: 2015
Location: San Francisco
Posts: 5
colescott is an unknown quantity at this point
Installing frc toolchain on NixOS

Hey CD,

For the last few days I have been trying to get the frc c++ toolchain to install on my NixOS computer. The main issue with this is that nixos has its own package manager and does not support apt-get, aptitude, yum, etc. I tried manually downloading the packages from the launchpad and installing them using dpkg but there was a loop regarding libc and libgcc... Probably because they are supposed to be on the system by default.
I also tried the toolchain-builder bitbucket and after a few fixed 404s it still had no proper makefile for my purposes.

Any help would be much appreciated because I am completely stuck.
Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 27-11-2016, 02:55
calcmogul's Avatar
calcmogul calcmogul is offline
WPILib Developer
AKA: Tyler Veness
FRC #3512 (Spartatroniks)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Santa Maria, CA
Posts: 51
calcmogul is just really nicecalcmogul is just really nicecalcmogul is just really nicecalcmogul is just really nice
Re: Installing frc toolchain on NixOS

If you're up for it and are familiar with NixOS's packaging system, you could make new packages for your distro to build everything from source. That's what I did for Arch Linux because it fit Arch's packaging standards.

I don't know how NixOS does their packaging, but here's the Arch metapackage that links to others for building GCC, etc. if you need a starting point for the build commands. Select "View PKGBUILD" on each package's page to see them.
Reply With Quote
  #3   Spotlight this post!  
Unread 27-11-2016, 10:47
marshall's Avatar
marshall marshall is online now
My pants are louder than yours.
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 1,251
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: Installing frc toolchain on NixOS

Hey could someone make a package for Solaris or AIX? Thanks.

Free advice (it's mostly worthless) form a mentor and a cranky old IT dude (though definitely not as cranky as some around these parts) spare yourselves the pain and get Virtual Box or Workstation or Fusion or whatever Type 2 hypervisor you want and then install a Ubuntu or Windows VM and call it a day or get a more mainstream OS installed on another system you can use for development.

Spend all of the energy you would have spent on getting the software working on your totally k-rad custom OS and super customized development environment on making better robot code and improving the robot.

Or don't... delving into the world of stupid ideas like building Linux from Scratch and spending 3 days trying to discover how you fat-fingered a BASH script and couldn't boot with a useable key map all the while not being able to check your email for a missing assignment or studying for finals can lead to great things too!
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
Reply With Quote
  #4   Spotlight this post!  
Unread 27-11-2016, 19:04
colescott's Avatar
colescott colescott is offline
Registered User
FRC #4159 (CardinalBotics)
Team Role: Programmer
 
Join Date: Mar 2015
Rookie Year: 2015
Location: San Francisco
Posts: 5
colescott is an unknown quantity at this point
Re: Installing frc toolchain on NixOS

Thanks for the suggestions!
I think I will end up just making a nixos package for it so hopefully I can save a few others from this headache.
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 10:58.

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