buildQt4 Failed at make ubuntu 12.04.4 LTS FIXED

Started by Jan Gruuthuse, September 01, 2014, 10:44:23 AM

Previous topic - Next topic

Jan Gruuthuse

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
_____________________________________________

hinterwaeldler

#1
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

Jan Gruuthuse

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.

Jan Gruuthuse

Rebuilding cmake 2.8.11 did not work. Gonna build 2.8.12.

Jan Gruuthuse

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?

mean

The way it's done is a gcc-ism
But it should work with any version of gcc

Jan Gruuthuse

#6
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

mean


Jan Gruuthuse

#8
OK. Will only build gcc-4.6 build on 12.04.4 LTS and upload.

mean


Jan Gruuthuse

builds are now done with native compiler in ubuntu LTS (12.04/14.04) amd64