Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: Jan Gruuthuse on September 01, 2014, 10:44:23 AM

Title: buildQt4 Failed at make ubuntu 12.04.4 LTS FIXED
Post by: Jan Gruuthuse on September 01, 2014, 10:44:23 AM
Quote** Failed at make,
result in /tmp/logbuildQt4**

[ 29%] Building CXX object ....
/home/jan/avidemux2/avidemux/qt4/common/ADM_toolkit/automation.cpp:106:110: error: expected primary-expression before ââ,¬Ëœ.ââ,¬â,,¢ token
...

make[2]: *** [commonQt4/ADM_toolkit/CMakeFiles/ADM_toolkit6.dir/automation.cpp.o] Error 1
make[2]: Leaving directory `/home/jan/avidemux2/buildQt4'
make[1]: *** [commonQt4/ADM_toolkit/CMakeFiles/ADM_toolkit6.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....


_____________________________________________
Avidemux v2.6.8-(010914)
_____________________________________________
Compiler: GCC 4.6.3
cmake: 2.8.11
Build Target: Linux (x86-64)
User Interface: Qt (4.8.1)
_____________________________________________
Kernel: Linux 3.8.0-44-generic (x86_64) (linux-image-generic-lts-raring)
Distribution: Linux Ubuntu 12.04.4 LTS (Precise)

Intel Core i7-3770K @ 3.50GHz (4 Cores/8 Threads) with 16 GB ram

Desktop: Unity 2D 5.20.0
Display Server:  X Server 1.13.0
Display Driver: vesa 2.3.2

OpenGL Vendor: NVIDIA Corporation
OpenGL Renderer: GeForce GT 520/PCIe/SSE2 1024MB (810/535MHz)
OpenGL Version: 4.4.0 NVIDIA 331.38

NVIDIA VDPAU Driver Shared Library 331.38
_____________________________________________
Title: Re: buildQt4 Failed at make ubuntu 12.04.4 LTS
Post by: hinterwaeldler on September 01, 2014, 11:26:09 PM
Hi

This is definitely related to my audio patch.
Not sure why it compiles with:
gcc (Gentoo 4.7.3-r1 p1.4, pie-0.5.5) 4.7.3
using gentoo-64 bit (i can append emerge --info if further information about my compile flags are needed)

Reverting both should solve the problem until figure out, what went wrong (or apply the revert patches attached)

:-\


/Edit
Accidently I first tested with Ubuntu 14.04, which works fine
Within 12.04.4 there is no regular cmake 2.8.11 -> which ppa are you using?
After a new test this seems to be related to the C99 standard i've used within the patch. I don't have found any Toolchain file, so far.
In addition I'm not sure if the gcc 4.6.3 is capable of it or only the flag is missing -> i will try to look it up tomorrow
Title: Re: buildQt4 Failed at make ubuntu 12.04.4 LTS
Post by: Jan Gruuthuse on September 02, 2014, 06:39:57 AM
cmake was build from source as cmake with distribution had issues in those days.
I'm rebuilding cmake 2.8.11 to current situation and try building avidemux again.
Title: Re: buildQt4 Failed at make ubuntu 12.04.4 LTS
Post by: Jan Gruuthuse on September 02, 2014, 06:47:59 AM
Rebuilding cmake 2.8.11 did not work. Gonna build 2.8.12.
Title: Re: buildQt4 Failed at make ubuntu 12.04.4 LTS
Post by: Jan Gruuthuse on September 02, 2014, 07:04:55 AM
Building Qt4 with cmake 2.8.12.2 produces the same errors.
Is there a point in upgrading gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3? Will avidemux builds work on stock 12.04 (1/2/3/4)? If not, there is no point doing this, as debs would not run on other systems?
Title: Re: buildQt4 Failed at make ubuntu 12.04.4 LTS
Post by: mean on September 02, 2014, 07:57:33 AM
The way it's done is a gcc-ism
But it should work with any version of gcc
Title: Re: buildQt4 Failed at make ubuntu 12.04.4 LTS
Post by: Jan Gruuthuse on September 02, 2014, 08:10:48 AM
gcc-4.6 build unsuccesfull succeeded
gcc-4.7 build succeeded and installs and is up and running
have now switchable gcc 4.6 or 4.7

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.7 g++-4.7

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7
sudo update-alternatives --config gcc

last instruction let you choose between auto/1/2

source: http://askubuntu.com/questions/113291/how-do-i-install-gcc-4-7
Title: Re: buildQt4 Failed at make ubuntu 12.04.4 LTS (solved for now)
Post by: mean on September 02, 2014, 08:33:11 AM
I've reverted a part of it
Should be back as before now
Title: Re: buildQt4 Failed at make ubuntu 12.04.4 LTS (solved for now)
Post by: Jan Gruuthuse on September 02, 2014, 09:06:20 AM
OK. Will only build gcc-4.6 build on 12.04.4 LTS and upload.
Title: Re: buildQt4 Failed at make ubuntu 12.04.4 LTS FIXED
Post by: mean on September 02, 2014, 12:46:01 PM
better to stick to the "native" compiler
Title: Re: buildQt4 Failed at make ubuntu 12.04.4 LTS FIXED
Post by: Jan Gruuthuse on September 03, 2014, 07:58:22 AM
builds are now done with native compiler in ubuntu LTS (12.04/14.04) amd64