Hi.
I am trying to compile player-3.0.2 but I get the following error on Mac OS Sierra 10.12.4 with Intel Core i5.
[ 0%] Built target playercommon
[ 1%] Generating player_interfaces.h
[ 1%] Built target player_interfaces
[ 2%] Building C object libplayerinterface/CMakeFiles/playerinterface.dir/interface_util.o
/Users/victor/src/player-3.0.2/libplayerinterface/interface_util.c:51:10: fatal error:
'interface_table.h' file not found
#include "interface_table.h"
^
1 error generated.
make[2]: *** [libplayerinterface/CMakeFiles/playerinterface.dir/interface_util.o] Error 1
make[1]: *** [libplayerinterface/CMakeFiles/playerinterface.dir/all] Error 2
make: *** [all] Error 2
Can someone help me to solve this issue.
Thank you.
The CMake dependencies for that part of the code aren't set up right, this patch should fix it:
https://src.fedoraproject.org/cgit/rpms/player.git/tree/player-3.0.2-interfacetable.patch
Problem continues after having applied the player-3.0.2-interfacetable.patch patch.
Hmm... is it possible you're using python 3 instead of python 2? Player 3.0.2's generators are incompatible wth python 3.
You might also want to try Player 3.1.0, which was released today:
https://github.com/playerproject/player/releases/tag/release-3-1-0
Unfortunately I cannot compile the source code, I tried to use the patch and player 3.1.0 and the problem continues.
In Mac OS Sierra 10.12.4 the default python versions are 2.6.9 and 2.7.10
I have the same issue, running on macOS Sierra 10.12.6.
I can't find the file "interface_table.h" also in older repos.
Is it possible to get only the "interface_table.h" and the C-File to this header?
It seems that the file "interface_table. h" cannot be generated with the new versions of CMake. I tried with CMake 3.6.3 and the problem has been solved, but now another problem has arisen.
This is the output:
So interface_table.h is generated by a python script during build time. EIther something is wrong with the script/python interpreter, or something is wrong with the way that the dependencies are set up. If the output pasted is the complete output, it looks like the build system isn't trying to generate interface_table.h before trying to build libplayerinterface. This patch may correct that:
Last edit: Rich Mattes 2017-10-13
The problem with clock_gettime is a different issue. Player tests for the existance of librt.so and the clock_gettime function, and if it can't find either of those it tries to provide clock_gettime functionality. It looks like librt doesn't exist on os x, so a check for clock_gettime is all that's needed. Try this patch:
I was able to reproduce the error where interface_table.h wasn't found, and the patch I posted above that calls "add_dependencies" seems to fix the error on my machine. I don't have a mac to test the second patch.
I pushed both of these to git master - if you could give it a try I'd appreciate it.
https://github.com/playerproject/player
I have tried to compile again and this is the error I get:
Hi Victor
Thanks for the reply. There's one more spot where librt is being linked to, in libplayercore. I grepped through the rest of the CMakeLists.txt and didn't see any more hits for librt outside of IF (PLAYER_OS_SOLARIS), but grepping for "rt" produces tons of false positives so let me know if something else breaks.