Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Using ntcore library c++ (http://www.chiefdelphi.com/forums/showthread.php?t=154336)

truell20 27-01-2017 16:40

Using ntcore library c++
 
I am trying to use the ntcore library (github mirror link: https://github.com/wpilibsuite/ntcore) in order to communicate with the roborio from the jetson.

However, I'm not exactly sure how to compile and link the library. Could someone walk me through it?

jreneew2 27-01-2017 16:46

Re: Using ntcore library c++
 
I was able to successfully compile it on a raspberry pi using the default command they give you in the readme. The Jetson is an ARM processor right?

Try running:
Code:

./gradlew :arm:build
To link the file you should be able to add to your build command
Code:

-I /path/to/lib/folder -l -ntcore
And of course at "ntcore.h" to your file

truell20 27-01-2017 16:53

Re: Using ntcore library c++
 
I've done everything that you've suggested, jreneew2, except for the "-I /path/to/lib/folder." I am unsure what "path/to/lib/folder" refers to.

truell20 27-01-2017 16:55

Re: Using ntcore library c++
 
"/usr/bin/ld: cannot find -lntcore collect2: error: ld returned 1 exit status"

Is the linker error that I'm currently getting.

jreneew2 27-01-2017 17:37

Re: Using ntcore library c++
 
So your include path is where ntcore was compiled. So probably something like /home/ntcore/bin/ntcore/lib.a

truell20 27-01-2017 21:33

Re: Using ntcore library c++
 
Got it working. Thanks for the help.

jreneew2 27-01-2017 21:34

Re: Using ntcore library c++
 
No problem.


All times are GMT -5. The time now is 07:12.

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