obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
58.89k stars 7.84k forks source link

Can not build in Xcode after add QtNetwork #2481

Closed xp19870106 closed 4 years ago

xp19870106 commented 4 years ago

I used QtNetwork in OBS and added it to the cmakelist file under UI folder

find_package(Qt5Network REQUIRED)

target_link_libraries(obs
    libobs
    Qt5::Widgets
    Qt5::Network
    obs-frontend-api
    ${FFMPEG_LIBRARIES}
    ${LIBCURL_LIBRARIES}
    ${obs_PLATFORM_LIBRARIES})

but after I build it for xcode following the Guid https://github.com/obsproject/obs-studio/wiki/Using-Xcode I get the following error at step 5

'QtNetwork' file not found

Expected Behavior

Hope it can still be compiled in xcode after import qtnetwork

notr1ch commented 4 years ago

OBS does not use QtNetwork. If you are building your own version that requires it then it is up to you to resolve the appropriate dependencies.