/usr/bin/ld: cannot find -lsql

01/11/2017 19:02 Elias1121#1
hi
I have a problem
error in gmake
My english is very bad

linking ../game_r40250_lycan....
/usr/bin/ld: cannot find -lsql
gmake[1]: *** [../game_r40250_lycan] Error 1
gmake[1]: Leaving directory `/usr/src/0001894001484135070/empireworld2/game/src'
gmake: *** [game] Error 2

makefile

Code:
CC=gcc
CXX=g++

PLATFORM = $(shell file /bin/ls | cut -d' ' -f3 | cut -d'-' -f1)
BSD_VERSION = $(shell uname -v 2>&1 | cut -d' ' -f2 | cut -d'.' -f1)

default: libthecore libpoly libgame liblua libsql game db
 [MENTION=374979]echo[/MENTION] "--------------------------------------"
 [MENTION=374979]echo[/MENTION] "Build Done"
 [MENTION=374979]echo[/MENTION] "--------------------------------------"

liblua: .
	$(MAKE) -C $@ clean
	$(MAKE) -C $@

libsql: .
 [MENTION=316314]touch[/MENTION] $@/Depend
	$(MAKE) -C $@ dep
	$(MAKE) -C $@ clean
	$(MAKE) -C $@

libgame: .
 [MENTION=316314]touch[/MENTION] $@/src/Depend
	$(MAKE) -C $@/src dep
	$(MAKE) -C $@/src clean
	$(MAKE) -C $@/src

libpoly: .
 [MENTION=316314]touch[/MENTION] $@/Depend
	$(MAKE) -C $@ dep
	$(MAKE) -C $@ clean
	$(MAKE) -C $@ 

libthecore: .
 [MENTION=316314]touch[/MENTION] $@/src/Depend
	$(MAKE) -C $@/src dep
	$(MAKE) -C $@/src clean
	$(MAKE) -C $@/src

game: .
 [MENTION=316314]touch[/MENTION] $@/src/Depend
	$(MAKE) -C $@/src dep
	$(MAKE) -C $@/src

db: .
 [MENTION=316314]touch[/MENTION] $@/src/Depend
	$(MAKE) -C $@/src dep
	$(MAKE) -C $@/src

all: 
 [MENTION=374979]echo[/MENTION] "--------------------------------------"
 [MENTION=374979]echo[/MENTION] "Full Build Start"
 [MENTION=374979]echo[/MENTION] "--------------------------------------"

	$(MAKE) -C liblua clean
	$(MAKE) -C liblua

 [MENTION=316314]touch[/MENTION] libsql/Depend
	$(MAKE) -C libsql dep
	$(MAKE) -C libsql clean
	$(MAKE) -C libsql

 [MENTION=316314]touch[/MENTION] libgame/src/Depend
	$(MAKE) -C libgame/src dep
	$(MAKE) -C libgame/src clean
	$(MAKE) -C libgame/src

 [MENTION=316314]touch[/MENTION] libpoly/Depend
	$(MAKE) -C libpoly dep
	$(MAKE) -C libpoly clean
	$(MAKE) -C libpoly 

 [MENTION=316314]touch[/MENTION] libthecore/src/Depend
	$(MAKE) -C libthecore/src dep
	$(MAKE) -C libthecore/src clean
	$(MAKE) -C libthecore/src

 [MENTION=316314]touch[/MENTION] game/src/Depend
	$(MAKE) -C game/src dep
	$(MAKE) -C game/src

 [MENTION=316314]touch[/MENTION] db/src/Depend
	$(MAKE) -C db/src dep
	$(MAKE) -C db/src

 [MENTION=374979]echo[/MENTION] "--------------------------------------"
 [MENTION=374979]echo[/MENTION] "Full Build End"
 [MENTION=374979]echo[/MENTION] "--------------------------------------"

clean:
	$(MAKE) -C liblua clean
	$(MAKE) -C libsql clean
	$(MAKE) -C libgame/src clean
	$(MAKE) -C libpoly clean
	$(MAKE) -C libthecore/src clean