Giter VIP home page Giter VIP logo

Comments (3)

ligoofing avatar ligoofing commented on June 9, 2024 1

但是我使用下面配置 ,不可以推流到服务器(youtube直播)
compile project(':rtmplive')
使用下面配置,可以推流到服务器(youtube直播)
compile 'com.blueberry:rtmplive:0.1.0'

from livestream.

blueberryCoder avatar blueberryCoder commented on June 9, 2024

代码我全部提交了的。

from livestream.

q46321 avatar q46321 commented on June 9, 2024

直接 compile project(':rtmplive') 编译有问题,附上log

In file included from /Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/Rtmp.cpp:5:
/Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/rtmp.h:17:10: warning: non-portable path to file '"Rtmp.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include "rtmp.h"
^~~~~~~~
"Rtmp.h"
/Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/Rtmp.cpp:35:41: error: use of undeclared identifier 'malloc'
RTMPPacket *packet = (RTMPPacket *) malloc(RTMP_HEAD_SIZE + 1024);
^
/Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/Rtmp.cpp:84:5: error: use of undeclared identifier 'free'
free(packet);
^
/Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/Rtmp.cpp:97:13: warning: expression result unused [-Wunused-value]
len - 3;
~~~ ^ ~
/Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/Rtmp.cpp:102:41: error: use of undeclared identifier 'malloc'
RTMPPacket *packet = (RTMPPacket *) malloc(RTMP_HEAD_SIZE + len + 9);
^
/Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/Rtmp.cpp:141:5: error: use of undeclared identifier 'free'
free(packet);
^
/Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/Rtmp.cpp:150:29: error: use of undeclared identifier 'malloc'
packet = (RTMPPacket *) malloc(RTMP_HEAD_SIZE + len + 2);
^
/Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/Rtmp.cpp:171:5: error: use of undeclared identifier 'free'
free(packet);
^
/Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/Rtmp.cpp:182:33: error: use of undeclared identifier 'malloc'
packet = (RTMPPacket *) malloc(RTMP_HEAD_SIZE + len + 2);
^
/Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/Rtmp.cpp:203:9: error: use of undeclared identifier 'free'
free(packet);
^
2 warnings and 8 errors generated.
In file included from /Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/publish_jni.cpp:3:
/Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/rtmp.h:17:10: warning: non-portable path to file '"Rtmp.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include "rtmp.h"
^~~~~~~~
"Rtmp.h"
1 warning generated.
ninja: build stopped: subcommand failed.

希望得到您的解答,感谢

from livestream.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.