Then i got the error /usr/bin/ld: cannot find -lpanel after performing make.
This means that you are missing a library that the application needs in order to compile.
I. e. in the /usr/local/ib -OR- /usr/lib directories on your system, you need to have a file called
in order for the linked to find it and link it to your program.
Most likely you have a simple missing dependency situation - check the site or documentation for the application you are trying to compile. It can be that the person who wrote the configure script forgot to include the "panel" library depency, or the check they did put it misfires on something else in your setup so that the script "thinks" that "panel" is present.
Find and install the missing library you apparently need, and try to recompile.