yangqiaosheng / libcitygml

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

Build failing with error #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. take a snapshot or latest source zip file
2. change the CMakeLists.txt so libxml2 is used
3. do: cmake CMakeLists.txt

What is the expected output? What do you see instead?
The expected output would be that of a successfull build. I got the following:
patrick@linux-dev:~/Downloads/libcitygml-read-only$ make
[ 14%] Building CXX object src/CMakeFiles/citygml.dir/citymodel.o               

In file included from 
/home/patrick/Downloads/libcitygml-read-only/src/citymodel.cpp:21:              

/home/patrick/Downloads/libcitygml-read-only/src/../include/citygml.h:372: 
warning: ‘typedef’ was ignored in this declaration                          

/home/patrick/Downloads/libcitygml-read-only/src/../include/citygml.h: In 
member function ‘virtual TVec4f citygml::LandUse::getDefaultColor() const’: 

/home/patrick/Downloads/libcitygml-read-only/src/../include/citygml.h:531: 
error: ‘atoi’ was not declared in this scope                                

/home/patrick/Downloads/libcitygml-read-only/src/citymodel.cpp: In member 
function ‘void citygml::Polygon::tesselate(const TVec3d&)’:                 

/home/patrick/Downloads/libcitygml-read-only/src/citymodel.cpp:215: error: 
‘memcpy’ was not declared in this scope                                     

/home/patrick/Downloads/libcitygml-read-only/src/citymodel.cpp: In member 
function ‘bool citygml::Polygon::merge(citygml::Polygon*)’:                 

/home/patrick/Downloads/libcitygml-read-only/src/citymodel.cpp:294: error: 
‘min’ was not declared in this scope                                        

make[2]: *** [src/CMakeFiles/citygml.dir/citymodel.o] Error 1                   

make[1]: *** [src/CMakeFiles/citygml.dir/all] Error 2                           

make: *** [all] Error 2   

What version of the product are you using? On what operating system?
I used the latest svn snapshot and also tested 'libcitygml.0.1.3.zip'.
The OS is: 
Linux linux-dev 2.6.32-24-generic #42-Ubuntu SMP Fri Aug 20 14:24:04 UTC 2010 
i686 GNU/Linux 

Please provide any additional information below.
-

Original issue reported on code.google.com by hanckmann@gmail.com on 7 Sep 2010 at 8:45

GoogleCodeExporter commented 9 years ago
Thanks a lot for the report.
This bug should be fixed now: some #include & #define were missing for some 
Linux os

Original comment by jpouder...@gmail.com on 7 Sep 2010 at 11:25

GoogleCodeExporter commented 9 years ago

Original comment by jpouder...@gmail.com on 7 Sep 2010 at 11:26