Jump to content
  • 0

No rule to make target OBJDIR compile source game



  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

3 answers to this question

Recommended Posts

  • 0
  • Contributor
11 hours ago, banuliciraul123 said:

I fixed that,i have this : usr/local/bin/ld -lmysqlclient , and i have these files..


By default you have something like this in your MakeFile:

ifeq ($(BSD_VERSION), 7)
INCDIR += -I../../libmysql/7.x-5.1.35
LIBDIR += -L../../libmysql/7.x-5.1.35
INCDIR += -I../../libmysql/5.x-5.1.35
LIBDIR += -L../../libmysql/5.x-5.1.35

LIBS += -lmysqlclient -lz

This means it will lokk for libmysqlclient.a in ../../libmysql/5.x-5.1.35/libmysqlclient.a
(the ../ means one folder back, you probably knows it but anyway..)

Is the file there? Check your makefile because yours may reads from another location.

Also you can link it directly (I prefer that way), for example here's mine:

LIBS += ../../etc/libmysql/libmysqlclient.a /usr/lib/libz.a

I have that lib in ../../etc/libmysql/libmysqlclient.a

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.