GithubHelp home page GithubHelp logo

centos: 编译错误 about noahgameframe HOT 9 CLOSED

ketoo avatar ketoo commented on May 3, 2024
centos: 编译错误

from noahgameframe.

Comments (9)

ketoo avatar ketoo commented on May 3, 2024

centos, 我没试过,我一般ubuntu。你ubuntu试试?

from noahgameframe.

ketoo avatar ketoo commented on May 3, 2024

‘bufferevent_get_max_to_read’ was not declared in this scope 看这个情形应该是没找到libevent

from noahgameframe.

HelloKevinTian avatar HelloKevinTian commented on May 3, 2024

我在网上重新下载的libevent、protobuf、Theron才编译过了,‘evhttp_connection_base_bufferevent_new’这个貌似是libevent2.1版本新加的函数,2.0.55里面没有,您的代码里的文件格式我这里总是不识别,所以只能重新下载依赖库了。

from noahgameframe.

HelloKevinTian avatar HelloKevinTian commented on May 3, 2024

还有“clock_gettime”的编译报错 我在 NFComm/NFNetPlugin/CMakeLists.txt中修改如下 加入了rt库引入,才解决了undefined reference to 'clock_gettime'

   if (CMAKE_BUILD_TYPE MATCHES "Release")
        target_link_libraries(NFNetPlugin libevent.a rt)
        target_link_libraries(NFNetPlugin libevent_core.a rt)
        target_link_libraries(NFNetPlugin libprotobuf.so rt)
    else()
        target_link_libraries(NFNetPlugin libevent.a rt)
        target_link_libraries(NFNetPlugin libevent_core.a rt)
        target_link_libraries(NFNetPlugin libprotobuf.so rt)
    endif()

from noahgameframe.

ketoo avatar ketoo commented on May 3, 2024

对,libevent是2.18吧。

from noahgameframe.

fnstanc avatar fnstanc commented on May 3, 2024

libevent2.18依赖aclocal1.15,centos7源的automake只提供1.13的,要自行下载一个高版本的automake

from noahgameframe.

xinst avatar xinst commented on May 3, 2024

@HelloKevinTian
欢迎你将遇到的问题,及解决办法加入到NF代码里,或者论坛里也可以

from noahgameframe.

ketoo avatar ketoo commented on May 3, 2024

run: autoreconf -f -i

reference website:https://stackoverflow.com/questions/33278928/how-to-overcome-aclocal-1-15-is-missing-on-your-system-warning-when-compilin

from noahgameframe.

ketoo avatar ketoo commented on May 3, 2024

brew install automake # for Mac
apt-get install automake # for Ubuntu

from noahgameframe.

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.