[Asterisk-video] Problems compiling libh324m on 64-bit Centos 5

Jon Schøpzinsky jos at detele.dk
Tue Jan 8 05:02:49 CST 2008


I am having problems compiling on a 64-bit CentOS 5 linux. 

This is the result: 
g++ -o libh324m.so -shared h324m.o src/libh324m.a ptlib-config --libs -fPIC /usr/bin/ld: h324m.o: relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC h324m.o: could not read symbols: Bad value collect2: ld returned 1 exit status 

I also had some problems with casts in the code. For example in H245MasterSlave.cpp:28 where you cast the class to an unsigned int. 

srand((unsigned)this) 

This fails the compilation with an error. 
H245MasterSlave.cpp:28: error: cast from âH245MasterSlave*â to âunsigned intâ loses precision 

Other than that, this is a great project and looking forward to seeing more :) 

Venlig Hilsen/Kind Regards
Jon Leren Schøpzinsky
Solution Engineer
Dansk Erhvervs-Telefon A/S
tlf: +45 88200336
mob: +45 31206709




More information about the asterisk-video mailing list