Compiling quickbms 10.1 on Ubuntu20.10 using gcc 10 ldl does not seem to work

Doubts, help and support about QuickBMS and other game research tools
silverhikari
Posts: 11
Joined: Wed Mar 10, 2021 6:41 pm

Compiling quickbms 10.1 on Ubuntu20.10 using gcc 10 ldl does not seem to work

Post by silverhikari »

when trying to compile quickbms make errors out with a slew of undefined references so it seem that -ldl does not work even though it is in the cdefs. so i am trying to figure out why the undefined refernces are happening?

https://paste.ee/p/WRGkO
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Compiling quickbms 10.1 on Ubuntu20.10 using gcc 10 ldl does not seem to work

Post by aluigi »

Please try the current beta:
https://aluigi.org/beta/quickbms_beta.zip

That error and many others should now be all fixed.
silverhikari
Posts: 11
Joined: Wed Mar 10, 2021 6:41 pm

Re: Compiling quickbms 10.1 on Ubuntu20.10 using gcc 10 ldl does not seem to work

Post by silverhikari »

i just tried the beta, and i am now getting a new set of errors so here is the log for that to see what is going wrong.

https://paste.ee/p/6VJns
Last edited by silverhikari on Thu Mar 18, 2021 12:06 am, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Compiling quickbms 10.1 on Ubuntu20.10 using gcc 10 ldl does not seem to work

Post by aluigi »

Open utils.c with a text editor and comment or remove the lines mentioned in the error.

I will check if there is a way to fix them in the next beta, thanks for the feedback ;)
silverhikari
Posts: 11
Joined: Wed Mar 10, 2021 6:41 pm

Re: Compiling quickbms 10.1 on Ubuntu20.10 using gcc 10 ldl does not seem to work

Post by silverhikari »

sorry for being the barer of more problems but just removed the problem lines like you said and well more problems have appeared

https://paste.ee/p/dkW7k
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Compiling quickbms 10.1 on Ubuntu20.10 using gcc 10 ldl does not seem to work

Post by aluigi »

What compiler, platform and compiler version are you using?

Just recently I successfully compiled the quickbms beta on Windows (gcc 4 and 10), Linux (gcc 7) and even on Android ARM, and there was none of that new batch of errors you posted.

Please note that the Makefile can't be used on Windows (the exe are already available so no need).
silverhikari
Posts: 11
Joined: Wed Mar 10, 2021 6:41 pm

Re: Compiling quickbms 10.1 on Ubuntu20.10 using gcc 10 ldl does not seem to work

Post by silverhikari »

i am using GCC version 10.2.0 on kubuntu 20.10
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Compiling quickbms 10.1 on Ubuntu20.10 using gcc 10 ldl does not seem to work

Post by aluigi »

The new beta fixes the oodle problem and few others.
But I don't understand why there are so many "undefined reference" there, moreover because tomcrypt and mcrypt are disabled in the Makefile.
On my test Linux I used gcc 4 (not 7 as I thought) and it compiles without any error, even MacOS with brew works perfectly.