The concept of MacOS "frameworks" doesn't exist outside of the Mac platform.

I *think* in your case you can just remove all -framework command line 
options when compiling for emscripten. I think those 
are dependencies required by the macOS port of SDL2, and when compiling on 
emscripten it should be sufficient to just link with SDL2.

On Tuesday, 5 November 2019 02:04:53 UTC+1, Daniel Luu wrote:
>
> Trying to port an application on mac and not sure how to correctly support 
> -framework with CMAKE_CXX_FLAGS
>
>     SET(CMAKE_CXX_FLAGS "-O3 -flto=full -ffast-math -DNDEBUG -std=c++17 
> -fcolor-diagnostics -nostdinc++ 
> -I/usr/local/Cellar/llvm/9.0.0/include/c++/v1 
> -L/usr/local/Cellar/llvm/9.0.0/lib -L/usr/local/Cellar/freeglut/3.0.0/lib 
> -L/usr/local/Cellar/sdl2/2.0.10/lib 
> -L/usr/local/Cellar/sdl2_mixer/2.0.4/lib 
> -Wl,-rpath,/usr/local/Cellar/llvm/9.0.0/lib -pipe -DASIO_STANDALONE 
> -DGLEW_NO_GLU -DBOOST_BIMAP_DISABLE_SERIALIZATION -framework OpenGL 
> -framework Cocoa -framework IOKit -framework CoreVideo -lglut -lSDL2 
> -lSDL2_mixer -ldl -pthread -Wall -Wextra -Wshadow -Wpointer-arith 
> -Wcast-align -Wstrict-prototypes -Werror-implicit-function-declaration 
> -Wformat=2 -Wnull-dereference -Wstrict-overflow=5 -Wno-unused-private-field 
> -Wno-unused-command-line-argument -Wno-narrowing")
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/5ac9b5dc-92de-4be6-913e-abd818b81c49%40googlegroups.com.

Reply via email to