Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   C++ NetworkTables (http://www.chiefdelphi.com/forums/showthread.php?t=153894)

Henry Loh 18-01-2017 23:33

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

virtuald 18-01-2017 23:50

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

Henry Loh 21-01-2017 16:29

Re: C++ NetworkTables
 
Quote:

Originally Posted by virtuald (Post 1633325)
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

Henry Loh 21-01-2017 17:05

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’

Henry Loh 21-01-2017 19:18

Re: C++ NetworkTables
 
Nevermind, it's working fine now. I got the Maven artifacts from first, and skipped the whole native build process.


All times are GMT -5. The time now is 21:57.

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