Compiling QuickBMS on Ubuntu 14.04

Doubts, help and support about QuickBMS and other game research tools
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Compiling QuickBMS on Ubuntu 14.04

Post by aluigi »

Add -DQUICKBMS64 in CFLAGS of Makefile.
As far as I know quickbms should work with files bigger than 4gb, I will recheck it.
Savage
Posts: 176
Joined: Thu Oct 02, 2014 4:58 pm

Re: Compiling QuickBMS on Ubuntu 14.04

Post by Savage »

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

Re: Compiling QuickBMS on Ubuntu 14.04

Post by Savage »

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
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Compiling QuickBMS on Ubuntu 14.04

Post by aluigi »

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.
Savage
Posts: 176
Joined: Thu Oct 02, 2014 4:58 pm

Re: Compiling QuickBMS on Ubuntu 14.04

Post by Savage »

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: Select all

#!/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
zoonix
Posts: 2
Joined: Fri Sep 22, 2017 12:42 pm

Re: Compiling QuickBMS on Ubuntu 14.04

Post by zoonix »

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: Select all

#!/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: Select all

...
-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
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Compiling QuickBMS on Ubuntu 14.04

Post by aluigi »

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
zoonix
Posts: 2
Joined: Fri Sep 22, 2017 12:42 pm

Re: Compiling QuickBMS on Ubuntu 14.04

Post by zoonix »

Thank you answering.
I will try both for my satisfaction :)
In case of compile error I post again.