aMule Forum

English => Compilation problems => Topic started by: realcruncher on July 09, 2006, 02:37:55 AM

Title: mingw compilation of CVS no go
Post by: realcruncher on July 09, 2006, 02:37:55 AM
Hi,

i only want to use the amulegui and used the following configuration:

./configure --disable-monolithic --disable-ed2k --enable-amule-gui --disable-debug --enable-final --disable-profile --enable-optimize

Wxwidgets is the current snapshot (named 2.7.0).

after running make this is the result:

Code: [Select]
[...]
g++  -DNOMINMAX -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -O2  -DUSE_WX_EXTENSIONS   -o amulegui.exe  amulegui-amule-remote-gui.o amulegui-amule-gui.o amulegui-amuleDlg.o amulegui-AddFriend.o amulegui-ChatSelector.o amulegui-ClientDetailDialog.o amulegui-FileDetailDialog.o amulegui-KadDlg.o amulegui-OScopeCtrl.o amulegui-PartFileConvert.o amulegui-PrefsUnifiedDlg.o amulegui-SearchDlg.o amulegui-ServerWnd.o amulegui-SharedFilesWnd.o amulegui-StatisticsDlg.o amulegui-SearchListCtrl.o amulegui-DownloadListCtrl.o amulegui-ClientListCtrl.o amulegui-FriendListCtrl.o amulegui-ServerListCtrl.o amulegui-SharedFilesCtrl.o amulegui-MuleTrayIcon.o amulegui-TransferWnd.o amulegui-ClientCredits.o amulegui-ECSpecialMuleTags.o amulegui-KnownFile.o amulegui-GetTickCount.o amulegui-GuiEvents.o amulegui-Logger.o amulegui-PartFile.o amulegui-Preferences.o amulegui-Proxy.o amulegui-Server.o amulegui-Statistics.o amulegui-StatTree.o amulegui-SHAHashSet.o amulegui-UserEvents.o amulegui-OtherFunctions.o -L. -lmuleappcommon -Llibs/common -Llibs/ec -lmulecommon -lec   -lbfd -liberty  -L. -lmuleappgui  -L/usr/local/lib  -mthreads  -Wl,--subsystem,windows -mwindows /usr/local/lib/libwx_mswu_adv-2.7.a /usr/local/lib/libwx_mswu_core-2.7.a /usr/local/lib/libwx_baseu_net-2.7.a /usr/local/lib/libwx_baseu-2.7.a -lwxregexu-2.7 -lwxexpat-2.7 -lwxtiff-2.7 -lwxjpeg-2.7 -lwxpng-2.7 -lz -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32  amulerc.o -lz
amulegui-DownloadListCtrl.o(.rdata$_ZTV17CDownloadListCtrl[vtable for CDownloadListCtrl]+0x8):DownloadListCtrl.cpp: undefined reference to `wxObject::GetClassInfoW() const'
collect2: ld returned 1 exit status
make[3]: *** [amulegui.exe] Error 1
Title: Re: mingw compilation of CVS no go
Post by: Onkelvent on July 09, 2006, 05:49:24 PM
I have it just compiling. Besides, I had no problems. I am of use wxwidgets 2.6.3. It functions with Win XP and SuSE 10.0.

Win XP
Code: [Select]
$ ./configure --with-zlib=/home/sven/aMule/zlibdll/ --disable-debug --enable-optimize --enable-static --enable-amule-gui --disable-ed2k && make
SuSE 10.0
Code: [Select]
$ ./configure --disable-debug --enable-optimize --enable-amule-gui && make
Onkelvent
Title: Re: mingw compilation of CVS no go
Post by: GonoszTopi on July 09, 2006, 11:06:39 PM
Btw, realcruncher, where did you get that '--enable-final' switch from?
Title: Re: mingw compilation of CVS no go
Post by: Gerd78 on July 10, 2006, 12:09:41 AM
--enable-final is used by various KDE apps, I think realcruncher copied it from there:

http://lists.kde.org/?l=kde-devel&m=92722836009368&w=2

aMule's autoconf script will just ignore it.
Title: Re: mingw compilation of CVS no go
Post by: realcruncher on July 10, 2006, 09:05:15 AM
i am downloading the oncle version now :)
I still don't know why it doesn't compile in my msys environment. What did you install so that the precompiler doesn't create a file with wxObject::GetClassInfoW() const which the linker can't find ?
The enable-final switch was used sometimes and i didn't remove it when it maybe became obsolet.
Title: Re: mingw compilation of CVS no go
Post by: GonoszTopi on July 10, 2006, 11:36:51 AM
It may be a wxCVS problem. I can confirm, that with wxMSW 2.6.3 aMule compiles fine.