Closed PatrykMis closed 5 years ago
To compile bcm2-utils on Windows, a project file for Dev-Cpp is included. I've put fixing MSYS2 builds onto my todo list, but for now, please try the latest binaries (version 0.9.3).
Fixed in aaf276f. Closing this.
dev-cpp project works, MSYS2 building also, great work, thanks for quick fix.
Compiling with few warnings but I'm guessing it's not very important:
g++ -Wall -Wno-sign-compare -g -DVERSION=\"v0.9.3-4-ga2ea5fc\" -std=c++14 -Wnon-virtual-dtor -c -o bcm2cfg.o bcm2cfg.cc
bcm2cfg.cc: In function 'int {anonymous}::do_info(int, char**, bcm2dump::sp~~~~~~
bcm2cfg.cc:309:13: warning: too many arguments for format [-Wformat-extra-args]
g++ -c -Wall -Wno-sign-compare -g -DVERSION=\"v0.9.3-4-ga2ea5fc\" -std=c++14 -Wnon-virtual-dtor nonvoldef.cc -o nonvoldef.o
nonvoldef.cc: In member function 'virtual std::__cxx11::string bcm2cfg::{anonymous}::nv_timestamp::to_string(unsigned int, bool) const':
nonvoldef.cc:56:34: warning: unknown conversion type character 'F' in format [-Wformat=]
strftime(buf, sizeof(buf) - 1, "%F %R", localtime(&time));
^~~
nonvoldef.cc:56:34: warning: unknown conversion type character 'R' in format [-Wformat=]
g++ -Wall -Wno-sign-compare -g -DVERSION=\"v0.9.3-4-ga2ea5fc\" -std=c++14 -Wnon-virtual-dtor -c -o psextract.o psextract.cc
psextract.cc: In function 'void {anonymous}::extract_ps(std::istream&, const bcm2dump::ps_header&)':
psextract.cc:110:12: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
logger::i("0x%07lx ", streamoff(in.tellg()) - sizeof(ps_header::raw));
^~~ ~~~~~~~~~~
psextract.cc: In function 'void {anonymous}::extract_image(std::istream&)':
psextract.cc:141:13: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'std::streamoff' {aka 'long long int'} [-Wformat=]
logger::i("0x%07lx ", beg & 0xffffffff);
^~~ ~~~~
I'm having the same problem mentioned in Issue 7, so tried to compile master branch using MSYS2 - http://www.msys2.org/ Tried also 32-bit but same errors, just slightly different function names.
Tried to install win32api, tried to include wsock32 and ws2_32, same errors. Clean-installed environment - the same.