You are not logged in.

#1 12-25-2011 21:14:49

smurf
Membre
Registered: 12-25-2011
Posts: 12

errori di compilazione su ubuntu 10.04

Ciao.
Prima di tutto ho messo a posto le dipendenze, o almeno credo di averlo fatto:

luca@pc-cuarto:~/sistema/sorgenti/ffdiaporama_1.1.2011.1218$ sudo apt-get install libqtcore4 libqtgui4 libqt4-network libavcodec-extra-52 \
> libavformat-extra-52 libavdevice-extra-52 libswscale-extra-0 ffmpeg \
> build-essential libqt4-dev qt4-dev-tools libavutil-dev libavformat-dev \
> libavcodec-dev libswscale-dev libsdl-image1.2-dev libsdl-mixer1.2-dev
[sudo] password for luca:
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze       
Lettura informazioni sullo stato... Fatto
libqtcore4 è già alla versione più recente.
È stato impostato libqtcore4 per l'installazione manuale.
libqtgui4 è già alla versione più recente.
È stato impostato libqtgui4 per l'installazione manuale.
libqt4-network è già alla versione più recente.
È stato impostato libqt4-network per l'installazione manuale.
libavcodec-extra-52 è già alla versione più recente.
È stato impostato libavcodec-extra-52 per l'installazione manuale.
libavformat-extra-52 è già alla versione più recente.
È stato impostato libavformat-extra-52 per l'installazione manuale.
libswscale-extra-0 è già alla versione più recente.
È stato impostato libswscale-extra-0 per l'installazione manuale.
ffmpeg è già alla versione più recente.
build-essential è già alla versione più recente.
libsdl-image1.2-dev è già alla versione più recente.
I seguenti pacchetti saranno inoltre installati:
  libmikmod2-dev libqt4-multimedia libqt4-opengl-dev libqt4-qt3support libsmpeg-dev qt4-designer qt4-doc qt4-qmake
Pacchetti suggeriti:
  libfaad-dev libgsm1-dev libschroedinger-dev libspeex-dev libtheora-dev libraw1394-dev libdc1394-22-dev libmysqlclient-dev
  libsqlite0-dev libpq-dev unixodbc-dev qt4-doc-html
I seguenti pacchetti saranno RIMOSSI:
  libavdevice52
I seguenti pacchetti NUOVI saranno installati:
  libavcodec-dev libavdevice-extra-52 libavformat-dev libavutil-dev libmikmod2-dev libqt4-dev libqt4-multimedia libqt4-opengl-dev
  libqt4-qt3support libsdl-mixer1.2-dev libsmpeg-dev libswscale-dev qt4-designer qt4-dev-tools qt4-doc qt4-qmake
0 aggiornati, 16 installati, 1 da rimuovere e 9 non aggiornati.
È necessario scaricare 77.2MB di archivi.
Dopo quest'operazione, verranno occupati 138MB di spazio su disco.
Continuare [S/n]?
Scaricare:1 http://packages.medibuntu.org/ lucid/non-free libavdevice-extra-52 4:0.5.1-1ubuntu1.2+medibuntu1 [60.1kB]
Scaricare:2 http://pe.archive.ubuntu.com/ubuntu/ lucid-updates/main libavutil-dev 4:0.5.1-1ubuntu1.2 [82.8kB]
Scaricare:3 http://pe.archive.ubuntu.com/ubuntu/ lucid-updates/main libavcodec-dev 4:0.5.1-1ubuntu1.2 [2486kB]
Scaricare:4 http://pe.archive.ubuntu.com/ubuntu/ lucid-updates/main libavformat-dev 4:0.5.1-1ubuntu1.2 [475kB]                       
Scaricare:5 http://pe.archive.ubuntu.com/ubuntu/ lucid-updates/universe libmikmod2-dev 3.1.11-a-6.1ubuntu0.1 [266kB]                 
Scaricare:6 http://pe.archive.ubuntu.com/ubuntu/ lucid-updates/main libqt4-qt3support 4:4.6.2-0ubuntu5.3 [1094kB]                     
Scaricare:7 http://pe.archive.ubuntu.com/ubuntu/ lucid-updates/main libqt4-multimedia 4:4.6.2-0ubuntu5.3 [83.3kB]                     
Scaricare:8 http://pe.archive.ubuntu.com/ubuntu/ lucid-updates/main qt4-qmake 4:4.6.2-0ubuntu5.3 [1259kB]                             
Scaricare:9 http://pe.archive.ubuntu.com/ubuntu/ lucid-updates/main libqt4-dev 4:4.6.2-0ubuntu5.3 [2852kB]                           
Scaricare:10 http://pe.archive.ubuntu.com/ubuntu/ lucid-updates/main libqt4-opengl-dev 4:4.6.2-0ubuntu5.3 [44.7kB]                   
Scaricare:11 http://pe.archive.ubuntu.com/ubuntu/ lucid/universe libsmpeg-dev 0.4.5+cvs20030824-2.2 [117kB]                           
Scaricare:12 http://pe.archive.ubuntu.com/ubuntu/ lucid/universe libsdl-mixer1.2-dev 1.2.8-6build1 [133kB]                           
Scaricare:13 http://pe.archive.ubuntu.com/ubuntu/ lucid-updates/main libswscale-dev 4:0.5.1-1ubuntu1.2 [184kB]                       
Scaricare:14 http://pe.archive.ubuntu.com/ubuntu/ lucid-updates/main qt4-designer 4:4.6.2-0ubuntu5.3 [321kB]                         
Scaricare:15 http://pe.archive.ubuntu.com/ubuntu/ lucid-updates/main qt4-dev-tools 4:4.6.2-0ubuntu5.3 [4786kB]                       
Scaricare:16 http://pe.archive.ubuntu.com/ubuntu/ lucid-updates/main qt4-doc 4:4.6.2-0ubuntu5.3 [63.0MB]                             
Recuperati 77.2MB in 5min 28s (235kB/s)                                                                                               
dpkg: libavdevice52: problemi con le dipendenze, ma viene rimosso comunque:
ffmpeg dipende da libavdevice52 (>= 4:0.5.1-1ubuntu1.2) | libavdevice-extra-52 (>= 4:0.5.1-1ubuntu1.2); comunque:
  Il pacchetto libavdevice52 sta per essere rimosso.
  Il pacchetto libavdevice-extra-52 non è installato.
ffmpeg dipende da libavdevice52 (<< 4:0.5.1-99) | libavdevice-extra-52 (<< 4:0.5.1-99); comunque:
  Il pacchetto libavdevice52 sta per essere rimosso.
  Il pacchetto libavdevice-extra-52 non è installato.
ffmpeg dipende da libavdevice52 (>= 4:0.5.1-1ubuntu1.2) | libavdevice-extra-52 (>= 4:0.5.1-1ubuntu1.2); comunque:
  Il pacchetto libavdevice52 sta per essere rimosso.
  Il pacchetto libavdevice-extra-52 non è installato.
ffmpeg dipende da libavdevice52 (<< 4:0.5.1-99) | libavdevice-extra-52 (<< 4:0.5.1-99); comunque:
  Il pacchetto libavdevice52 sta per essere rimosso.
  Il pacchetto libavdevice-extra-52 non è installato.
(Lettura del database... 184373 file e directory attualmente installati.)
Rimozione di libavdevice52...
Elaborazione dei trigger per libc-bin...
ldconfig deferred processing now taking place
Selezionato il pacchetto libavutil-dev.
(Lettura del database... 184363 file e directory attualmente installati.)
Estrazione di libavutil-dev (da .../libavutil-dev_4%3a0.5.1-1ubuntu1.2_amd64.deb)...
Selezionato il pacchetto libavcodec-dev.
Estrazione di libavcodec-dev (da .../libavcodec-dev_4%3a0.5.1-1ubuntu1.2_amd64.deb)...
Selezionato il pacchetto libavdevice-extra-52.
Estrazione di libavdevice-extra-52 (da .../libavdevice-extra-52_4%3a0.5.1-1ubuntu1.2+medibuntu1_amd64.deb)...
Selezionato il pacchetto libavformat-dev.
Estrazione di libavformat-dev (da .../libavformat-dev_4%3a0.5.1-1ubuntu1.2_amd64.deb)...
Selezionato il pacchetto libmikmod2-dev.
Estrazione di libmikmod2-dev (da .../libmikmod2-dev_3.1.11-a-6.1ubuntu0.1_amd64.deb)...
Selezionato il pacchetto libqt4-qt3support.
Estrazione di libqt4-qt3support (da .../libqt4-qt3support_4%3a4.6.2-0ubuntu5.3_amd64.deb)...
Selezionato il pacchetto libqt4-multimedia.
Estrazione di libqt4-multimedia (da .../libqt4-multimedia_4%3a4.6.2-0ubuntu5.3_amd64.deb)...
Selezionato il pacchetto qt4-qmake.
Estrazione di qt4-qmake (da .../qt4-qmake_4%3a4.6.2-0ubuntu5.3_amd64.deb)...
Selezionato il pacchetto libqt4-dev.
Estrazione di libqt4-dev (da .../libqt4-dev_4%3a4.6.2-0ubuntu5.3_amd64.deb)...
Selezionato il pacchetto libqt4-opengl-dev.
Estrazione di libqt4-opengl-dev (da .../libqt4-opengl-dev_4%3a4.6.2-0ubuntu5.3_amd64.deb)...
Selezionato il pacchetto libsmpeg-dev.
Estrazione di libsmpeg-dev (da .../libsmpeg-dev_0.4.5+cvs20030824-2.2_amd64.deb)...
Selezionato il pacchetto libsdl-mixer1.2-dev.
Estrazione di libsdl-mixer1.2-dev (da .../libsdl-mixer1.2-dev_1.2.8-6build1_amd64.deb)...
Selezionato il pacchetto libswscale-dev.
Estrazione di libswscale-dev (da .../libswscale-dev_4%3a0.5.1-1ubuntu1.2_amd64.deb)...
Selezionato il pacchetto qt4-designer.
Estrazione di qt4-designer (da .../qt4-designer_4%3a4.6.2-0ubuntu5.3_amd64.deb)...
Selezionato il pacchetto qt4-dev-tools.
Estrazione di qt4-dev-tools (da .../qt4-dev-tools_4%3a4.6.2-0ubuntu5.3_amd64.deb)...
Selezionato il pacchetto qt4-doc.
Estrazione di qt4-doc (da .../qt4-doc_4%3a4.6.2-0ubuntu5.3_all.deb)...
Elaborazione dei trigger per doc-base...
Processing 1 added doc-base file(s)...
Registering documents with scrollkeeper...
Elaborazione dei trigger per install-info...
Elaborazione dei trigger per man-db...
Elaborazione dei trigger per menu...
Elaborazione dei trigger per desktop-file-utils...
Elaborazione dei trigger per python-gmenu...
Rebuilding /usr/share/applications/desktop.it_IT.utf8.cache...
Elaborazione dei trigger per python-support...
Configurazione di libavutil-dev (4:0.5.1-1ubuntu1.2)...
Configurazione di libavcodec-dev (4:0.5.1-1ubuntu1.2)...
Configurazione di libavdevice-extra-52 (4:0.5.1-1ubuntu1.2+medibuntu1)...

Configurazione di libavformat-dev (4:0.5.1-1ubuntu1.2)...
Configurazione di libmikmod2-dev (3.1.11-a-6.1ubuntu0.1)...
Configurazione di libqt4-qt3support (4:4.6.2-0ubuntu5.3)...

Configurazione di libqt4-multimedia (4:4.6.2-0ubuntu5.3)...

Configurazione di qt4-qmake (4:4.6.2-0ubuntu5.3)...
update-alternatives: viene usato /usr/bin/qmake-qt4 per fornire /usr/bin/qmake (qmake) in modalità automatica.

Configurazione di libqt4-dev (4:4.6.2-0ubuntu5.3)...
update-alternatives: viene usato /usr/bin/moc-qt4 per fornire /usr/bin/moc (moc) in modalità automatica.
update-alternatives: viene usato /usr/bin/uic-qt4 per fornire /usr/bin/uic (uic) in modalità automatica.
update-alternatives: viene usato /usr/bin/lupdate-qt4 per fornire /usr/bin/lupdate (lupdate) in modalità automatica.
update-alternatives: viene usato /usr/bin/lrelease-qt4 per fornire /usr/bin/lrelease (lrelease) in modalità automatica.

Configurazione di libqt4-opengl-dev (4:4.6.2-0ubuntu5.3)...
Configurazione di libsmpeg-dev (0.4.5+cvs20030824-2.2)...
Configurazione di libsdl-mixer1.2-dev (1.2.8-6build1)...
Configurazione di libswscale-dev (4:0.5.1-1ubuntu1.2)...
Configurazione di qt4-designer (4:4.6.2-0ubuntu5.3)...
update-alternatives: viene usato /usr/bin/designer-qt4 per fornire /usr/bin/designer (designer) in modalità automatica.

Configurazione di qt4-dev-tools (4:4.6.2-0ubuntu5.3)...
update-alternatives: viene usato /usr/bin/assistant-qt4 per fornire /usr/bin/assistant (assistant) in modalità automatica.
update-alternatives: viene usato /usr/bin/linguist-qt4 per fornire /usr/bin/linguist (linguist) in modalità automatica.

Configurazione di qt4-doc (4:4.6.2-0ubuntu5.3)...
Elaborazione dei trigger per libc-bin...
ldconfig deferred processing now taking place
Elaborazione dei trigger per menu...
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB

Total disk space freed by localepurge: 0 KiB

Poi ho provato a compilare, ma ricevo questi errori:

luca@pc-cuarto:~/sistema/sorgenti/ffdiaporama_1.1.2011.1218$ qmake-qt4
luca@pc-cuarto:~/sistema/sorgenti/ffdiaporama_1.1.2011.1218$ make
/usr/bin/uic-qt4 mainwindow.ui -o ../build/ui_mainwindow.h
/usr/bin/uic-qt4 wgt_QVideoPlayer.ui -o ../build/ui_wgt_QVideoPlayer.h
/usr/bin/uic-qt4 DlgApplicationSettings.ui -o ../build/ui_DlgApplicationSettings.h
/usr/bin/uic-qt4 DlgBackgroundProperties.ui -o ../build/ui_DlgBackgroundProperties.h
/usr/bin/uic-qt4 DlgMusicProperties.ui -o ../build/ui_DlgMusicProperties.h
/usr/bin/uic-qt4 DlgRenderVideo.ui -o ../build/ui_DlgRenderVideo.h
/usr/bin/uic-qt4 DlgTransitionProperties.ui -o ../build/ui_DlgTransitionProperties.h
/usr/bin/uic-qt4 DlgAbout.ui -o ../build/ui_DlgAbout.h
/usr/bin/uic-qt4 DlgSlideProperties.ui -o ../build/ui_DlgSlideProperties.h
/usr/bin/uic-qt4 DlgImageCorrection.ui -o ../build/ui_DlgImageCorrection.h
/usr/bin/uic-qt4 DlgVideoEdit.ui -o ../build/ui_DlgVideoEdit.h
/usr/bin/uic-qt4 DlgTextEdit.ui -o ../build/ui_DlgTextEdit.h
/usr/bin/uic-qt4 DlgManageStyle.ui -o ../build/ui_DlgManageStyle.h
/usr/bin/uic-qt4 DlgCheckConfig.ui -o ../build/ui_DlgCheckConfig.h
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include/ffmpeg/ -I./fmt_filters/ -I../build -I../build -o ../build/_ApplicationDefinitions.o _ApplicationDefinitions.cpp
_ApplicationDefinitions.cpp:197: error: ‘CODEC_ID_VP8’ was not declared in this scope
_ApplicationDefinitions.cpp:243: error: too many initializers for ‘sVideoCodecDef’
make: *** [../build/_ApplicationDefinitions.o] Errore 1
luca@pc-cuarto:~/sistema/sorgenti/ffdiaporama_1.1.2011.1218$

Che cosa posso fare? Mi potete dare una mano?
Grazieeeeeeeeee

Offline

#2 12-25-2011 22:21:52

domledom
Administrateur
Registered: 09-17-2011
Posts: 1,080

Re: errori di compilazione su ubuntu 10.04

Hi smurf

Please use only english or french because i'm not speaking italian !

Netherless, I will try to help you ... not sur it could work but you can try.
In the _ApplicationDefinitions.cpp file, add this line, just a line after #include "_ApplicationDefinitions.h"

#define VCODEC_VP8 -1


Processeur i5 - 8 Go RAM - Manjaro Linux KDE (64 bits) / Windows 7 (64 bits)

Offline

#3 12-26-2011 14:12:06

smurf
Membre
Registered: 12-25-2011
Posts: 12

Re: errori di compilazione su ubuntu 10.04

HI domledom, thx for your help, but now I receive another error

luca@pc-cuarto:~/sistema/sorgenti/ffdiaporama_1.1.2011.1218$ make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include/ffmpeg/ -I./fmt_filters/ -I../build -I../build -o ../build/_ApplicationDefinitions.o _ApplicationDefinitions.cpp
_ApplicationDefinitions.cpp:22:1: warning: "VCODEC_VP8" redefined
In file included from _ApplicationDefinitions.h:25,
                 from _ApplicationDefinitions.cpp:21:
_GlobalDefines.h:404:1: warning: this is the location of the previous definition
_ApplicationDefinitions.cpp:197: error: ‘CODEC_ID_VP8’ was not declared in this scope
_ApplicationDefinitions.cpp:243: error: too many initializers for ‘sVideoCodecDef’
make: *** [../build/_ApplicationDefinitions.o] Errore 1

Offline

#4 12-26-2011 17:12:49

domledom
Administrateur
Registered: 09-17-2011
Posts: 1,080

Re: errori di compilazione su ubuntu 10.04

Sorry, i made a mistake.
The correct line to add is :

#define CODEC_ID_VP8 -1
instead of
#define VCODEC_VP8 -1


Processeur i5 - 8 Go RAM - Manjaro Linux KDE (64 bits) / Windows 7 (64 bits)

Offline

#5 12-26-2011 18:23:58

smurf
Membre
Registered: 12-25-2011
Posts: 12

Re: errori di compilazione su ubuntu 10.04

ok, now I receive this

luca@pc-cuarto:~/sistema/sorgenti/ffdiaporama_1.1.2011.1218$ make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include/ffmpeg/ -I./fmt_filters/ -I../build -I../build -o ../build/_ApplicationDefinitions.o _ApplicationDefinitions.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include/ffmpeg/ -I./fmt_filters/ -I../build -I../build -o ../build/_SoundDefinitions.o _SoundDefinitions.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include/ffmpeg/ -I./fmt_filters/ -I../build -I../build -o ../build/_ImagesDefinitions.o _ImagesDefinitions.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include/ffmpeg/ -I./fmt_filters/ -I../build -I../build -o ../build/_ImageFileWrapper.o _ImageFileWrapper.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include/ffmpeg/ -I./fmt_filters/ -I../build -I../build -o ../build/_VideoFileWrapper.o _VideoFileWrapper.cpp
_VideoFileWrapper.cpp: In member function ‘void cvideofilewrapper::ReadAudioFrame(bool, qlonglong, cSoundBlockList*, double, bool)’:
_VideoFileWrapper.cpp:193: error: ‘avcodec_decode_audio3’ was not declared in this scope
_VideoFileWrapper.cpp: In member function ‘QImage* cvideofilewrapper::ReadVideoFrame(qlonglong, bool)’:
_VideoFileWrapper.cpp:508: error: ‘AV_PKT_FLAG_KEY’ was not declared in this scope
_VideoFileWrapper.cpp:517: error: ‘avcodec_decode_video2’ was not declared in this scope
_VideoFileWrapper.cpp: In member function ‘bool cvideofilewrapper::GetInformationFromFile(QString, bool, QStringList&)’:
_VideoFileWrapper.cpp:733: error: ‘AVMEDIA_TYPE_AUDIO’ was not declared in this scope
_VideoFileWrapper.cpp:797: error: ‘AVMEDIA_TYPE_VIDEO’ was not declared in this scope
make: *** [../build/_VideoFileWrapper.o] Errore 1
luca@pc-cuarto:~/sistema/sorgenti/ffdiaporama_1.1.2011.1218$

Offline

#6 12-27-2011 08:42:04

domledom
Administrateur
Registered: 09-17-2011
Posts: 1,080

Re: errori di compilazione su ubuntu 10.04

Hi smurf

I'm not sure we will succed like this.
All the problems come from the version of ffmpeg which is outdated. So, I think you should upgrade ffmpeg.
On the Ubuntu french forum there is this post which explain how to upgrade ffmpeg for ubuntu 10.04 : http://doc.ubuntu-fr.org/tutoriel/comme … ler_ffmpeg
May be you could find an equivalent in Italian or english.


Processeur i5 - 8 Go RAM - Manjaro Linux KDE (64 bits) / Windows 7 (64 bits)

Offline

#7 12-27-2011 18:23:30

smurf
Membre
Registered: 12-25-2011
Posts: 12

Re: errori di compilazione su ubuntu 10.04

Hi domledom, your link to the ffmpeg upgrade has been useful, I made it and solved the previous problem, but now we have another one (or two).
First of alll I noticed that make command has a little problem: I have a directory called ~/sistema/sorgenti/ffdiaporama_1.1.2011.1218 in which are stored the sources files and in that dir I give the make command, when it ends I find a directory ~/sistema/sorgenti/build (the build dir is not included in the ffdiaporama dir, but is a level upper).

But the most important is that the make command ends with this error:

../build/_VideoFileWrapper.o: In function `cvideofilewrapper::ReadVideoFrame(long long, bool)':
_VideoFileWrapper.cpp:(.text+0xb69): undefined reference to `av_free_packet'
_VideoFileWrapper.cpp:(.text+0xe08): undefined reference to `avcodec_decode_video2'
_VideoFileWrapper.cpp:(.text+0xedf): undefined reference to `av_free_packet'
../build/_VideoFileWrapper.o: In function `cvideofilewrapper::ReadAudioFrame(bool, long long, cSoundBlockList*, double, bool)':
_VideoFileWrapper.cpp:(.text+0x16a7): undefined reference to `av_free_packet'
_VideoFileWrapper.cpp:(.text+0x186e): undefined reference to `avcodec_decode_audio3'
../build/_VideoFileWrapper.o: In function `cvideofilewrapper::GetInformationFromFile(QString, bool, QStringList&)':
_VideoFileWrapper.cpp:(.text+0x2298): undefined reference to `avformat_open_input'
_VideoFileWrapper.cpp:(.text+0x2709): undefined reference to `avcodec_open2'
_VideoFileWrapper.cpp:(.text+0x33bb): undefined reference to `avformat_open_input'
_VideoFileWrapper.cpp:(.text+0x3679): undefined reference to `avcodec_open2'
../build/DlgRenderVideo.o: In function `DlgRenderVideo::WriteTempAudioFile(QString, int)':
DlgRenderVideo.cpp:(.text+0x1558): undefined reference to `av_guess_format'
DlgRenderVideo.cpp:(.text+0x1703): undefined reference to `avcodec_open2'
DlgRenderVideo.cpp:(.text+0x177e): undefined reference to `avio_open'
DlgRenderVideo.cpp:(.text+0x17c5): undefined reference to `avformat_write_header'
DlgRenderVideo.cpp:(.text+0x1939): undefined reference to `avio_close'
../build/mainwindow.o: In function `MainWindow::InitWindow(QString, QApplication*)':
mainwindow.cpp:(.text+0xf606): undefined reference to `avcodec_license'
mainwindow.cpp:(.text+0xfb4e): undefined reference to `avformat_license'
mainwindow.cpp:(.text+0x10096): undefined reference to `swscale_license'
collect2: ld returned 1 exit status
make: *** [../build/ffDiaporama] Errore 1

Offline

#8 12-27-2011 21:52:37

domledom
Administrateur
Registered: 09-17-2011
Posts: 1,080

Re: errori di compilazione su ubuntu 10.04

Hi smurf

It looks like you installed partially ffmpeg. So, it compiles but it can't make link.

Try this : In ffDiaporama.pro files, in the unix section there are 2 lines you should add :

Add an INCLUDEPATH line with the path to the include file of the ffmpeg you download like this :
  INCLUDEPATH += /usr/local/src/ffmpeg/include       something like this (we are searching for .h files of ffmpeg)

And add a LIBS line with the path to the include file of the ffmpeg you download like this :
  LIBS +=  -L"/usr/local/ffmpeg/lib"             something like this (we are searching for .o files of ffmpeg)


Processeur i5 - 8 Go RAM - Manjaro Linux KDE (64 bits) / Windows 7 (64 bits)

Offline

#9 12-28-2011 15:12:24

smurf
Membre
Registered: 12-25-2011
Posts: 12

Re: errori di compilazione su ubuntu 10.04

well, I downloaded and compiled ffmpeg in a directory in my home, that is a question of order in my disks.
So I modified th ffDiaporama.pro file like this

unix {
    LIBS        += -lavformat -lavcodec -lavutil -lswscale -lSDL
     LIBS             += -L"/home/luca/sistema/sorgenti/ffmpeg/libavcodec"
     LIBS             += -L"/home/luca/sistema/sorgenti/ffmpeg/libavdevice"
     LIBS             += -L"/home/luca/sistema/sorgenti/ffmpeg/libavfilter"
     LIBS             += -L"/home/luca/sistema/sorgenti/ffmpeg/libavformat"
     LIBS             += -L"/home/luca/sistema/sorgenti/ffmpeg/libavutil"
     LIBS             += -L"/home/luca/sistema/sorgenti/ffmpeg/libswscale"
    DESTDIR     += ../build/
    OBJECTS_DIR += ../build/
    MOC_DIR     += ../build/
    UI_DIR      += ../build/
    ICON        = img/logo.png
    INCLUDEPATH += /usr/include/ffmpeg/  # Specific for Fedora
    INCLUDEPATH += ./fmt_filters/
     INCLUDEPATH += /home/luca/sistema/sorgenti/ffmpeg/libavcodec/
     INCLUDEPATH += /home/luca/sistema/sorgenti/ffmpeg/libavdevice/
     INCLUDEPATH += /home/luca/sistema/sorgenti/ffmpeg/libavfilter/
     INCLUDEPATH += /home/luca/sistema/sorgenti/ffmpeg/libavformat/
     INCLUDEPATH += /home/luca/sistema/sorgenti/ffmpeg/libavutil/
     INCLUDEPATH += /home/luca/sistema/sorgenti/ffmpeg/libswscale/
}

But the link error persist sad

Offline

#10 12-28-2011 15:23:09

smurf
Membre
Registered: 12-25-2011
Posts: 12

Re: errori di compilazione su ubuntu 10.04

this is my ffmpeg installation

luca@pc-cuarto:~$ ffmpeg
ffmpeg version N-36211-g5764301, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 27 2011 09:58:18 with gcc 4.4.3
  configuration: --enable-libmp3lame --enable-libxvid --enable-libvorbis --enable-gpl --enable-libfaac --enable-libtheora --enable-zlib --disable-shared --enable-libx264 --enable-libdirac --enable-nonfree --enable-version3 --enable-libschroedinger --enable-avfilter --enable-libspeex --enable-libopenjpeg --enable-libgsm --enable-postproc --enable-pthreads --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-ffplay --enable-pthreads --prefix=/usr/local --enable-x11grab --enable-runtime-cpudetect --enable-bzlib --enable-libdc1394 --enable-libvpx
  libavutil      51. 33.100 / 51. 33.100
  libavcodec     53. 48.100 / 53. 48.100
  libavformat    53. 28.100 / 53. 28.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 54.100 /  2. 54.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  5.100 /  0.  5.100
  libpostproc    51.  2.100 / 51.  2.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'
luca@pc-cuarto:~$

Offline

#11 12-28-2011 20:52:20

domledom
Administrateur
Registered: 09-17-2011
Posts: 1,080

Re: errori di compilazione su ubuntu 10.04

Hi smurf

Remove INCLUDEPATH += /usr/include/ffmpeg/  # Specific for Fedora

Are you sure you have .h and .o files in /home/luca/sistema/sorgenti/ffmpeg/libavcodec (for exemple) ?
and not in subfolders like include and lib ? I'm not sure it will search in subfolders ...

I don't know in wich order it will search (is it started with /usr ?)


Processeur i5 - 8 Go RAM - Manjaro Linux KDE (64 bits) / Windows 7 (64 bits)

Offline

#12 12-29-2011 00:06:05

smurf
Membre
Registered: 12-25-2011
Posts: 12

Re: errori di compilazione su ubuntu 10.04

I tried this way

unix {
    LIBS        += -lavformat -lavcodec -lavutil -lswscale -lSDL
     LIBS             += -L"/home/luca/sistema/sorgenti/ffmpeg/libavcodec"
     LIBS             += -L"/home/luca/sistema/sorgenti/ffmpeg/libavcodec/x86"
     LIBS             += -L"/home/luca/sistema/sorgenti/ffmpeg/libavdevice"
     LIBS             += -L"/home/luca/sistema/sorgenti/ffmpeg/libavfilter"
     LIBS             += -L"/home/luca/sistema/sorgenti/ffmpeg/libavfilter/libmpcodecs"
     LIBS             += -L"/home/luca/sistema/sorgenti/ffmpeg/libavfilter/x86"
     LIBS             += -L"/home/luca/sistema/sorgenti/ffmpeg/libavformat"
     LIBS             += -L"/home/luca/sistema/sorgenti/ffmpeg/libavutil"
     LIBS             += -L"/home/luca/sistema/sorgenti/ffmpeg/libavutil/x86"
     LIBS             += -L"/home/luca/sistema/sorgenti/ffmpeg/libswscale"
     LIBS             += -L"/home/luca/sistema/sorgenti/ffmpeg/libswscale/x86"
    DESTDIR     += ./build/
    OBJECTS_DIR += ./build/
    MOC_DIR     += ./build/
    UI_DIR      += ./build/
    ICON        = img/logo.png
    INCLUDEPATH += ./SubProjects/fmt_filters/
     INCLUDEPATH += /home/luca/sistema/sorgenti/ffmpeg/libavcodec/
     INCLUDEPATH += /home/luca/sistema/sorgenti/ffmpeg/libavcodec/x86/
     INCLUDEPATH += /home/luca/sistema/sorgenti/ffmpeg/libavdevice/
     INCLUDEPATH += /home/luca/sistema/sorgenti/ffmpeg/libavfilter/
     INCLUDEPATH += /home/luca/sistema/sorgenti/ffmpeg/libavfilter/libmpcodecs/
     INCLUDEPATH += /home/luca/sistema/sorgenti/ffmpeg/libavfilter/x86/
     INCLUDEPATH += /home/luca/sistema/sorgenti/ffmpeg/libavformat/
     INCLUDEPATH += /home/luca/sistema/sorgenti/ffmpeg/libavutil/
     INCLUDEPATH += /home/luca/sistema/sorgenti/ffmpeg/libavutil/x86/
     INCLUDEPATH += /home/luca/sistema/sorgenti/ffmpeg/libswscale/
     INCLUDEPATH += /home/luca/sistema/sorgenti/ffmpeg/libswscale/x86/
}

But I had no success.
Anyway I have to tell that I can't find in my whole HDD system any of the pieces that the make command try to link.
I mean: this pieces are the ones that cannot be linked

av_free_packet
avcodec_decode_video2
avcodec_decode_audio3
avformat_open_input
avcodec_open2
av_guess_format
avio_open
avformat_write_header
avio_close
avcodec_license
avformat_license
swscale_license

but they are not present in any folder of my computer.

Offline

#13 12-30-2011 07:01:55

domledom
Administrateur
Registered: 09-17-2011
Posts: 1,080

Re: errori di compilazione su ubuntu 10.04

Hi smurf

In fact, av_free_packet, avcodec_decode_video2, avcodec_decode_audio3 ... are not lib but functions included in lib.

The files you have to find are :
- libavformat.a and libavformat.so
- libavcodec.a and libavcodec.so
- libavutil.a and libavutil.so
and so on ...
(It could be not .o files but couple of .a and .so files)


Processeur i5 - 8 Go RAM - Manjaro Linux KDE (64 bits) / Windows 7 (64 bits)

Offline

#14 12-30-2011 15:15:04

smurf
Membre
Registered: 12-25-2011
Posts: 12

Re: errori di compilazione su ubuntu 10.04

Well, after your last post I made a search on my computer and changed ffDiaporama.pro again, but no luck.
In this file ffDiaporama_make you will find the last version of ffDiaporama.pro, the files I found on my computer and the whole output of ffDiaporama compilation.
Note that if you search for the string avcodec_decode_audio3, you'll find it in the link error at the end, but you'll find it as well in the compilation output in a warning. So we have to suppose that the function is founded during the make.....
Happy new year.

Offline

#15 01-11-2012 05:16:06

smurf
Membre
Registered: 12-25-2011
Posts: 12

Re: errori di compilazione su ubuntu 10.04

mmhhhh... your silence means that there is nothing more that we can do to compile it?

Offline

#16 01-11-2012 08:27:16

domledom
Administrateur
Registered: 09-17-2011
Posts: 1,080

Re: errori di compilazione su ubuntu 10.04

Sorry, but I have had many of the other things to be made these last days.

The log you send me means that you successfully compile but not successfully link

The reason of that is you compiled ffmpeg in /usr/local so, you have to modify the LIBS and INCLUDEPATH lines in the .pro files like this :
     change LIBS+=-lavformat -lavcodec -lavutil -lswscale -lSDL
     with LIBS+=L"/usr/local/bin" -lavformat -lavcodec -lavutil -lswscale -lSDL

and remove somes INCLUDEPATH lines 
     INCLUDEPATH += ./SubProjects/fmt_filters/          <=Keep it
     INCLUDEPATH += /usr/include/                         <=Keep it for SDL and others files
     INCLUDEPATH += /usr/local/include/                    <=Keep it
     INCLUDEPATH += /usr/lib/                         <=Remove it
     INCLUDEPATH += /usr/local/lib/                     <=Remove it

But even if you successfully compile and link ffDiaporama you will continue to have troubles because ffDiaporama 1.1 use ffmpeg binary in /usr/bin

So, i think :
- you should use latest sources from SVN. Because i made a lot of modification for ffDiaporama 1.2 and remove hard link to /usr/bin/ffmpeg binary.
- you should uninstall your installed ffmpeg (the one in /usr/bin) to avoid conficts between your installed version and your compiled version


Processeur i5 - 8 Go RAM - Manjaro Linux KDE (64 bits) / Windows 7 (64 bits)

Offline

#17 01-13-2012 22:08:40

smurf
Membre
Registered: 12-25-2011
Posts: 12

Re: errori di compilazione su ubuntu 10.04

HI domledom, thank you for your patience.
I downloaded ffDiaporama form svn trunk, but I still get the same error when compiling.
Here the log:

../../../build/src/ffDiaporama/DlgRenderVideo.o: In function `DlgRenderVideo::WriteTempAudioFile(QString, int)':
DlgRenderVideo.cpp:(.text+0x3429): undefined reference to `av_guess_format'
DlgRenderVideo.cpp:(.text+0x35d4): undefined reference to `avcodec_open2'
DlgRenderVideo.cpp:(.text+0x364f): undefined reference to `avio_open'
DlgRenderVideo.cpp:(.text+0x3696): undefined reference to `avformat_write_header'
DlgRenderVideo.cpp:(.text+0x3f1c): undefined reference to `avio_close'
DlgRenderVideo.cpp:(.text+0x49c3): undefined reference to `av_strerror'
../../../build/src/ffDiaporama/mainwindow.o: In function `MainWindow::InitWindow(QString, QApplication*)':
mainwindow.cpp:(.text+0x8f08): undefined reference to `avcodec_license'
mainwindow.cpp:(.text+0x94c8): undefined reference to `avformat_license'
mainwindow.cpp:(.text+0x9a88): undefined reference to `swscale_license'
../../../build/src/ffDiaporama/cDeviceModelDef.o: In function `cDeviceModelList::Initffmpeg()':
cDeviceModelDef.cpp:(.text+0x36f5): undefined reference to `avformat_network_init'
../../../build/src/ffDiaporama/cBaseMediaFile.o: In function `cVideoFile::CloseCodecAndFile()':
cBaseMediaFile.cpp:(.text+0x9ba): undefined reference to `avformat_close_input'
cBaseMediaFile.cpp:(.text+0xa0f): undefined reference to `avformat_close_input'
../../../build/src/ffDiaporama/cBaseMediaFile.o: In function `cVideoFile::OpenCodecAndFile()':
cBaseMediaFile.cpp:(.text+0x10bc): undefined reference to `avformat_open_input'
cBaseMediaFile.cpp:(.text+0x10fc): undefined reference to `avformat_find_stream_info'
cBaseMediaFile.cpp:(.text+0x1225): undefined reference to `avcodec_open2'
cBaseMediaFile.cpp:(.text+0x128f): undefined reference to `avformat_open_input'
cBaseMediaFile.cpp:(.text+0x12b8): undefined reference to `avformat_find_stream_info'
cBaseMediaFile.cpp:(.text+0x1407): undefined reference to `avcodec_open2'
cBaseMediaFile.cpp:(.text+0x15a4): undefined reference to `avformat_close_input'
cBaseMediaFile.cpp:(.text+0x164e): undefined reference to `avformat_close_input'
../../../build/src/ffDiaporama/cBaseMediaFile.o: In function `cVideoFile::ReadAudioFrame(bool, long long, cSoundBlockList*, double, bool)':
cBaseMediaFile.cpp:(.text+0x2997): undefined reference to `av_free_packet'
cBaseMediaFile.cpp:(.text+0x2b5e): undefined reference to `avcodec_decode_audio3'
../../../build/src/ffDiaporama/cBaseMediaFile.o: In function `cVideoFile::ReadVideoFrame(long long, bool)':
cBaseMediaFile.cpp:(.text+0x6eb6): undefined reference to `av_free_packet'
cBaseMediaFile.cpp:(.text+0x7194): undefined reference to `avcodec_decode_video2'
cBaseMediaFile.cpp:(.text+0x7274): undefined reference to `av_free_packet'
../../../build/src/ffDiaporama/cBaseMediaFile.o: In function `cVideoFile::GetInformationFromFile(QString, QStringList*, bool*)':
cBaseMediaFile.cpp:(.text+0x17acb): undefined reference to `avformat_open_input'
cBaseMediaFile.cpp:(.text+0x17b0a): undefined reference to `avformat_find_stream_info'
cBaseMediaFile.cpp:(.text+0x17b6d): undefined reference to `av_dict_get'
cBaseMediaFile.cpp:(.text+0x186c2): undefined reference to `av_dict_get'
cBaseMediaFile.cpp:(.text+0x1910f): undefined reference to `avformat_close_input'
cBaseMediaFile.cpp:(.text+0x19e9a): undefined reference to `av_dict_get'
cBaseMediaFile.cpp:(.text+0x1afbe): undefined reference to `av_dict_get'
cBaseMediaFile.cpp:(.text+0x1d29a): undefined reference to `avformat_close_input'
collect2: ld returned 1 exit status
make[1]: *** [../../../build/ffDiaporama] Errore 1
make[1]: uscita dalla directory "/home/luca/sistema/sorgenti/ffDiaporama/src/ffDiaporama"
make: *** [sub-src-ffDiaporama-make_default-ordered] Errore 2
luca@pc-cuarto:~/sistema/sorgenti/ffDiaporama$

I compiled with this commands:

qmake-qt4 INSTALL_ROOT=/opt ffDiaporama.pro
male

In the INSTALL_ROOT option I tried /opt, /usr/local and /usr, but I always received the same error.

Offline

#18 01-14-2012 06:41:37

domledom
Administrateur
Registered: 09-17-2011
Posts: 1,080

Re: errori di compilazione su ubuntu 10.04

Hi smurf

There are link errors.

It means that it dont find or use correct ffmpeg libs.
Did you uninstall previous ffmpeg dev packages (libavformat-dev, libavcodec-dev, libavutil-dev, ...) ?


Processeur i5 - 8 Go RAM - Manjaro Linux KDE (64 bits) / Windows 7 (64 bits)

Offline

#19 01-16-2012 00:12:08

smurf
Membre
Registered: 12-25-2011
Posts: 12

Re: errori di compilazione su ubuntu 10.04

Nothing, I uninstalled those libraries, but now I got a plenty of linking errors.
I quit, it's evident that ffdiaporama is not installable on Ubuntu 10.04.
Thanks a lot for your patience.

Offline

Board footer