aMule Forum

English => Compilation problems => Topic started by: Rafal_Glazar on August 29, 2005, 02:47:17 AM

Title: glib-2.8.1 + gtk+-2.8.2 + cairo 1.0.0 + pango-1.10.0 linking problem [solved]
Post by: Rafal_Glazar on August 29, 2005, 02:47:17 AM
I just did compile wxGTK 2.6.1 against gtk+ 2.8.2, glib 2.8.1, cairo 1.0.0 and pango 1.10.0. When i try to compile amule CVS 20050828 i've got this error:
Code: [Select]
i686-pc-linux-gnu-g++  -O2 -pipe -march=athlon-xp -fvisibility-inlines-hidden -DUSE_EMBEDDED_CRYPTO     -lpthread -o amule  amule-AddFriend
.o amule-AddFileThread.o amule-AICHSyncThread.o amule-amule.o amule-amule-gui.o amule-amuleDlg.o amule-BarShader.o amule-BaseClient.o amule
-ChatSelector.o amule-ChatWnd.o amule-CatDialog.o amule-CFile.o amule-ClientCredits.o amule-ClientDetailDialog.o amule-ClientList.o amule-C
lientListCtrl.o amule-ClientUDPSocket.o amule-ColorFrameCtrl.o amule-CommentDialog.o amule-CommentDialogLst.o amule-DataToText.o amule-Dead
SourceList.o amule-DirectoryTreeCtrl.o amule-DownloadClient.o amule-DownloadListCtrl.o amule-DownloadQueue.o amule-ECSocket.o amule-ECPacke
t.o amule-ECSpecialTags.o amule-ED2KLink.o amule-EditServerListDlg.o amule-EMSocket.o amule-ExternalConn.o amule-FileDetailDialog.o amule-F
ileDetailListCtrl.o amule-FileFunctions.o amule-Format.o amule-Friend.o amule-FriendList.o amule-FriendListCtrl.o amule-HTTPDownload.o amul
e-IPFilter.o amule-KnownFile.o amule-KadDlg.o amule-KadSearchListCtrl.o amule-KnownFileList.o amule-ListenSocket.o amule-listctrl.o amule-L
ogger.o amule-MemFile.o amule-MD5Sum.o amule-MuleDebug.o amule-MuleGifCtrl.o amule-MuleListCtrl.o amule-MuleNotebook.o amule-MuleTextCtrl.o
 amule-muuli_wdr.o amule-NetworkFunctions.o amule-OScopeCtrl.o amule-OtherFunctions.o amule-Packet.o amule-PartFile.o amule-PartFileConvert
.o amule-Preferences.o amule-PrefsUnifiedDlg.o amule-Proxy.o amule-RLE.o amule-SafeFile.o amule-SearchDlg.o amule-SearchList.o amule-Search
ListCtrl.o amule-Server.o amule-ServerConnect.o amule-ServerList.o amule-ServerListCtrl.o amule-ServerSocket.o amule-ServerUDPSocket.o amul
e-ServerWnd.o amule-SharedFileList.o amule-SharedFilesCtrl.o amule-SharedFilesWnd.o amule-SHA.o amule-SHAHashSet.o amule-StateMachine.o amu
le-Statistics.o amule-StatisticsDlg.o amule-StatTree.o amule-StringFunctions.o amule-TransferWnd.o amule-UploadBandwidthThrottler.o amule-U
ploadClient.o amule-UploadQueue.o amule-UInt128.o   amule-CryptoPP.o amule-ByteIO.o amule-DataIO.o amule-FileIO.o amule-IOException.o amule
-Indexed.o amule-Kademlia.o amule-Prefs.o amule-Search.o amule-SearchManager.o amule-KademliaUDPListener.o amule-Contact.o amule-Ping.o amu
le-RoutingBin.o amule-RoutingZone.o amule-LittleEndian.o  amule-MuleTrayIcon.o -pthread   -lwx_gtk2_xrc-2.6 -lwx_gtk2_html-2.6 -lwx_gtk2_ad
v-2.6 -lwx_gtk2_core-2.6 -lwx_base_xml-2.6 -lwx_base_net-2.6 -lwx_base-2.6  -lz   -lbfd -liberty
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libwx_gtk2_core-2.6.so: undefined reference to `pango_x_get_context'
collect2: ld returned 1 exit status
make[4]: *** [amule] Error 1
make[4]: Leaving directory `/var/tmp/portage/amule-2.1.0_pre20050828/work/amule-cvs/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/amule-2.1.0_pre20050828/work/amule-cvs/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/amule-2.1.0_pre20050828/work/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/amule-2.1.0_pre20050828/work/amule-cvs'
make: *** [all] Error 2

Is it wxGTK problem or can it be solved in amule source code?
Title: Re: glib-2.8.1 + gtk+-2.8.2 + cairo 1.0.0 + pango-1.10.0 linking problem [solved]
Post by: Nodsu on August 29, 2005, 07:34:32 AM
I suppose the specific library name depends on your distro (Gentoo?) but you should add a library to that link statement manually. E.g. copy that link command, paste it and add "-lpangox " to the end. You have to run it in src.

Adding the -l thing to LDFLAGS and reconfiguring should work too..
Title: Re: glib-2.8.1 + gtk+-2.8.2 + cairo 1.0.0 + pango-1.10.0 linking problem [solved]
Post by: Rafal_Glazar on August 29, 2005, 06:18:53 PM
You are right. I resolved this problem by inserting this lines:
Code: [Select]
if has_version '>=x11-libs/pango-1.10.0'; then
export LDFLAGS="${LDFLAGS} -lpangox-1.0"
fi
at the beginning of src_compile() function in my amule ebuild