Closed q8f13 closed 4 years ago
BTW: It takes me a half day to guess and solved the problem. Just a snippet in SConstruct file so a pull request is unnecessary i think
......
env.Append(LIBPATH=[cpp_bindings_path + 'bin/', rte_libpath, vector_libpath])
# env.Append(LIBPATH=[cpp_bindings_path + 'bin/', rte_libpath, vector_libpath, 'c:\\OSGeo4W64\\lib\\'])
env.Append(LIBS=[cpp_library, rte_library, vector_library])
# solution for error LNK2019 when compiling on win10
if env['platform'] == "windows":
env.Append(LIBS=['gdal_i.lib'])
env.Append(LIBPATH=[env['osgeo_path'] + '\\lib\\'])
# tweak this if you want to use different folders, or more folders, to store your source code in.
env.Append(CPPPATH=['src/'])
env.Append(CPPPATH=['src/global/'])
sources = Glob('src/*.cpp')
......
We could build the project without it, but building on Windows is a very curious thing, so I added your workaround in https://github.com/boku-ilen/geodot-plugin/commit/ff4b35c5eac4b090238b0aa6230df13a656cfbd6 - maybe other people need it as well.
Thanks a lot!