Skip to content

Add rtti option #343

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

Merged
merged 8 commits into from
Apr 11, 2025
Merged

Add rtti option #343

merged 8 commits into from
Apr 11, 2025

Conversation

murat-dogan
Copy link
Owner

Solves #332

CMakeLists.txt Outdated
Comment on lines 50 to 74
add_library(${PROJECT_NAME} SHARED
src/cpp/rtc-wrapper.cpp
src/cpp/media-direction.cpp
src/cpp/media-rtcpreceivingsession-wrapper.cpp
src/cpp/media-track-wrapper.cpp
src/cpp/media-audio-wrapper.cpp
src/cpp/media-video-wrapper.cpp
src/cpp/data-channel-wrapper.cpp
src/cpp/peer-connection-wrapper.cpp
src/cpp/thread-safe-callback.cpp
src/cpp/web-socket-wrapper.cpp
src/cpp/web-socket-server-wrapper.cpp
src/cpp/main.cpp
${CMAKE_JS_SRC}
)

if(NOT NO_MEDIA)
target_sources(${PROJECT_NAME} PRIVATE
src/cpp/media-direction.cpp
src/cpp/media-rtcpreceivingsession-wrapper.cpp
src/cpp/media-track-wrapper.cpp
src/cpp/media-audio-wrapper.cpp
src/cpp/media-video-wrapper.cpp
)
endif()

if(NOT NO_WEBSOCKET)
target_sources(${PROJECT_NAME} PRIVATE
src/cpp/web-socket-wrapper.cpp
src/cpp/web-socket-server-wrapper.cpp
)
endif()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This update is giving error: 'napi.h' file not found

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for this part.
Actually, it is part of another PR but harmless.
error: 'napi.h' file not found when I see this error, I need to delete the build folder and re-compile the project.
So not related to here, I think.

Comment on lines +24 to +26
if (NOT CMAKE_SYSTEM_NAME STREQUAL "Windows")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -frtti")
endif()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's working on linux but getting the same error for intel mac architecture.

Screenshot 2025-03-18 at 5 51 18 PM

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, it is saying wrong architecture.
need x86 but have arm64.
It should not be related to this issue.

@akhileshthite
Copy link

@murat-dogan Hi, could you please publish a new release that includes the RTTI fix?

cc @achingbrain

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

Successfully merging this pull request may close these issues.

2 participants