#348 OSX build error - playerc_wrap.h requires #include stdint.h

closed-fixed
nobody
player (137)
5
2010-12-15
2010-12-15
Anonymous
No

When building using cmake on OS X 10.6, uint8_t is not internally defined in the compiler, which playerc_wrap.h in playercRUBY_wrap.c references.
placing an:
#include <stdint.h> fixes it.

Exactly why this doesn't fail in playercPYTHON_wrap.c is a mystery to me! But I'm brand new to player and I've never used CMAKE... so sorry I'm not more of a help.

---

Scanning dependencies of target playercr
[ 21%] Building C object client_libs/libplayerc/bindings/ruby/CMakeFiles/playercr.dir/playercRUBY_wrap.o
In file included from /Users/scott/src/player/build/client_libs/libplayerc/bindings/ruby/playercRUBY_wrap.c:1847:
/Users/scott/src/player/build/client_libs/libplayerc/bindings/ruby/playerc_wrap.h:19: error: expected specifier-qualifier-list before 'uint8_t'
/Users/scott/src/player/build/client_libs/libplayerc/bindings/ruby/playercRUBY_wrap.c: In function 'uint8_tArray___getitem__':
/Users/scott/src/player/build/client_libs/libplayerc/bindings/ruby/playercRUBY_wrap.c:2137: error: 'uint8_tArray' has no member named 'actual'
/Users/scott/src/player/build/client_libs/libplayerc/bindings/ruby/playercRUBY_wrap.c:2137: warning: control reaches end of non-void function
/Users/scott/src/player/build/client_libs/libplayerc/bindings/ruby/playercRUBY_wrap.c: In function 'uint8_tArray___setitem__':
/Users/scott/src/player/build/client_libs/libplayerc/bindings/ruby/playercRUBY_wrap.c:2138: error: 'uint8_tArray' has no member named 'actual'
/Users/scott/src/player/build/client_libs/libplayerc/bindings/ruby/playercRUBY_wrap.c: In function '_wrap_uint8_tArray_actual_set':
/Users/scott/src/player/build/client_libs/libplayerc/bindings/ruby/playercRUBY_wrap.c:47358: error: 'uint8_tArray' has no member named 'actual'
/Users/scott/src/player/build/client_libs/libplayerc/bindings/ruby/playercRUBY_wrap.c: In function '_wrap_uint8_tArray_actual_get':
/Users/scott/src/player/build/client_libs/libplayerc/bindings/ruby/playercRUBY_wrap.c:47382: error: 'uint8_tArray' has no member named 'actual'
make[2]: *** [client_libs/libplayerc/bindings/ruby/CMakeFiles/playercr.dir/playercRUBY_wrap.o] Error 1
make[1]: *** [client_libs/libplayerc/bindings/ruby/CMakeFiles/playercr.dir/all] Error 2
make: *** [all] Error 2

Discussion

  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2010-12-15
    • labels: --> player
     
  • Rich Mattes

    Rich Mattes - 2010-12-15
    • status: open --> closed-fixed
     
  • Rich Mattes

    Rich Mattes - 2010-12-15

    Thanks for the report. I've added "stdint.h" to the ruby bindings' playerc.i file in SVN head. Please try it (you'll have to run make clean then make) and re-open this bug if you're still having issues.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks