[Qgis-developer] r9042 fails to build due to dxf2shp_converter

Paolo L. Scala scala at itc.cnr.it
Sun Aug 10 05:38:52 EDT 2008


> QGIS r9042 fails to build due to errors in dxf2shp_converter plugin.
> Details below:
>
>> [ 97%] Generating ui_dxf2shpconvertergui.h
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/dxf2shpconvertergui.ui:
>> An invalid icon property 'windowIcon' was encountered.
>> [ 97%] Generating moc_dxf2shpconverter.cxx
>> [ 98%] Generating moc_dxf2shpconvertergui.cxx
>> [ 98%] Generating moc_builder.cxx
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/builder.h:0:
>> Warning: No relevant classes found. No output generated.
>> [ 98%] Generating moc_getInsertions.cxx
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/getInsertions.h:0:
>> Warning: No relevant classes found. No output generated.
>> [ 98%] Generating dxflib/src/moc_dl_dxf.cxx
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/dxflib/src/dl_dxf.h:0:
>> Warning: No relevant classes found. No output generated.
>> [ 98%] Generating dxflib/src/moc_dl_writer_ascii.cxx
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/dxflib/src/dl_writer_ascii.h:0:
>> Warning: No relevant classes found. No output generated.
>> [ 98%] Generating qrc_dxf2shpconverter.cxx
>> Scanning dependencies of target dxf2shpconverterplugin
>> [ 99%] Building CXX object
>> src/plugins/dxf2shp_converter/CMakeFiles/dxf2shpconverterplugin.dir/dxf2shpconverter.o
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/dxf2shpconverter.cpp:
>> In member function 'void dxf2shpConverter::addMyLayer(QString)':
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/dxf2shpconverter.cpp:132:
>> warning: unused variable 'lyr'
>> [ 99%] Building CXX object
>> src/plugins/dxf2shp_converter/CMakeFiles/dxf2shpconverterplugin.dir/dxf2shpconvertergui.o
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/dxf2shpconvertergui.cpp:
>> In member function 'void
>> dxf2shpConverterGui::on_buttonBox_helpRequested()':
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/dxf2shpconvertergui.cpp:130:
>> warning: statement has no effect
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/dxf2shpconvertergui.cpp:131:
>> warning: statement has no effect
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/dxf2shpconvertergui.cpp:132:
>> warning: statement has no effect
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/dxf2shpconvertergui.cpp:133:
>> warning: statement has no effect
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/dxf2shpconvertergui.cpp:134:
>> warning: statement has no effect
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/dxf2shpconvertergui.cpp:135:
>> warning: statement has no effect
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/dxf2shpconvertergui.cpp:136:
>> warning: statement has no effect
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/dxf2shpconvertergui.cpp:137:
>> warning: statement has no effect
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/dxf2shpconvertergui.cpp:138:
>> warning: statement has no effect
>> [ 99%] Building CXX object
>> src/plugins/dxf2shp_converter/CMakeFiles/dxf2shpconverterplugin.dir/builder.o
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/builder.cpp:
>> In member function 'virtual void Builder::addCircle(const
>> DL_CircleData&)':
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/builder.cpp:398:
>> warning: right-hand operand of comma has no effect
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/builder.cpp:398:
>> warning: right-hand operand of comma has no effect
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/builder.cpp:398:
>> warning: right-hand operand of comma has no effect
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/builder.cpp:398:
>> warning: right-hand operand of comma has no effect
>> [ 99%] Building CXX object
>> src/plugins/dxf2shp_converter/CMakeFiles/dxf2shpconverterplugin.dir/getInsertions.o
>> [ 99%] Building CXX object
>> src/plugins/dxf2shp_converter/CMakeFiles/dxf2shpconverterplugin.dir/dxflib/src/dl_dxf.o
>> [ 99%] Building CXX object
>> src/plugins/dxf2shp_converter/CMakeFiles/dxf2shpconverterplugin.dir/dxflib/src/dl_writer_ascii.o
>> In file included from
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/dxflib/src/dl_writer_ascii.h:35,
>>                  from
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/dxflib/src/dl_writer_ascii.cpp:34:
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/dxflib/src/dl_writer.h:
>> In member function 'void DL_Writer::entityAttributes(const
>> DL_Attributes&) const':
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/dxflib/src/dl_writer.h:337:
>> error: 'strcasecmp' was not declared in this scope
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/dxflib/src/dl_writer_ascii.cpp:
>> In member function 'virtual void DL_WriterA::dxfReal(int, double)
>> const':
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/dxflib/src/dl_writer_ascii.cpp:72:
>> error: 'strlen' was not declared in this scope
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/dxflib/src/dl_writer_ascii.cpp:81:
>> error: 'strlen' was not declared in this scope
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/dxflib/src/dl_writer_ascii.cpp:
>> In static member function 'static void DL_WriterA::strReplace(char*,
>> char, char)':
>> /home/shoofi/src/straight/qgis-trunk/src/plugins/dxf2shp_converter/dxflib/src/dl_writer_ascii.cpp:147:
>> error: 'strlen' was not declared in this scope
>> make[2]: ***
>> [src/plugins/dxf2shp_converter/CMakeFiles/dxf2shpconverterplugin.dir/dxflib/src/dl_writer_ascii.o]
>> Error 1
>> make[1]: ***
>> [src/plugins/dxf2shp_converter/CMakeFiles/dxf2shpconverterplugin.dir/all]
>> Error 2
>> make: *** [all] Error 2
>
> Maciek
>
> --
> Maciej Sieczka
> www.sieczka.org
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>

Hello Maciek,
it seems that the problem is in the Dxflib library: in dl_writer_ascii.cpp
the function strlen cannot be found, even if it is located in string.h,
included in dl_writer_ascii.h. you can try to include it directly in
dl_writer_ascii.cpp.

For what concerns strcasecmp in dl_writer, I think the problem could be
the three lines in dl_writer.h:

#if defined(__OS2__)||defined(__EMX__)||defined(_WIN32)
#define strcasecmp(s,t) stricmp(s,t)
#endif

because doing so, it doesn't take into account *NIX systems...

I'm currently on vacation, so I could't test the compilation process under
Debian myself... sorry!

Paolo
-- 
Paolo L. Scala
Software developer
Istituto per le Tecnologie della Costruzione - CNR
via Bassini 15 - 20133 MILANO
tel.+39 02 23699547
fax.+39 02 23699543
.:: http://www.paoloscala.net ::.



More information about the Qgis-developer mailing list