qCC on gentoo and related errors
Posted: Sun Oct 23, 2011 7:04 pm
Hi everybody, i would like to thank you for this great tool. i am a geologist working with TLS-acquired point clouds and i just tried qCC on gentoo linux. Sources compiled fine but i have some problems loading ply files:
qCC/fileIO/rply.c:1223: ply_type_check: Asserzione `sizeof(long) == 4' fallita.
Trying to comment out the size checks in rply.c makes the code correctly work but i think this is not a good option.
Checking size of long type on my system in this way:
using namespace std;
int main (int argc, char **argv){
int ecco = sizeof(long);
cout << ecco << endl;
}
resulted in a long's size of 8, not 4.
I think this depend upon my arch that is 64bit.
Any suggestions on how to correct this behavior? I could eventually send back a patch if someone have hints on this error.
Note: code compiled with gcc-4.5.3 on gentoo-linux system arch x86_64
Luca Penasa
qCC/fileIO/rply.c:1223: ply_type_check: Asserzione `sizeof(long) == 4' fallita.
Trying to comment out the size checks in rply.c makes the code correctly work but i think this is not a good option.
Checking size of long type on my system in this way:
using namespace std;
int main (int argc, char **argv){
int ecco = sizeof(long);
cout << ecco << endl;
}
resulted in a long's size of 8, not 4.
I think this depend upon my arch that is 64bit.
Any suggestions on how to correct this behavior? I could eventually send back a patch if someone have hints on this error.
Note: code compiled with gcc-4.5.3 on gentoo-linux system arch x86_64
Luca Penasa