Go to Post Noticed it and mentioned it to all of my college friends, who confirmed for me that I am still a complete nerd. - Donut [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 18-01-2017, 23:33
Henry Loh Henry Loh is offline
Registered User
FRC #5104
 
Join Date: Jan 2017
Location: Pacific Grove, Ca.
Posts: 7
Henry Loh is an unknown quantity at this point
C++ NetworkTables

Does anyone have the necessary files to run a C++ Network Tables client? I looked quickly but was not sure what exactly I was looking for.

Thanks,
Henry
Reply With Quote
  #2   Spotlight this post!  
Unread 18-01-2017, 23:50
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,106
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: C++ NetworkTables

If you search for "networktables" on the WPILib screensteps site one of the top results is this page, which links to various binary artifacts.

https://wpilib.screenstepslive.com/s...aven-artifacts
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
Reply With Quote
  #3   Spotlight this post!  
Unread 21-01-2017, 16:29
Henry Loh Henry Loh is offline
Registered User
FRC #5104
 
Join Date: Jan 2017
Location: Pacific Grove, Ca.
Posts: 7
Henry Loh is an unknown quantity at this point
Re: C++ NetworkTables

Quote:
Originally Posted by virtuald View Post
If you search for "networktables" on the WPILib screensteps site one of the top results is this page, which links to various binary artifacts.

https://wpilib.screenstepslive.com/s...aven-artifacts
Thanks for the link, I found the C++ repo for Network Tables, and built (and then linked to) it successfully on a Mac.


Now, however, I am trying to build the same repo

https://github.com/wpilibsuite/ntcore.git

on my Raspberry Pi.

Cloning the repo worked fine, and even building it with './gradlew :native:build' worked fine. The problem is that despite gradle saying the build succeeded, I cannot find the libntcore.a library anywhere on the RPi.

Running './gradlew build' does not work (throwing an error with the g++ -m32 arg) but I don't think it worked on a Mac either.

Any advice is much appreciated,
Henry Loh
Reply With Quote
  #4   Spotlight this post!  
Unread 21-01-2017, 17:05
Henry Loh Henry Loh is offline
Registered User
FRC #5104
 
Join Date: Jan 2017
Location: Pacific Grove, Ca.
Posts: 7
Henry Loh is an unknown quantity at this point
Re: C++ NetworkTables

Update:
I just checked now and it turns out that './gradlew build' *does* work on the mac and is what successfully built the repo. I was under the impression that :native:build would work, but I guess not.

So, when I run '.gradlew build' on the RPi, I get the error:
g++: error: unrecognized command line option ‘-m32’
Reply With Quote
  #5   Spotlight this post!  
Unread 21-01-2017, 19:18
Henry Loh Henry Loh is offline
Registered User
FRC #5104
 
Join Date: Jan 2017
Location: Pacific Grove, Ca.
Posts: 7
Henry Loh is an unknown quantity at this point
Re: C++ NetworkTables

Nevermind, it's working fine now. I got the Maven artifacts from first, and skipped the whole native build process.
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:20.

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