Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

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.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Is there a working U++ [Free]BSD port?
Next Topic: GCC code size optimizations on ARM - GNU/Linux - uClibC
Goto Forum:
  


Current Time: Tue May 14 19:18:57 CEST 2024

Total time taken to generate the page: 0.03345 seconds