|
|
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Linking problem
|
Re: Linking problem [message #31573 is a reply to message #31571] |
Tue, 15 March 2011 11:02   |
|
Busiek, could you please post the verbose output here? Just turn on "Be verbose" in Setup menu and build the application once more. It will show the complete linking command line, which might be quite helpful.
Also, I found that my computer at work is also i686, so I don't have anywhere to test the amd64 Any volunteers out there? 
Honza
|
|
|
Re: Linking problem [message #31575 is a reply to message #31573] |
Tue, 15 March 2011 14:08   |
busiek
Messages: 70 Registered: February 2011 Location: Poland
|
Member |
|
|
The same with verbose turned on.
----- CtrlLib ( GUI GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (1 / 9)
cd /home/kubus/upp/uppsrc/CtrlLib
/home/kubus/upp/uppsrc/CtrlLib/XPTheme.dli(1) : blocks BLITZ of /home/kubus/upp/uppsrc/CtrlLib/ChWin32.cpp
----- CtrlCore ( GUI GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (2 / 9)
cd /home/kubus/upp/uppsrc/CtrlCore
----- PdfDraw ( GUI GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (3 / 9)
cd /home/kubus/upp/uppsrc/PdfDraw
----- Draw ( GUI GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (4 / 9)
cd /home/kubus/upp/uppsrc/Draw
----- plugin/bmp ( GUI GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (5 / 9)
cd /home/kubus/upp/uppsrc/plugin/bmp
----- RichText ( GUI GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (6 / 9)
cd /home/kubus/upp/uppsrc/RichText
----- Core ( GUI GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (7 / 9)
cd /home/kubus/upp/uppsrc/Core
/home/kubus/upp/uppsrc/Core/HeapImp.h(1) : blocks BLITZ of /home/kubus/upp/uppsrc/Core/heaputil.cpp
/home/kubus/upp/uppsrc/Core/HeapImp.h(1) : blocks BLITZ of /home/kubus/upp/uppsrc/Core/lheap.cpp
/home/kubus/upp/uppsrc/Core/HeapImp.h(1) : blocks BLITZ of /home/kubus/upp/uppsrc/Core/heap.cpp
/home/kubus/upp/uppsrc/Core/HeapImp.h(1) : blocks BLITZ of /home/kubus/upp/uppsrc/Core/heapdbg.cpp
/home/kubus/upp/uppsrc/Core/CharSet.i(1) : blocks BLITZ of /home/kubus/upp/uppsrc/Core/CharSet.cpp
----- plugin/png ( GUI GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (8 / 9)
cd /home/kubus/upp/uppsrc/plugin/png
----- XmlView ( GUI MAIN GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (9 / 9)
cd /home/kubus/upp/examples/XmlView
Linking...
g++-4.5 -o "/home/kubus/upp/out/examples/GCC.Debug.Debug_full.Gui.Shared/XmlView" -ggdb -L"/usr/X11R6/lib" -L"/usr/lib64" -Wl,-O,2 "/home/kubus/upp/out/examples/XmlView/GCC.D
ebug.Debug_full.Gui.Main.Shared/main.o" "/home/kubus/upp/out/examples/CtrlLib/GCC.Debug.Debug_full.Gui.Shared/CtrlLib.o" "/home/kubus/upp/out/examples/CtrlLib/GCC.Debug.De
bug_full.Gui.Shared/$blitz.o" "/home/kubus/upp/out/examples/CtrlLib/GCC.Debug.Debug_full.Gui.Shared/ChWin32.o" "/home/kubus/upp/out/examples/CtrlCore/GCC.Debug.Debug_full.
Gui.Shared/CtrlCore.o" "/home/kubus/upp/out/examples/CtrlCore/GCC.Debug.Debug_full.Gui.Shared/$blitz.o" "/home/kubus/upp/out/examples/PdfDraw/GCC.Debug.Debug_full.Gui.Shar
ed/PdfReport.o" "/home/kubus/upp/out/examples/PdfDraw/GCC.Debug.Debug_full.Gui.Shared/$blitz.o" "/home/kubus/upp/out/examples/Draw/GCC.Debug.Debug_full.Gui.Shared/$blitz.o
" "/home/kubus/upp/out/examples/plugin/bmp/GCC.Debug.Debug_full.Gui.Shared/BmpReg.o" "/home/kubus/upp/out/examples/plugin/bmp/GCC.Debug.Debug_full.Gui.Shared/$blitz.o" "/h
ome/kubus/upp/out/examples/RichText/GCC.Debug.Debug_full.Gui.Shared/RichImage.o" "/home/kubus/upp/out/examples/RichText/GCC.Debug.Debug_full.Gui.Shared/$blitz.o" "/home/ku
bus/upp/out/examples/Core/GCC.Debug.Debug_full.Gui.Shared/$blitz.o" "/home/kubus/upp/out/examples/Core/GCC.Debug.Debug_full.Gui.Shared/OL_Set.o" "/home/kubus/upp/out/examp
les/Core/GCC.Debug.Debug_full.Gui.Shared/heaputil.o" "/home/kubus/upp/out/examples/Core/GCC.Debug.Debug_full.Gui.Shared/lheap.o" "/home/kubus/upp/out/examples/Core/GCC.Deb
ug.Debug_full.Gui.Shared/heap.o" "/home/kubus/upp/out/examples/Core/GCC.Debug.Debug_full.Gui.Shared/heapdbg.o" "/home/kubus/upp/out/examples/Core/GCC.Debug.Debug_full.Gui.
Shared/CharSet.o" "/home/kubus/upp/out/examples/plugin/png/GCC.Debug.Debug_full.Gui.Shared/pngreg.o" "/home/kubus/upp/out/examples/plugin/png/GCC.Debug.Debug_full.Gui.Shar
ed/pnglib.o" "/home/kubus/upp/out/examples/plugin/png/GCC.Debug.Debug_full.Gui.Shared/pngupp.o" -Wl,--start-group -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 -lnotify -ldl -lfontconfig -lpthread -ldl -lz -lpng -Wl,--end-group
/usr/bin/ld: /home/kubus/upp/out/examples/Draw/GCC.Debug.Debug_full.Gui.Shared/$blitz.o: undefined reference to symbol 'FT_New_Face'
/usr/bin/ld: note: 'FT_New_Face' is defined in DSO /usr/lib64/libfreetype.so.6 so try adding it to the linker command line
/usr/lib64/libfreetype.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
g++-4.5 -o "/home/kubus/upp/out/examples/GCC.Debug.Debug_full.Gui.Shared/XmlView" -ggdb -L"/usr/X11R6/lib" -L"/usr/lib64" -Wl,-O,2 "/home/kubus/upp/out/examples/XmlView/GCC.D
ebug.Debug_full.Gui.Main.Shared/main.o" "/home/kubus/upp/out/examples/CtrlLib/GCC.Debug.Debug_full.Gui.Shared/CtrlLib.o" "/home/kubus/upp/out/examples/CtrlLib/GCC.Debug.De
bug_full.Gui.Shared/$blitz.o" "/home/kubus/upp/out/examples/CtrlLib/GCC.Debug.Debug_full.Gui.Shared/ChWin32.o" "/home/kubus/upp/out/examples/CtrlCore/GCC.Debug.Debug_full.
Gui.Shared/CtrlCore.o" "/home/kubus/upp/out/examples/CtrlCore/GCC.Debug.Debug_full.Gui.Shared/$blitz.o" "/home/kubus/upp/out/examples/PdfDraw/GCC.Debug.Debug_full.Gui.Shar
ed/PdfReport.o" "/home/kubus/upp/out/examples/PdfDraw/GCC.Debug.Debug_full.Gui.Shared/$blitz.o" "/home/kubus/upp/out/examples/Draw/GCC.Debug.Debug_full.Gui.Shared/$blitz.o
" "/home/kubus/upp/out/examples/plugin/bmp/GCC.Debug.Debug_full.Gui.Shared/BmpReg.o" "/home/kubus/upp/out/examples/plugin/bmp/GCC.Debug.Debug_full.Gui.Shared/$blitz.o" "/h
ome/kubus/upp/out/examples/RichText/GCC.Debug.Debug_full.Gui.Shared/RichImage.o" "/home/kubus/upp/out/examples/RichText/GCC.Debug.Debug_full.Gui.Shared/$blitz.o" "/home/ku
bus/upp/out/examples/Core/GCC.Debug.Debug_full.Gui.Shared/$blitz.o" "/home/kubus/upp/out/examples/Core/GCC.Debug.Debug_full.Gui.Shared/OL_Set.o" "/home/kubus/upp/out/examp
les/Core/GCC.Debug.Debug_full.Gui.Shared/heaputil.o" "/home/kubus/upp/out/examples/Core/GCC.Debug.Debug_full.Gui.Shared/lheap.o" "/home/kubus/upp/out/examples/Core/GCC.Deb
ug.Debug_full.Gui.Shared/heap.o" "/home/kubus/upp/out/examples/Core/GCC.Debug.Debug_full.Gui.Shared/heapdbg.o" "/home/kubus/upp/out/examples/Core/GCC.Debug.Debug_full.Gui.
Shared/CharSet.o" "/home/kubus/upp/out/examples/plugin/png/GCC.Debug.Debug_full.Gui.Shared/pngreg.o" "/home/kubus/upp/out/examples/plugin/png/GCC.Debug.Debug_full.Gui.Shar
ed/pnglib.o" "/home/kubus/upp/out/examples/plugin/png/GCC.Debug.Debug_full.Gui.Shared/pngupp.o" -Wl,--start-group -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 -lnotify -ldl -lfontconfig -lpthread -ldl -lz -lpng -Wl,--end-group
Error executing g++-4.5 -o "/home/kubus/upp/out/examples/GCC.Debug.Debug_full.Gui.Shared/XmlView" -ggdb -L"/usr/X11R6/lib" -L"/usr/lib64" -Wl,-O,2 "/home/kubus/upp/out/exampl
es/XmlView/GCC.Debug.Debug_full.Gui.Main.Shared/main.o" "/home/kubus/upp/out/examples/CtrlLib/GCC.Debug.Debug_full.Gui.Shared/CtrlLib.o" "/home/kubus/upp/out/examples/Ctrl
Lib/GCC.Debug.Debug_full.Gui.Shared/$blitz.o" "/home/kubus/upp/out/examples/CtrlLib/GCC.Debug.Debug_full.Gui.Shared/ChWin32.o" "/home/kubus/upp/out/examples/CtrlCore/GCC.D
ebug.Debug_full.Gui.Shared/CtrlCore.o" "/home/kubus/upp/out/examples/CtrlCore/GCC.Debug.Debug_full.Gui.Shared/$blitz.o" "/home/kubus/upp/out/examples/PdfDraw/GCC.Debug.Deb
ug_full.Gui.Shared/PdfReport.o" "/home/kubus/upp/out/examples/PdfDraw/GCC.Debug.Debug_full.Gui.Shared/$blitz.o" "/home/kubus/upp/out/examples/Draw/GCC.Debug.Debug_full.Gui
.Shared/$blitz.o" "/home/kubus/upp/out/examples/plugin/bmp/GCC.Debug.Debug_full.Gui.Shared/BmpReg.o" "/home/kubus/upp/out/examples/plugin/bmp/GCC.Debug.Debug_full.Gui.Shar
ed/$blitz.o" "/home/kubus/upp/out/examples/RichText/GCC.Debug.Debug_full.Gui.Shared/RichImage.o" "/home/kubus/upp/out/examples/RichText/GCC.Debug.Debug_full.Gui.Shared/$bl
itz.o" "/home/kubus/upp/out/examples/Core/GCC.Debug.Debug_full.Gui.Shared/$blitz.o" "/home/kubus/upp/out/examples/Core/GCC.Debug.Debug_full.Gui.Shared/OL_Set.o" "/home/kub
us/upp/out/examples/Core/GCC.Debug.Debug_full.Gui.Shared/heaputil.o" "/home/kubus/upp/out/examples/Core/GCC.Debug.Debug_full.Gui.Shared/lheap.o" "/home/kubus/upp/out/examp
les/Core/GCC.Debug.Debug_full.Gui.Shared/heap.o" "/home/kubus/upp/out/examples/Core/GCC.Debug.Debug_full.Gui.Shared/heapdbg.o" "/home/kubus/upp/out/examples/Core/GCC.Debug
.Debug_full.Gui.Shared/CharSet.o" "/home/kubus/upp/out/examples/plugin/png/GCC.Debug.Debug_full.Gui.Shared/pngreg.o" "/home/kubus/upp/out/examples/plugin/png/GCC.Debug.Deb
ug_full.Gui.Shared/pnglib.o" "/home/kubus/upp/out/examples/plugin/png/GCC.Debug.Debug_full.Gui.Shared/pngupp.o" -Wl,--start-group -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -l
gdk_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 -lnotify -ldl -lfontconfig -lpthread -ldl -lz -lpng -Wl,--end-group
Exitcode: 1
There were errors. (0:05.42)
|
|
|
Re: Linking problem [message #31576 is a reply to message #31575] |
Tue, 15 March 2011 15:25   |
chickenk
Messages: 171 Registered: May 2007 Location: Grenoble, France
|
Experienced Member |
|
|
Indeed, '-lfreetype' is not appended to your linker command-line and with the new DSO policy in Ubuntu, this cannot work.
After looking at CtrlCore.upp, it seems we don't explicitely insert freetype for linux platforms (I suppose we expect it to be injected by another dependency, but the new policy avoids just that).
IMHO it's a bug in CtrlCore.upp and you should try by replacing the line library(LINUX) "X11 Xrender"; by the line library(LINUX) "X11 Xrender freetype";
and tell us if it works better...
But the main problem is that we might have plenty of there DSO issues and it should be time getting rid of them. I bet plenty of work on dependencies is needed.
My 2 cents, I'm not using Ubuntu anyway.
EDIT: my bad, freetype lib was added to Draw/Draw.upp at revision r3239 and since CtrlCore depends on Draw, it should work perfectly. Can you check that Draw/Draw.upp includes the line below? library(LINUX) "dl freetype";
Lionel
[Updated on: Tue, 15 March 2011 15:35] Report message to a moderator
|
|
|
Re: Linking problem [message #31577 is a reply to message #31576] |
Tue, 15 March 2011 16:55   |
busiek
Messages: 70 Registered: February 2011 Location: Poland
|
Member |
|
|
chickenk wrote on Tue, 15 March 2011 15:25 |
EDIT: my bad, freetype lib was added to Draw/Draw.upp at revision r3239 and since CtrlCore depends on Draw, it should work perfectly. Can you check that Draw/Draw.upp includes the line below? library(LINUX) "dl freetype";
Lionel
|
No, in ~/upp/uppsrc/Draw/Draw.upp there is
After changing it as you suggested, compilation succeeded.
[Updated on: Tue, 15 March 2011 16:58] Report message to a moderator
|
|
|
Re: Linking problem [message #31578 is a reply to message #31309] |
Tue, 15 March 2011 17:12   |
|
Yes, that is the correct solution 
Here is a small explanation as for why happened: As of now if you update U++ through your package manager, only the sources in /usr/share/upp are updated. Your local copy in your /home stays the same and you have to manually copy the /usr/share/upp into your home directory after each update.
So even though you were using theide in version 3274, the sources were actually older and didn't contain the changes in Draw.upp where freetype was added.
I know that this is quite stupid behavior and I reported it almost a year ago and even proposed and prepared a solution. But nobody really complained so far and nobody was interested in the fix, so I am the only one using it right now... I hope this will drag some attention to it again 
Honza
|
|
|
|
Re: Linking problem [message #31610 is a reply to message #31602] |
Thu, 17 March 2011 11:35   |
|
trader wrote on Wed, 16 March 2011 22:28 | Honza, I install U++ recently and I start get this error.
I will install Nightly PPA, but I prefer Stable.
Tks
|
Note that the most stable version of U++ is usualy the latest The stable releases only point IMHO is that they are not updated that often.
If you want to just surpass this one problem, you can leave the stable PPA set up on your system and just manually install the packages from nightly builds. Their version numbers are higher, so they will superseed the last stable, but as soon as next stable version comes out it will be installed and you are back into the stable releases automatically The nightly debs can be downloaded directly e.g. from here: http://ppa.launchpad.net/dolik-rce/upp-nightly/ubuntu/pool/m ain/u/upp/.
Honza
|
|
|
|
Goto Forum:
Current Time: Tue Apr 29 02:01:07 CEST 2025
Total time taken to generate the page: 0.01400 seconds
|
|
|