Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 7th December 2005, 16:07   #201  |  Link
bob0r
Pain and suffering
 
bob0r's Avatar
 
Join Date: Jul 2002
Posts: 1,337
@el divx

Code:
gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86 -DSYS_MINGW -DAVIS_INPUT -DMP4_OUTPUT -DHAVE_PTHREAD=1 -s -fomit-frame-pointer -fprofile-generate -DHAVE_GETOPT_LONG=1 -c -o encoder/set.o encoder/set.c
encoder/set.c: In function 'x264_sei_version_write':
encoder/set.c:464: error: 'X264_VERSION' undeclared (first use in this function)
encoder/set.c:464: error: (Each undeclared identifier is reported only once
encoder/set.c:464: error: for each function it appears in.)
make[1]: *** [encoder/set.o] Error 1
make[1]: Leaving directory `/home/user/x264'
make: *** [fprofiled] Error 2
I have the same problem, make fprofiled (assuming you use that also) deletes config.h which it seems it needs. (make only does not have this problem)

To fix this easy:
Edit x264/Makefile, and remove config.h from clean:

Change
Code:
clean:
	rm -f $(OBJS) $(OBJASM) config.h *.a x264.o matroska.o x264 x264.exe .depend TAGS
to:

Code:
clean:
	rm -f $(OBJS) $(OBJASM) *.a x264.o matroska.o x264 x264.exe .depend TAGS
and add config.h to: distclean: clean:

Change
Code:
distclean: clean
	rm -f config.mak vfw/build/cygwin/config.mak x264.pc
to:

Code:
distclean: clean
	rm -f config.h config.mak vfw/build/cygwin/config.mak x264.pc
bob0r is offline   Reply With Quote
Old 7th December 2005, 16:11   #202  |  Link
bob0r
Pain and suffering
 
bob0r's Avatar
 
Join Date: Jul 2002
Posts: 1,337
Another problem, while on it:

make fprofiled with gcc 4.0.2:

I get this error:

Code:
gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86 -DSYS_MINGW -DAVIS_INPUT -DMP4_OUTPUT -DHAVE_PTHREAD=1 -s -fomit-frame-pointer -fprofile-use -DHAVE_GETOPT_LONG=1   -c -o common/pixel.o common/pixel.c
gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86 -DSYS_MINGW -DAVIS_INPUT -DMP4_OUTPUT -DHAVE_PTHREAD=1 -s -fomit-frame-pointer -fprofile-use -DHAVE_GETOPT_LONG=1   -c -o common/macroblock.o common/macroblock.c
common/macroblock.c: In function 'x264_mb_predict_mv_ref16x16':
common/macroblock.c:504: internal compiler error: Arithmetic exception
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[1]: *** [common/macroblock.o] Error 1
make[1]: Leaving directory `/home/user/x264'
make: *** [fprofiled] Error 2
Any solution?
bob0r is offline   Reply With Quote
Old 7th December 2005, 18:17   #203  |  Link
el divx
"el" as in Hellas
 
el divx's Avatar
 
Join Date: Jun 2003
Location: Greece
Posts: 71
OK, I've had it. How do you compile gcc 4.0.2 under windows?

I have tried to do it on MinGW and it failed.
__________________
Divx Forums Nickname: DivxRulez | Greek Doom9 Forums Nickname: Dark Scizor | dvd.stuff.gr Forums Nickname: Dark Scizor
el divx is offline   Reply With Quote
Old 7th December 2005, 18:22   #204  |  Link
el divx
"el" as in Hellas
 
el divx's Avatar
 
Join Date: Jun 2003
Location: Greece
Posts: 71
Quote:
Originally Posted by bob0r
Another problem, while on it:

make fprofiled with gcc 4.0.2:

I get this error:

Code:
gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86 -DSYS_MINGW -DAVIS_INPUT -DMP4_OUTPUT -DHAVE_PTHREAD=1 -s -fomit-frame-pointer -fprofile-use -DHAVE_GETOPT_LONG=1   -c -o common/pixel.o common/pixel.c
gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86 -DSYS_MINGW -DAVIS_INPUT -DMP4_OUTPUT -DHAVE_PTHREAD=1 -s -fomit-frame-pointer -fprofile-use -DHAVE_GETOPT_LONG=1   -c -o common/macroblock.o common/macroblock.c
common/macroblock.c: In function 'x264_mb_predict_mv_ref16x16':
common/macroblock.c:504: internal compiler error: Arithmetic exception
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[1]: *** [common/macroblock.o] Error 1
make[1]: Leaving directory `/home/user/x264'
make: *** [fprofiled] Error 2
Any solution?
It seems GCC is the culprit.

You could:
a) File a bug report on gcc's bugzilla or whatever they're using to collect bugs

b) Wait for the naxt revision that may has it fixed

c) Use a cvs version of gcc and pray that it works
__________________
Divx Forums Nickname: DivxRulez | Greek Doom9 Forums Nickname: Dark Scizor | dvd.stuff.gr Forums Nickname: Dark Scizor
el divx is offline   Reply With Quote
Old 7th December 2005, 19:09   #205  |  Link
bob0r
Pain and suffering
 
bob0r's Avatar
 
Join Date: Jul 2002
Posts: 1,337
Quote:
Originally Posted by el divx
OK, I've had it. How do you compile gcc 4.0.2 under windows?

I have tried to do it on MinGW and it failed.

Extract
ftp://ftp.nluug.nl/mirror/languages/...e-4.0.2.tar.gz
and
ftp://ftp.nluug.nl/mirror/languages/...+-4.0.2.tar.gz
(both will be gcc-4.0.2/) then:

1. cd gcc-4.0.2/
2. mkdir obj
3: cd obj
4: ../configure --prefix=/usr/local
5: make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap
6: make install

I have done the same for gcc 3.4.4.

I keep both compiled versions on my hdd (takes about 1 hour to compile here)
So i can switch between gcc versions. gcc 4.1.x failed on me, some program missing, will look into that later.

Note:
G:\msys\1.0\home\user\gcc-3.4.4 321 MB (337,360,089 bytes)
G:\msys\1.0\home\user\gcc-4.0.2 447 MB (468,898,041 bytes)
bob0r is offline   Reply With Quote
Old 8th December 2005, 13:21   #206  |  Link
el divx
"el" as in Hellas
 
el divx's Avatar
 
Join Date: Jun 2003
Location: Greece
Posts: 71
Code:
  sort -u > tmp-macro_list
/bin/sh ../../gcc/../move-if-change tmp-macro_list macro_list
macro_list is unchanged
echo timestamp > s-macro_list
The directory that should contain system headers does not exist:
  /usr/include
make[1]: *** [stmp-fixinc] Error 1
make[1]: Leaving directory `/home/gcc/obj/gcc'
make: *** [all-gcc] Error 2
Any ideas?
__________________
Divx Forums Nickname: DivxRulez | Greek Doom9 Forums Nickname: Dark Scizor | dvd.stuff.gr Forums Nickname: Dark Scizor
el divx is offline   Reply With Quote
Old 8th December 2005, 13:38   #207  |  Link
Sirber
retired developer
 
Sirber's Avatar
 
Join Date: Oct 2002
Location: Canada
Posts: 8,978
You killed your linux box? What's inside /usr/include?
__________________
Detritus Software
Sirber is offline   Reply With Quote
Old 8th December 2005, 13:38   #208  |  Link
bob0r
Pain and suffering
 
bob0r's Avatar
 
Join Date: Jul 2002
Posts: 1,337
No clue, update mingw runtime and w32api ?

http://www.mingw.org/download.shtml
mingw-runtime-3.9.tar.gz
w32api-3.5.tar.gz
bob0r is offline   Reply With Quote
Old 9th December 2005, 13:44   #209  |  Link
el divx
"el" as in Hellas
 
el divx's Avatar
 
Join Date: Jun 2003
Location: Greece
Posts: 71
Quote:
Originally Posted by Sirber
You killed your linux box? What's inside /usr/include?
Actually, it's MinGW.
__________________
Divx Forums Nickname: DivxRulez | Greek Doom9 Forums Nickname: Dark Scizor | dvd.stuff.gr Forums Nickname: Dark Scizor
el divx is offline   Reply With Quote
Old 10th December 2005, 13:13   #210  |  Link
bob0r
Pain and suffering
 
bob0r's Avatar
 
Join Date: Jul 2002
Posts: 1,337
gpac = fucked

My old gpac dir:
Code:
cd gpac
cvs up
make clean
make lib &>output.txt
The result:
http://files.x264.nl/output.txt
libgpac.dll 2.23 MB (2,348,791 bytes)
libgpac_static.a 2.90 MB (3,049,872 bytes)

When i re-run configure:
Code:
cd gpac
cvs up
make clean
configure
make lib &>output_configure.txt
The result:
http://files.x264.nl/output_configure.txt
libgpac.dll 2.23 MB (2,348,791 bytes)
libgpac_static.a 2.90 MB (3,049,872 bytes)

When i do a fresh checkout:
Code:
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/gpac co -P gpac
cd gpac
make clean
configure
make lib &>output_clean.txt
The result:
http://files.x264.nl/output_clean.txt
libgpac.dll error, not compiled
libgpac_static.a 2.55 MB (2,675,434 bytes)

What does this mean? cvs up is not working, not updating gpac?
(so cvs up != fresh checkout)
Then... what version am i using for x264 rev 385? Is there a CVS command to show you what version or date you are using?

Help!
bob0r is offline   Reply With Quote
Old 14th December 2005, 10:22   #211  |  Link
el divx
"el" as in Hellas
 
el divx's Avatar
 
Join Date: Jun 2003
Location: Greece
Posts: 71
I don't know, maybe ask Sharktooth to provide working GPAC tarbals(that will work on MinGW)?

His builds of GPAC always seem to work even if everybody else's don't.
__________________
Divx Forums Nickname: DivxRulez | Greek Doom9 Forums Nickname: Dark Scizor | dvd.stuff.gr Forums Nickname: Dark Scizor
el divx is offline   Reply With Quote
Old 14th December 2005, 11:22   #212  |  Link
leowai
Registered User
 
Join Date: May 2005
Posts: 184
Quote:
Originally Posted by bob0r
gpac = fucked
Same here.
Quote:
Originally Posted by bob0r
When i do a fresh checkout:
Code:
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/gpac co -P gpac
cd gpac
make clean
configure
make lib &>output_clean.txt
The result:
http://files.x264.nl/output_clean.txt
libgpac.dll error, not compiled
libgpac_static.a 2.55 MB (2,675,434 bytes)
I got the same error.
Quote:
Originally Posted by bob0r
What does this mean? cvs up is not working, not updating gpac?
(so cvs up != fresh checkout)
I've exactly the same problem before. Is this the CVS bug? Or that's the feature it has? It seems like the "CVS update" will update the files by merging the modification you made on those new files.

I manage to avoid this by having two copy of the gpac, named "src" and the "prog". "src" copy will have the clean distribution of the project while "prog" copy is for compilation. "CVS update" is only for the "src" copy only. A progrm is used to synchronize (as an exact mirror) from folder "src" to "prog".

A good one is Super Flexible File Synchronizer (www.superflexible.com, beware, it's a shareware!). Only new files or additional files will be added or deleted with exact mirror option turned on. Synchronization can be done within few seconds. Not all files/data will be written onto the hard disk, only the neccessary files will be updated. This save hard disk life too....

Quote:
Originally Posted by bob0r
Then... what version am i using for x264 rev 385? Is there a CVS command to show you what version or date you are using?
Help!
Try to look for it from the file: "gpac\CVS\Tag", it shows "D2005.12.04.16.00.00" here. I suspect the last update is on 4th Dec 2005, 4pm?

gpac dated 2005.12.03 works for me. I use Tortoise CVS to retrieve the src of gpac on 3rd Dec 2005. (Right click the gpac root folder: CVS-> Update special, click "Get date/time" and select 3th Dec 2005).
leowai is offline   Reply With Quote
Old 14th December 2005, 13:23   #213  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
i wonder how JLF didnt notice gcc is not able to compile GPAC...
try adding --disable-svg in configure.

Last edited by Sharktooth; 14th December 2005 at 13:38.
Sharktooth is offline   Reply With Quote
Old 14th December 2005, 15:04   #214  |  Link
celtic_druid
Registered User
 
celtic_druid's Avatar
 
Join Date: Oct 2001
Location: Melbourne, Australia
Posts: 2,171
Still works with gcc 3.x though right? Just not gcc 4.x.
celtic_druid is offline   Reply With Quote
Old 14th December 2005, 16:12   #215  |  Link
leowai
Registered User
 
Join Date: May 2005
Posts: 184
Quote:
Originally Posted by celtic_druid
Still works with gcc 3.x though right? Just not gcc 4.x.
It doesn't work for me for gcc 3.4.4 here. I think that's some gpac src error instead of gcc.
leowai is offline   Reply With Quote
Old 14th December 2005, 16:13   #216  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
it's b0rked for every gcc version i tried 3.x and 4.x.
there are multiple syntax errors and other errors i cant just remember.
Sharktooth is offline   Reply With Quote
Old 14th December 2005, 16:50   #217  |  Link
celtic_druid
Registered User
 
celtic_druid's Avatar
 
Join Date: Oct 2001
Location: Melbourne, Australia
Posts: 2,171
Are you talking about the whole thing or just libgpac? dll and lib both compile fine here with gcc 3.4.4, but not with 4.0.2 (lib only).
celtic_druid is offline   Reply With Quote
Old 14th December 2005, 16:55   #218  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
dll doesnt compile here (and doesnt compile to others too).
do a fresh checkout and try again.
Sharktooth is offline   Reply With Quote
Old 14th December 2005, 17:11   #219  |  Link
celtic_druid
Registered User
 
celtic_druid's Avatar
 
Join Date: Oct 2001
Location: Melbourne, Australia
Posts: 2,171
I did a checkout afterwards. Nothing had changed. So basically the same thing.
celtic_druid is offline   Reply With Quote
Old 14th December 2005, 17:23   #220  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
well.. bobor was not having any problems compiling gpac (but something was weird in the bins) until he did a checkout.
Since then he experienced the same problems as me and other ppl too.
So there MUST be something wrong with GPAC (syntax errors are an obvious cause).

Quote:
commands.c:432: error: `SVGElement' undeclared (first use in this function)
commands.c:432: error: (Each undeclared identifier is reported only once
commands.c:432: error: for each function it appears in.)
commands.c:432: error: syntax error before ')' token
commands.c:438: error: syntax error before ')' token
commands.c:457: error: syntax error before ')' token
commands.c:465: error: syntax error before ')' token
that's with GCC 3.4...
Sharktooth is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:47.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.