Unable to compile Tupi 0.1 git08

Project:Tupi: 2D Magic
Component:Code
Category:bug report
Priority:critical
Assigned:xtingray
Status:active
Description

I tried to compile Tupi: 2D Magic following INSTALL instructions, but I failed.

1. I got errors starting with:

linking libtupifwgui.so.1.0.0
.obj/kffmpegmoviegenerator.o: In function `allocPicture':
/home/zdeno/tmp/tupi-0.1/src/framework/tgui/kffmpegmoviegenerator.cpp:144: undefined reference to `avcodec_alloc_frame'
/home/zdeno/tmp/tupi-0.1/src/framework/tgui/kffmpegmoviegenerator.cpp:149: undefined reference to `avpicture_get_size'
/home/zdeno/tmp/tupi-0.1/src/framework/tgui/kffmpegmoviegenerator.cpp:157: undefined reference to `avpicture_fill'

Adding '-lavcodec -lavformat -lavutil' to LIBS in tupi-0.1/src/framework/tgui/Makefile helped.

2. Than I got another error:

compiling ktprojectmanager.cpp
In file included from ktprojectmanager.cpp:59:0:
../framework/tcore/kdebug.h:440:37: warning: unused parameter ‘parent’ [-Wunused-parameter]
ktprojectmanager.cpp: In member function ‘virtual void KTProjectManager::handleLocalRequest(const KTProjectRequest*)’:
ktprojectmanager.cpp:331:86: error: taking address of temporary [-fpermissive]
make[2]: *** [.obj/ktprojectmanager.o] Error 1
make[2]: Leaving directory `/home/zdeno/tmp/tupi-0.1/src/store'

How to handle this?

I use Mandriva linux 64bit.

#1

Title:unable to compile Tupi 0.1 git08 » Unable to compile Tupi 0.1 git08
Assigned to:Anonymous» xtingray

It seems to be a GCC (4.6) issue. As you can see it in this post:
https://bugs.launchpad.net/unity/+bug/745392

Currently, I'm downloading the latest Mandriva version to make my own tests.
As far as I guess, I will have to change some instructions to follow the new specifications. It's not a big deal at all, but it will take a couple of days to get it fixed and available from the git server.

Any way, thanks for your post!

#2

Last night I installed Mandriva Linux release 2010.2 (32 bits) as a virtual machine. Then I had to install all the dependencies required for the compilation process, including the latest gcc from the repository (version 4.4.3).
The funny thing was that I hadn't to add the flags "-lavcodec -lavformat -lavutil" to any file and even more, I had no issues during the whole compilation process. I mean, everything went clean and pretty.

I took an screenshot of my binary running from Mandriva:
http://www.maefloresta.com/gallery2/main.php?g2_itemId=348

Of course, I know there are many problems within the code when you try to compile it using gcc 4.6 and I have to fix it. The point is: what version of Mandriva I have to install? and does it include the gcc 4.6 package?

#3

Hi, thanks for your time - I tried it on Mandriva cooker (testing version 2011 that should be release in June 2011). You can to set new source e.g. via http://easyurpmi.zarb.org/ and then to run 'urpmi --auto-select --auto'... Or you can download Mandriva.2011-beta2.x86_64 from http://torrent.mandriva.com/public/

#4

Hi!
Due I'm the only developer working on the project right now, I'm trying to focus just on the stable versions of the must popular distros to save time. Of course, Mandriva is one of those... so, I'm going to wait until June ;)

Thank you for posting!

#5

Ok, I understand... just take it as short term warning... ;-)

#6

Thank you! :)