- Project Properties
Open Netbeans Project Properties
Select / create new remote build host
If mysql is used add include directory
Set linker settings
add mysql compiler helper options`mysql_config --cflags --libs​`
notice the back ticks (`) rather than (‘) apostrophe. Which denote commands that are to be executed by the shell separately (but before) the rest of the command that was issued.