[Libevent-users] ANN: Libevent 1.4.5-stable released
Brodie Thiesfield
brofield2 at jellycan.com
Thu Jun 26 00:18:35 EDT 2008
Niels Provos wrote:
> On Wed, Jun 25, 2008 at 7:51 PM, Brodie Thiesfield
> <brofield2 at jellycan.com> wrote:
>
>> This still doesn't build for me on Windows. If I am missing some
>> requirements please let me know. Perhaps there should be a readme for
>> Windows building as well?
>>
>> Steps to reproduce:
>> * extract 1.4.5 archive
>> * open .dsw in Visual Studio 6 (or 2003, or 2005)
>> * batch build, rebuild all
>>
>
> We really need some better way of building in Windows like Makefiles.
> Try opening
>
> WIN32-Proj/libevent.sln
>
> with Visual Studio and let us know if that works any better for you.
>
This only opens in Visual Studio 2005 because it is the latest version.
When opening it is missing all of the required .vcproj files (the actual
project definition files) except for "regress". Attempting to build
regress results in the same errors as the .dsw project (see below).
I think that workspace / project files are fine. The problem appears to
me that no-one is actually building libevent on Windows, or that they
are using different project files than are being released. I would
suggest that if the .dsw / .dsp (Visual Studio 6) files are updated (if
necessar), and the source files are updated as necessary then this build
will work.
For the changes I found necessary to build 1.4.4 on Windows with Visual
Studio 2003 with no warnings, see
http://code.jellycan.com/files/libevent.diff
In summary, this is:
* changing include of <event.h> to "event.h"
* changing include of <evutil.h> to "evutil.h"
* changing include of <event-config.h> to "event-config.h"
* fixing incorrect definitions in "win32/event-config.h"
* changing a couple of variable from signed to unsigned
* explicitly using the A versions of Win32 functions (to be compatible
with Unicode builds)
* removing the .dsw / .dsp files and adding .sln / .vcproj files
* casting away signed / unsigned warnings
At some stage I will get around to fixing this patch for 1.4.5 too.
Regards,
Brodie
Results from building "regress" project:
1>------ Build started: Project: regress, Configuration: Debug Win32 ------
1>Compiling...
1>regress.c
1>d:\downloads\libevent-1.4.5-stable\event.h(167) : fatal error C1083:
Cannot open include file: 'sys/time.h': No such file or directory
1>regress_dns.c
1>d:\downloads\libevent-1.4.5-stable\event.h(167) : fatal error C1083:
Cannot open include file: 'sys/time.h': No such file or directory
1>regress_http.c
1>d:\downloads\libevent-1.4.5-stable\event.h(167) : fatal error C1083:
Cannot open include file: 'sys/time.h': No such file or directory
1>Generating Code...
1>Build log was saved at
"file://d:\Downloads\libevent-1.4.5-stable\WIN32-Prj\regress\Debug\BuildLog.htm"
1>regress - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
More information about the Libevent-users
mailing list