[SOLVED] problems installing audacity on 32 bit 13
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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. (=
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.
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 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...
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.
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.
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.
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.
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.
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.