[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4787: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4790: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
InsideQC Forums • View topic - HTTP downloading from R1Q2- which version of libcurl to use?

HTTP downloading from R1Q2- which version of libcurl to use?

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

HTTP downloading from R1Q2- which version of libcurl to use?

Postby Knightmare » Sun Jun 08, 2014 5:04 am

I've been looking at adding the HTTP auto-downloading feature from R1Q2 to my engine, but R1Q2's source (latest b8102 version) omits the libcurl headers and static library needed for this feature. Has anyone here tried to add this and run into this problem?

I was wondering if I could just take any version of libcurl and compile it into a static library and link with it. For example, the one included with the Doom3 source.
Knightmare
 
Posts: 63
Joined: Thu Feb 09, 2012 1:55 am

Re: HTTP downloading from R1Q2- which version of libcurl to

Postby Spike » Sun Jun 08, 2014 5:11 am

try it?
most libs aim for backwards compatibility, or rename things where that can't be achieved.
.
Spike
 
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: HTTP downloading from R1Q2- which version of libcurl to

Postby r00k » Tue Jun 10, 2014 8:26 am

I ported Warsow's libcurl-download code to netQuake, with very little adjustments.
And since warsow is based on Quake2, it might work even easier for you.
r00k
 
Posts: 1111
Joined: Sat Nov 13, 2004 10:39 pm

Re: HTTP downloading from R1Q2- which version of libcurl to

Postby Jay Dolan » Wed Jun 11, 2014 12:54 pm

Uh, what difference does it make? Once your implementation hits the wire, HTTP 1.1 takes over. It's a spec. Makes zero difference what version of CURL (or any other client library) you use :P

Edit: I see -- you're hoping to basically copy/paste his implementation into your project. Well, in that case, because of the maturity of libCURL, I think you'll be fine with the latest stable release. Their API hasn't changed dramatically in a long, long time (like 10 years).
User avatar
Jay Dolan
 
Posts: 59
Joined: Tue Jan 22, 2008 7:16 pm
Location: Naples, FL

Re: HTTP downloading from R1Q2- which version of libcurl to

Postby qbism » Sun Jun 15, 2014 11:42 pm

libcurl.lib included with q2pro on github might work.
User avatar
qbism
 
Posts: 1236
Joined: Thu Nov 04, 2004 5:51 am

Re: HTTP downloading from R1Q2- which version of libcurl to

Postby Knightmare » Thu Jun 19, 2014 8:51 am

I got the libcurl from Doom3 compiled into a lib. It was easy enough, as a project file for VS2003 is included.

I'm just intending to copy/paste this as a quick addition to KMQ2. I've gotten a few requests from people who use KMQ2 as a multiplayer client to add HTTP download support, and I don't want to devote much time to it, as there are other features I'd rather work on.
Knightmare
 
Posts: 63
Joined: Thu Feb 09, 2012 1:55 am

Re: HTTP downloading from R1Q2- which version of libcurl to

Postby revelator » Thu Jun 19, 2014 8:11 pm

If you want i just compiled the latest version of libcurl for msvc :)
Productivity is a state of mind.
User avatar
revelator
 
Posts: 2605
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Re: HTTP downloading from R1Q2- which version of libcurl to

Postby Knightmare » Sat Jun 21, 2014 7:01 am

Just got that version (7.37.0) compiled into a .lib as well.
Knightmare
 
Posts: 63
Joined: Thu Feb 09, 2012 1:55 am

Re: HTTP downloading from R1Q2- which version of libcurl to

Postby revelator » Sat Jun 21, 2014 8:57 am

Ok m8 :) old one from Doom3 caused the server list to come up empty but after upgrading it works again.
Productivity is a state of mind.
User avatar
revelator
 
Posts: 2605
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Re: HTTP downloading from R1Q2- which version of libcurl to

Postby revelator » Sat Jun 21, 2014 10:50 am

Even found a C++ wrapper which might work out nicely for Doom3.

Productivity is a state of mind.
User avatar
revelator
 
Posts: 2605
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Re: HTTP downloading from R1Q2- which version of libcurl to

Postby Knightmare » Sun Jun 29, 2014 1:23 am

Knightmare
 
Posts: 63
Joined: Thu Feb 09, 2012 1:55 am

Re: HTTP downloading from R1Q2- which version of libcurl to

Postby revelator » Sun Jun 29, 2014 9:53 am

add libcmt.lib to ignored libraries ;) also link curl with the static msvc runtime eg. /MT not /MD
Productivity is a state of mind.
User avatar
revelator
 
Posts: 2605
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Re: HTTP downloading from R1Q2- which version of libcurl to

Postby revelator » Sun Jun 29, 2014 10:00 am

Productivity is a state of mind.
User avatar
revelator
 
Posts: 2605
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Re: HTTP downloading from R1Q2- which version of libcurl to

Postby Knightmare » Mon Jun 30, 2014 1:29 am

Knightmare
 
Posts: 63
Joined: Thu Feb 09, 2012 1:55 am

Re: HTTP downloading from R1Q2- which version of libcurl to

Postby revelator » Mon Jun 30, 2014 2:38 am

I have it compiled and ready to go and curl_easy is in the curl sources ;) believe me its a library export.



I use it In Doom3 which also uses curl_easy :)

edit: Ah you ment that specific function oki.

Also included is the c++ wrapper libraries for curl but you probably wont need those in a C based engine.

Also got some undefined crap untill i played a bit with the project settings now it works just fine, ill investigate the steps i took and post them back here.

Edit again: ok i see now you are linking to the dll version, that wont work with the modified curl.h from me its static only. If you insist on using the dll leave curl.h alone but it works just fine if you link it statically.
Thing with the static lib is that you need to know what windows libraries curl depends on and add them to the linker as well, those are ws2_32.lib wldap32.lib advapi32.lib normaliz.lib some of them are probably allready in the linker but double check just in case. My bet would be that you are missing ws2_32.lib and wldap32.lib.
Last edited by revelator on Mon Jun 30, 2014 2:54 am, edited 2 times in total.
Productivity is a state of mind.
User avatar
revelator
 
Posts: 2605
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Next

Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 2 guests