![]() |
Re: Alternate GCC Toolchain
Quote:
Quote:
One of the things that's an issue with WPILib in C++11 mode is that with the new constexpr feature, GCC has decided to be more strict about floating point constants being initialized in header files (which is technically not allowed by the standard but has been allowed by GCC for some time). You'll have to make those floating point constants declarations and define them in a .cpp file *or* use a compile-time #ifdef on __cplusplus to use either const or constexpr depending on the standards version. If I recall correctly, this is the reasoning behind my earlier advice to use -fpermissive when compiling with -std=c++11. I don't believe that changing to gnu++11 solved the problem - I think it had to be the evil fpermissive... Quote:
1) Since the intention is that FRC uses do not require settings beside the default, I chose to place those values in the script. Your version requires them to put these same arguments (which 99% of the time should be the same) on the command line every time. If they need to override the defaults, they can still use regular old cmake. 2) I also use $@ to allow people to specify their own arguments to cmake, so they don't have to (but can) specify CMAKE_CXX_FLAGS, for example. The result of this is that a simple call to frcmake alone (with just a directory) is sufficient to build a project, but the user can specify only those flags that they care about in order to configure cmake how they would like. I think this is a superior solution. Since I think the version that's in the packages and on github is better, I think that there already is a standard - the script that lives on github (and thus in the debian repo as well). Needless to say, you can always put in a pull request on the frc-buildscripts repo, where frcmake lives: https://github.com/rbmj/frc-buildscripts But, just because you submit it doesn't mean I'll pull it ;-) |
Re: Alternate GCC Toolchain
Quote:
Quote:
Also, I integrated GDB into my latest release. I'm still not quite sure how the Ruby thing works though... Alex Brinister |
Re: Alternate GCC Toolchain
Quote:
|
Re: Alternate GCC Toolchain
Quote:
|
Re: Alternate GCC Toolchain
ANNOUNCEMENT
I'm happy to announce that I have built packages for debian testing (should also work on ubuntu) which are available on the apt repo. i686 and amd64 packages are available. No other architectures are supported by this binary repo (though feel free to make your own if you really want to run this on your RPi). Note: Because of some naming changes if you installed my earlier binary packages you MUST uninstall everything *except* wrs-headers-installer before you can install the new packages. An aptitude upgrade will NOT actually upgrade your packages, and may break things! The /etc/apt/sources.list line is: Code:
deb http://debian.repo.frc.s3.amazonaws.com wheezy mainCode:
# wget -O - http://debian.repo.frc.s3.amazonaws.com/rbmj.gpg.key | apt-key add -Code:
# aptitude updateThe wiki's instructions are also updated for 4.8.0 and no longer require running a development version of GCC. For more information on binaries, see this wiki page For more information on compiling from source, see this wiki page For instructions on how to build FRC code using this package the best way, see this wiki page. |
Re: Alternate GCC Toolchain
Quote:
Package gcc-powerpc-wrs-vxworks is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'gcc-powerpc-wrs-vxworks' has no installation candidate Cheers, Jeremy |
Re: Alternate GCC Toolchain
Quote:
|
Re: Alternate GCC Toolchain
Quote:
|
Re: Alternate GCC Toolchain
Doesn't launchpad provide free hosting for packages (via ppas)? Any reason you are using aws instead?
|
Re: Alternate GCC Toolchain
Quote:
|
Re: Alternate GCC Toolchain
Hello Everyone,
I've released some alpha windows binaries. These are self-contained windows installer files. Features:
Basically, it contains everything that you need in order to build FRC code. Release Notes C++11 mode is not enabled by default - in order to enable it you need to pass -DCMAKE_CXX_FLAGS=-std=gnu++11 (or c++11) when you invoke frcmake As I do not have a cRIO I am unable to test if this code actually works on a Robot, and am looking for volunteers willing to stress test it to make sure that everything actually works. I am also very interested in people looking to test C++11 features - I highly recommend looking at std::thread, as it promises to make threading much easier. The installer currently creates registry keys rooted in HKLM and modifies system environment variables (it's safe, I promise), so you will need to have administrator access to install. Links Download: http://firstforge.wpi.edu/sf/frs/do/...tallers.alpha0 Howto (note that on windows, you need to use mingw32-make): http://firstforge.wpi.edu/sf/go/wiki1288 |
| All times are GMT -5. The time now is 20:08. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi