Trying to get bigdecimal 1.4.1. or 1.3.5 to compile in a rails project. I get:
bobwalsh#iMac2021 webservices % gem install bigdecimal -v '1.3.5'
Building native extensions. This could take a while...
ERROR: Error installing bigdecimal:
ERROR: Failed to build gem native extension.
current directory: /Users/bobwalsh/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bigdecimal-1.3.5/ext/bigdecimal
/Users/bobwalsh/.rbenv/versions/3.1.2/bin/ruby -I /Users/bobwalsh/.rbenv/versions/3.1.2/lib/ruby/site_ruby/3.1.0 extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
checking for finite() in math.h... yes
checking for isfinite() in math.h... no
checking for struct RRational in ruby.h... no
checking for rb_rational_num() in ruby.h... yes
checking for rb_rational_den() in ruby.h... yes
checking for rb_array_const_ptr() in ruby.h... yes
checking for rb_sym2str() in ruby.h... yes
creating Makefile
current directory: /Users/bobwalsh/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bigdecimal-1.3.5/ext/bigdecimal
make DESTDIR\= sitearchdir\=./.gem.20221229-75388-86psx7 sitelibdir\=./.gem.20221229-75388-86psx7 clean
current directory: /Users/bobwalsh/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bigdecimal-1.3.5/ext/bigdecimal
make DESTDIR\= sitearchdir\=./.gem.20221229-75388-86psx7 sitelibdir\=./.gem.20221229-75388-86psx7
compiling bigdecimal.c
bigdecimal.c:366:28: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
INT2NUM(p->MaxPrec*VpBaseFig()));
~~~~~~~ ~~~~~~~~~~^~~~~~~~~~~~
bigdecimal.c:365:39: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
obj = rb_assoc_new(INT2NUM(p->Prec*VpBaseFig()),
~~~~~~~ ~~~~~~~^~~~~~~~~~~~
bigdecimal.c:439:5: error: implicit declaration of function 'rb_check_safe_obj' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
rb_check_safe_obj(str);
^
bigdecimal.c:439:5: note: did you mean 'rb_check_safe_str'?
/Users/bobwalsh/.rbenv/versions/3.1.2/include/ruby-3.1.0/ruby/internal/core/rstring.h:383:6: note: 'rb_check_safe_str' declared here
void rb_check_safe_str(VALUE);
^
bigdecimal.c:2047:6: error: implicit declaration of function 'rb_check_safe_obj' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
rb_check_safe_obj(f);
^
bigdecimal.c:2152:30: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
rb_ary_push(obj, INT2NUM(e));
~~~~~~~ ^
bigdecimal.c:2165:20: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
return INT2NUM(e);
~~~~~~~ ^
bigdecimal.c:2737:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
VALUE nCur = INT2NUM(VpGetPrecLimit());
~~~~~~~ ^~~~~~~~~~~~~~~~
5 warnings and 2 errors generated.
make: *** [bigdecimal.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/bobwalsh/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bigdecimal-1.3.5 for inspection.
Results logged to /Users/bobwalsh/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/extensions/x86_64-darwin-21/3.1.0/bigdecimal-1.3.5/gem_make.out
What do I do to get this working?
Related
A rails application created with Ruby 3.1.0 and rails 7.0.3 on a Mac OS X 10.13.6 bundles all required gems using Bundler version 2.3.3
When migrating the application to Mac OS X 12.3 (monterey) with the same bundler version,
this is encountered:
An error occurred while installing semacode-ruby19 (0.7.4), and Bundler cannot continue.
Commenting out the gem allows the gem intallation procedure to complete. However the application remains incomplete, test/test_helper.rb for example needs to be commented out as the application tests the generation of Barby::DataMatrix.new(...)
The aforementioned gem has not been updated in a long time (thus no expectations should be entertained) - however the functionality of encoding DataMatrix for ruby remains a going concern. What options are open at this point?
I remain uncertain as to the source of the problem - the ∆s are OS X and homebrew - and thus uncertain as to where to report this. Suggestions welcome.
Update
As per the suggestion, the manual installation of the gem also fails:
gem install semacode -v 0.7.4 -- --with-cflags="-Wno-error=implicit-function-declaration"
Fetching semacode-0.7.4.gem
Building native extensions with: '--with-cflags=-Wno-error=implicit-function-declaration'
This could take a while...
ERROR: Error installing semacode:
ERROR: Failed to build gem native extension.
current directory: /Users/deploy/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/semacode-0.7.4/ext
/Users/deploy/.rbenv/versions/3.1.0/bin/ruby -I /Users/deploy/.rbenv/versions/3.1.0/lib/ruby/3.1.0 -r ./siteconf20220830-40292-dndt8s.rb extconf.rb --with-cflags\=-Wno-error\=implicit-function-declaration
creating Makefile
current directory: /Users/deploy/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/semacode-0.7.4/ext
make DESTDIR\= clean
current directory: /Users/deploy/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/semacode-0.7.4/ext
make DESTDIR\=
compiling iec16022ecc200.c
iec16022ecc200.c:284:80: warning: data argument not used by format string [-Wformat-extra-args]
rb_raise(rb_eArgError, "cannot encode character in X12", c);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
iec16022ecc200.c:299:80: warning: data argument not used by format string [-Wformat-extra-args]
rb_raise(rb_eArgError, "cannot encode character in X12", c);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
iec16022ecc200.c:323:89: warning: data argument not used by format string [-Wformat-extra-args]
rb_raise(rb_eRuntimeError, "this should not be happening!", c);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
iec16022ecc200.c:498:9: warning: incompatible pointer to integer conversion initializing 'VALUE' (aka 'unsigned long') with an expression of type 'void *' [-Wint-conversion]
VALUE rb_str = NULL;
^ ~~~~
iec16022ecc200.c:908:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
grid = ALLOC_N(char, W * H);
^ ~~~~~~~~~~~~~~~~~~~~
5 warnings generated.
compiling reedsol.c
compiling semacode.c
semacode.c:61:3: warning: implicit declaration of function 'iec16022init' is invalid in C99 [-Wimplicit-function-declaration]
iec16022init(&semacode->width, &semacode->height, message);
^
semacode.c:96:28: warning: 'bzero' call operates on objects of type 'semacode_t' (aka 'struct semacode_t') while the size is based on a different type 'semacode_t *' (aka 'struct semacode_t *') [-Wsizeof-pointer-memaccess]
bzero(semacode, sizeof(semacode));
~~~~~~~~ ^~~~~~~~
semacode.c:96:28: note: did you mean to dereference the argument to 'sizeof' (and multiply it by the number of elements)?
bzero(semacode, sizeof(semacode));
^~~~~~~~
semacode.c:129:27: error: no member named 'len' in 'struct RString'
encode_string(semacode, StringValueLen(message), StringValuePtr(message));
^~~~~~~~~~~~~~~~~~~~~~~
./semacode.h:26:56: note: expanded from macro 'StringValueLen'
#define StringValueLen(s) RSTRING(RB_STRING_VALUE(s))->len
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
semacode.c:239:20: warning: equality comparison result unused [-Wunused-comparison]
semacode->data == NULL;
~~~~~~~~~~~~~~~^~~~~~~
semacode.c:239:20: note: use '=' to turn this equality comparison into an assignment
semacode->data == NULL;
^~
=
semacode.c:243:44: error: no member named 'len' in 'struct RString'
DATA_PTR(self) = encode_string(semacode, StringValueLen(message), StringValuePtr(message));
^~~~~~~~~~~~~~~~~~~~~~~
./semacode.h:26:56: note: expanded from macro 'StringValueLen'
#define StringValueLen(s) RSTRING(RB_STRING_VALUE(s))->len
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
3 warnings and 2 errors generated.
make: *** [semacode.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/deploy/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/semacode-0.7.4 for inspection.
Results logged to /Users/deploy/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/extensions/arm64-darwin-21/3.1.0/semacode-0.7.4/gem_make.out
After running bundle install --path vendor it's showing following error. I'm using macOS Sierra. This problem occurred after update homebrew. I've uninstalled currently installed puma from my gem list. But the same problem occurred here.
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/tanvirhasan/.rbenv/versions/2.2.0/bin/ruby -r ./siteconf20161114-22170-lrj70g.rb extconf.rb
checking for BIO_read() in -lcrypto... yes
checking for SSL_CTX_new() in -lssl... yes
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling http11_parser.c
compiling io_buffer.c
io_buffer.c:119:10: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
return rb_str_new(b->top, b->cur - b->top);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/tanvirhasan/.rbenv/versions/2.2.0/include/ruby-2.2.0/ruby/intern.h:796:20: note: expanded from macro 'rb_str_new'
rb_str_new_static((str), (len)) : \
^~~~~
/Users/tanvirhasan/.rbenv/versions/2.2.0/include/ruby-2.2.0/ruby/intern.h:727:37: note: passing argument to parameter here
VALUE rb_str_new_static(const char *, long);
^
io_buffer.c:119:10: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
return rb_str_new(b->top, b->cur - b->top);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/tanvirhasan/.rbenv/versions/2.2.0/include/ruby-2.2.0/ruby/intern.h:797:13: note: expanded from macro 'rb_str_new'
rb_str_new((str), (len)); \
^~~~~
/Users/tanvirhasan/.rbenv/versions/2.2.0/include/ruby-2.2.0/ruby/intern.h:706:29: note: passing argument to parameter here
VALUE rb_str_new(const char*, long);
^
2 warnings generated.
compiling mini_ssl.c
In file included from mini_ssl.c:3:
/Users/tanvirhasan/.rbenv/versions/2.2.0/include/ruby-2.2.0/ruby/backward/rubyio.h:2:2: warning: use "ruby/io.h" instead of "rubyio.h" [-W#warnings]
#warning use "ruby/io.h" instead of "rubyio.h"
^
mini_ssl.c:4:10: fatal error: 'openssl/bio.h' file not found
#include <openssl/bio.h>
^
1 warning and 1 error generated.
make: *** [mini_ssl.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/tanvirhasan/Git/Nascenia/cribber-web/vendor/ruby/2.2.0/gems/puma-2.11.1 for inspection.
Results logged to /Users/tanvirhasan/Git/Nascenia/cribber-web/vendor/ruby/2.2.0/extensions/x86_64-darwin-15/2.2.0-static/puma-2.11.1/gem_make.out
You updated homebrew, but you probably didn't update XCode. Pull up an instance of Terminal and run:
brew doctor
Homebrew will probably warn you about one or more libraries that need to be updated, including XCode.
Run:
xcode-select --install
Make sure you accept the license for the new version of XCode by running:
sudo xcodebuild -license
I'm trying to install VLCKit for iOS by following this. It says that after downloading the project, install vlc framework for iOS is by executing ./buildMobileVLCKit.sh -f in terminal.
I obtain this at the end of log :
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: .libs/libass.a(ass_fontconfig.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: .libs/libass.a(utils.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: .libs/libass.a(ass_fontconfig.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: .libs/libass.a(utils.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Projets/VLCKit-master-bfdcee6c3ccc7666e42091ea1b2f39903e775781/MobileVLCKit/ImportedSources/vlc/contrib/iPhone-i386-apple-darwin11-i386/lib/libass.a(ass_fontconfig.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Projets/VLCKit-master-bfdcee6c3ccc7666e42091ea1b2f39903e775781/MobileVLCKit/ImportedSources/vlc/contrib/iPhone-i386-apple-darwin11-i386/lib/libass.a(utils.o) has no symbols
libavcodec/audiotoolboxdec.c:344:34: warning: incompatible pointer types passing 'UInt32 *'
(aka 'unsigned long *') to parameter of type 'int *' [-Wincompatible-pointer-types]
&in_format.mChannelsPerFrame, &avctx->frame_size,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavcodec/mpegaudiodecheader.h:58:31: note: passing argument to parameter 'channels' here
int *channels, int *frame_size, int *bitrate, enum AVCodecID *codec_id);
^
libavcodec/audiotoolboxdec.c:548:43: warning: incompatible pointer types passing 'int *' to parameter of type
'UInt32 * _Nonnull' (aka 'unsigned long *') [-Wincompatible-pointer-types]
&frame->nb_samples, &out_buffers, NULL);
^~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioConverter.h:828:73: note:
passing argument to parameter 'ioOutputDataPacketSize' here
UInt32 * ioOutputDataPacketSize,
^
libavcodec/audiotoolboxdec.c:559:61: warning: values of type 'OSStatus' should not be used as format arguments;
add an explicit cast to 'int' instead [-Wformat]
av_log(avctx, AV_LOG_WARNING, "Decode error: %i\n", ret);
~~ ^~~
(int)
libavcodec/avrndec.c:110:15: warning: 'avcodec_decode_video2' is deprecated [-Wdeprecated-declarations]
ret = avcodec_decode_video2(a->mjpeg_avctx, data, got_frame, avpkt);
^
libavcodec/avcodec.h:4763:5: note: 'avcodec_decode_video2' has been explicitly marked deprecated here
int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
^
1 warning generated.
3 warnings generated.
libavcodec/bitstream_filter.c:40:12: warning: returning 'const AVBitStreamFilter *' (aka
'const struct AVBitStreamFilter *') from a function with result type 'AVBitStreamFilter *'
(aka 'struct AVBitStreamFilter *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
return av_bsf_next(&opaque);
^~~~~~~~~~~~~~~~~~~~
libavcodec/bitstream_filter.c:71:20: warning: assigning to 'struct AVBitStreamFilter *' from
'const AVBitStreamFilter *' (aka 'const struct AVBitStreamFilter *') discards qualifiers
[-Wincompatible-pointer-types-discards-qualifiers]
ctx->filter = bsf;
^ ~~~
libavcodec/bitstream_filter.c:133:14: warning: assigning to 'uint8_t *' (aka 'unsigned char *') from
'const uint8_t *' (aka 'const unsigned char *') discards qualifiers
[-Wincompatible-pointer-types-discards-qualifiers]
pkt.data = buf;
^ ~~~
3 warnings generated.
libavcodec/g726.c:157:23: warning: unused function 'quant' [-Wunused-function]
static inline uint8_t quant(G726Context* c, int d)
^
1 warning generated.
libavcodec/h264_refs.c:371:13: warning: variable 'i' is used uninitialized whenever switch default is taken
[-Wsometimes-uninitialized]
default:
^~~~~~~
libavcodec/h264_refs.c:375:17: note: uninitialized use occurs here
if (i < 0) {
^
libavcodec/h264_refs.c:314:18: note: initialize the variable 'i' to silence this warning
int i;
^
= 0
1 warning generated.
libavcodec/mpegvideo_enc.c:1400:11: warning: 'avcodec_encode_video2' is deprecated [-Wdeprecated-declarations]
ret = avcodec_encode_video2(c, &pkt, frame, &got_output);
^
libavcodec/avcodec.h:5271:5: note: 'avcodec_encode_video2' has been explicitly marked deprecated here
int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,
^
libavcodec/mpegvideo_enc.c:2868:31: warning: variable 'pred_x' is uninitialized when used here [-Wuninitialized]
bytestream_put_byte(&ptr, pred_x); /* hmv1 */
^~~~~~
libavcodec/mpegvideo_enc.c:2861:15: note: initialize the variable 'pred_x' to silence this warning
int pred_x, pred_y;
^
= 0
libavcodec/mpegvideo_enc.c:2869:31: warning: variable 'pred_y' is uninitialized when used here [-Wuninitialized]
bytestream_put_byte(&ptr, pred_y); /* vmv1 */
^~~~~~
libavcodec/mpegvideo_enc.c:2861:23: note: initialize the variable 'pred_y' to silence this warning
int pred_x, pred_y;
^
= 0
libavcodec/pcm.c:34:20: warning: unused function 'pcm_encode_init' [-Wunused-function]
static av_cold int pcm_encode_init(AVCodecContext *avctx)
^
libavcodec/pcm.c:83:12: warning: unused function 'pcm_encode_frame' [-Wunused-function]
static int pcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
^
2 warnings generated.
3 warnings generated.
libavcodec/smvjpegdec.c:158:15: warning: 'avcodec_decode_video2' is deprecated [-Wdeprecated-declarations]
ret = avcodec_decode_video2(s->avctx, mjpeg_data, &s->mjpeg_data_size, avpkt);
^
libavcodec/avcodec.h:4763:5: note: 'avcodec_decode_video2' has been explicitly marked deprecated here
int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
^
1 warning generated.
libavcodec/sonic.c:160:19: warning: unused function 'intlist_write' [-Wunused-function]
static inline int intlist_write(RangeCoder *c, uint8_t *state, int *buf, int entries, int base_2_part)
^
1 warning generated.
libavcodec/svq3.c:618:29: warning: unused function 'dctcoef_get' [-Wunused-function]
static av_always_inline int dctcoef_get(int16_t *mb, int index)
^
libavcodec/tdsc.c:354:11: warning: 'avcodec_decode_video2' is deprecated [-Wdeprecated-declarations]
ret = avcodec_decode_video2(ctx->jpeg_avctx, ctx->jpgframe,
^
libavcodec/avcodec.h:4763:5: note: 'avcodec_decode_video2' has been explicitly marked deprecated here
int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
^
1 warning generated.
1 warning generated.
libavcodec/utils.c:2205:26: warning: assigning to 'AVPacket *' (aka 'struct AVPacket *') from 'const AVPacket *'
(aka 'const struct AVPacket *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
avctx->internal->pkt = avpkt;
^ ~~~~~
libavcodec/utils.c:2206:37: warning: passing 'const AVPacket *' (aka 'const struct AVPacket *') to parameter of
type 'AVPacket *' (aka 'struct AVPacket *') discards qualifiers
[-Wincompatible-pointer-types-discards-qualifiers]
ret = apply_param_change(avctx, avpkt);
^~~~~
libavcodec/utils.c:2056:64: note: passing argument to parameter 'avpkt' here
static int apply_param_change(AVCodecContext *avctx, AVPacket *avpkt)
^
libavcodec/utils.c:2734:15: warning: 'avcodec_decode_video2' is deprecated [-Wdeprecated-declarations]
ret = avcodec_decode_video2(avctx, avctx->internal->buffer_frame,
^
libavcodec/utils.c:2180:25: note: 'avcodec_decode_video2' has been explicitly marked deprecated here
int attribute_align_arg avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
^
libavcodec/utils.c:2739:15: warning: 'avcodec_decode_audio4' is deprecated [-Wdeprecated-declarations]
ret = avcodec_decode_audio4(avctx, avctx->internal->buffer_frame,
^
libavcodec/utils.c:2281:25: note: 'avcodec_decode_audio4' has been explicitly marked deprecated here
int attribute_align_arg avcodec_decode_audio4(AVCodecContext *avctx,
^
libavcodec/utils.c:2875:15: warning: 'avcodec_encode_video2' is deprecated [-Wdeprecated-declarations]
ret = avcodec_encode_video2(avctx, avctx->internal->buffer_pkt,
^
libavcodec/utils.c:1922:25: note: 'avcodec_encode_video2' has been explicitly marked deprecated here
int attribute_align_arg avcodec_encode_video2(AVCodecContext *avctx,
^
libavcodec/utils.c:2878:15: warning: 'avcodec_encode_audio2' is deprecated [-Wdeprecated-declarations]
ret = avcodec_encode_audio2(avctx, avctx->internal->buffer_pkt,
^
libavcodec/utils.c:1776:25: note: 'avcodec_encode_audio2' has been explicitly marked deprecated here
int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx,
^
6 warnings generated.
libavcodec/x86/h264_qpel.c:388:1: warning: unused function 'ff_avg_h264_qpel8or16_hv1_lowpass_mmxext'
[-Wunused-function]
QPEL_H264(avg_, AVG_MMXEXT_OP, mmxext)
^
libavcodec/x86/h264_qpel.c:94:30: note: expanded from macro 'QPEL_H264'
static av_always_inline void ff_ ## OPNAME ## h264_qpel8or16_hv1_lowpass_ ## MMX(int16_t *tmp, const uint8...
^
<scratch space>:47:1: note: expanded from here
ff_avg_h264_qpel8or16_hv1_lowpass_mmxext
^
1 warning generated.
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: input object file stripped: /Projets/VLCKit-master-bfdcee6c3ccc7666e42091ea1b2f39903e775781/MobileVLCKit/ImportedSources/vlc/contrib/iPhoneSimulator-i386/ffmpeg/libavcodec/x86/proresdsp.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: input object file stripped: /Projets/VLCKit-master-bfdcee6c3ccc7666e42091ea1b2f39903e775781/MobileVLCKit/ImportedSources/vlc/contrib/iPhoneSimulator-i386/ffmpeg/libavcodec/x86/simple_idct10.o
libswscale/input.c:944:1: warning: unused function 'planar_rgb9le_to_a' [-Wunused-function]
rgb9plus_planar_funcs(9)
^
libswscale/input.c:941:5: note: expanded from macro 'rgb9plus_planar_funcs'
rgb9plus_planar_funcs_endian(nbits, le, 0) \
^
libswscale/input.c:929:13: note: expanded from macro 'rgb9plus_planar_funcs_endian'
static void planar_rgb##nbits##endian_name##_to_a(uint8_t *dst, const uint8_t *src[4], \
^
<scratch space>:161:1: note: expanded from here
planar_rgb9le_to_a
^
libswscale/input.c:944:1: warning: unused function 'planar_rgb9be_to_a' [-Wunused-function]
libswscale/input.c:942:5: note: expanded from macro 'rgb9plus_planar_funcs'
rgb9plus_planar_funcs_endian(nbits, be, 1)
^
libswscale/input.c:929:13: note: expanded from macro 'rgb9plus_planar_funcs_endian'
static void planar_rgb##nbits##endian_name##_to_a(uint8_t *dst, const uint8_t *src[4], \
^
<scratch space>:170:1: note: expanded from here
planar_rgb9be_to_a
^
libswscale/input.c:947:1: warning: unused function 'planar_rgb14le_to_a' [-Wunused-function]
rgb9plus_planar_funcs(14)
^
libswscale/input.c:941:5: note: expanded from macro 'rgb9plus_planar_funcs'
rgb9plus_planar_funcs_endian(nbits, le, 0) \
^
libswscale/input.c:929:13: note: expanded from macro 'rgb9plus_planar_funcs_endian'
static void planar_rgb##nbits##endian_name##_to_a(uint8_t *dst, const uint8_t *src[4], \
^
<scratch space>:215:1: note: expanded from here
planar_rgb14le_to_a
^
libswscale/input.c:947:1: warning: unused function 'planar_rgb14be_to_a' [-Wunused-function]
libswscale/input.c:942:5: note: expanded from macro 'rgb9plus_planar_funcs'
rgb9plus_planar_funcs_endian(nbits, be, 1)
^
libswscale/input.c:929:13: note: expanded from macro 'rgb9plus_planar_funcs_endian'
static void planar_rgb##nbits##endian_name##_to_a(uint8_t *dst, const uint8_t *src[4], \
^
<scratch space>:224:1: note: expanded from here
planar_rgb14be_to_a
^
4 warnings generated.
libswscale/slice.c:178:56: warning: assigning to 'uint8_t *' (aka 'unsigned char *') from 'const uint8_t *'
(aka 'const unsigned char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
s->plane[i].line[start[i] - first + j] = src_[i] + j * stride[i];
^ ~~~~~~~~~~~~~~~~~~~~~~~~
libswscale/slice.c:184:37: warning: assigning to 'uint8_t *' (aka 'unsigned char *') from 'const uint8_t *'
(aka 'const unsigned char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
s->plane[i].line[j] = src_[i] + j * stride[i];
^ ~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libavcodec/libavcodec.a(hevc_mc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libavcodec/libavcodec.a(proresdsp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libavcodec/libavcodec.a(simple_idct10.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libavcodec/libavcodec.a(hevc_mc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libavcodec/libavcodec.a(proresdsp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libavcodec/libavcodec.a(simple_idct10.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Projets/VLCKit-master-bfdcee6c3ccc7666e42091ea1b2f39903e775781/MobileVLCKit/ImportedSources/vlc/contrib/iPhone-i386-apple-darwin11-i386/lib/libavcodec.a(hevc_mc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Projets/VLCKit-master-bfdcee6c3ccc7666e42091ea1b2f39903e775781/MobileVLCKit/ImportedSources/vlc/contrib/iPhone-i386-apple-darwin11-i386/lib/libavcodec.a(proresdsp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Projets/VLCKit-master-bfdcee6c3ccc7666e42091ea1b2f39903e775781/MobileVLCKit/ImportedSources/vlc/contrib/iPhone-i386-apple-darwin11-i386/lib/libavcodec.a(simple_idct10.o) has no symbols
[info] Bootstraping vlc
/Projets/VLCKit-master-bfdcee6c3ccc7666e42091ea1b2f39903e775781/MobileVLCKit/ImportedSources/vlc/extras/package/ios
[info] VLCROOT = /Projets/VLCKit-master-bfdcee6c3ccc7666e42091ea1b2f39903e775781/MobileVLCKit/ImportedSources/vlc
[info] Bootstraping vlc finished
[info] >> --prefix=/Projets/VLCKit-master-bfdcee6c3ccc7666e42091ea1b2f39903e775781/MobileVLCKit/ImportedSources/vlc/install-ios-iPhoneSimulator/i386 --host=i386-apple-darwin11
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
configure: WARNING: No package 'dbus-1' found.
configure: WARNING: No package 'libsystemd' found.
configure: WARNING: No package 'live555' found.
configure: WARNING: Library libdc1394-2 >= 2.1.0 needed for dc1394 was not found
configure: WARNING: Library libraw1394 >= 2.0.1 libavc1394 >= 0.5.3 needed for dv1394 was not found
configure: WARNING: Library opencv > 2.0 needed for opencv was not found
configure: WARNING: Library smbclient needed for smbclient was not found
configure: WARNING: Blackmagic DeckLink SDI include files not found
configure: WARNING: Library libvncclient >= 0.9.9 needed for vnc was not found
configure: WARNING: Library freerdp >= 1.0.1 needed for freerdp was not found
configure: WARNING: No package 'libsidplay2' found (required for sid).
configure: WARNING: Library shout >= 2.1 needed for shout was not found
configure: WARNING: Library shine >= 3.0.0 needed for shine was not found
configure: WARNING: No package 'gstreamer-app-1.0' found. GStreamer modules will not be built.
configure: WARNING: VideoDecodeAcceleration/VDADecoder.h not found
configure: WARNING: No package 'libpostproc' found.
configure: WARNING: Library twolame needed for twolame was not found
configure: WARNING: Library libdca >= 0.0.5 needed for dca was not found
configure: WARNING: Library libmpeg2 > 0.3.2 needed for libmpeg2 was not found
configure: WARNING: Library schroedinger-1.0 >= 1.0.10 needed for schroedinger was not found
configure: WARNING: Library x265 needed for x265 was not found
configure: WARNING: Library libmfx needed for mfx was not found
configure: WARNING: Library fluidlite needed for fluidlite was not found
configure: WARNING: Library aribb24 needed for aribsub was not found
configure: WARNING: Library aribb25 >= 0.2.6 needed for aribb25 was not found
configure: WARNING: Library kate >= 0.3.0 needed for kate was not found
configure: WARNING: No package 'sdl' found.
configure: WARNING: library fontconfig not found. Styles will be disabled in freetype
configure: WARNING: sapi.h not found. Text to Speech renderer for Windows disabled
configure: WARNING: Library librsvg-2.0 >= 2.9.0 needed for svg was not found
configure: WARNING: Library librsvg-2.0 >= 2.9.0 cairo >= 1.13.1 needed for svgdec was not found
configure: WARNING: Library caca >= 0.99.beta14 needed for caca was not found
configure: WARNING: Cannot find development headers for mmal...
configure: WARNING: Library samplerate needed for samplerate was not found
configure: WARNING: Library soxr >= 0.1.2 needed for soxr was not found
configure: WARNING: Library libchromaprint >= 0.6.0 needed for chromaprint was not found
configure: WARNING: Library protobuf-lite >= 2.5.0 needed for chromecast was not found
configure: WARNING: The skins2 module depends on the Qt interface, Qt is not built so skins2 is disabled.
configure: WARNING: No package 'libvsxu' found.
configure: WARNING: Library avahi-client >= 0.6 needed for avahi was not found
configure: WARNING: Library libudev >= 142 needed for udev was not found
configure: WARNING: Library libupnp needed for upnp was not found
configure: WARNING: Library libsecret-1 >= 0.18 needed for secret was not found
[info] Building libvlc
/Projets/VLCKit-master-bfdcee6c3ccc7666e42091ea1b2f39903e775781/MobileVLCKit/ImportedSources/vlc/compat/strverscmp.c:42:5: warning:
no previous prototype for function 'strverscmp' [-Wmissing-prototypes]
int strverscmp (const char *s1, const char *s2)
^
1 warning generated.
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: .libs/libcompat.a(dummy.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: .libs/libcompat.a(tdestroy.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: .libs/libcompat.a(dummy.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: .libs/libcompat.a(tdestroy.o) has no symbols
video: 811 entries
audio: 255 entries
spu: 47 entries
/Projets/VLCKit-master-bfdcee6c3ccc7666e42091ea1b2f39903e775781/MobileVLCKit/ImportedSources/vlc/src/misc/variables.c:340:52: warning:
missing field 'p_entries' initializer [-Wmissing-field-initializers]
p_var->value_callbacks = (callback_table_t){ 0 };
^
/Projets/VLCKit-master-bfdcee6c3ccc7666e42091ea1b2f39903e775781/MobileVLCKit/ImportedSources/vlc/src/misc/variables.c:793:25: warning:
unused parameter 'expected_type' [-Wunused-parameter]
int expected_type, vlc_value_t val )
^
/Projets/VLCKit-master-bfdcee6c3ccc7666e42091ea1b2f39903e775781/MobileVLCKit/ImportedSources/vlc/src/misc/variables.c:852:25: warning:
unused parameter 'expected_type' [-Wunused-parameter]
int expected_type, vlc_value_t *p_val )
^
/Projets/VLCKit-master-bfdcee6c3ccc7666e42091ea1b2f39903e775781/MobileVLCKit/ImportedSources/vlc/src/misc/objects.c:299:36: error:
controlling expression type 'const struct vlc_common_members' not compatible with any generic association
type
vlc_object_internals_t *priv = vlc_internals(obj);
^~~~~~~~~~~~~~~~~~
/Projets/VLCKit-master-bfdcee6c3ccc7666e42091ea1b2f39903e775781/MobileVLCKit/ImportedSources/vlc/src/misc/variables.h:53:59: note:
expanded from macro 'vlc_internals'
# define vlc_internals( obj ) (((vlc_object_internals_t*)(VLC_OBJECT(obj)))-1)
^~~~~~~~~~~~~~~
/Projets/VLCKit-master-bfdcee6c3ccc7666e42091ea1b2f39903e775781/MobileVLCKit/ImportedSources/vlc/include/vlc_common.h:478:14: note:
expanded from macro 'VLC_OBJECT'
_Generic((x)->obj, \
^~~~~~~~
1 error generated.
make[3]: *** [misc/objects.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
3 warnings generated.
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
[info] building universal static libs for OS style iPhone
./buildMobileVLCKit.sh: line 44: pushd: MobileVLCKit/ImportedSources/vlc/install-ios-iPhoneOS: No such file or directory
I already tried the solution of this question but still not working.
By not working i mean, after installing the framework, i compile a project and its failed "MobileVLCKit/MobileVLCKit.h file not found" or :
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Projets/VLCKit-master-bfdcee6c3ccc7666e42091ea1b2f39903e775781/MobileVLCKit/ImportedSources/vlc/install-ios-iPhone/core/libcompat.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Projets/VLCKit-master-bfdcee6c3ccc7666e42091ea1b2f39903e775781/MobileVLCKit/ImportedSources/vlc/install-ios-iPhone/core/libvlc.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Projets/VLCKit-master-bfdcee6c3ccc7666e42091ea1b2f39903e775781/MobileVLCKit/ImportedSources/vlc/install-ios-iPhone/core/libvlccore.a (No such file or directory)
Did someone success installing VLCKit ?
Thanks in advance!!
You need to read the documentation on how to compile MobileVLCKit using the provided build script. It is not a matter of simply opening the project in Xcode and running it.
Additionally, since compile MobileVLCKit is not simple unless you are used to linux-style compilation systems, consider using a cocoapod.
I want to reinstall my ruby on rails environment, but it failed.
I work on Mac OS X 10.9.2, using Ruby 2.1.2, Apple LLVM version 5.1 (clang-503.0.40)
I want to run:
gem install eventmachine -v '1.0.3'
But I get:
Building native extensions. This could take a while...
ERROR: Error installing eventmachine:
ERROR: Failed to build gem native extension.
/Users/nm/.rbenv/versions/2.1.2/bin/ruby extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... yes
checking for inotify_init() in sys/inotify.h... no
checking for __NR_inotify_init in sys/syscall.h... no
checking for writev() in sys/uio.h... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_enable_interrupt()... no
checking for rb_time_new()... yes
checking for sys/event.h... yes
checking for sys/queue.h... yes
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling binder.cpp
compiling cmain.cpp
compiling ed.cpp
ed.cpp:987:18: warning: variable length arrays are a C99 feature [-Wvla-extension]
struct iovec iov[ iovcnt ];
^
1 warning generated.
compiling em.cpp
em.cpp:75:2: warning: field 'LoopBreakerWriter' will be initialized after field 'NumCloseScheduled' [-Wreorder]
LoopBreakerWriter (-1),
^
em.cpp:822:2: warning: 'rb_thread_blocking_region' is deprecated [-Wdeprecated-declarations]
rb_thread_blocking_region (_SelectDataSelect, (void*)this, RUBY_UBF_IO, 0);
^
/Users/nm/.rbenv/versions/2.1.2/include/ruby-2.1.0/ruby/intern.h:870:18: note: 'rb_thread_blocking_region' declared here
DEPRECATED(VALUE rb_thread_blocking_region(rb_blocking_function_t *func, void *data1,
^
/Users/nm/.rbenv/versions/2.1.2/include/ruby-2.1.0/x86_64-darwin13.0/ruby/config.h:114:52: note: expanded from macro 'DEPRECATED'
#define DEPRECATED(x) __attribute__ ((deprecated)) x
^
em.cpp:946:6: warning: 'rb_thread_select' is deprecated [-Wdeprecated-declarations]
EmSelect (0, NULL, NULL, NULL, &tv);
^
./em.h:25:20: note: expanded from macro 'EmSelect'
#define EmSelect rb_thread_select
^
/Users/nm/.rbenv/versions/2.1.2/include/ruby-2.1.0/ruby/intern.h:440:16: note: 'rb_thread_select' declared here
DEPRECATED(int rb_thread_select(int, fd_set *, fd_set *, fd_set *, struct timeval *));
^
/Users/nm/.rbenv/versions/2.1.2/include/ruby-2.1.0/x86_64-darwin13.0/ruby/config.h:114:52: note: expanded from macro 'DEPRECATED'
#define DEPRECATED(x) __attribute__ ((deprecated)) x
^
em.cpp:1109:40: error: invalid operands to binary expression ('__bind<int &, sockaddr *&, int &>' and 'int')
if (bind (sd, bind_to, bind_to_size) < 0) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
em.cpp:1522:6: error: value of type '__bind<int &, sockaddr *&, int &>' is not contextually convertible to 'bool'
if (bind (sd_accept, bind_here, bind_size)) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
em.cpp:1600:53: error: invalid operands to binary expression ('__bind<int &, sockaddr *, unsigned long>' and 'int')
if (bind (sd, (struct sockaddr*)&sin, sizeof(sin)) != 0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
em.cpp:1869:6: error: value of type '__bind<int &, sockaddr *, unsigned long>' is not contextually convertible to 'bool'
if (bind (sd_accept, (struct sockaddr*)&s_sun, sizeof(s_sun))) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from em.cpp:23:
In file included from ./project.h:150:
./em.h:189:12: warning: private field 'NextHeartbeatTime' is not used [-Wunused-private-field]
uint64_t NextHeartbeatTime;
^
./em.h:221:22: warning: private field 'inotify' is not used [-Wunused-private-field]
InotifyDescriptor *inotify; // pollable descriptor for our inotify instance
^
5 warnings and 4 errors generated.
make: *** [em.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/nm/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.3 for inspection.
Results logged to /Users/nm/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0-static/eventmachine-1.0.3/gem_make.out
When I install version 1.0.1 or 1.0.2, I will get some similar errors.
Someone can tell me why? thanks.
From the docs it looks like eventmachine does not yet support Ruby 2+
EventMachine supports Ruby 1.8.7, 1.9.2, REE, JRuby and works well on
Windows as well as many operating systems from the Unix family (Linux,
Mac OS X, BSD flavors).
When running gem install bdb I get the following error:
Error installing bdb:
ERROR: Failed to build gem native extension.
Anyone know where I can find the bdb library for Mac OS X?
Full error:
Building native extensions. This could take a while...
ERROR: Error installing bdb:
ERROR: Failed to build gem native extension.
...
checking for db_version() in -ldb-5.1... yes
Writing bdb_aux._c (defines), this takes a while
don't know how to handle DB_DEGREE_2 DB_READ_COMMITTED, guessing UINT
don't know how to handle DB_DIRTY_READ DB_READ_UNCOMMITTED, guessing UINT
don't know how to handle DB_HEAP_RID_SZ (sizeof(db_pgno_t) + sizeof(db_indx_t)), guessing UINT
wrote 491 defines
creating Makefile
make
...
bdb.c:84:1: warning: "eDbE_create" redefined
bdb.c:50:1: warning: this is the location of the previous definition
bdb.c: In function ‘assoc_rescue’:
bdb.c:1200: warning: format not a string literal and no format arguments
bdb.c: In function ‘assoc_callback’:
bdb.c:1248: warning: comparison between signed and unsigned
bdb.c:1249: warning: pointer of type ‘void *’ used in arithmetic
bdb.c: In function ‘env_set_cachesize’:
bdb.c:1830: warning: implicit conversion shortens 64-bit value into a 32-bit value
bdb.c:1831: warning: implicit conversion shortens 64-bit value into a 32-bit value
bdb.c: In function ‘env_txn_stat’:
bdb.c:2299: warning: comparison between signed and unsigned
bdb.c: In function ‘env_repmgr_set_local_site’:
bdb.c:3005: error: ‘DB_ENV’ has no member named ‘repmgr_set_local_site’
bdb.c: In function ‘env_repmgr_add_remote_site’:
bdb.c:3024: error: ‘DB_ENV’ has no member named ‘repmgr_add_remote_site’
bdb.c:3331:1: warning: "eDbE_create" redefined
bdb.c:84:1: warning: this is the location of the previous definition
bdb.c:3424:1: warning: "ENV_LOG_CONFIG_FUNC" redefined
bdb.c:2533:1: warning: this is the location of the previous definition
make: *** [bdb.o] Error 1
Did you see the instructions on the bdb page?
As a Gem
At the moment this library is not available on RubyForge. To install
it as a gem, do the following:
[sudo] gem install bdb
For Berkeley DB v4.7 installed from MacPorts do
the following:
[sudo] env ARCHFLAGS="-arch i386" gem install bdb This assumes you're
on OS X and BerkeleyDB wasn't compiled as a universal binary.
So it looks like you need to install berkeley db via macports/brew to get the Gem to install.