Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question: Can it be compiled and run on centos7 #85

Closed
dean-river opened this issue Oct 14, 2022 · 9 comments
Closed

question: Can it be compiled and run on centos7 #85

dean-river opened this issue Oct 14, 2022 · 9 comments
Labels
Compatibility Compatibility Done Done

Comments

@dean-river
Copy link

dean-river commented Oct 14, 2022

hello,
I am very interested in the project,and want to write a live media server based on photonlibos, but most of our server‘s operating system is centso7,Upgrading the OS all is difficult.
Is it possible to compile and run on centos7 by downloading all the dependency librarys

@dean-river dean-river changed the title question: can it build on centos7 question: Can it be compiled and run on centos7 Oct 14, 2022
@beef9999
Copy link
Collaborator

Of course it's possible.

First I suggest using devtoolset to build photon because of the c++14 support. Personally I tried devtoolset-7 before and it worked.

Then you may find some trivial errors when compiling because the libcurl in centos 7 seems too old. You can comment out the CURLMOPT_MAX_TOTAL_CONNECTIONS in net/curl.cpp temporarily. ( We will submit a patch to solve it later... )

Then I believe nothing else has to be done.

@beef9999
Copy link
Collaborator

BTW I was planning to write a document about how to integrate Photon into users' existing CMake projects. We suggest the way of using CMake fetch_content, or subproject

@dean-river
Copy link
Author

Great! i'm trying devtoolset-8, And update libcurl manually。
but when i built Test (cmake3 .. -D BUILD_TESTING=1), I got this error

image

gmock-devel have installed

image

should i install the latest version off gmock and gtest gflags manually

@beef9999
Copy link
Collaborator

Yes, you should probably build gtest and gflags from source code, and install them into your machine.

@dean-river
Copy link
Author

OK, thanks

@beef9999
Copy link
Collaborator

beef9999 commented Oct 14, 2022

Looks like you are one of the members of the SRS community and you were using state-threads?

Would you like you chat a little bit about the cooperation? My email is on the homepage.

@dean-river
Copy link
Author

of course, why not.
I am using SRS for many years. And the most advantage of srs is simple, which benefit from using state-thread.

But i am not the main maintainer of srs. if you want to push srs replace state-threads by photon. you'd better talk about it with Winlin. I remember, he said in a live broadcast that he once tried to find a suitable coroutine-based network library to replace state-thread.

Now,as i know about photon and state-thread. The most advantage of photon is multi-thread and can migrate coroutine between multi-thread. this is the pain points of state-thread, which only support sigle-thread. I don't have a deep understanding of photon. Hope this feature will be stable, flexible and unlimited.

@beef9999
Copy link
Collaborator

Fixed by #86

@beef9999 beef9999 added Compatibility Compatibility Done Done labels Oct 17, 2022
@lihuiba lihuiba closed this as completed Nov 3, 2023
@lihuiba
Copy link
Collaborator

lihuiba commented Sep 17, 2024

#561

I'm writing a translation layer form st to photon, and it seems simple.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compatibility Compatibility Done Done
Projects
None yet
Development

No branches or pull requests

3 participants