wareck il y a 2 ans
Parent
commit
a77511a51d
3 fichiers modifiés avec 10 ajouts et 10 suppressions
  1. 4 7
      build_bfgminer.sh
  2. 2 2
      build_lketc.sh
  3. 4 1
      make_environement.sh

+ 4 - 7
build_bfgminer.sh

@@ -4,7 +4,7 @@ echo ""
 export folder=$(pwd)
 export folder=$(pwd)
 function libraries {
 function libraries {
 cd ~
 cd ~
-#pkg-config --libs libevent_pthreads PKG_CONFIG_PATH=/home/wareck/event
+pkg-config --libs libevent_pthreads PKG_CONFIG_PATH=/home/wareck/event
 rm -r -f temp
 rm -r -f temp
 mkdir temp
 mkdir temp
 cd temp
 cd temp
@@ -13,7 +13,7 @@ wget http://wareck.free.fr/cross_compilation/event.tar.gz
 tar xfz uthash-2.3.0.tar.gz
 tar xfz uthash-2.3.0.tar.gz
 tar xfz event.tar.gz
 tar xfz event.tar.gz
 cd uthash-2.3.0
 cd uthash-2.3.0
-sudo cp src/* /opt/mxe/usr/i686-w64-mingw32.static/include/
+sudo cp src/* /opt/mxe/usr/i686-w64-mingw32.shared/include/
 cd ~
 cd ~
 }
 }
 
 
@@ -22,13 +22,10 @@ git clone https://github.com/wareck/bfgminer.git
 cd bfgminer
 cd bfgminer
 git submodule init
 git submodule init
 git submodule update
 git submodule update
-autoreconf -fi
+./autogen.sh
 #CFLAGS="-O2 -msse2" ./configure --host=i686-w64-mingw32.static libevent_CFLAGS="-I/home/wareck/event/include/" libevent_LIBS="-I/home/wareck/event/lib" --enable-scrypt --without-libevent --prefix=/home/wareck/zob
 #CFLAGS="-O2 -msse2" ./configure --host=i686-w64-mingw32.static libevent_CFLAGS="-I/home/wareck/event/include/" libevent_LIBS="-I/home/wareck/event/lib" --enable-scrypt --without-libevent --prefix=/home/wareck/zob
-CFLAGS="-O2 -msse2" ./configure --host=i686-w64-mingw32.static --enable-scrypt --without-libevent --prefix=/home/wareck/zob
+CFLAGS="-O2 -msse2 -fcommon" ./configure --host=i686-w64-mingw32.shared --enable-scrypt --without-libevent
 make
 make
-make install
-strip bfgminer.exe
-upx bfgminer.exe
 }
 }
 
 
 function pack {
 function pack {

+ 2 - 2
build_lketc.sh

@@ -6,10 +6,10 @@ cd ~
 git clone https://github.com/wareck/cgminer-lketc.git
 git clone https://github.com/wareck/cgminer-lketc.git
 cd cgminer-lketc
 cd cgminer-lketc
 autoreconf -fi
 autoreconf -fi
-CFLAGS="-O2 -msse2" ./configure --host=i686-w64-mingw32.static --disable-shared --enable-zeus --enable-scrypt
+CFLAGS="-O2 -msse2" ./configure --host=i686-w64-mingw32.shared --enable-zeus --enable-scrypt --prefix=/home/wareck/out
 make -j4
 make -j4
 strip cgminer.exe
 strip cgminer.exe
-upx cgminer.exe
+#upx cgminer.exe
 mkdir /tmp/cgminer-lketc
 mkdir /tmp/cgminer-lketc
 cp cgminer.exe /tmp/cgminer-lketc
 cp cgminer.exe /tmp/cgminer-lketc
 cp $folder/packages/lketc/manual.pdf /tmp/cgminer-lketc/
 cp $folder/packages/lketc/manual.pdf /tmp/cgminer-lketc/

+ 4 - 1
make_environement.sh

@@ -9,8 +9,11 @@ sudo git clone -n https://github.com/mxe/mxe.git
 cd mxe
 cd mxe
 sudo git reset --hard 64b283d64891348c92154b8d7eace6a9bff23411
 sudo git reset --hard 64b283d64891348c92154b8d7eace6a9bff23411
 export MXE_DIR=/opt/mxe
 export MXE_DIR=/opt/mxe
-export MXE_TARGETS='i686-w64-mingw32.static'
+#export MXE_TARGETS='i686-w64-mingw32.static'
+#sudo make -j 5 -C $MXE_DIR MXE_TARGETS="$MXE_TARGETS" curl pthreads pdcurses ncurses libusb1 jansson libevent libmicrohttpd libzip
+export MXE_TARGETS='i686-w64-mingw32.shared'
 sudo make -j 5 -C $MXE_DIR MXE_TARGETS="$MXE_TARGETS" curl pthreads pdcurses ncurses libusb1 jansson libevent libmicrohttpd libzip
 sudo make -j 5 -C $MXE_DIR MXE_TARGETS="$MXE_TARGETS" curl pthreads pdcurses ncurses libusb1 jansson libevent libmicrohttpd libzip
+
 if ! grep "export PKG_CONFIG_PATH=/opt/mxe/usr/i686-w64-mingw32.static/lib/pkgconfig/" ~/.profile >/dev/null
 if ! grep "export PKG_CONFIG_PATH=/opt/mxe/usr/i686-w64-mingw32.static/lib/pkgconfig/" ~/.profile >/dev/null
 then
 then
 echo 'export PATH=/opt/mxe/usr/bin:$PATH' >> ~/.profile
 echo 'export PATH=/opt/mxe/usr/bin:$PATH' >> ~/.profile