-
Notifications
You must be signed in to change notification settings - Fork 151
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
Android Issues #82
Comments
A few comments first:
Now, I notice the "" in your paths, so I'm guessing you are using Windows. It looks like the whole path is too deep and reaching the limit (about 260 characters long). Usually, the course of action from there is to make sure that "MyProjectPath" is as short as needed not to hit the limit. |
Here are some possible solutions: https://stackoverflow.com/questions/33905687/error-file-path-too-long-on-windows-keep-below-240-characters |
Thanks for the quick reply! Also, thanks for the clarification on the find_package() and the Boost::boost tip. I have made the following modifications to my above cmake file:
Yes, I am using Windows 10 and I am aware of the path limitations, so I have my repos located so that the path is nearly as short as possible. Anyways, I verified that the path: is only 202 characters long (including spaces), so I'm guessing that's not the problem. I noticed that in my path, I have: Which appears to have the entire boost library. When I add Boost::boost, I'm guessing that is what is being included, correct (obviously different folders for debug/release and architecture type)? Assuming my cmake is as described, I will assume that the issue I am facing is not related to the boost-cmake integration and is related to something else. |
If the path is short, then you have a local issue. You should try to go into the boost-cmake-src folder above and run some git operations manually to see if they succeed or fail and debug it from there. As for using Boost::boost, yes it will build what you use as needed in the right mode. |
Hi @Orphis thanks for your help. I managed to resolve the issue and I am now no longer get that error. However, I am getting a weird error that I don't know if it's boost 1.70 specific or something... Basically, boost itself seems to be missing includes that it needs. In the file boost/circular_buffer/base.hpp, I have the following issues
Note: other issues exist in other files, as well. I tried manually adding the 'recommended' imports, but that just caused a chain reaction of missing imports that I couldn't resolve. Do you have any thoughts or suggestions? Have you ever seen anything like that before? I saw that they have a released/tagged version of boost 1.70, so presumably it should be stable or at least build I don't know if maybe the boost importing script is missing somethings or not? Currently, I'm still only importing "Boost::boost", which I believe should be everything? Thanks for your help! |
Is there a way I can provide a custom path for where the boost files get generated to? Note: I have experimented with including Right now, it's building all the boost library and putting them in temporary files that git is ignoring. For code sharing purposes, it would be best if I can control where only the final boost files go. Either way, my above issue is still the same, it appears to be building boost but some boost files appear to be missing imports or maybe not all required boost files got built? I'm not sure you can help with this, but any assistance is greatly appreciated! Thanks again. |
First off, awesome looking library! I had boost integrated in an outdated version of the Android NDK but I wanted to upgrade to the latest version of Gradle + NDK on Android, and that required switching from gcc to clang and integrating with boost 1.70.0... Found this library and it looked to offer a great solution.
I have been experimenting with several different variations of the guidelines (adding as a sub-module and using the FetchContent within the CMake). I wanted to avoid the sub-module approach so I've been focusing on the FetchContent one.
This required me to manually update the CMake version (Android had only supported up to 3.10). I have managed to get it to support CMake version 3.14.4.
My CMake file looks roughly like this:
Things seemed to be working. I did get a few errors but from reading through other open/closed issues, I saw your reply that it meant that everything was in fact working as expected. As well, when I run the CMake, it generates a bunch of boost-related folders/files.
The issue is that I get the following error:
org.gradle.api.UncheckedIOException: java.nio.file.AccessDeniedException: [MyProjectPath]\.externalNativeBuild\cmake\debug\armeabi-v7a\_deps\boost-cmake-src\.git\objects\pack\pack-9f2195dfb9d14b5d14c811b719879a70f0210228.idx
As you can see, it placed some kind of boost-cmake files deep in that directory.
My current configurations are:
Android Gradle Plugin version: 3.4.1
Gradle version: 5.1.1
CMake version: 3.14.4
Android NDK version: 19.2.5345600
My main questions are:
Any help is welcome. Thanks!
The text was updated successfully, but these errors were encountered: