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
Link error on Linux [message #13814] Tue, 29 January 2008 02:39 Go to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Compiling examples with:
GUI NOGTK GCC FORCE_SPEED LINUX

first had link error, dl library wasn`t found. After some googling in WWW and in this forum, removed linking this library in Draw package. Then I have link error reporting that freetype library isn`t found. I searched available packages and installed everything containing freetype libs, but still no way to find it. After removing this library from list through Package organizer, I had numerous link errors where a number of libraries were not found: pthread, png, stdc++, ...

Exact original message was:
/usr/bin/ld: cannot find -lfreetype
collect2: ld returned 1 exit status


OS: Mandriva Linux 2007.1 Spring
U++: 2007.1

P.S. Removing NOGTK flak makes linking the same sorces without any problems. But I want to learn to be able to write non-GTK U++ stuff.

[Updated on: Tue, 29 January 2008 02:50]

Report message to a moderator

Re: Link error on Linux [message #13828 is a reply to message #13814] Tue, 29 January 2008 13:56 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13986
Registered: November 2005
Ultimate Member
Quote:


----- UWord ( GUI NOGTK MAIN GCC SHARED LINUX ) (11 / 11)
UWord.cpp
UWord: 1 file(s) built in (0:01.68), 1681 msecs / file, duration = 1778 msecs, parallelization 0%
Linking...
/home/mirek/upp/out/GCC.Gui.Nogtk.Shared/UWord (2529408 B) linked in (0:00.72)

OK. (2:20.59)



If you have not found a culprit yet, please activate "Setup/Verbose" and send the console log here....

Mirek
Re: Link error on Linux [message #13886 is a reply to message #13828] Thu, 31 January 2008 02:04 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Still the same error. Compiling theIDE with NOGTK flag. Got:

----- ide\Common ( GUI GCC LINUX ) (1 / 30)
cd /home/paul/upp/uppsrc/ide/Common
----- ide\LayDes ( GUI GCC LINUX ) (2 / 30)
cd /home/paul/upp/uppsrc/ide/LayDes
----- ide\IconDes ( GUI GCC LINUX ) (3 / 30)
cd /home/paul/upp/uppsrc/ide/IconDes
----- ide\Builders ( GUI GCC LINUX ) (4 / 30)
cd /home/paul/upp/uppsrc/ide/Builders
----- ide\Debuggers ( GUI GCC LINUX ) (5 / 30)
cd /home/paul/upp/uppsrc/ide/Debuggers
----- ide\Browser ( GUI GCC LINUX ) (6 / 30)
cd /home/paul/upp/uppsrc/ide/Browser
----- ide\QuickTabs ( GUI GCC LINUX ) (7 / 30)
cd /home/paul/upp/uppsrc/ide/QuickTabs
----- CodeEditor ( GUI GCC LINUX ) (8 / 30)
cd /home/paul/upp/uppsrc/CodeEditor
----- CtrlLib ( GUI GCC LINUX ) (9 / 30)
cd /home/paul/upp/uppsrc/CtrlLib
----- Web ( GUI GCC LINUX ) (10 / 30)
cd /home/paul/upp/uppsrc/Web
----- plugin\bz2 ( GUI GCC LINUX ) (11 / 30)
cd /home/paul/upp/uppsrc/plugin/bz2
----- HexView ( GUI GCC LINUX ) (12 / 30)
cd /home/paul/upp/uppsrc/HexView
----- art\BlueBar ( GUI GCC LINUX ) (13 / 30)
cd /home/paul/upp/uppsrc/art/BlueBar
----- Esc ( GUI GCC LINUX ) (14 / 30)
cd /home/paul/upp/uppsrc/Esc
----- Core ( GUI GCC LINUX ) (15 / 30)
cd /home/paul/upp/uppsrc/Core
----- RichEdit ( GUI GCC LINUX ) (16 / 30)
cd /home/paul/upp/uppsrc/RichEdit
----- IconDes ( GUI GCC LINUX ) (17 / 30)
cd /home/paul/upp/uppsrc/IconDes
----- plugin\gif ( GUI GCC LINUX ) (18 / 30)
cd /home/paul/upp/uppsrc/plugin/gif
----- plugin\jpg ( GUI GCC LINUX ) (19 / 30)
cd /home/paul/upp/uppsrc/plugin/jpg
----- Draw ( GUI GCC LINUX ) (20 / 30)
cd /home/paul/upp/uppsrc/Draw
----- coff\binobj ( GUI GCC LINUX ) (21 / 30)
cd /home/paul/upp/uppsrc/coff/binobj
----- coff ( GUI GCC LINUX ) (22 / 30)
cd /home/paul/upp/uppsrc/coff
----- plugin\ndisasm ( GUI GCC LINUX ) (23 / 30)
cd /home/paul/upp/uppsrc/plugin/ndisasm
----- CppBase ( GUI GCC LINUX ) (24 / 30)
cd /home/paul/upp/uppsrc/CppBase
----- PdfDraw ( GUI GCC LINUX ) (25 / 30)
cd /home/paul/upp/uppsrc/PdfDraw
----- CtrlCore ( GUI GCC LINUX ) (26 / 30)
cd /home/paul/upp/uppsrc/CtrlCore
----- RichText ( GUI GCC LINUX ) (27 / 30)
cd /home/paul/upp/uppsrc/RichText
----- plugin/bmp ( GUI GCC LINUX ) (28 / 30)
cd /home/paul/upp/uppsrc/plugin/bmp
----- plugin\png ( GUI GCC LINUX ) (29 / 30)
cd /home/paul/upp/uppsrc/plugin/png
----- ide ( GUI MAIN GCC LINUX ) (30 / 30)
cd /home/paul/upp/uppsrc/ide
Linking...
c++ -static -o "/home/paul/upp/out/GCC.Gui/ide" -Wl,-s -L"/usr/X11R6/lib" -Wl,-O,2  "/home/paul/upp/out/ide/G
	CC.Gui.Main/SelectPkg.o" "/home/paul/upp/out/ide/GCC.Gui.Main/UppWspc.o" "/home/paul/upp/out/ide/GCC.Gui.
	Main/UppDlg.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Template.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Find
	InFiles.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Console.o" "/home/paul/upp/out/ide/GCC.Gui.Main/ide.o" "/
	home/paul/upp/out/ide/GCC.Gui.Main/idefile.o" "/home/paul/upp/out/ide/GCC.Gui.Main/QuickTabs.o" "/home/pa
	ul/upp/out/ide/GCC.Gui.Main/Bottom.o" "/home/paul/upp/out/ide/GCC.Gui.Main/t.o" "/home/paul/upp/out/ide/G
	CC.Gui.Main/Assist.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Virtuals.o" "/home/paul/upp/out/ide/GCC.Gui.Ma
	in/Thisbacks.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Goto.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Setup.o
	" "/home/paul/upp/out/ide/GCC.Gui.Main/Custom.o" "/home/paul/upp/out/ide/GCC.Gui.Main/idetool.o" "/home/p
	aul/upp/out/ide/GCC.Gui.Main/Install.o" "/home/paul/upp/out/ide/GCC.Gui.Main/idebar.o" "/home/paul/upp/ou
	t/ide/GCC.Gui.Main/idewin.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Help.o" "/home/paul/upp/out/ide/GCC.Gui
	.Main/Util.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Macro.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Calc.o" 
	"/home/paul/upp/out/ide/GCC.Gui.Main/Methods.o" "/home/paul/upp/out/ide/GCC.Gui.Main/AutoSetup.o" "/home/
	paul/upp/out/ide/GCC.Gui.Main/OutputMode.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Host.o" "/home/paul/upp/
	out/ide/GCC.Gui.Main/Build.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Debug.o" "/home/paul/upp/out/ide/Brows
	er/GCC.Gui/TopicI.o" "/home/paul/upp/out/CtrlLib/GCC.Gui/CtrlLib.o" "/home/paul/upp/out/Web/GCC.Gui/Web_i
	nit.o" "/home/paul/upp/out/RichEdit/GCC.Gui/RichEdit.o" "/home/paul/upp/out/plugin/gif/GCC.Gui/gif.o" "/h
	ome/paul/upp/out/plugin/jpg/GCC.Gui/jpgreg.o" "/home/paul/upp/out/PdfDraw/GCC.Gui/PdfReport.o" "/home/pau
	l/upp/out/CtrlCore/GCC.Gui/CtrlCore.o" "/home/paul/upp/out/RichText/GCC.Gui/RichImage.o" "/home/paul/upp/
	out/plugin/bmp/GCC.Gui/BmpReg.o" "/home/paul/upp/out/plugin/png/GCC.Gui/pngreg.o" -Wl,--start-group  "/ho
	me/paul/upp/out/ide/Common/GCC.Gui/Common.a" "/home/paul/upp/out/ide/LayDes/GCC.Gui/LayDes.a" "/home/paul
	/upp/out/ide/IconDes/GCC.Gui/IconDes.a" "/home/paul/upp/out/ide/Builders/GCC.Gui/Builders.a" "/home/paul/
	upp/out/ide/Debuggers/GCC.Gui/Debuggers.a" "/home/paul/upp/out/ide/Browser/GCC.Gui/Browser.a" "/home/paul
	/upp/out/ide/QuickTabs/GCC.Gui/QuickTabs.a" "/home/paul/upp/out/CodeEditor/GCC.Gui/CodeEditor.a" "/home/p
	aul/upp/out/CtrlLib/GCC.Gui/CtrlLib.a" "/home/paul/upp/out/Web/GCC.Gui/Web.a" "/home/paul/upp/out/plugin/
	bz2/GCC.Gui/bz2.a" "/home/paul/upp/out/HexView/GCC.Gui/HexView.a" "/home/paul/upp/out/art/BlueBar/GCC.Gui
	/BlueBar.a" "/home/paul/upp/out/Esc/GCC.Gui/Esc.a" -lpthread -ldl -lz "/home/paul/upp/out/Core/GCC.Gui/Co
	re.a" "/home/paul/upp/out/RichEdit/GCC.Gui/RichEdit.a" "/home/paul/upp/out/IconDes/GCC.Gui/IconDes.a" "/h
	ome/paul/upp/out/plugin/gif/GCC.Gui/gif.a" "/home/paul/upp/out/plugin/jpg/GCC.Gui/jpg.a" -lgtk-x11-2.0 -l
	gdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi
	 -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lX11 -ldl 
	-lXft -lfontconfig -lXrender -lfreetype -lexpat "/home/paul/upp/out/Draw/GCC.Gui/Draw.a" "/home/paul/upp/
	out/coff/binobj/GCC.Gui/binobj.a" "/home/paul/upp/out/coff/GCC.Gui/coff.a" "/home/paul/upp/out/plugin/ndi
	sasm/GCC.Gui/ndisasm.a" "/home/paul/upp/out/CppBase/GCC.Gui/CppBase.a" "/home/paul/upp/out/PdfDraw/GCC.Gu
	i/PdfDraw.a" "/home/paul/upp/out/CtrlCore/GCC.Gui/CtrlCore.a" "/home/paul/upp/out/RichText/GCC.Gui/RichTe
	xt.a" "/home/paul/upp/out/plugin/bmp/GCC.Gui/bmp.a" -lpng "/home/paul/upp/out/plugin/png/GCC.Gui/png.a" -
	Wl,--end-group
/usr/bin/ld: cannot find -lpthread
collect2: ld returned 1 exit status
c++ -static -o "/home/paul/upp/out/GCC.Gui/ide" -Wl,-s -L"/usr/X11R6/lib" -Wl,-O,2  "/home/paul/upp/out/ide/G
	CC.Gui.Main/SelectPkg.o" "/home/paul/upp/out/ide/GCC.Gui.Main/UppWspc.o" "/home/paul/upp/out/ide/GCC.Gui.
	Main/UppDlg.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Template.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Find
	InFiles.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Console.o" "/home/paul/upp/out/ide/GCC.Gui.Main/ide.o" "/
	home/paul/upp/out/ide/GCC.Gui.Main/idefile.o" "/home/paul/upp/out/ide/GCC.Gui.Main/QuickTabs.o" "/home/pa
	ul/upp/out/ide/GCC.Gui.Main/Bottom.o" "/home/paul/upp/out/ide/GCC.Gui.Main/t.o" "/home/paul/upp/out/ide/G
	CC.Gui.Main/Assist.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Virtuals.o" "/home/paul/upp/out/ide/GCC.Gui.Ma
	in/Thisbacks.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Goto.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Setup.o
	" "/home/paul/upp/out/ide/GCC.Gui.Main/Custom.o" "/home/paul/upp/out/ide/GCC.Gui.Main/idetool.o" "/home/p
	aul/upp/out/ide/GCC.Gui.Main/Install.o" "/home/paul/upp/out/ide/GCC.Gui.Main/idebar.o" "/home/paul/upp/ou
	t/ide/GCC.Gui.Main/idewin.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Help.o" "/home/paul/upp/out/ide/GCC.Gui
	.Main/Util.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Macro.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Calc.o" 
	"/home/paul/upp/out/ide/GCC.Gui.Main/Methods.o" "/home/paul/upp/out/ide/GCC.Gui.Main/AutoSetup.o" "/home/
	paul/upp/out/ide/GCC.Gui.Main/OutputMode.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Host.o" "/home/paul/upp/
	out/ide/GCC.Gui.Main/Build.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Debug.o" "/home/paul/upp/out/ide/Brows
	er/GCC.Gui/TopicI.o" "/home/paul/upp/out/CtrlLib/GCC.Gui/CtrlLib.o" "/home/paul/upp/out/Web/GCC.Gui/Web_i
	nit.o" "/home/paul/upp/out/RichEdit/GCC.Gui/RichEdit.o" "/home/paul/upp/out/plugin/gif/GCC.Gui/gif.o" "/h
	ome/paul/upp/out/plugin/jpg/GCC.Gui/jpgreg.o" "/home/paul/upp/out/PdfDraw/GCC.Gui/PdfReport.o" "/home/pau
	l/upp/out/CtrlCore/GCC.Gui/CtrlCore.o" "/home/paul/upp/out/RichText/GCC.Gui/RichImage.o" "/home/paul/upp/
	out/plugin/bmp/GCC.Gui/BmpReg.o" "/home/paul/upp/out/plugin/png/GCC.Gui/pngreg.o" -Wl,--start-group  "/ho
	me/paul/upp/out/ide/Common/GCC.Gui/Common.a" "/home/paul/upp/out/ide/LayDes/GCC.Gui/LayDes.a" "/home/paul
	/upp/out/ide/IconDes/GCC.Gui/IconDes.a" "/home/paul/upp/out/ide/Builders/GCC.Gui/Builders.a" "/home/paul/
	upp/out/ide/Debuggers/GCC.Gui/Debuggers.a" "/home/paul/upp/out/ide/Browser/GCC.Gui/Browser.a" "/home/paul
	/upp/out/ide/QuickTabs/GCC.Gui/QuickTabs.a" "/home/paul/upp/out/CodeEditor/GCC.Gui/CodeEditor.a" "/home/p
	aul/upp/out/CtrlLib/GCC.Gui/CtrlLib.a" "/home/paul/upp/out/Web/GCC.Gui/Web.a" "/home/paul/upp/out/plugin/
	bz2/GCC.Gui/bz2.a" "/home/paul/upp/out/HexView/GCC.Gui/HexView.a" "/home/paul/upp/out/art/BlueBar/GCC.Gui
	/BlueBar.a" "/home/paul/upp/out/Esc/GCC.Gui/Esc.a" -lpthread -ldl -lz "/home/paul/upp/out/Core/GCC.Gui/Co
	re.a" "/home/paul/upp/out/RichEdit/GCC.Gui/RichEdit.a" "/home/paul/upp/out/IconDes/GCC.Gui/IconDes.a" "/h
	ome/paul/upp/out/plugin/gif/GCC.Gui/gif.a" "/home/paul/upp/out/plugin/jpg/GCC.Gui/jpg.a" -lgtk-x11-2.0 -l
	gdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi
	 -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lX11 -ldl 
	-lXft -lfontconfig -lXrender -lfreetype -lexpat "/home/paul/upp/out/Draw/GCC.Gui/Draw.a" "/home/paul/upp/
	out/coff/binobj/GCC.Gui/binobj.a" "/home/paul/upp/out/coff/GCC.Gui/coff.a" "/home/paul/upp/out/plugin/ndi
	sasm/GCC.Gui/ndisasm.a" "/home/paul/upp/out/CppBase/GCC.Gui/CppBase.a" "/home/paul/upp/out/PdfDraw/GCC.Gu
	i/PdfDraw.a" "/home/paul/upp/out/CtrlCore/GCC.Gui/CtrlCore.a" "/home/paul/upp/out/RichText/GCC.Gui/RichTe
	xt.a" "/home/paul/upp/out/plugin/bmp/GCC.Gui/bmp.a" -lpng "/home/paul/upp/out/plugin/png/GCC.Gui/png.a" -
	Wl,--end-group
Error executing c++ -static -o "/home/paul/upp/out/GCC.Gui/ide" -Wl,-s -L"/usr/X11R6/lib" -Wl,-O,2  "/home/pa
	ul/upp/out/ide/GCC.Gui.Main/SelectPkg.o" "/home/paul/upp/out/ide/GCC.Gui.Main/UppWspc.o" "/home/paul/upp/
	out/ide/GCC.Gui.Main/UppDlg.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Template.o" "/home/paul/upp/out/ide/G
	CC.Gui.Main/FindInFiles.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Console.o" "/home/paul/upp/out/ide/GCC.Gu
	i.Main/ide.o" "/home/paul/upp/out/ide/GCC.Gui.Main/idefile.o" "/home/paul/upp/out/ide/GCC.Gui.Main/QuickT
	abs.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Bottom.o" "/home/paul/upp/out/ide/GCC.Gui.Main/t.o" "/home/pa
	ul/upp/out/ide/GCC.Gui.Main/Assist.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Virtuals.o" "/home/paul/upp/ou
	t/ide/GCC.Gui.Main/Thisbacks.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Goto.o" "/home/paul/upp/out/ide/GCC.
	Gui.Main/Setup.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Custom.o" "/home/paul/upp/out/ide/GCC.Gui.Main/ide
	tool.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Install.o" "/home/paul/upp/out/ide/GCC.Gui.Main/idebar.o" "/
	home/paul/upp/out/ide/GCC.Gui.Main/idewin.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Help.o" "/home/paul/upp
	/out/ide/GCC.Gui.Main/Util.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Macro.o" "/home/paul/upp/out/ide/GCC.G
	ui.Main/Calc.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Methods.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Auto
	Setup.o" "/home/paul/upp/out/ide/GCC.Gui.Main/OutputMode.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Host.o" 
	"/home/paul/upp/out/ide/GCC.Gui.Main/Build.o" "/home/paul/upp/out/ide/GCC.Gui.Main/Debug.o" "/home/paul/u
	pp/out/ide/Browser/GCC.Gui/TopicI.o" "/home/paul/upp/out/CtrlLib/GCC.Gui/CtrlLib.o" "/home/paul/upp/out/W
	eb/GCC.Gui/Web_init.o" "/home/paul/upp/out/RichEdit/GCC.Gui/RichEdit.o" "/home/paul/upp/out/plugin/gif/GC
	C.Gui/gif.o" "/home/paul/upp/out/plugin/jpg/GCC.Gui/jpgreg.o" "/home/paul/upp/out/PdfDraw/GCC.Gui/PdfRepo
	rt.o" "/home/paul/upp/out/CtrlCore/GCC.Gui/CtrlCore.o" "/home/paul/upp/out/RichText/GCC.Gui/RichImage.o" 
	"/home/paul/upp/out/plugin/bmp/GCC.Gui/BmpReg.o" "/home/paul/upp/out/plugin/png/GCC.Gui/pngreg.o" -Wl,--s
	tart-group  "/home/paul/upp/out/ide/Common/GCC.Gui/Common.a" "/home/paul/upp/out/ide/LayDes/GCC.Gui/LayDe
	s.a" "/home/paul/upp/out/ide/IconDes/GCC.Gui/IconDes.a" "/home/paul/upp/out/ide/Builders/GCC.Gui/Builders
	.a" "/home/paul/upp/out/ide/Debuggers/GCC.Gui/Debuggers.a" "/home/paul/upp/out/ide/Browser/GCC.Gui/Browse
	r.a" "/home/paul/upp/out/ide/QuickTabs/GCC.Gui/QuickTabs.a" "/home/paul/upp/out/CodeEditor/GCC.Gui/CodeEd
	itor.a" "/home/paul/upp/out/CtrlLib/GCC.Gui/CtrlLib.a" "/home/paul/upp/out/Web/GCC.Gui/Web.a" "/home/paul
	/upp/out/plugin/bz2/GCC.Gui/bz2.a" "/home/paul/upp/out/HexView/GCC.Gui/HexView.a" "/home/paul/upp/out/art
	/BlueBar/GCC.Gui/BlueBar.a" "/home/paul/upp/out/Esc/GCC.Gui/Esc.a" -lpthread -ldl -lz "/home/paul/upp/out
	/Core/GCC.Gui/Core.a" "/home/paul/upp/out/RichEdit/GCC.Gui/RichEdit.a" "/home/paul/upp/out/IconDes/GCC.Gu
	i/IconDes.a" "/home/paul/upp/out/plugin/gif/GCC.Gui/gif.a" "/home/paul/upp/out/plugin/jpg/GCC.Gui/jpg.a" 
	-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender
	 -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -lglib
	-2.0 -lX11 -ldl -lXft -lfontconfig -lXrender -lfreetype -lexpat "/home/paul/upp/out/Draw/GCC.Gui/Draw.a" 
	"/home/paul/upp/out/coff/binobj/GCC.Gui/binobj.a" "/home/paul/upp/out/coff/GCC.Gui/coff.a" "/home/paul/up
	p/out/plugin/ndisasm/GCC.Gui/ndisasm.a" "/home/paul/upp/out/CppBase/GCC.Gui/CppBase.a" "/home/paul/upp/ou
	t/PdfDraw/GCC.Gui/PdfDraw.a" "/home/paul/upp/out/CtrlCore/GCC.Gui/CtrlCore.a" "/home/paul/upp/out/RichTex
	t/GCC.Gui/RichText.a" "/home/paul/upp/out/plugin/bmp/GCC.Gui/bmp.a" -lpng "/home/paul/upp/out/plugin/png/
	GCC.Gui/png.a" -Wl,--end-group
Exitcode: 1

There were errors. (0:06.91)
Re: Link error on Linux [message #16263 is a reply to message #13886] Thu, 05 June 2008 09:58 Go to previous messageGo to next message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

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!
Re: Link error on Linux [message #16265 is a reply to message #16263] Thu, 05 June 2008 12:09 Go to previous messageGo to next message
mr_ped is currently offline  mr_ped
Messages: 825
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
tojocky wrote on Thu, 05 June 2008 09: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!


You are probably missing GTK. You may try NOGTK flag to build the U++ application without GTK, it may lead to different kind of problems, but it should work, so report new problems too.
Re: Link error on Linux [message #16267 is a reply to message #16265] Thu, 05 June 2008 12:20 Go to previous messageGo to next message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

When i build without gtk have following message:
Quote:


----- ide\Common ( NOGTK GUI GCC LINUX ) (1 / 31)
----- ide\LayDes ( NOGTK GUI GCC LINUX ) (2 / 31)
----- ide\IconDes ( NOGTK GUI GCC LINUX ) (3 / 31)
----- ide\Builders ( NOGTK GUI GCC LINUX ) (4 / 31)
----- ide\Debuggers ( NOGTK GUI GCC LINUX ) (5 / 31)
----- ide\Browser ( NOGTK GUI GCC LINUX ) (6 / 31)
----- ide\QuickTabs ( NOGTK GUI GCC LINUX ) (7 / 31)
----- CodeEditor ( NOGTK GUI GCC LINUX ) (8 / 31)
----- CtrlLib ( NOGTK GUI GCC LINUX ) (9 / 31)
----- Web ( GUI GCC LINUX ) (10 / 31)
----- plugin\bz2 ( GUI GCC LINUX ) (11 / 31)
----- HexView ( NOGTK GUI GCC LINUX ) (12 / 31)
----- art\BlueBar ( GUI GCC LINUX ) (13 / 31)
----- plugin/astyle ( GUI GCC LINUX ) (14 / 31)
----- Esc ( GUI GCC LINUX ) (15 / 31)
----- Core ( GUI GCC LINUX ) (16 / 31)
----- RichEdit ( NOGTK GUI GCC LINUX ) (17 / 31)
----- IconDes ( NOGTK GUI GCC LINUX ) (18 / 31)
----- plugin\gif ( NOGTK GUI GCC LINUX ) (19 / 31)
----- plugin\jpg ( NOGTK GUI GCC LINUX ) (20 / 31)
----- Draw ( NOGTK GUI GCC LINUX ) (21 / 31)
----- coff\binobj ( GUI GCC LINUX ) (22 / 31)
----- coff ( GUI GCC LINUX ) (23 / 31)
----- plugin\ndisasm ( GUI GCC LINUX ) (24 / 31)
----- CppBase ( GUI GCC LINUX ) (25 / 31)
----- PdfDraw ( NOGTK GUI GCC LINUX ) (26 / 31)
----- CtrlCore ( NOGTK GUI GCC LINUX ) (27 / 31)
----- RichText ( NOGTK GUI GCC LINUX ) (28 / 31)
----- plugin\bmp ( NOGTK GUI GCC LINUX ) (29 / 31)
----- plugin\png ( GUI GCC LINUX ) (30 / 31)
----- ide ( NOGTK GUI MAIN GCC LINUX ) (31 / 31)
SelectPkg.cpp
UppWspc.cpp
UppDlg.cpp
Template.cpp
FindInFiles.cpp
Console.cpp
ide.cpp
idefile.cpp
QuickTabs.cpp
Bottom.cpp
t.cpp
Assist.cpp
Index.cpp
Virtuals.cpp
Thisbacks.cpp
Goto.cpp
Setup.cpp
Custom.cpp
idetool.cpp
Install.cpp
idebar.cpp
idewin.cpp
Help.cpp
Util.cpp
Macro.cpp
Calc.cpp
FormatCode.cpp
Methods.cpp
AutoSetup.cpp
OutputMode.cpp
Host.cpp
Build.cpp
Debug.cpp
Valgrind.cpp
ide: 34 file(s) built in (1:00.95), 1792 msecs / file, duration = 61516 msecs, parallelization 100%
Linking...
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../lib/ libX11.a(CrGlCur.o): In function `open_library':
CrGlCur.c:(.text+0x2a): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../lib/ libX11.a(GetDflt.o): In function `GetHomeDir':
GetDflt.c:(.text+0x98): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
GetDflt.c:(.text+0xe6): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../lib/ libX11.a(xim_trans.o): In function `_XimXTransSocketOpen':
xim_trans.c:(.text+0x43d): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linki
ng
/home/user/upp-svn/out/Web/GCC.Gui/Web.a(socket.o): In function `Upp::Socket::Data::OpenClient(char const*, int, bool, unsigned int*, int, bool)':
socket.cpp:(.text+0x27c5): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for lin
king
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../lib/ libX11.a(xim_trans.o): In function `_XimXTransSocketINETConnect':
xim_trans.c:(.text+0x1573): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for li
nking
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../lib/ libX11.a(xcb_io.o): In function `wait_or_poll_for_event':
xcb_io.c:(.text+0x393): undefined reference to `xcb_wait_for_event'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../lib/ libX11.a(xcb_io.o): In function `process_responses':
xcb_io.c:(.text+0x494): undefined reference to `xcb_connection_has_error'
xcb_io.c:(.text+0x4f9): undefined reference to `xcb_xlib_unlock'
xcb_io.c:(.text+0x522): undefined reference to `xcb_xlib_lock'
xcb_io.c:(.text+0x5af): undefined reference to `xcb_poll_for_reply'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../lib/ libX11.a(xcb_io.o): In function `_XReply':
xcb_io.c:(.text+0x8ea): undefined reference to `xcb_wait_for_reply'
xcb_io.c:(.text+0x9ec): undefined reference to `xcb_xlib_unlock'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../lib/ libX11.a(xcb_io.o): In function `_XAllocIDs':
xcb_io.c:(.text+0xbfc): undefined reference to `xcb_generate_id'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../lib/ libX11.a(xcb_io.o): In function `_XIDHandler':
xcb_io.c:(.text+0xc45): undefined reference to `xcb_generate_id'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../lib/ libX11.a(xcb_io.o): In function `_XSend':
xcb_io.c:(.text+0xd03): undefined reference to `xcb_flush'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../lib/ libX11.a(xcb_io.o): In function `wait_or_poll_for_event':
xcb_io.c:(.text+0x3d2): undefined reference to `xcb_poll_for_event'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../lib/ libX11.a(xcb_lock.o): In function `_XPutXCBBuffer':
xcb_lock.c:(.text+0xcb): undefined reference to `xcb_get_request_sent'
xcb_lock.c:(.text+0x41f): undefined reference to `xcb_get_request_sent'
xcb_lock.c:(.text+0x446): undefined reference to `xcb_send_request'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../lib/ libX11.a(xcb_lock.o): In function `_XGetXCBBuffer':
xcb_lock.c:(.text+0x5f5): undefined reference to `xcb_get_request_sent'
xcb_lock.c:(.text+0x607): undefined reference to `xcb_connection_has_error'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../lib/ libX11.a(xcb_lock.o): In function `_XCBUnlockDisplay':
xcb_lock.c:(.text+0x73c): undefined reference to `xcb_xlib_unlock'
xcb_lock.c:(.text+0x760): undefined reference to `xcb_get_request_sent'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../lib/ libX11.a(xcb_lock.o): In function `_XCBLockDisplay':
xcb_lock.c:(.text+0x80c): undefined reference to `xcb_xlib_lock'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../lib/ libX11.a(ClDisplay.o): In function `XCloseDisplay':
ClDisplay.c:(.text+0xc6): undefined reference to `xcb_disconnect'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../lib/ libX11.a(OpenDis.o): In function `OutOfMemory':
OpenDis.c:(.text+0x445): undefined reference to `xcb_disconnect'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../lib/ libX11.a(OpenDis.o): In function `XOpenDisplay':
OpenDis.c:(.text+0x874): undefined reference to `xcb_get_setup'
OpenDis.c:(.text+0xcda): undefined reference to `xcb_get_maximum_request_length'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../lib/ libX11.a(xcb_disp.o): In function `_XConnectXCB':
xcb_disp.c:(.text+0xa2): undefined reference to `xcb_parse_display'
xcb_disp.c:(.text+0x15e): undefined reference to `xcb_connect_to_display_with_auth_info'
xcb_disp.c:(.text+0x17e): undefined reference to `xcb_get_file_descriptor'
xcb_disp.c:(.text+0x1ab): undefined reference to `xcb_generate_id'
xcb_disp.c:(.text+0x1b9): undefined reference to `xcb_connection_has_error'
xcb_disp.c:(.text+0x1d6): undefined reference to `xcb_connect'
collect2: ld returned 1 exit status

There were errors. (1:04.51)


The gtk is installed on my machine... maybe is not configured build methods?
Re: Link error on Linux [message #16274 is a reply to message #16267] Thu, 05 June 2008 16:56 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1363
Registered: December 2006
Ultimate Contributor
tojocky wrote on Thu, 05 June 2008 06:20

The gtk is installed on my machine... maybe is not configured build methods?



You are building static configuration. That is the problem. Try to switch to a DLL-based configuration.

1) Setup->Build Methods->(Debug|Release) mode defaults : Shared libs.
2) Build-> Output Mode -> Use shared libs.

Both steps are necessary.


Regards,
Novo
Re: Link error on Linux [message #16281 is a reply to message #16274] Thu, 05 June 2008 22:04 Go to previous messageGo to next message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

Fine!
It was build without errors! the mistake was in " 2) Build-> Output Mode -> Use shared libs." in the release section, not debug!

Thank you!

Now we can prepare releases for archlinux X86_64!
Re: Link error on Linux [message #16283 is a reply to message #16281] Fri, 06 June 2008 00:30 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

I hope this "static" setting in build output by default will be corrected in the next TheIDE release Smile
Re: Link error on Linux [message #16285 is a reply to message #16283] Fri, 06 June 2008 01:30 Go to previous messageGo to next message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

The binary release of u++ I extract from ubuntu64 svn package.
How about to make relase for archlinux (x86_64) too? I can do this, but in the first i need some help for details!
Re: Link error on Linux [message #16295 is a reply to message #16263] Fri, 06 June 2008 15:06 Go to previous messageGo to next 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.
Re: Link error on Linux [message #16301 is a reply to message #16295] Fri, 06 June 2008 16:12 Go to previous message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

Thanks a lot!
I will try do this instructions!
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: Sat Jun 22 22:37:08 CEST 2024

Total time taken to generate the page: 0.00998 seconds