Build Failing on OSX #72
Comments
Hi @Colin747, I think I had the same issue. I believe I got rid of it by specifying JAVA_HOME env variable:
|
Thanks for your reply. I tried running your command but the build still failed at the same point. |
Make sure you use a correct path to Java :) |
I tried setting it to:
but this did not work either, is it the path to the Java SDK I need to set? |
The cmake command you copied here seems to have some typos, there are missing spaces between some of the options. Can you add them and re-run make? |
When I run your command I get an error: If I remove the |
I've tried compiling it and the same error has happened to me. Could you advise me about it. Please, thanks |
The correct command is |
on my Mac OS X 10.11, with cmake 3.7.2,
then, cmake results as the following warning: build I still encounter as the same problem in p.s. in my research, I noticed there is also an option "-stdlib=libc++" and I'm not sure if it is relevant. so I tried using reference: |
Same process as above, same error (Mac OSX 10.12.3, cmake version 3.7.2): |
For anyone following this thread, the following seems to be the solution: In tinyb/api/tinyb/BluetoothObject.hpp add: Fixing the above required forcing the symlinking of gettext which contains the intl library: |
I've now trying to execute the example code: But I get the error: [I use the MAC address of my BT device above] Not sure if it is related to needing the BlueZ + GATT stack which is maybe not possible in Mac OSX which has its own stack? |
In file included from /Users/lightsing/Downloads/tinyb-0.5.0/src/BluetoothObject.cpp:25: |
Apologies if this is not a suitable place to pose such a question but I am having trouble building it for Java on OSX.
I'm using the following
cmake
command:cmake .. -DBUILDJAVA=ON-std=c++11-DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++
However this is resulting in the following error when I run
make
:The text was updated successfully, but these errors were encountered: