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).
Coragem
Bounty Hunter
Posts: 169 Joined: Sun Jan 20, 2008 8:38 pm
Location: Rio de Janeiro, Brazil
Post
by Coragem » Mon Mar 08, 2010 1:51 am
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.
You do not have the required permissions to view the files attached to this post.
Last edited by
Coragem on Thu Mar 11, 2010 4:03 am, 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
klauss
Elite
Posts: 7243 Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina
Post
by klauss » Mon Mar 08, 2010 5:42 pm
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?
Coragem
Bounty Hunter
Posts: 169 Joined: Sun Jan 20, 2008 8:38 pm
Location: Rio de Janeiro, Brazil
Post
by Coragem » Mon Mar 08, 2010 8: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
klauss
Elite
Posts: 7243 Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina
Post
by klauss » Mon Mar 08, 2010 9: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.
Coragem
Bounty Hunter
Posts: 169 Joined: Sun Jan 20, 2008 8:38 pm
Location: Rio de Janeiro, Brazil
Post
by Coragem » Mon Mar 08, 2010 9: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
klauss
Elite
Posts: 7243 Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina
Post
by klauss » Mon Mar 08, 2010 9:21 pm
Yep, it helps.
I added a ticket to resolve that (and png_set_gray) - will do when I get home.
Coragem
Bounty Hunter
Posts: 169 Joined: Sun Jan 20, 2008 8:38 pm
Location: Rio de Janeiro, Brazil
Post
by Coragem » Mon Mar 08, 2010 9:27 pm
Great it helps,
the first step i take back in the forum and its right on a Bug.
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
chuck_starchaser
Elite
Posts: 8014 Joined: Fri Sep 05, 2003 4:03 am
Location: Montreal
Contact:
Post
by chuck_starchaser » Tue Mar 09, 2010 6:31 am
I see klauss did it. r12688
svn up and try again
Coragem
Bounty Hunter
Posts: 169 Joined: Sun Jan 20, 2008 8:38 pm
Location: Rio de Janeiro, Brazil
Post
by Coragem » Wed Mar 10, 2010 2:06 am
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
klauss
Elite
Posts: 7243 Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina
Post
by klauss » Wed Mar 10, 2010 3:57 am
Ok... grepped the source and at least those two functions have been eradicated.
So... try again?
safemode
Developer
Posts: 2150 Joined: Mon Apr 23, 2007 1:17 am
Location: Pennsylvania
Contact:
Post
by safemode » Wed Mar 10, 2010 2:18 pm
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.
Coragem
Bounty Hunter
Posts: 169 Joined: Sun Jan 20, 2008 8:38 pm
Location: Rio de Janeiro, Brazil
Post
by Coragem » Thu Mar 11, 2010 12:11 am
OK, Now compiles perfectly thx guys.
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
chuck_starchaser
Elite
Posts: 8014 Joined: Fri Sep 05, 2003 4:03 am
Location: Montreal
Contact:
Post
by chuck_starchaser » Thu Mar 11, 2010 2:14 am
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.
Coragem
Bounty Hunter
Posts: 169 Joined: Sun Jan 20, 2008 8:38 pm
Location: Rio de Janeiro, Brazil
Post
by Coragem » Thu Mar 11, 2010 4:04 am
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