wxCurl won't compile

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
Post Reply
In need of some credit
In need of some credit
Posts: 1
Joined: Tue May 11, 2010 4:36 pm

wxCurl won't compile

Post by ulit » Tue May 11, 2010 5:36 pm

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?

Posts: 1598
Joined: Wed Nov 12, 2008 7:23 am
Location: Romania

Post by catalin » Tue May 11, 2010 8:33 pm

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".

Experienced Solver
Experienced Solver
Posts: 86
Joined: Wed Apr 18, 2007 6:10 am
Location: Shanghai China

Post by xin.songtao » Mon Oct 11, 2010 9:25 am

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
from: Shanghai China
language: C++/C
Email: [email protected]

Post Reply