How to download wxCurl and how to set the libraries?

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Post Reply
optimist07
In need of some credit
In need of some credit
Posts: 7
Joined: Thu Dec 06, 2007 7:50 am

How to download wxCurl and how to set the libraries?

Post by optimist07 »

I can't seem to find the wxCurl library, the download link here goes to a list of files but wxCurl is not there
http://wxcode.sourceforge.net/components/wxcurl/

I've found an older library (v 0.25) at sourceforge (latest on the above link is v 1.0, but it's not there to download)
http://sourceforge.net/project/showfile ... p_id=87174

Even with the older version of library, I have not been able to set it up with wxDevC++. I set the Windows XP's environment variable LIBCURL = F:\Dev-Cpp\Curl (this is where I copied the CURL files) but how do I include wxcurl's http.h?

I also tried copying the http.h to the Dev-C++'s include folder: F:\Dev-Cpp\include\common\wx\curl\
and the compiler still can't find the path when I try
#include <wx/curl/http.h>

What do I have to do to set it up to use?
optimist07
In need of some credit
In need of some credit
Posts: 7
Joined: Thu Dec 06, 2007 7:50 am

Post by optimist07 »

I found a previous thread and downloaded the wxCurl library from the specified folder using TortoiseSVN (https://wxcode.svn.sourceforge.net/svnr ... ts/wxcurl/)

Now I'm stuck at the batch file which builds the library, I

Here is the error I'm getting:

Code: Select all

The selected wxWidgets build is not available!
Please use the options prefixed with WX_ to select another wxWidgets build.
----------------------------------------------------------------------------
mingw32-make: *** [test_for_selected_wxbuild] Error 1
Here is the text I'm using in the batch file:

Code: Select all

set WXWIN=F:\wx287
set path=f:\Dev-Cpp\bin;%path%

mingw32-make -f makefile.gcc WX_DEBUG=0 WX_MONOLITHIC=1 WX_USE_OPENGL=1 WX_RUNTIME_LIBS=static WX_USE_RTTI=0 WX_USE_EXCEPTIONS=1
I have installed wx-DevC++ and I'm not sure what would be a valid path for wxwidgets, I have a previous installation for wxWidgets in F:\wx287, but I think the wxDevC++ installed the wxWidgets within its directory (f:\Dev-Cpp). Does the WXWIN path in batch file play a role in this new build's functionality once its build or does this WXWIN path just provide the wxWidgets libraries for use while building this new library?[/code]
optimist07
In need of some credit
In need of some credit
Posts: 7
Joined: Thu Dec 06, 2007 7:50 am

Post by optimist07 »

any hints please?
bone
Experienced Solver
Experienced Solver
Posts: 74
Joined: Fri Nov 30, 2007 10:11 am
Location: Oz

Post by bone »

The script will give the "wrong build" message if it
1. can't find the wxWidgets installation
2 finds the installation but the build is wrong (28 being the current build)

Open a dos window and check what WXWIN points to by typing SET WXWIN which will output the path to the dos win. You can use this command to set the WXWIN environment variable. Type SET /? to get help.

The default path when WXDEV-C++ is installed is C:\Program Files\Dev-Cpp\include\
bone
Experienced Solver
Experienced Solver
Posts: 74
Joined: Fri Nov 30, 2007 10:11 am
Location: Oz

Post by bone »

The default path when WXDEV-C++ is installed is C:\Program Files\Dev-Cpp\include\
On thinking about it, the path you set this to may depend on whether you want to use $(WXWIN)\include and $(WXWIN)\lib
If so it may be best to set this to C:\Program Files\Dev-Cpp\
optimist07
In need of some credit
In need of some credit
Posts: 7
Joined: Thu Dec 06, 2007 7:50 am

Post by optimist07 »

Thanks for the tip, but it doesn't work whatever I try.
I've tried six combinations of
set WXWIN=F:\wx287
set WXWIN=F:\wx287\build
set WXWIN=F:\wx287\lib

and

set path=f:\Dev-Cpp\bin;%path%
set path=f:\Dev-Cpp;%path%

(the wxDev-Cpp is in f:\Dev-Cpp, and a wxwidgets installation is under f:\wx287)
NinjaNL
Moderator
Moderator
Posts: 899
Joined: Sun Oct 03, 2004 10:33 am
Location: Oosterwolde, Netherlands

Post by NinjaNL »

optimist07 wrote:Here is the text I'm using in the batch file:

Code: Select all

set WXWIN=F:\wx287
set path=f:\Dev-Cpp\bin;%path%

mingw32-make -f makefile.gcc WX_DEBUG=0 WX_MONOLITHIC=1 WX_USE_OPENGL=1 WX_RUNTIME_LIBS=static WX_USE_RTTI=0 WX_USE_EXCEPTIONS=1

Before you build wxCurl, did you build the wxWidgets library at its current location "F:\287"or are you relying on the libraries provided by wxDev?

Which libraries has wxDev? (28? 27?)

where did you place the batch file?
Follow the development of my screenplay authoring program at http://wxscreenplaywriter.blogspot.com/
optimist07
In need of some credit
In need of some credit
Posts: 7
Joined: Thu Dec 06, 2007 7:50 am

Post by optimist07 »

NinjaNL wrote:
optimist07 wrote:Here is the text I'm using in the batch file:

Code: Select all

set WXWIN=F:\wx287
set path=f:\Dev-Cpp\bin;%path%

mingw32-make -f makefile.gcc WX_DEBUG=0 WX_MONOLITHIC=1 WX_USE_OPENGL=1 WX_RUNTIME_LIBS=static WX_USE_RTTI=0 WX_USE_EXCEPTIONS=1

Before you build wxCurl, did you build the wxWidgets library at its current location "F:\287"or are you relying on the libraries provided by wxDev?

Which libraries has wxDev? (28? 27?)

where did you place the batch file?
Thanks for the reply. I think I did build the wxWidgets library at F:\287, and then I installed wxDev and I think it installed the libraries again in its own directory and those are being used by wxDev (I didn't have to build anything new or set any new paths after installing wxDev).

I couldn't find out which libraries were included with wxDev, the help file that came with it says 2.8.0 in the help's main page so I guess the libraries should be 2.8.0.

I placed the batch file in the build folder.
NinjaNL
Moderator
Moderator
Posts: 899
Joined: Sun Oct 03, 2004 10:33 am
Location: Oosterwolde, Netherlands

Post by NinjaNL »

optimist07 wrote:Thanks for the reply. I think I did build the wxWidgets library at F:\287, and then I installed wxDev and I think it installed the libraries again in its own directory and those are being used by wxDev (I didn't have to build anything new or set any new paths after installing wxDev).

I couldn't find out which libraries were included with wxDev, the help file that came with it says 2.8.0 in the help's main page so I guess the libraries should be 2.8.0.

I placed the batch file in the build folder.
Could you check that you have built the libraries correctly? You should have a folder F:\287\libs\gcc_lib

Contained within that folder you should have a set of 8 libraries, all ending with the .a extension.

I assume you have built the library with this batch file (placed in f:\wx287\build\msw)

Code: Select all

set WXWIN=f:\wx287
set path=f:\Dev-Cpp\bin;%path%

mingw32-make -f makefile.gcc BUILD=release MONOLITHIC=1 USE_OPENGL=1 RUNTIME_LIBS=static USE_RTTI=0 USE_EXCEPTIONS=1
Next I assume you have downloaded the wxCurl source from wxCode using TortoiseSVN using this address

https://wxcode.svn.sourceforge.net/svnr ... ts/wxcurl/

In the build folder you should have a batch file

Code: Select all

set WXWIN=f:\wx287
set path=f:\Dev-Cpp\bin;%path%

mingw32-make -f makefile.gcc WX_DEBUG=0 WX_MONOLITHIC=1 WX_USE_OPENGL=1 WX_RUNTIME_LIBS=static WX_USE_RTTI=0 WX_USE_EXCEPTIONS=1
This should build the wxCurl library irrespective of the libraries installed with wxDev. You would however be better served by uninstalling the preinstalled libraries and updating them to 287 through web update.

You should have a successfully built wxCurl library after this.

Could you try this and report back?

Or just download the library here if that doesn't work go here and download from there.

Don't forget that once you have built the library you have to correctly place it and its associated include and sample files within wxDev or correctly point to their location in your project options.
Follow the development of my screenplay authoring program at http://wxscreenplaywriter.blogspot.com/
Post Reply