Home » Extra libraries, Code snippets, applications etc. » OS Problems etc., Win32, POSIX, MacOS, FreeBSD, X11 etc » Link error on Linux
Re: Link error on Linux [message #16295 is a reply to message #16263] |
Fri, 06 June 2008 15:06 |
|
tojocky wrote on Thu, 05 June 2008 03:58 | I tried to build an simple gui application on ArchLinux x86-64, have following error:
Quote: | ----- Core ( GUI GCC LINUX ) (7 / 9)
----- plugin\png ( GUI GCC LINUX ) (8 / 9)
----- Button ( GUI MAIN GCC LINUX ) (9 / 9)
Linking...
/usr/bin/ld: cannot find -lgtk-x11-2.0
collect2: ld returned 1 exit status
There were errors. (0:00.18)
|
what type of package i do not installed?
Thank you!
|
This is because Archlinux gtk package do not contain static libraries. What you should do is to use ABS -> go to var/abs/extra/gtk2 and modify pkgbuild file. --with-static (if I remember well (try configure --help)) option is missing. Add it and run makepkg. After a long while package should be created with *.a files inside. You can install this package with packman or just copy all *.a files to usr/lib directory. I will make better description on upp wiki pages.
|
|
|
Goto Forum:
Current Time: Tue May 14 19:18:57 CEST 2024
Total time taken to generate the page: 0.03345 seconds
|