Page 1 of 1

Compiling error v12685 {Solved}

Posted: Mon Mar 08, 2010 1:51 am
by Coragem
Hi all. ive been away for a long time, just got a new computer and using arch linux now.

Itryed to compile VS and i got this error.

Code: Select all

src/ffmpeg_init.cpp: In function ‘void FFMpeg::initLibraries()’:
src/ffmpeg_init.cpp:101: warning: ‘int register_protocol(URLProtocol*)’ is deprecated (declared at /usr/include/libavformat/avio.h:226)
src/ffmpeg_init.cpp:101: warning: ‘int register_protocol(URLProtocol*)’ is deprecated (declared at /usr/include/libavformat/avio.h:226)
depbase=`echo src/gfx/vsbox.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
        g++ -DHAVE_CONFIG_H -I.   -DBOOST_PYTHON_NO_PY_SIGNATURES -DBOOST_PYTHON_STATIC_LIB -I./boost/1_35    -DHAVE_SDL=1 -DSDL_WINDOWING=1      -DHAVE_AL=1   -DHAVE_OGG  -DHAVE_FFMPEG  -I/usr/include/python2.6 -DHAVE_PYTHON=1    -I./src   -pipe  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -pthread -MT src/gfx/vsbox.o -MD -MP -MF $depbase.Tpo -c -o src/gfx/vsbox.o src/gfx/vsbox.cpp &&\
        mv -f $depbase.Tpo $depbase.Po
depbase=`echo src/gfx/vsimage.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
        g++ -DHAVE_CONFIG_H -I.   -DBOOST_PYTHON_NO_PY_SIGNATURES -DBOOST_PYTHON_STATIC_LIB -I./boost/1_35    -DHAVE_SDL=1 -DSDL_WINDOWING=1      -DHAVE_AL=1   -DHAVE_OGG  -DHAVE_FFMPEG  -I/usr/include/python2.6 -DHAVE_PYTHON=1    -I./src   -pipe  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -pthread -MT src/gfx/vsimage.o -MD -MP -MF $depbase.Tpo -c -o src/gfx/vsimage.o src/gfx/vsimage.cpp &&\
        mv -f $depbase.Tpo $depbase.Po
src/gfx/vsimage.cpp: In member function ‘VSFileSystem::VSError VSImage::CheckPNGSignature(VSFileSystem::VSFile*)’:
src/gfx/vsimage.cpp:147: error: ‘png_check_sig’ was not declared in this scope
src/gfx/vsimage.cpp: In member function ‘unsigned char* VSImage::ReadPNG()’:
src/gfx/vsimage.cpp:326: error: ‘png_set_gray_1_2_4_to_8’ was not declared in this scope
src/gfx/vsimage.cpp: In member function ‘VSFileSystem::VSError VSImage::WritePNG(unsigned char*)’:
src/gfx/vsimage.cpp:870: warning: ‘png_struct_def::jmpbuf’ is deprecated (declared at /usr/include/png.h:1111)
src/gfx/vsimage.cpp:870: warning: ‘png_struct_def::jmpbuf’ is deprecated (declared at /usr/include/png.h:1111)
make[1]: ** [src/gfx/vsimage.o] Erro 1
make[1]: Saindo do diretório `/home/vitor/jogos/vssvn/vegastrike'
make: ** [all] Erro 2
Config.log attached

Any ideas?
Thank you in advance guys.

Re: Compiling error v12685

Posted: Mon Mar 08, 2010 5:42 pm
by klauss
That's weird, png_check_sig comes from png.h, and png.h is included in vsimage.cpp, and libpng has been successfully detected by configure (according to your config.log).

Can you verify that png_check_sig is defined in your png.h? And if not why?

Re: Compiling error v12685

Posted: Mon Mar 08, 2010 8:42 pm
by Coragem
Klauss, where is that header file so i can check that? i searched on goggle but didnt find the information.

But i did found this.
My libpng version libpng-1.4.1-1

Change log from Libpng 1.4: got on libpng.org

Removed unused prototype for png_check_sig() from png.h

maybe its the problem.

Re: Compiling error v12685

Posted: Mon Mar 08, 2010 9:02 pm
by klauss
Yap, that could be the problem.

Does it say where the prototype lays now?

EDIT: Apparently the check_sig stuff has been deprecated a while ago, I think we'll have to update our use of libpng.

Re: Compiling error v12685

Posted: Mon Mar 08, 2010 9:13 pm
by Coragem
Found this;

The function
png_check_sig(sig, num)
was replaced with
!png_sig_cmp(sig, 0, num)
It has been deprecated since libpng-0.90.

not into programing for some years, this any help?

Re: Compiling error v12685

Posted: Mon Mar 08, 2010 9:21 pm
by klauss
Yep, it helps.

I added a ticket to resolve that (and png_set_gray) - will do when I get home.

Re: Compiling error v12685

Posted: Mon Mar 08, 2010 9:27 pm
by Coragem
Great it helps, :D the first step i take back in the forum and its right on a Bug. :roll:

Hope its not too much work to fix.

Re: Compiling error v12685

Posted: Tue Mar 09, 2010 6:31 am
by chuck_starchaser
I see klauss did it. r12688
svn up and try again ;-)

Re: Compiling error v12685

Posted: Wed Mar 10, 2010 2:06 am
by Coragem
Guys, got same error but on a later part of compiling.

Code: Select all

depbase=`echo objconv/basemaker/base_maker_texture.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
        g++ -DHAVE_CONFIG_H -I.   -DBOOST_PYTHON_NO_PY_SIGNATURES -DBOOST_PYTHON_STATIC_LIB -I./boost/1_35    -DHAVE_SDL=1 -DSDL_WINDOWING=1      -DHAVE_AL=1   -DHAVE_OGG  -DHAVE_FFMPEG  -I/usr/include/python2.6 -DHAVE_PYTHON=1    -I./src   -pipe  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -pthread -MT objconv/basemaker/base_maker_texture.o -MD -MP -MF $depbase.Tpo -c -o objconv/basemaker/base_maker_texture.o objconv/basemaker/base_maker_texture.cpp &&\
        mv -f $depbase.Tpo $depbase.Po
objconv/basemaker/base_maker_texture.cpp: In function ‘bool readPng(FILE*, Texture::FileData*, void (*)(Texture::FileData*, unsigned char**))’:
objconv/basemaker/base_maker_texture.cpp:84: error: ‘png_set_gray_1_2_4_to_8’ was not declared in this scope
objconv/basemaker/base_maker_texture.cpp: In function ‘Format getFormat(FILE*)’:
objconv/basemaker/base_maker_texture.cpp:232: error: ‘png_check_sig’ was not declared in this scope
make[1]: ** [objconv/basemaker/base_maker_texture.o] Erro 1
make[1]: Saindo do diretório `/home/vitor/jogos/vssvn/vegastrike'
make: ** [all] Erro 2
Guess this time on another file. Base_marker_texture.cpp

Re: Compiling error v12685

Posted: Wed Mar 10, 2010 3:57 am
by klauss
Ok... grepped the source and at least those two functions have been eradicated.

So... try again?

Re: Compiling error v12685

Posted: Wed Mar 10, 2010 2:18 pm
by safemode
always run svn status to make sure you dont have any local edits to any files under revision control that you dont intend to. they can interfere with updating. Best to delete them and let svn update re-create them.

Re: Compiling error v12685

Posted: Thu Mar 11, 2010 12:11 am
by Coragem
OK, Now compiles perfectly thx guys. :mrgreen:

Now im getting very nasty artifacts with the open source ATI drivers, but i guess that might be normal.

Please if you guys could tag topic as solved plz, thx.

Re: Compiling error v12685

Posted: Thu Mar 11, 2010 2:14 am
by chuck_starchaser
Coragem wrote:Please if you guys could tag topic as solved plz, thx.
You can do it too; just go to page one, hit the Edit button on your first post, and add SOLVED to the title.

Re: Compiling error v12685 {Solved}

Posted: Thu Mar 11, 2010 4:04 am
by Coragem
Didt know that, thx