Page 1 of 1

wxCurl won't compile

Posted: Tue May 11, 2010 5:36 pm
by ulit
Hi guys,
I'm having a strange problem with wxCurl compilation under Linux. ./configure passes flawlessly, but make stops on

Code: Select all

g++ -o samples/protocols/protocols protocols_wxCURLApp.o protocols_wxCURLDlg.o protocols_wxDeleteDialog.o protocols_wxFTPDeleteDialog.o protocols_wxFTPMkdirDialog.o protocols_wxFTPRenameDialog.o protocols_wxFTPRmdirDialog.o protocols_wxGetDialog.o protocols_wxGetFSDialog.o protocols_wxGetFSFTPDialog.o protocols_wxGetFTPDialog.o protocols_wxGetFTPFileDialog.o protocols_wxGetFileDialog.o protocols_wxHeadDialog.o protocols_wxInfoFTPDialog.o protocols_wxListFTPDialog.o protocols_wxMkcolDialog.o protocols_wxNlstFTPDialog.o protocols_wxOptionsDialog.o protocols_wxPostDialog.o protocols_wxPropfindDialog.o protocols_wxPutDialog.o protocols_wxPutFTPDialog.o protocols_wxPutFTPTextDialog.o protocols_wxPutTextDialog.o protocols_wxTraceDialog.o  -L./lib  -L./lib  `curl-config --libs`  -lcurl -Wl,--hash-style=gnu -Wl,--as-needed  -lwxcode_gtk2u_wxcurl-2.8 -lcurl -lws2_32 -lwldap32 -pthread -Wl,--hash-style=gnu -Wl,--as-needed  -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_baseu_xml-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu-2.8  
/usr/bin/ld: cannot find -lwxcode_gtk2u_wxcurl-2.8
collect2: ld returned 1 exit status
make: *** [samples/protocols/protocols] Błąd 1
On the way I came across a problem with wxST_ELLIPSIZE_MIDDLE (style of wxStaticText) in dialog.cpp, which I simply removed - it's not implemented in wxWidgets 2.8.10. I've googled for wxcode_gtk2u_wxcurl-2.8, but I've found nothing.

wxWidgets 2.8.10 (installed form Arch Linux stable repository)
wxCurl 1.0 (downloaded from wxcode.com)

I tried to compile it using wxWidgets 2.9, but it didn't help. Where do I make a mistake?

Posted: Tue May 11, 2010 8:33 pm
by catalin
Only try to compile wxCURL 1.0 with wxW 2.9.

Maybe some changes in wxW trunk broke compilation, in which case you can ask wxCURL maintainers to fix it. Or you get some errors induced by your setup, in which case maybe somebody here can help you.
But again (as it is written on their website http://wxcode.sourceforge.net/components/wxcurl/) "wxWidgets supported versions: 2.9".

Posted: Mon Oct 11, 2010 9:25 am
by xin.songtao
Here my complie command,it works well on mac 10.5.6

configure curl (the version is:7.21.1 )

Code: Select all

./configure --prefix=/your_folder/curlPrefix/ BUILD=release --disable-debug --disable-curldebug --enable-static=yes --enable-shared=no --disable-ftp --disable-ldap --disable-ldaps --disable-rtsp --disable-proxy --disable-dict --disable-telnet --disable-manual --disable-cookiew --without-ca-path --without-polarssl --without-ca-bundle --without-libidn --without-ssl --without-nss --without-librtmp --without-libssh2 --without-ssl

configure wxcurl

Code: Select all

./configure --prefix=/your_folder/wxCurlPrefix --enable-unicode --enable-shared=no --enable-static=yes BUILD=release --enable-debug=no --with-libcurl=/your_folder/curlPrefix/ --with-wx-config=/your_wxWidgetsPrefix_folder/lib/wx/config/mac-unicode-release-static-2.8 --with-wx-prefix=/your_wxWidgetsPrefix_folder

Note: your_folder need you to specify