-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Including the ev3dev-lang-cpp library #1
Comments
Sorry I’m a away from home and don’t have Internet at my hotel- just on my cellphone, and at our test facility has strict Internet access policies so I won’t be able to respond until the weekend at the soonest. I think if I remember correctly that those files don’t have many dependencies, but it would be best to check what they include in the cpp and h files. Or just try. If you’re having trouble with ROS + Cmake + C++ + the EV3 all at once, then I highly recommend checking out the ROS tutorials and just the basic publisher/subscriber/action server/service, and then choosing one of the easier to simulate robots... which gets to the fundamentals of ROS, without the added difficulty of getting it running on an not-officially-supported robot with not officially supported processor, on a not officially supported Linux distribution... although- it’s awesome that you’re still trying! Because the EV3 is awesome and so is ROS, so it is worth it... but, I then didn’t upgrade mine for ages once I had it working it just worked... |
Linking to the original issue also: On the bright side- there has been progress! |
Oh- just took a quick look at @ddemidov’s ev3dev-lang-cpp and I was wrong I’m not remembering those having too many dependencies. But, it is a cmake package, so you can put it into your Catkin package and direct/mod Catkin CMakelists to compile it as a dependency... But isn’t the ev3dev-lang-cpp installed by default? Sorry again, not helpful, answering a question with a question... but why isn’t ev3dev-lang-cpp in /usr/local/lib ? |
|
@MadsFox I saw you were able to get the other issue closed, were you able to get this project working? If so, I'd be happy to accept a pull request, and as a bonus, if you make 4 pull requests this month to open source projects you can get a T-Shirt: https://hacktoberfest.digitalocean.com |
I just added the ev3dev.cpp and ev3dev.h files to the src folder and edited the CMakelists file. I'll make a fork and send a pull request, but remember that i'm on a stretch image. Can't remember if your project also are? |
...and i also edited the library files to match with the stretch image |
👍 I don't think I had the stretch image, I hadn't upgrade my EV3 for 2 years... Even if you update the readme instructions that would be helpful. |
Do I only need the ev3dev.h and ev3dev.cpp files to use the functions in the ev3dev.h file or do those files have other dependencies. I see in you CMakeLists file, that you link to a directory.
link_directories(/usr/local/lib)
Would it be enough to just place the ev3dev.ccp and ev3dev.h files in that directory?
and add this to my CMakeLists file:
catkin_package(DEPENDS ev3dev) target_link_libraries(ev3dev_test_node_cpp ${catkin_LIBRARIES} ev3dev) add_executable(ev3dev_listener_node src/listener.cpp) target_link_libraries(ev3dev_listener_node ${catkin_LIBRARIES} ev3dev )
Trying to understand a lot of things at once, so just looking for a quick fix, that can confirm my intuition.
The text was updated successfully, but these errors were encountered: