sgminer-dev / sgminer

Scrypt GPU miner
GNU General Public License v3.0
629 stars 825 forks source link

Build Bug -- MinGW, following cross compile instructions in windows-build.txt file #133

Open sephtin opened 10 years ago

sephtin commented 10 years ago

Following the section of the windows-build.txt file:
Cross-compiling for Windows from Linux

Fails to complete when running:

CPPFLAGS="-I`pwd`/../../win32/include" LDFLAGS="-L`pwd`/../../win32/lib -lcurldll" ../autogen.sh --prefix=/usr/local/i586-mingw32 --host=i586-mingw32msvc --build=i686-linux

No files are generated for use with Make. No errors show up.
To be sure it wasn't my environment, I git cloned cgminer, and it built without issues. I've tried on Ubuntu 13.10 and 12.04 with the same results.

It appears to be an error when running autogen.sh, but it doesn't give any output.

If anyone has cross compiled windows binaries from linux, any chance you could advise what you're doing different from the section in windows-build.txt, so the doc can be updated?

OhGodAPet commented 10 years ago

I wrote a doc, waiting for veox to pull it.

veox commented 10 years ago

@sephtin see https://github.com/veox/sgminer/issues/121#issuecomment-38984161 for the above.

veox commented 10 years ago

...However, the issue you reported is of a different nature: the call to configure has been removed from autogen.sh. You could try adding && ../configure to the command you run manually.

veox commented 10 years ago

@sephtin If you want, you can check branch build-mingw. The documentation is still not up-to-date, though, and you might need to

git reset --hard 47a98cde9fcefffc6f892f75aa1449474b4635d5`