Problem Compiling 1.4.6 on Mandriva SOLVED.

The place to discuss linux version of MakeMKV
Post Reply
Bling2Ming
Posts: 24
Joined: Mon Aug 03, 2009 7:20 pm

Problem Compiling 1.4.6 on Mandriva SOLVED.

Post by Bling2Ming » Mon Aug 03, 2009 7:34 pm

Hi everyone I just registered so I could post this, in the hope it may help someone.

I had a problem compiling 1.4.6 on Mandriva 2009.1

The error was

Code: Select all

world.cpp:77: error: ‘rand’ was not declared in this scope
Adding

Code: Select all

#include <cstdlib>
to libmakemkv/src/world.cpp cured this error.

ChinaJade
Posts: 15
Joined: Sun Mar 15, 2009 4:21 pm

Re: Problem Compiling 1.4.6 on Mandriva SOLVED.

Post by ChinaJade » Tue Aug 04, 2009 6:14 am

THANKS!

The same problem exists in Ubuntu 9.0.4 (Jaunty). Your repair fixed it right up!

thanks again,
CJ

ggking7
Posts: 40
Joined: Mon Feb 23, 2009 4:28 pm

Re: Problem Compiling 1.4.6 on Mandriva SOLVED.

Post by ggking7 » Tue Aug 04, 2009 4:53 pm

Same problem on Gentoo and that fixed it. Thank you!

xchema
Posts: 10
Joined: Wed Aug 19, 2009 8:52 pm

Re: Problem Compiling 1.4.6 on Mandriva SOLVED.

Post by xchema » Wed Aug 19, 2009 8:54 pm

It works here too. Thanks!

dark matter
Posts: 2
Joined: Fri Sep 11, 2009 11:22 pm

Re: Problem Compiling 1.4.6 on Mandriva SOLVED.

Post by dark matter » Fri Sep 11, 2009 11:28 pm

Bling2Ming wrote: The error was

Code: Select all

world.cpp:77: error: ‘rand’ was not declared in this scope
Adding

Code: Select all

#include <cstdlib>
to libmakemkv/src/world.cpp cured this error.
i was hoping to have some help fixing this problem as well. i am new to Linux i understand how to install MakeMKV and the steps involved but i'm not sure how to implement your fix, could you please help me out

thanks, :)

Bling2Ming
Posts: 24
Joined: Mon Aug 03, 2009 7:20 pm

Re: Problem Compiling 1.4.6 on Mandriva SOLVED.

Post by Bling2Ming » Sat Sep 12, 2009 6:54 am

dark matter wrote: i was hoping to have some help fixing this problem as well. i am new to Linux i understand how to install MakeMKV and the steps involved but i'm not sure how to implement your fix, could you please help me out

thanks, :)
Ok

1. Extract the all files from the makemkv_v1.4.6_beta_oss.tar.gz archive.
2. Navigate the folder hierarchy of the extracted target to /makemkv_v1.4.6_beta_oss/libmakemkv/src/
3. From within this folder find the file world.cpp and open it in the text editor of your choice.
4. At the top of this file you will see the header section where lines begin with #include.
5. Under the line

Code: Select all

#include <lgpl/zlibabi.h>
add a line that reads

Code: Select all

#include <cstdlib>
6. Save the file and exit your editor.
7. Bulid the package as normal

dark matter
Posts: 2
Joined: Fri Sep 11, 2009 11:22 pm

Re: Problem Compiling 1.4.6 on Mandriva SOLVED.

Post by dark matter » Sat Sep 12, 2009 7:41 am

OMG thank you sooooooo much it makes my life soo much easier now that it works correctly, again thank you

Post Reply