c++ - sdl2-config executable not found when running makefile in netbeans -


when calling sdl2-config --cflags command line results expect. works when using in makefile , calling command line.

when use same makefile in netbeans, make: sdl2-config: command not found

is there environment setting i'm missing netbeans?

here relevant line in makefile:

sdl := $(shell sdl2-config --cflags) 

i using sdl2 installed via homebrew on mac

[edit] adding path executable seems work:

sdl := $(shell /usr/local/bin/sdl2-config --cflags) 

how set environment include path without hard-coding makefile?

i answer in case else comes across problem:

this osx related. applications (netbeans in case) not executed environment variables have been set in shell. added following ~/.bash_profile:

launchctl setenv path $path 

then, after logging out , in, path environment variable set whenever launching application.

maybe saves few hours...


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -