ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sat Nov 18, 2017 9:13 pm

All times are UTC




Post new topic  Reply to topic  [ 28 posts ]  Go to page Previous 1 2
Author Message
PostPosted: Mon Mar 06, 2017 7:45 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7110
Add -DQUICKBMS64 in CFLAGS of Makefile.
As far as I know quickbms should work with files bigger than 4gb, I will recheck it.


Top
   
PostPosted: Tue Mar 07, 2017 1:51 pm 
User avatar

Joined: Thu Oct 02, 2014 4:58 pm
Posts: 148
Thanks!, now is working, i updated the script and uploaded the binary


Top
   
PostPosted: Sat Mar 18, 2017 1:11 am 
User avatar

Joined: Thu Oct 02, 2014 4:58 pm
Posts: 148
Compiled version 0.8.0 for Debian and his forks (like Ubuntu and Linux Mint 32 and 64 bits) this version works with files bigger than 4gb's, you only will see 1 executable

1,9 Mb's
Format: tar.xz
https://mega.nz/#!6wUEEJLC!a6uXNgnxOUzs ... 9Q4FNieCdo

Remember, you can compile your own version using this script

viewtopic.php?f=13&t=1742#p20551

Thanks Aluigi for this new version :D


Top
   
PostPosted: Sat Mar 18, 2017 9:30 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7110
Well done.
Probably would have been better to have both quickbms and quickbms_4gb_files because leaving the latter one renamed as the 32bit one "may" cause some problems with some scripts or in some conditions.


Top
   
PostPosted: Sun Mar 19, 2017 1:40 am 
User avatar

Joined: Thu Oct 02, 2014 4:58 pm
Posts: 148
Created new version of the script, now builds two binaries, the normal and the quickbms_4gb_files, and of course i already compiled and uploaded, the files are 32bits and tested under fresh Linux Mint 32 bits and 64 bits too

2,23 Mb's
https://mega.nz/#!K8QkjZ6Y!7iCs--S0EomM ... 6AeKrTP_58

The new script

Code:
#!/bin/bash
#
# Quickbms auto compiler from scrath for Linux Mint 18.1 32 bits (v1.0.3)
#
# This version compiles the LZO libray into the main binary,
# no external libray lizblzo.so.2 is required to run, the binary compiled
# works with the 64 bits OS too
#
# Created by SAVAGE (March 18 2017)
#
# Added the parameter -DQUICKBMS64 in the CFLASH for the Makefile, thanks ALUIGI for the tip
#
# You can reachme at ZENHAX FORUM www.zenhax.com
#
# How to:
# sudo chmod +x quickbms32bitscompiler.sh && ./quickbms32bitscompiler.sh
#

#Download & Compiling LZO
wget http://www.oberhumer.com/opensource/lzo/download/lzo-2.09.tar.gz
tar xvfa lzo-2.09.tar.gz && cd lzo-2.09
./configure --disable-shared --enable-static && make && cd ..

#Download quickbms and dependences
mkdir quickbmsrc && cd quickbmsrc && wget http://aluigi.altervista.org/papers/quickbms_src.zip && unzip quickbms_src.zip && cd src
sudo apt-get install -y zlib1g-dev libbz2-dev liblzo2-dev libssl-dev g++

#Patching the Makefile and copying the LZO dependences already compiled into the source of quickbms
sed -i 's/-w/-w -L.\/liblzo2/g' Makefile
sed -i 's/-llzo2/liblzo2.a/g' Makefile
cp ../../lzo-2.09/src/*.o .
cp ../../lzo-2.09/src/.libs/liblzo2.a .

#Compiling the file quickbms.bin
make

#Rename the filename
mv quickbms quickbms.bin


#Compiling the file quickbms_4gb_files.bin and patching the MakeFile
sed -i 's/-m32/-m32 -DQUICKBMS64/g' Makefile
make

#Rename the filename
mv quickbms quickbms_4gb_files.bin

clear
echo
echo The compiled versions are at quickbmsrc/src
echo
echo The filenames are: quickbms.bin and quickbms_4gb_files.bin


Top
   
PostPosted: Fri Sep 22, 2017 1:03 pm 

Joined: Fri Sep 22, 2017 12:42 pm
Posts: 2
Savage wrote:
Created new version of the script, now builds two binaries, the normal and the quickbms_4gb_files, and of course i already compiled and uploaded, the files are 32bits and tested under fresh Linux Mint 32 bits and 64 bits too

2,23 Mb's
https://mega.nz/#!K8QkjZ6Y!7iCs--S0EomM ... 6AeKrTP_58

The new script

Code:
#!/bin/bash
#
# Quickbms auto compiler from scrath for Linux Mint 18.1 32 bits (v1.0.3)
#
# This version compiles the LZO libray into the main binary,
# no external libray lizblzo.so.2 is required to run, the binary compiled
# works with the 64 bits OS too
#
# Created by SAVAGE (March 18 2017)
#
# Added the parameter -DQUICKBMS64 in the CFLASH for the Makefile, thanks ALUIGI for the tip
#
# You can reachme at ZENHAX FORUM www.zenhax.com
#
# How to:
# sudo chmod +x quickbms32bitscompiler.sh && ./quickbms32bitscompiler.sh
#

#Download & Compiling LZO
wget http://www.oberhumer.com/opensource/lzo/download/lzo-2.09.tar.gz
tar xvfa lzo-2.09.tar.gz && cd lzo-2.09
./configure --disable-shared --enable-static && make && cd ..

#Download quickbms and dependences
mkdir quickbmsrc && cd quickbmsrc && wget http://aluigi.altervista.org/papers/quickbms_src.zip && unzip quickbms_src.zip && cd src
sudo apt-get install -y zlib1g-dev libbz2-dev liblzo2-dev libssl-dev g++

#Patching the Makefile and copying the LZO dependences already compiled into the source of quickbms
sed -i 's/-w/-w -L.\/liblzo2/g' Makefile
sed -i 's/-llzo2/liblzo2.a/g' Makefile
cp ../../lzo-2.09/src/*.o .
cp ../../lzo-2.09/src/.libs/liblzo2.a .

#Compiling the file quickbms.bin
make

#Rename the filename
mv quickbms quickbms.bin


#Compiling the file quickbms_4gb_files.bin and patching the MakeFile
sed -i 's/-m32/-m32 -DQUICKBMS64/g' Makefile
make

#Rename the filename
mv quickbms quickbms_4gb_files.bin

clear
echo
echo The compiled versions are at quickbmsrc/src
echo
echo The filenames are: quickbms.bin and quickbms_4gb_files.bin



############################
Hi,
I have followed the script and error appears in the end.

Code:
...
-static-libgcc -static-libstdc++ -lstdc++ -ldl -lz -lbz2 -lm -lpthread liblzo2.a -lssl -lcrypto -DDISABLE_UCL -DDISABLE_MCRYPT -DDISABLE_TOMCRYPT
/usr/bin/ld: cannot find -lz
/usr/bin/ld: cannot find -lbz2
collect2: error: ld returned 1 exit status
Makefile:38: recipe for target 'all' failed
make: *** [all] Error 1

uname -a
Linux xxxxx 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u5 (2017-09-19) x86_64 GNU/Linux
---
I've tried to download the what you compiled but link is dead.
Can you make upload again?

Thank you


Top
   
PostPosted: Fri Sep 22, 2017 1:52 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7110
Try installing the missing 32bit zlib and bzip2 library with your package manager using: zlib1g-dev lib32z1-dev and libbz2-dev

P.S.: in case of problems there are the 0.8.1 executables available on http://aluigi.org/papers/quickbms_linux.zip


Top
   
PostPosted: Sat Sep 23, 2017 8:32 am 

Joined: Fri Sep 22, 2017 12:42 pm
Posts: 2
Thank you answering.
I will try both for my satisfaction :)
In case of compile error I post again.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 28 posts ]  Go to page Previous 1 2

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited