How to download wxCurl and how to set the libraries?
-
- 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?
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?
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?
-
- In need of some credit
- Posts: 7
- Joined: Thu Dec 06, 2007 7:50 am
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:
Here is the text I'm using in the batch file:
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]
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
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
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\
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\
-
- In need of some credit
- Posts: 7
- Joined: Thu Dec 06, 2007 7:50 am
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/
-
- In need of some credit
- Posts: 7
- Joined: Thu Dec 06, 2007 7:50 am
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).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?
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_liboptimist07 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.
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
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
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/