mapbox / windows-builds

DEPRECATED! build scripts for mapnik dependencies, mapnik, node-mapnik, node, libosmiom, osmium-tool
38 stars 22 forks source link

linker error #42

Closed talaj closed 9 years ago

talaj commented 9 years ago

Building with the latest Visual Studio Enterprise RC and the latest Mapnik master. Doing simply:

settings "FASTBUILD=0"
scripts\build.bat

All dependencies build ok, Mapnik compile ok, but linker failed.

         ...
         Release\obj\mapnik\..\..\src\/transform_expression.obj
         Release\obj\mapnik\..\..\src\/transform_expression_grammar.obj
         Release\obj\mapnik\..\..\src\/unicode.obj
         Release\obj\mapnik\..\..\src\/utils.obj
         Release\obj\mapnik\..\..\src\/vertex_cache.obj
         Release\obj\mapnik\..\..\src\/warp.obj
         Release\obj\mapnik\..\..\src\/webp_reader.obj
         Release\obj\mapnik\..\..\src\/well_known_srs.obj
         Release\obj\mapnik\..\..\src\/wkb.obj
         Release\obj\mapnik\..\..\src\/xml_tree.obj
         libjpeg.lib(jerror.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker pe
         rformance
    17>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification [C:\Users\seznam\dev\upstream\windows-builds\packages\mapnik-master\mapnik-gyp\build\
       mapnik.vcxproj]
            Creating library C:\Users\seznam\dev\upstream\windows-builds\packages\mapnik-master\mapnik-gyp\build\Release\mapnik.lib and object C:\Users\seznam\dev\upstre
         am\windows-builds\packages\mapnik-master\mapnik-gyp\build\Release\mapnik.exp
    17>expression_node.obj : error LNK2001: unresolved external symbol "public: class std::vector<int,class std::allocator<int> > __cdecl boost::re_detail::icu_regex_tra
       its_implementation::do_transform(int const *,int const *,class icu_54::Collator const *)const " (?do_transform@icu_regex_traits_implementation@re_detail@boost@@QE
       BA?AV?$vector@HV?$allocator@H@std@@@std@@PEBH0PEBVCollator@icu_54@@@Z) [C:\Users\seznam\dev\upstream\windows-builds\packages\mapnik-master\mapnik-gyp\build\mapnik
       .vcxproj]
    17>expression_node.obj : error LNK2001: unresolved external symbol "public: bool __cdecl boost::icu_regex_traits::isctype(int,unsigned __int64)const " (?isctype@icu_
       regex_traits@boost@@QEBA_NH_K@Z) [C:\Users\seznam\dev\upstream\windows-builds\packages\mapnik-master\mapnik-gyp\build\mapnik.vcxproj]
    17>expression_node.obj : error LNK2001: unresolved external symbol "private: class boost::basic_regex<int,class boost::icu_regex_traits> & __cdecl boost::basic_regex
       <int,class boost::icu_regex_traits>::do_assign(int const *,int const *,unsigned int)" (?do_assign@?$basic_regex@HVicu_regex_traits@boost@@@boost@@AEAAAEAV12@PEBH0
       I@Z) [C:\Users\seznam\dev\upstream\windows-builds\packages\mapnik-master\mapnik-gyp\build\mapnik.vcxproj]
    17>lib\mapnik.dll : fatal error LNK1120: 3 unresolved externals [C:\Users\seznam\dev\upstream\windows-builds\packages\mapnik-master\mapnik-gyp\build\mapnik.vcxproj]
    17>Done Building Project "C:\Users\seznam\dev\upstream\windows-builds\packages\mapnik-master\mapnik-gyp\build\mapnik.vcxproj" (default targets) -- FAILED.
     2>Done Building Project "C:\Users\seznam\dev\upstream\windows-builds\packages\mapnik-master\mapnik-gyp\build\csv.vcxproj.metaproj" (default targets) -- FAILED.
     1>Done Building Project "C:\Users\seznam\dev\upstream\windows-builds\packages\mapnik-master\mapnik-gyp\build\mapnik.sln" (default targets) -- FAILED.

Build FAILED.

Did anyone see that before? Any hint?

Thanks

wilhelmberg commented 9 years ago

@talaj running build .....

wilhelmberg commented 9 years ago

@talaj ran thru on my machine.

Is it possible that there are some leftovers from older builds?

Could you try a new full build?

git pull
clean <-- removes all extracted sources, cached downloads stay
scripts\build

or at least try a rebuild of boost and mapnik?

git pull
clean boost
clean mapnik
scripts\build_boost.bat
scripts\build_mapnik.bat
talaj commented 9 years ago

Proper clean up worked. Thank you.