compilations fails with wxcurl
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2008
    Location
    Germany
    Posts
    465
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    compilations fails with wxcurl

    Hi,

    i want to compile wxcurl from https://sourceforge.net/projects/wxcurl/ on F23/F24

    Code:
    unzip wxcurl-1.0.zip
    cd wxcurl
    chmod +x configure
    ./configure --prefix=/usr
    make
    error message:
    Makefile:181: *** missing separator. Stop.

    how can i solve this ?

  2. #2
    Leigh Scott Guest

    Re: compilations fails with wxcurl

    Quote Originally Posted by TheBigRed
    Hi,

    i want to compile wxcurl from https://sourceforge.net/projects/wxcurl/ on F23/F24

    Code:
    unzip wxcurl-1.0.zip
    cd wxcurl
    chmod +x configure
    ./configure --prefix=/usr
    make
    error message:
    Makefile:181: *** missing separator. Stop.

    how can i solve this ?
    delete lines 181 & 182 in makefile.in

  3. #3
    Join Date
    Mar 2008
    Location
    Germany
    Posts
    465
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: compilations fails with wxcurl

    Quote Originally Posted by Leigh Scott
    delete lines 181 & 182 in makefile.in
    but then, make fails with:

    Code:
    # make
    /tmp/test/wxcurl/bk-deps g++ -c -o wxcurl_dll_base.o -I./include -DWXMAKINGDLL_WXCURL `curl-config --cflags` -fPIC -DPIC -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  -O2  ./src/base.cpp
    /tmp/test/wxcurl/bk-deps g++ -c -o wxcurl_dll_dav.o -I./include -DWXMAKINGDLL_WXCURL `curl-config --cflags` -fPIC -DPIC -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  -O2  ./src/dav.cpp
    /tmp/test/wxcurl/bk-deps g++ -c -o wxcurl_dll_davtool.o -I./include -DWXMAKINGDLL_WXCURL `curl-config --cflags` -fPIC -DPIC -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  -O2  ./src/davtool.cpp
    /tmp/test/wxcurl/bk-deps g++ -c -o wxcurl_dll_dialog.o -I./include -DWXMAKINGDLL_WXCURL `curl-config --cflags` -fPIC -DPIC -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  -O2  ./src/dialog.cpp
    ./src/dialog.cpp: In member function 'void wxCurlTransferDialog::CreateControls(const wxString&, const wxString&, const wxString&, const wxBitmap&)':
    ./src/dialog.cpp:173:53: error: 'wxST_ELLIPSIZE_MIDDLE' was not declared in this scope
                                        wxSize(MINWIDTH, -1), wxST_ELLIPSIZE_MIDDLE);
                                                         ^~~~~~~~~~~~~~~~~~~~~
    Makefile:404: recipe for target 'wxcurl_dll_dialog.o' failed
    make: *** [wxcurl_dll_dialog.o] Error 1

  4. #4
    Leigh Scott Guest

    Re: compilations fails with wxcurl

    Quote Originally Posted by TheBigRed
    but then, make fails with:

    Code:
    # make
    /tmp/test/wxcurl/bk-deps g++ -c -o wxcurl_dll_base.o -I./include -DWXMAKINGDLL_WXCURL `curl-config --cflags` -fPIC -DPIC -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  -O2  ./src/base.cpp
    /tmp/test/wxcurl/bk-deps g++ -c -o wxcurl_dll_dav.o -I./include -DWXMAKINGDLL_WXCURL `curl-config --cflags` -fPIC -DPIC -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  -O2  ./src/dav.cpp
    /tmp/test/wxcurl/bk-deps g++ -c -o wxcurl_dll_davtool.o -I./include -DWXMAKINGDLL_WXCURL `curl-config --cflags` -fPIC -DPIC -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  -O2  ./src/davtool.cpp
    /tmp/test/wxcurl/bk-deps g++ -c -o wxcurl_dll_dialog.o -I./include -DWXMAKINGDLL_WXCURL `curl-config --cflags` -fPIC -DPIC -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  -O2  ./src/dialog.cpp
    ./src/dialog.cpp: In member function 'void wxCurlTransferDialog::CreateControls(const wxString&, const wxString&, const wxString&, const wxBitmap&)':
    ./src/dialog.cpp:173:53: error: 'wxST_ELLIPSIZE_MIDDLE' was not declared in this scope
                                        wxSize(MINWIDTH, -1), wxST_ELLIPSIZE_MIDDLE);
                                                         ^~~~~~~~~~~~~~~~~~~~~
    Makefile:404: recipe for target 'wxcurl_dll_dialog.o' failed
    make: *** [wxcurl_dll_dialog.o] Error 1
    You probably need a newer wx version

    https://forums.wxwidgets.org/viewtopic.php?t=27459

  5. #5
    Leigh Scott Guest

    Re: compilations fails with wxcurl

    Quote Originally Posted by Leigh Scott
    You probably need a newer wx version

    https://forums.wxwidgets.org/viewtopic.php?t=27459
    or patch it

    https://sourceforge.net/p/wxcode/bugs/152/
    Attached Files Attached Files

  6. #6
    Join Date
    Mar 2008
    Location
    Germany
    Posts
    465
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: compilations fails with wxcurl

    Quote Originally Posted by Leigh Scott
    Thanks for your feedback.

    after make, a few libraries are not found.
    Code:
    cd src/
    patch -p1 < ../dialog.cpp.diff
    make clean
    make CFLAGS="-fPIC" CXXFLAGS="-fPIC"
    Code:
    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  -lwxcode_gtk2u_wxcurl-2.8 -lcurl -lws2_32 -lwldap32 -pthread -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld  -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
    /usr/bin/ld: cannot find -lws2_32
    /usr/bin/ld: cannot find -lwldap32
    collect2: error: ld returned 1 exit status
    Makefile:333: recipe for target 'samples/protocols/protocols' failed
    make: *** [samples/protocols/protocols] Error 1
    In the meantime i created a rpm spec file:
    wxcurl.spec
    Last edited by TheBigRed; 3rd June 2016 at 02:36 PM.

  7. #7
    Join Date
    Mar 2008
    Location
    Germany
    Posts
    465
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: compilations fails with wxcurl

    The error message looks like, that Windows-specific link libraries (DLLs) are wanted (and not found). wxCurl requires libcurl. The linker reference -lcurl appears twice and behind
    the second are then the Windows specific libraries -lws2_32 and
    -lwldap32 - which should not occur definitely under Linux.

    Maybe it would helpfully to generate the build files with bakefile ?

    Has someone expirence with bakefile ?

Similar Threads

  1. fedora 16 gnome fails system fails on initial update reboot
    By edeziffel in forum Installation, Upgrades and Live Media
    Replies: 1
    Last Post: 4th April 2012, 06:43 PM
  2. Boot up fails. Avahi-Daemon fails.
    By flyingpengwin in forum Using Fedora
    Replies: 6
    Last Post: 26th November 2008, 04:46 AM
  3. how to make the system ready for compilations ?
    By FedorLinu in forum Using Fedora
    Replies: 3
    Last Post: 30th September 2008, 03:45 AM
  4. notification when raid fails, or power fails?
    By wijszman in forum Servers & Networking
    Replies: 3
    Last Post: 20th July 2005, 08:33 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •