LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-10-2010, 05:42 PM   #16
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Rep: Reputation: 15
Wink


Quote:
Originally Posted by Didier Spaier View Post
In response to Eric's post you should have given the exact URL of the SlackBuild you were speaking of.

If it is a SlackBuild for ffmpeg it can be one of those:
ftp://slackware.org.uk/people/alien/...peg.SlackBuild #unretricted
http://connie.slackware.com/~alien/s...peg.SlackBuild #restricted

Anyhow to use it you should follow instructions given by Eric here:
http://connie.slackware.com/~alien/slackbuilds/README
especially the lftp command.

That way you won't have to download anything beside the files already stored in the build directory.

[EDIT]Sorry, I didn't see Eric's second post before posting.
No sorries mate, I can use all the help I can get. Plus this posting will surely help alot of newcomers in the slackware world. Compiling that audacity sure is alot of work, but to be a true slacker, you must work hard. (=

Cheers,
Dumdadum
 
Old 04-10-2010, 05:56 PM   #17
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Rep: Reputation: 15
Exclamation

Quote:
Originally Posted by Alien Bob View Post
What messy script are you talking about exactly?

Eric
Eric, I owe you an apology, because the script works fine. I'm real sorry I lost it. I guess I'm too tired. Been working all night to find a way to build audacity. And I lost my patience. Forgive me.

I'm trying another build of audacity as we speak. I installed ffmpeg. Lets just hope this does the trick.

Dumdadum
 
Old 04-10-2010, 06:02 PM   #18
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Rep: Reputation: 15
Thumbs down It didnt work

Ok so now whats the problem. I compiled ffmpeg, its installed, and still, audacity brings the error message about ffmpeg:

ImportFFmpeg.cpp.text+0x17fd): undefined reference to `av_free_packet'
ImportFFmpeg.cpp.text+0x1aed): undefined reference to `av_free_packet'
collect2: ld returned 1 exit status
make[1]: *** [../audacity] Error 1
make[1]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/src'
make: *** [audacity] Error 2

What now? Is there something I forgot?

Dumdadum


(Edit) : I do have a compiled audacity without ffmpeg. But my roomate needs ffmpeg. So its a must that I get it working with ffmpeg. Any help would be much appreciated.

Last edited by dumdadum; 04-10-2010 at 06:05 PM.
 
Old 04-10-2010, 07:00 PM   #19
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Rep: Reputation: 15
Exclamation An idea

Quote:
Originally Posted by dumdadum View Post
Ok so now whats the problem. I compiled ffmpeg, its installed, and still, audacity brings the error message about ffmpeg:

ImportFFmpeg.cpp.text+0x17fd): undefined reference to `av_free_packet'
ImportFFmpeg.cpp.text+0x1aed): undefined reference to `av_free_packet'
collect2: ld returned 1 exit status
make[1]: *** [../audacity] Error 1
make[1]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/src'
make: *** [audacity] Error 2

What now? Is there something I forgot?

Dumdadum


(Edit) : I do have a compiled audacity without ffmpeg. But my roomate needs ffmpeg. So its a must that I get it working with ffmpeg. Any help would be much appreciated.

Ok so I thought of something. I deleted the audacity folder in /tmp/SBo. I'm doing another build. See what that gives...
 
Old 04-10-2010, 07:17 PM   #20
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Rep: Reputation: 15
Question

Quote:
Originally Posted by dumdadum View Post
Ok so I thought of something. I deleted the audacity folder in /tmp/SBo. I'm doing another build. See what that gives...
Nope, still same mistake. Ah, what do you want. One day its the wxPython that doesnt compile, one day its audacity. I just hope someone has answers. Theoricaly someone should. I cant believe nobody ever did it.

So good night, hope I'll have ideas by tomorrow.
 
Old 04-10-2010, 07:31 PM   #21
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Rep: Reputation: 277Reputation: 277Reputation: 277
This guy's done it;

Code:
http://slackware.opennix.com/?slackversion=13.0&category=multimedia
he also has the slackbuilds available....

cheers,

Last edited by mrclisdue; 04-10-2010 at 07:37 PM.
 
Old 04-10-2010, 07:51 PM   #22
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Can you post more of the error? That little bit isn't sufficient to see what's wrong I don't think. Is /tmp big enough? Audacity has compiled fine for me on Slackware 12.1/12.2/13.0, 32-bit and 64-bit (for 13.0) all using the SlackBuilds at slackbuilds.org. I used to play around with audio (not so much anymore) but I have always compiled audacity with more than the required dependencies to add functionality and I have never had a problem.
 
Old 04-11-2010, 07:25 AM   #23
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Rep: Reputation: 15
Talking

Quote:
Originally Posted by mrclisdue View Post
This guy's done it;

Code:
http://slackware.opennix.com/?slackversion=13.0&category=multimedia
he also has the slackbuilds available....

cheers,
Yup got it. I will try it. Thanks.
 
Old 04-11-2010, 07:28 AM   #24
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Rep: Reputation: 15
Cool

Quote:
Originally Posted by T3slider View Post
Can you post more of the error? That little bit isn't sufficient to see what's wrong I don't think. Is /tmp big enough? Audacity has compiled fine for me on Slackware 12.1/12.2/13.0, 32-bit and 64-bit (for 13.0) all using the SlackBuilds at slackbuilds.org. I used to play around with audio (not so much anymore) but I have always compiled audacity with more than the required dependencies to add functionality and I have never had a problem.
Everything is there mate. If you dont have the answer, I'm sure someone else does. The first guy that posted here said he fixed his problem with Alien Bob's package. So I did the same thing and it didnt work. Surely Alien Bob would have an explanation.

I also red that the function wasnt declared in one of the .cpp files or .h header files. Now seriously, if the code is incomplete, no wunder it wont work...

Even if I have the compiled package now, I would like to know what is the answer to my problem.

Still waiting for an answer,
Dumdadum
 
Old 04-11-2010, 07:36 AM   #25
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Rep: Reputation: 15
Question

Quote:
Originally Posted by mrclisdue View Post
This guy's done it;

Code:
http://slackware.opennix.com/?slackversion=13.0&category=multimedia
he also has the slackbuilds available....

cheers,
I installed the package, it wont even start. When I run it from command line it says libjack.so.0 not found. I'm wundering if jack-audio-connection-kit (0.118.0) will solve the problem.

Need more help,
Dumdadum
 
Old 04-11-2010, 07:46 AM   #26
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Rep: Reputation: 15
Quote:
Originally Posted by T3slider View Post
Can you post more of the error? That little bit isn't sufficient to see what's wrong I don't think. Is /tmp big enough? Audacity has compiled fine for me on Slackware 12.1/12.2/13.0, 32-bit and 64-bit (for 13.0) all using the SlackBuilds at slackbuilds.org. I used to play around with audio (not so much anymore) but I have always compiled audacity with more than the required dependencies to add functionality and I have never had a problem.
I had red somwhere on a Ubuntu forum that there was a declaration of a function that was missing. Is that true? You're senior member, surely you would know such things. Surely anyone that compiled it before would know.
 
Old 04-11-2010, 07:49 AM   #27
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Rep: Reputation: 15
Lightbulb Got it wokring, stil ffmpeg error is there

Ok with the jack package installed audacity starts.

Still, this topic is about solving the ffmpeg error. And so I still want to know what has to be done to solve this error. Please if anyone has that answer I want to know.

Thanks
 
Old 04-11-2010, 02:20 PM   #28
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Rep: Reputation: 277Reputation: 277Reputation: 277
The same site previously referenced has a package/slackbuild for ffmpeg; perhaps there are clues/solutions there...?

cheers,
 
Old 04-11-2010, 02:58 PM   #29
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Rep: Reputation: 15
Question

Quote:
Originally Posted by mrclisdue View Post
The same site previously referenced has a package/slackbuild for ffmpeg; perhaps there are clues/solutions there...?

cheers,
No, no and no.

If nobody will help, I will solve this on my own and paste the solution.

import/ImportFFmpeg.o: In function `FFmpegImportFileHandle::ReadNextFrame()':
ImportFFmpeg.cpp.text+0x207): undefined reference to `av_free_packet'
import/ImportFFmpeg.o: In function `FFmpegImportFileHandle::Import(TrackFactory*, Track***, int*, Tags*)':
ImportFFmpeg.cpp.text+0x17fd): undefined reference to `av_free_packet'
ImportFFmpeg.cpp.text+0x1aed): undefined reference to `av_free_packet'
collect2: ld returned 1 exit status
make[1]: *** [../audacity] Error 1
make[1]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/src'
make: *** [audacity] Error 2

av_free_packet, in ImportFFmpeg.cpp... I red somewhere that there was missing code... I will try to look for that page again...

Voila, found it. It says to add this:

void av_free_packet(AVPacket *pkt)
{
if (pkt) {
if (pkt->destruct) pkt->destruct(pkt);
pkt->data = NULL; pkt->size = 0;
}

}

to liblavplayvj.c

It does what it says, it free's the packet, resets it back to null and zero. Now, where do I find this libavplayvj.c file, that is the question. Anyone has a clue?

Dumdadum
 
Old 04-11-2010, 04:09 PM   #30
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Rep: Reputation: 15
Talking Fix #1 for building error

Nobody wanted to tell me the solution, or nobody knew. Never the less, I reached my goal, I have compiled audacity 1.3.7 correctly. Here is the solution.

1- Uncompress the data of the source file. Example:

bunzip -d youraudacitysourcecode.tar.bz2


Then untar it with the following command:

tar -xvf youraudacitysourcecode.tar

Then go into this folder:

youraudacitysourcecodefolder/src/import

Edit the file named ImportFFmpeg.cpp. Look into the file for the private: declarations. Right under it, add the following code:

void av_free_packet(AVPacket *pkt)
{
if (pkt) {
if (pkt->destruct) pkt->destruct(pkt);
pkt->data = NULL; pkt->size = 0;
}

}

The av_free_packet function was never coded or is unfindable. This solved my problem. And even if you guys gave me a link to a fully compiled 1.3.9 file, I will uninstall it, and use my 1.3.7 file.

Thanks alot for everyone who helped. You can now change the status to "solved" for this topic.

Cheers (=
Dumdadum ( I'm the best !!! ) (=
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing RHEL 5 64 bit problems madbrad70 Linux - Server 3 07-29-2008 11:11 AM
Installing 32-bit firefox on AMD64 to solve problems ? WhiskeyTangoFoxtrot Linux - Software 9 11-09-2006 04:35 PM
Need help installing Audacity watha SUSE / openSUSE 7 09-29-2006 01:18 PM
SuSe 10 having problems installing audacity MoZarK Linux - Newbie 1 05-20-2006 07:28 PM
Problems installing Fedora (32 and 64 bit) and Gentoo josepha Linux - Newbie 2 04-15-2004 04:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration