Compiling error v12685 {Solved}

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).

Compiling error v12685 {Solved}

Postby Coragem » Sun Mar 07, 2010 6:51 pm

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.
Attachments
config.log
(168.37 KiB) Downloaded 161 times
Last edited by Coragem on Wed Mar 10, 2010 9:03 pm, edited 1 time in total.
My System: Arch Linux x86_64 Bits CPU: AMD Phenom II X4 995 RAM: Kingston DDR2 800Mhz 8 GB GPU: Dual ATI Radeon HD 4830 512 MB Opensource ATI-Git Drivers. HD: SATA 500 Gb WindowManager: KDE4 Joystick: Thustmaster T.Flight Stick X USB
User avatar
Coragem
Bounty Hunter
Bounty Hunter
 
Posts: 169
Topics: 17
Joined: Sun Jan 20, 2008 1:38 pm
Location: Rio de Janeiro, Brazil

Share On:

Share on Facebook Facebook Share on Twitter Twitter Share on Digg Digg

Re: Compiling error v12685

Postby klauss » Mon Mar 08, 2010 10:42 am

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?
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

Re: Compiling error v12685

Postby Coragem » Mon Mar 08, 2010 1:42 pm

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.
My System: Arch Linux x86_64 Bits CPU: AMD Phenom II X4 995 RAM: Kingston DDR2 800Mhz 8 GB GPU: Dual ATI Radeon HD 4830 512 MB Opensource ATI-Git Drivers. HD: SATA 500 Gb WindowManager: KDE4 Joystick: Thustmaster T.Flight Stick X USB
User avatar
Coragem
Bounty Hunter
Bounty Hunter
 
Posts: 169
Topics: 17
Joined: Sun Jan 20, 2008 1:38 pm
Location: Rio de Janeiro, Brazil

Re: Compiling error v12685

Postby klauss » Mon Mar 08, 2010 2:02 pm

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.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

Re: Compiling error v12685

Postby Coragem » Mon Mar 08, 2010 2:13 pm

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?
My System: Arch Linux x86_64 Bits CPU: AMD Phenom II X4 995 RAM: Kingston DDR2 800Mhz 8 GB GPU: Dual ATI Radeon HD 4830 512 MB Opensource ATI-Git Drivers. HD: SATA 500 Gb WindowManager: KDE4 Joystick: Thustmaster T.Flight Stick X USB
User avatar
Coragem
Bounty Hunter
Bounty Hunter
 
Posts: 169
Topics: 17
Joined: Sun Jan 20, 2008 1:38 pm
Location: Rio de Janeiro, Brazil

Re: Compiling error v12685

Postby klauss » Mon Mar 08, 2010 2:21 pm

Yep, it helps.

I added a ticket to resolve that (and png_set_gray) - will do when I get home.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

Re: Compiling error v12685

Postby Coragem » Mon Mar 08, 2010 2:27 pm

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.
My System: Arch Linux x86_64 Bits CPU: AMD Phenom II X4 995 RAM: Kingston DDR2 800Mhz 8 GB GPU: Dual ATI Radeon HD 4830 512 MB Opensource ATI-Git Drivers. HD: SATA 500 Gb WindowManager: KDE4 Joystick: Thustmaster T.Flight Stick X USB
User avatar
Coragem
Bounty Hunter
Bounty Hunter
 
Posts: 169
Topics: 17
Joined: Sun Jan 20, 2008 1:38 pm
Location: Rio de Janeiro, Brazil

Re: Compiling error v12685

Postby chuck_starchaser » Mon Mar 08, 2010 11:31 pm

I see klauss did it. r12688
svn up and try again ;-)
User avatar
chuck_starchaser
Elite
Elite
 
Posts: 8014
Topics: 195
Joined: Thu Sep 04, 2003 9:03 pm
Location: Montreal

Re: Compiling error v12685

Postby Coragem » Tue Mar 09, 2010 7:06 pm

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
My System: Arch Linux x86_64 Bits CPU: AMD Phenom II X4 995 RAM: Kingston DDR2 800Mhz 8 GB GPU: Dual ATI Radeon HD 4830 512 MB Opensource ATI-Git Drivers. HD: SATA 500 Gb WindowManager: KDE4 Joystick: Thustmaster T.Flight Stick X USB
User avatar
Coragem
Bounty Hunter
Bounty Hunter
 
Posts: 169
Topics: 17
Joined: Sun Jan 20, 2008 1:38 pm
Location: Rio de Janeiro, Brazil

Re: Compiling error v12685

Postby klauss » Tue Mar 09, 2010 8:57 pm

Ok... grepped the source and at least those two functions have been eradicated.

So... try again?
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

Re: Compiling error v12685

Postby safemode » Wed Mar 10, 2010 7:18 am

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.
Ed Sweetman endorses this message.
safemode
Developer
Developer
 
Posts: 2150
Topics: 84
Joined: Sun Apr 22, 2007 6:17 pm
Location: Pennsylvania

Re: Compiling error v12685

Postby Coragem » Wed Mar 10, 2010 5:11 pm

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.
My System: Arch Linux x86_64 Bits CPU: AMD Phenom II X4 995 RAM: Kingston DDR2 800Mhz 8 GB GPU: Dual ATI Radeon HD 4830 512 MB Opensource ATI-Git Drivers. HD: SATA 500 Gb WindowManager: KDE4 Joystick: Thustmaster T.Flight Stick X USB
User avatar
Coragem
Bounty Hunter
Bounty Hunter
 
Posts: 169
Topics: 17
Joined: Sun Jan 20, 2008 1:38 pm
Location: Rio de Janeiro, Brazil

Re: Compiling error v12685

Postby chuck_starchaser » Wed Mar 10, 2010 7:14 pm

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.
User avatar
chuck_starchaser
Elite
Elite
 
Posts: 8014
Topics: 195
Joined: Thu Sep 04, 2003 9:03 pm
Location: Montreal

Re: Compiling error v12685 {Solved}

Postby Coragem » Wed Mar 10, 2010 9:04 pm

Didt know that, thx
My System: Arch Linux x86_64 Bits CPU: AMD Phenom II X4 995 RAM: Kingston DDR2 800Mhz 8 GB GPU: Dual ATI Radeon HD 4830 512 MB Opensource ATI-Git Drivers. HD: SATA 500 Gb WindowManager: KDE4 Joystick: Thustmaster T.Flight Stick X USB
User avatar
Coragem
Bounty Hunter
Bounty Hunter
 
Posts: 169
Topics: 17
Joined: Sun Jan 20, 2008 1:38 pm
Location: Rio de Janeiro, Brazil



Return to Compiling Problems [paste config.log]

Who is online

Users browsing this forum: No registered users and 5 guests

cron