Log in

View Full Version : vanred - initial SuSE-9.3 compile attempts failed


oldcpu
12th November 2005, 09:46
My compile attempts of vanred on SuSE-9.3 failed. They worked on SuSE-10.0

I ensured I had what I believe to be the necessary dependency apps: libdvdread, dvdauthor, vamps, play_cell, lsdvd, streamanalyze and libdvdcss2.

On my SuSE-9.3, during the "make" execution I obtained the following error:
oldcpu@linux:~/new-tar/vanred/vanred-0.3> make
g++ -g -c main.cpp
In file included from PGC.h:6,
from Title.h:12,
from DVD.h:7,
from main.cpp:1:
Color_palette.h:9: error: syntax error before `[' token
Color_palette.h:17: error: type specifier omitted for parameter `uint32_t'
Color_palette.h:17: error: syntax error before `)' token
Color_palette.h:18: error: syntax error before `)' token
In file included from Title.h:12,
from DVD.h:7,
from main.cpp:1:
PGC.h:14: error: 'uint8_t' is used as a type, but is not defined as a type.
make: *** [main.o] Error 1
oldcpu@linux:~/new-tar/vanred/vanred-0.3> Looks like it doesn't like the syntax in what ever application vanred (or my gcc) looks in calling the color palette. I need to ponder if there is an easy way to address this. This is not the sort of hickup I solve all the time. :)

Edit- removed SuSE-10.0 problem - I was doing something stupid.

john.smith
13th November 2005, 15:31
vanred is developed in c++ and tested with the following g++ versions:
g++-3.4
g++-4.0

Both versions should be able to compile vanred.
Ensure you have necessary c++ (stl etc.) and glib libraries installed. It looks to me that the compiler don`t now the glib types uint32_t and uint8_t...

Actually only libdvdread, vamps, play_cell and dvdauthor are really needed to use vanred. lsdvd and streamanalyze are not needed. libdvdcss is only needed to backup encrypted dvds...

oldcpu
13th November 2005, 20:04
It appears my SuSE-9.3 gcc compiler is too old.

While I did have the SuSE-9.3 glib-1.2.10 library installed, SuSE-9.3 comes with gcc-3.3.5-5 and gcc-c++3.3.5-5. (In comparison to SuSE-10.0 comes with gcc-4.0.2_20050901-3. SuSE-10.0 does compile and work). Hence I withdrew the support request on sourceforge, as it appears the gcc compiler on SuSE-9.3 is too old to successfully compile vanred.

But thanks for your response. And I am enjoying its use on SuSE-10.0, so thanks for writing and sharing this fine application.