Code Monkey home page Code Monkey logo

Comments (3)

rarest avatar rarest commented on July 24, 2024 1

@CainKernel 我把pushlibrary module下的CmakeLists.txt里买呢的CMAKE_CXX_FLAGS里面 -DEXPORT="" 删除就ok,或者pusher 改成STATIC也OK,请教下这是什么原因?

from caincamera.

CainKernel avatar CainKernel commented on July 24, 2024

我手上没有Mac电脑,无法做测试。看log似乎是pushlibrary的CmakeLists.txt 中CPP文件路径对不上的原因,找不到输入文件。你先把这个module注释掉吧。RTMP推流部分的代码,你可以暂时去掉,这个module的代码只在Camera的测试页面的推流有用到,去掉不影响Camera 的功能。或者,你想保留pushlibrary的话,看看CmakeLists.txt 中的源码中的路径是否跟目录对得上。我这边windows 和Linux环境下都是正常运行。另外一个问题就是,你检查一下是否导入AS工程的时候,导入的时CainCamera还是里面的camera module,直接导入CainCamera 目录也不对的,CainCamera里面还有一个VideoPlayer工程,是用来编写测试基于FFmpeg播放器的,如果直接导入CainCamera目录,这个也会出现类似的问题。你从这些方面入手看看能不能编译通过。

from caincamera.

CainKernel avatar CainKernel commented on July 24, 2024

这个是设置了CXX的标志,是polarssl中移植过来的:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -fpermissive -std=c++11 -D__STDC_CONSTANT_MACROS -DFIXED_POINT -DUSE_KISS_FFT -DEXPORT="" -UHAVE_CONFIG_H ")
看着像是 双引号的识别问题。双引号里面插入了双引号,不同环境,不同Cmake版本估计会有些差异吧。你可以尝试着将 -DEXPORT="" 变成 -DEXPORT="" 试试。

from caincamera.

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.