yangqiaosheng / libcitygml

Automatically exported from code.google.com/p/libcitygml
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Compilation problems under ubuntu 11.10 #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Download libcityGML 0.1.3
2.After Cmake generation, try to compile it with gcc
3.Enjoy !

What is the expected output? What do you see instead?
Expected : compilation's working.
Actually : http://pastebin.com/hYZTQj1k

What version of the product are you using? On what operating system?
libCityGml 0.1.3, Ubuntu 11.10 x 64, gcc version 4.6.1

Please provide any additional information below.
Need some headers and namespace for linux.
Solved by adding in citygml.h : 
#include <stdio.h>
#include <stdlib.h>

and adding in citymodel.cpp : 
#include <string.h>
using namespace std;

The last error (cast from ‘GLvoid* {aka void*}’ to ‘int’ loses 
precision) is more difficult to resolve, because on 64bits OS, an int is not 
large enough to contain pointer, and I've not the good answer to this problem.

Regards,
Alexis

Original issue reported on code.google.com by alexis.m...@gmail.com on 3 Jan 2012 at 3:55

GoogleCodeExporter commented 9 years ago
Thanks for your report.
All these issues should have been fixed since 0.1.3 was published. Please 
update to the trunk version of the SVN.
Regards,
Joachim

Original comment by jpouder...@gmail.com on 5 Jan 2012 at 12:40