json icon indicating copy to clipboard operation
json copied to clipboard

Integrating with android ndk issues.

Open roshanpatel6040 opened this issue 7 years ago • 3 comments

Hi, How can i integrate these library with android ndk using cmake. Currently i am getting error "You have called ADD_LIBRARY for library json without any source files." Any help would be appreciated.

roshanpatel6040 avatar Mar 25 '19 12:03 roshanpatel6040

In order to asses your issue, we need the following information:

  • What is the issue you have?

  • Please describe the steps to reproduce the issue. Can you provide a small but working code example?

  • What is the expected behavior?

  • And what is the actual behavior instead?

  • Which compiler and operating system are you using? Is it a supported compiler?

  • Did you use a released version of the library or the version from the develop branch?

  • If you experience a compilation error: can you compile and run the unit tests?

nlohmann avatar Mar 25 '19 15:03 nlohmann

Hi @nlohmann Till now i am able to integrate and use this library function in my cpp. Using include_directories(path to your include) but the issue is right now it is conflicting some opencv function. I am using linux, ndk version 19.2.

roshanpatel6040 avatar Mar 26 '19 04:03 roshanpatel6040

I am no expert on Android NDK, but with the information you gave, I cannot provide any assistance. Is it an issue if the CMake integration? Please provide more information, like example code, concrete error messages - https://github.com/nlohmann/json/issues/1547#issuecomment-476250588

nlohmann avatar Mar 26 '19 09:03 nlohmann