mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 12:34:27 +00:00
doc: Simplify paths for cross-compiling instructions in windows-build.txt
This commit is contained in:
parent
f321a0211b
commit
e0ca8ebc2f
@ -234,15 +234,15 @@ libraries we depend on. We could put these in
|
|||||||
/usr/i586-mingw32msvc/lib or anywhere else, instead (though keeping it
|
/usr/i586-mingw32msvc/lib or anywhere else, instead (though keeping it
|
||||||
outside /usr means we can set it up without root privileges.)
|
outside /usr means we can set it up without root privileges.)
|
||||||
|
|
||||||
IMPORTANT: If you put this directory inside your cgminer directory,
|
IMPORTANT: If you put this directory inside your sgminer directory,
|
||||||
remember 'make distclean' may delete it!
|
remember 'make distclean' may delete it!
|
||||||
|
|
||||||
mkdir -p ../cgminer-win32-deps/lib
|
mkdir -p ../win32/lib
|
||||||
cd ../cgminer-win32-deps
|
cd ../win32
|
||||||
mkdir include
|
mkdir include
|
||||||
mkdir bin
|
mkdir bin
|
||||||
|
|
||||||
NB: All following steps assume you are in the "cgminer-win32-deps" directory. Adjust as necessary.
|
NB: All following steps assume you are in the "win32" directory. Adjust as necessary.
|
||||||
|
|
||||||
** pdcurses
|
** pdcurses
|
||||||
|
|
||||||
@ -254,7 +254,8 @@ mv pdcurses.dll bin/
|
|||||||
|
|
||||||
** pthreads-w32
|
** pthreads-w32
|
||||||
|
|
||||||
(NB: I found pthreads-w32 2.9.1 doesn't seem to work properly, transfers time out early due to sem_timedwait exiting immediately(?))
|
(NB: I found pthreads-w32 2.9.1 doesn't seem to work properly, transfers time out
|
||||||
|
early due to sem_timedwait exiting immediately(?))
|
||||||
|
|
||||||
wget -O lib/libpthread.a ftp://sourceware.org/pub/pthreads-win32/prebuilt-dll-2-8-0-release/lib/libpthreadGC2.a
|
wget -O lib/libpthread.a ftp://sourceware.org/pub/pthreads-win32/prebuilt-dll-2-8-0-release/lib/libpthreadGC2.a
|
||||||
wget -O include/pthread.h ftp://sourceware.org/pub/pthreads-win32/prebuilt-dll-2-8-0-release/include/pthread.h
|
wget -O include/pthread.h ftp://sourceware.org/pub/pthreads-win32/prebuilt-dll-2-8-0-release/include/pthread.h
|
||||||
@ -278,24 +279,23 @@ rm -rf curl-7.33.0-devel-mingw32
|
|||||||
rm *.zip
|
rm *.zip
|
||||||
|
|
||||||
|
|
||||||
** Building cgminer
|
** Building
|
||||||
|
|
||||||
Below assumes you're building in a "build-win32" or similar directory
|
Below assumes you're building in a "build-win32" or similar directory
|
||||||
inside the cgminer directory. Fix up the -I and -L paths appropriately
|
inside the sgminer directory. Fix up the -I and -L paths appropriately
|
||||||
if you're building in-tree or someplace else.
|
if you're building in-tree or someplace else.
|
||||||
|
|
||||||
Configure command:
|
Configure command:
|
||||||
|
|
||||||
CPPFLAGS="-I`pwd`/../../cgminer-win32-deps/include" LDFLAGS="-L`pwd`/../../cgminer-win32-deps/lib -lcurldll" ../autogen.sh --prefix=/usr/local/i586-mingw32 --host=i586-mingw32msvc --build=i686-linux
|
CPPFLAGS="-I`pwd`/../../win32/include" LDFLAGS="-L`pwd`/../../win32/lib -lcurldll" ../autogen.sh --prefix=/usr/local/i586-mingw32 --host=i586-mingw32msvc --build=i686-linux
|
||||||
|
|
||||||
^^^ Plus whatever configure arguments you want to add. Note the paths
|
^^^ Plus whatever configure arguments you want to add. Note the paths
|
||||||
to cgminer-win32-deps that you may need to change.
|
to win32 that you may need to change.
|
||||||
|
|
||||||
And make:
|
And make:
|
||||||
|
|
||||||
make
|
make
|
||||||
|
|
||||||
After cgminer builds, the next steps are the same as for native
|
After building, the next steps are the same as for native
|
||||||
building as given under "Copy files to a build directory/folder"
|
building as given under "Copy files to a build directory/folder"
|
||||||
(DLLs can all be found in the cgminer-win32-deps/bin directory.)
|
(DLLs can all be found in the win32/bin directory.)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user