Windows Build help MSVC [Fixed] view for fix

minecraftlog21
New member
 
Posts: 4
Joined: Wed Nov 18, 2015 15:11
IRC: McLog21
In-game: Minecraftlog21

Windows Build help MSVC [Fixed] view for fix

by minecraftlog21 » Sat Nov 21, 2015 01:16

I am using a virtual box installation of windows 7 on Ubuntu mate.
But when ever trying to build in visual studio I get this:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
2>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
2>lua.lib(lauxlib.obj) : error LNK2001: unresolved external symbol __imp__freopen
2>lua.lib(lauxlib.obj) : error LNK2001: unresolved external symbol __imp__strstr
2>lua.lib(lobject.obj) : error LNK2001: unresolved external symbol __imp__strncat
2>lua.lib(lobject.obj) : error LNK2001: unresolved external symbol __imp__strncpy
2>lua.lib(lstrlib.obj) : error LNK2001: unresolved external symbol __imp__strncpy
2>lua.lib(lvm.obj) : error LNK2001: unresolved external symbol __imp__strcoll
2>lua.lib(lbaselib.obj) : error LNK2001: unresolved external symbol __imp__fputs
2>lua.lib(ldblib.obj) : error LNK2001: unresolved external symbol __imp__fputs
2>lua.lib(liolib.obj) : error LNK2001: unresolved external symbol __imp__clearerr
2>lua.lib(liolib.obj) : error LNK2001: unresolved external symbol __imp__fgets
2>lua.lib(ldblib.obj) : error LNK2001: unresolved external symbol __imp__fgets
2>lua.lib(liolib.obj) : error LNK2001: unresolved external symbol __imp___pclose
2>lua.lib(liolib.obj) : error LNK2001: unresolved external symbol __imp___popen
2>lua.lib(liolib.obj) : error LNK2001: unresolved external symbol __imp__tmpfile
2>lua.lib(loslib.obj) : error LNK2001: unresolved external symbol __imp__system
2>lua.lib(loslib.obj) : error LNK2001: unresolved external symbol __imp__clock
2>lua.lib(loslib.obj) : error LNK2001: unresolved external symbol __imp___difftime64
2>lua.lib(loslib.obj) : error LNK2001: unresolved external symbol __imp___mktime64
2>lua.lib(loslib.obj) : error LNK2001: unresolved external symbol __imp__tmpnam
2>MSVCRT.lib(_chandler4gs_.obj) : error LNK2001: unresolved external symbol __except_handler4_common
2>C:\DEV\minetest\bin\Release\minetest.exe : fatal error LNK1120: 17 unresolved externals
========== Build: 1 succeeded, 1 failed, 5 up-to-date, 0 skipped ==========


Can any one tell me what Im doing wrong?

The entire log:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
1>------ Build started: Project: GenerateVersion, Configuration: Release Win32 ------
2>------ Build started: Project: minetest, Configuration: Release Win32 ------
2>  clientlauncher.cpp
2>  tile.cpp
2>  clientopcodes.cpp
2>  clientpackethandler.cpp
2>  connection.cpp
2>  networkpacket.cpp
2>  serveropcodes.cpp
2>  serverpackethandler.cpp
2>  c_content.cpp
2>  c_converter.cpp
2>  c_internal.cpp
2>  c_types.cpp
2>  s_async.cpp
2>  s_base.cpp
2>  s_entity.cpp
2>  s_env.cpp
2>  s_inventory.cpp
2>  s_item.cpp
2>  s_mainmenu.cpp
2>  s_node.cpp
2>  Compiling...
2>  s_nodemeta.cpp
2>  s_player.cpp
2>  s_security.cpp
2>  s_server.cpp
2>  l_areastore.cpp
2>  l_base.cpp
2>  l_craft.cpp
2>  l_env.cpp
2>  l_inventory.cpp
2>  l_item.cpp
2>  l_mainmenu.cpp
2>  l_mapgen.cpp
2>  l_nodemeta.cpp
2>  l_nodetimer.cpp
2>  l_noise.cpp
2>  l_object.cpp
2>  l_particles.cpp
2>  l_rollback.cpp
2>  l_server.cpp
2>  l_settings.cpp
2>  Compiling...
2>  l_util.cpp
2>C:\DEV\minetest\src\script\lua_api\l_util.cpp(342): warning C4805: '==': unsafe mix of type 'short' and type 'bool' in operation
2>  l_vmanip.cpp
2>  scripting_game.cpp
2>  scripting_mainmenu.cpp
2>  mutex.cpp
2>  semaphore.cpp
2>  thread.cpp
2>  test.cpp
2>  test_areastore.cpp
2>  test_collision.cpp
2>  test_compression.cpp
2>  test_connection.cpp
2>  test_filepath.cpp
2>  test_inventory.cpp
2>  test_mapnode.cpp
2>  test_nodedef.cpp
2>  test_noderesolver.cpp
2>  test_noise.cpp
2>  test_objdef.cpp
2>  test_profiler.cpp
2>  Compiling...
2>  test_random.cpp
2>  test_schematic.cpp
2>  test_serialization.cpp
2>  test_settings.cpp
2>  test_socket.cpp
2>  test_threading.cpp
2>  test_utilities.cpp
2>  test_voxelalgorithms.cpp
2>  test_voxelmanipulator.cpp
2>  auth.cpp
2>  base64.cpp
2>  directiontables.cpp
2>  numeric.cpp
2>  pointedthing.cpp
2>  serialize.cpp
2>  sha1.cpp
2>  srp.cpp
2>  string.cpp
2>  timetaker.cpp
2>  areastore.cpp
2>  Compiling...
2>  ban.cpp
2>  camera.cpp
2>  cavegen.cpp
2>  chat.cpp
2>  client.cpp
2>  clientiface.cpp
2>  clientmap.cpp
2>  clientmedia.cpp
2>  clientobject.cpp
2>  clouds.cpp
2>  collision.cpp
2>  content_abm.cpp
2>  content_cao.cpp
2>  content_cso.cpp
2>  content_mapblock.cpp
2>  content_mapnode.cpp
2>  content_nodemeta.cpp
2>  content_sao.cpp
2>  convert_json.cpp
2>  craftdef.cpp
2>  Compiling...
2>  database-dummy.cpp
2>  database-leveldb.cpp
2>  database-redis.cpp
2>  database-sqlite3.cpp
2>C:\DEV\minetest\src\database-sqlite3.cpp(235): warning C4297: 'Database_SQLite3::~Database_SQLite3': function assumed not to throw an exception but does
2>  C:\DEV\minetest\src\database-sqlite3.cpp(235): note: destructor or deallocator has a (possibly implicit) non-throwing exception specification
2>C:\DEV\minetest\src\database-sqlite3.cpp(236): warning C4297: 'Database_SQLite3::~Database_SQLite3': function assumed not to throw an exception but does
2>  C:\DEV\minetest\src\database-sqlite3.cpp(236): note: destructor or deallocator has a (possibly implicit) non-throwing exception specification
2>C:\DEV\minetest\src\database-sqlite3.cpp(237): warning C4297: 'Database_SQLite3::~Database_SQLite3': function assumed not to throw an exception but does
2>  C:\DEV\minetest\src\database-sqlite3.cpp(237): note: destructor or deallocator has a (possibly implicit) non-throwing exception specification
2>C:\DEV\minetest\src\database-sqlite3.cpp(238): warning C4297: 'Database_SQLite3::~Database_SQLite3': function assumed not to throw an exception but does
2>  C:\DEV\minetest\src\database-sqlite3.cpp(238): note: destructor or deallocator has a (possibly implicit) non-throwing exception specification
2>C:\DEV\minetest\src\database-sqlite3.cpp(239): warning C4297: 'Database_SQLite3::~Database_SQLite3': function assumed not to throw an exception but does
2>  C:\DEV\minetest\src\database-sqlite3.cpp(239): note: destructor or deallocator has a (possibly implicit) non-throwing exception specification
2>C:\DEV\minetest\src\database-sqlite3.cpp(240): warning C4297: 'Database_SQLite3::~Database_SQLite3': function assumed not to throw an exception but does
2>  C:\DEV\minetest\src\database-sqlite3.cpp(240): note: destructor or deallocator has a (possibly implicit) non-throwing exception specification
2>  database.cpp
2>  debug.cpp
2>C:\Program Files (x86)\Windows Kits\8.1\Include\um\dbghelp.h(1544): warning C4091: 'typedef ': ignored on left of '' when no variable is declared
2>C:\Program Files (x86)\Windows Kits\8.1\Include\um\dbghelp.h(3190): warning C4091: 'typedef ': ignored on left of '' when no variable is declared
2>  defaultsettings.cpp
2>  drawscene.cpp
2>  dungeongen.cpp
2>  emerge.cpp
2>  environment.cpp
2>  filecache.cpp
2>  filesys.cpp
2>  fontengine.cpp
2>  game.cpp
2>  genericobject.cpp
2>  gettext.cpp
2>  guiChatConsole.cpp
2>  guiEngine.cpp
2>  guiFileSelectMenu.cpp
2>  Compiling...
2>  guiFormSpecMenu.cpp
2>  guiKeyChangeMenu.cpp
2>  guiPasswordChange.cpp
2>  guiTable.cpp
2>  guiVolumeChange.cpp
2>  guiscalingfilter.cpp
2>  httpfetch.cpp
2>  hud.cpp
2>  imagefilters.cpp
2>  intlGUIEditBox.cpp
2>  inventory.cpp
2>  inventorymanager.cpp
2>  itemdef.cpp
2>  keycode.cpp
2>  light.cpp
2>  localplayer.cpp
2>  log.cpp
2>  main.cpp
2>  map.cpp
2>  mapblock.cpp
2>  Compiling...
2>  mapblock_mesh.cpp
2>  mapgen.cpp
2>  mapgen_flat.cpp
2>  mapgen_fractal.cpp
2>  mapgen_singlenode.cpp
2>  mapgen_v5.cpp
2>  mapgen_v6.cpp
2>  mapgen_v7.cpp
2>  mapnode.cpp
2>  mapsector.cpp
2>  mesh.cpp
2>  mg_biome.cpp
2>  mg_decoration.cpp
2>  mg_ore.cpp
2>  mg_schematic.cpp
2>  minimap.cpp
2>  mods.cpp
2>  nameidmapping.cpp
2>  nodedef.cpp
2>  nodemetadata.cpp
2>  Compiling...
2>  nodetimer.cpp
2>  noise.cpp
2>  objdef.cpp
2>  object_properties.cpp
2>  particles.cpp
2>  pathfinder.cpp
2>  player.cpp
2>  porting.cpp
2>  profiler.cpp
2>  quicktune.cpp
2>  rollback.cpp
2>C:\DEV\minetest\src\rollback.cpp(112): warning C4297: 'RollbackManager::~RollbackManager': function assumed not to throw an exception but does
2>  C:\DEV\minetest\src\rollback.cpp(112): note: destructor or deallocator has a (possibly implicit) non-throwing exception specification
2>C:\DEV\minetest\src\rollback.cpp(113): warning C4297: 'RollbackManager::~RollbackManager': function assumed not to throw an exception but does
2>  C:\DEV\minetest\src\rollback.cpp(113): note: destructor or deallocator has a (possibly implicit) non-throwing exception specification
2>C:\DEV\minetest\src\rollback.cpp(114): warning C4297: 'RollbackManager::~RollbackManager': function assumed not to throw an exception but does
2>  C:\DEV\minetest\src\rollback.cpp(114): note: destructor or deallocator has a (possibly implicit) non-throwing exception specification
2>C:\DEV\minetest\src\rollback.cpp(115): warning C4297: 'RollbackManager::~RollbackManager': function assumed not to throw an exception but does
2>  C:\DEV\minetest\src\rollback.cpp(115): note: destructor or deallocator has a (possibly implicit) non-throwing exception specification
2>C:\DEV\minetest\src\rollback.cpp(116): warning C4297: 'RollbackManager::~RollbackManager': function assumed not to throw an exception but does
2>  C:\DEV\minetest\src\rollback.cpp(116): note: destructor or deallocator has a (possibly implicit) non-throwing exception specification
2>C:\DEV\minetest\src\rollback.cpp(117): warning C4297: 'RollbackManager::~RollbackManager': function assumed not to throw an exception but does
2>  C:\DEV\minetest\src\rollback.cpp(117): note: destructor or deallocator has a (possibly implicit) non-throwing exception specification
2>C:\DEV\minetest\src\rollback.cpp(118): warning C4297: 'RollbackManager::~RollbackManager': function assumed not to throw an exception but does
2>  C:\DEV\minetest\src\rollback.cpp(118): note: destructor or deallocator has a (possibly implicit) non-throwing exception specification
2>C:\DEV\minetest\src\rollback.cpp(119): warning C4297: 'RollbackManager::~RollbackManager': function assumed not to throw an exception but does
2>  C:\DEV\minetest\src\rollback.cpp(119): note: destructor or deallocator has a (possibly implicit) non-throwing exception specification
2>C:\DEV\minetest\src\rollback.cpp(120): warning C4297: 'RollbackManager::~RollbackManager': function assumed not to throw an exception but does
2>  C:\DEV\minetest\src\rollback.cpp(120): note: destructor or deallocator has a (possibly implicit) non-throwing exception specification
2>C:\DEV\minetest\src\rollback.cpp(122): warning C4297: 'RollbackManager::~RollbackManager': function assumed not to throw an exception but does
2>  C:\DEV\minetest\src\rollback.cpp(122): note: destructor or deallocator has a (possibly implicit) non-throwing exception specification
2>  rollback_interface.cpp
2>  serialization.cpp
2>  server.cpp
2>  serverlist.cpp
2>  serverobject.cpp
2>  settings.cpp
2>  shader.cpp
2>  sky.cpp
2>  socket.cpp
2>  Compiling...
2>  sound.cpp
2>  staticobject.cpp
2>  subgame.cpp
2>  terminal_chat_console.cpp
2>  tool.cpp
2>  treegen.cpp
2>  version.cpp
2>  voxel.cpp
2>  voxelalgorithms.cpp
2>  wieldmesh.cpp
2>  sha256.c
2>C:\DEV\minetest\misc\winresource.rc(4): warning RC4005: 'USE_CMAKE_CONFIG_H' : redefinition
2>
2>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification
2>     Creating library C:/DEV/minetest/bin/Release/minetest.lib and object C:/DEV/minetest/bin/Release/minetest.exp
2>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
2>lua.lib(lauxlib.obj) : error LNK2001: unresolved external symbol __imp__freopen
2>lua.lib(lauxlib.obj) : error LNK2001: unresolved external symbol __imp__strstr
2>lua.lib(lobject.obj) : error LNK2001: unresolved external symbol __imp__strncat
2>lua.lib(lobject.obj) : error LNK2001: unresolved external symbol __imp__strncpy
2>lua.lib(lstrlib.obj) : error LNK2001: unresolved external symbol __imp__strncpy
2>lua.lib(lvm.obj) : error LNK2001: unresolved external symbol __imp__strcoll
2>lua.lib(lbaselib.obj) : error LNK2001: unresolved external symbol __imp__fputs
2>lua.lib(ldblib.obj) : error LNK2001: unresolved external symbol __imp__fputs
2>lua.lib(liolib.obj) : error LNK2001: unresolved external symbol __imp__clearerr
2>lua.lib(liolib.obj) : error LNK2001: unresolved external symbol __imp__fgets
2>lua.lib(ldblib.obj) : error LNK2001: unresolved external symbol __imp__fgets
2>lua.lib(liolib.obj) : error LNK2001: unresolved external symbol __imp___pclose
2>lua.lib(liolib.obj) : error LNK2001: unresolved external symbol __imp___popen
2>lua.lib(liolib.obj) : error LNK2001: unresolved external symbol __imp__tmpfile
2>lua.lib(loslib.obj) : error LNK2001: unresolved external symbol __imp__system
2>lua.lib(loslib.obj) : error LNK2001: unresolved external symbol __imp__clock
2>lua.lib(loslib.obj) : error LNK2001: unresolved external symbol __imp___difftime64
2>lua.lib(loslib.obj) : error LNK2001: unresolved external symbol __imp___mktime64
2>lua.lib(loslib.obj) : error LNK2001: unresolved external symbol __imp__tmpnam
2>MSVCRT.lib(_chandler4gs_.obj) : error LNK2001: unresolved external symbol __except_handler4_common
2>C:\DEV\minetest\bin\Release\minetest.exe : fatal error LNK1120: 17 unresolved externals
========== Build: 1 succeeded, 1 failed, 5 up-to-date, 0 skipped ==========


If more info is needed please ask.
Last edited by minecraftlog21 on Sat Nov 21, 2015 16:32, edited 1 time in total.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: Windows Build help MSVC

by Krock » Sat Nov 21, 2015 08:11

I had this problem too, before I started using LuaJIT (which would be another workaround for this problem).
It was about one and a half years ago when BlockMen told me how to fix it.

Open this, by-CMake generated file: <build directory>\src\lua\build\lua.vcxproj
and replace all "MultiThreadedDLL" text parts to "MultiThreaded", then re-compile Minetest.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

minecraftlog21
New member
 
Posts: 4
Joined: Wed Nov 18, 2015 15:11
IRC: McLog21
In-game: Minecraftlog21

Re: Windows Build help MSVC

by minecraftlog21 » Sat Nov 21, 2015 16:31

Krock wrote:I had this problem too, before I started using LuaJIT (which would be another workaround for this problem).
It was about one and a half years ago when BlockMen told me how to fix it.

Open this, by-CMake generated file: <build directory>\src\lua\build\lua.vcxproj
and replace all "MultiThreadedDLL" text parts to "MultiThreaded", then re-compile Minetest.



That Fixed everything Thank you!
 


Return to Minetest Builds

Who is online

Users browsing this forum: No registered users and 23 guests

cron