View Single Post
Old 08 March 2021, 08:46   #2
FrodeSolheim
FS-UAE Developer
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 40
Posts: 3,860
/opt/homebrew/include/SDL2
is not a valid compiler argument (and neither is
/opt/homebrew/lib
a valid link argument). If you want do it this way, you need to use
SDL2_CFLAGS="-I/opt/homebrew/include/SDL2"
(etc).

However, this is not the best way to do that. Instead, you can probably do
Code:
export PKG_CONFIG_PATH=/opt/homebrew/lib/pkgconfig
before running configure, so that the `pkg-config` program finds your SDL2 installation and spits out the correct compiler and linker option for you.

(Perhaps also try referring to the Homebrew docs for other tips about how to use Homebrew libraries when compiling other software? I'm assuming that exists...)
FrodeSolheim is offline  
 
Page generated in 0.04570 seconds with 11 queries