Mineserver > Support

Error at end of build. (Visual Studio 2010 build pack)

<< < (2/3) > >>

RHY3756547:
I get as far as "TARGETS" not being specified in the CMake file for the plugins.

CMake Error at plugins/CMakeLists.txt:94 (install):
  install Library TARGETS given no DESTINATION!

xoft:
Alright, try modifying the $/plugins/CMakeLists.txt file around the line 94 like this:


--- Code: ---#
# install
#
install(TARGETS ${TARGETS}
  DESTINATION ${CONFIG_DIR_LIB}/
)

--- End code ---

Then use CMake again.

This seems to be required for windows builds.

ThuGie:
Hi,

I'm completely new to CMake and the .bat file doesn't seem to work for me.
Trows alot of warnings at last it does generating code but nothing more..


--- Code: ---chat.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
cliScreen.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
config.cpp
constants.cpp
furnace.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
furnaceManager.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
inventory.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
inventory.cpp(119) : warning C4101: 'rightUse' : unreferenced local variable
inventory.cpp(1049) : warning C4244: 'argument' : conversion from 'int16_t' to 'int8_t', possible loss of data
lighting.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
logger.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
map.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
map.cpp(1078) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
map.cpp(1078) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
map.cpp(1078) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
map.cpp(1080) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
map.cpp(1082) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
map.cpp(1083) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
map.cpp(1083) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
map.cpp(1083) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
map.cpp(1586) : warning C4018: '<' : signed/unsigned mismatch
map.cpp(1607) : warning C4018: '<' : signed/unsigned mismatch
mcregion.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
mcregion.cpp(453) : warning C4018: '<' : signed/unsigned mismatch
mcregion.cpp(456) : warning C4018: '<' : signed/unsigned mismatch
mcregion.cpp(502) : warning C4018: '<' : signed/unsigned mismatch
mcregion.cpp(509) : warning C4018: '<' : signed/unsigned mismatch
mcregion.cpp(519) : warning C4018: '<' : signed/unsigned mismatch
mineserver.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
mob.cpp
mob.cpp(69) : warning C4018: '<' : signed/unsigned mismatch
mob.cpp(108) : warning C4018: '<' : signed/unsigned mismatch
mob.cpp(131) : warning C4018: '<' : signed/unsigned mismatch
mob.cpp(153) : warning C4018: '<' : signed/unsigned mismatch
mob.cpp(216) : warning C4018: '<' : signed/unsigned mismatch
nbt.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
nbt.cpp(786) : warning C4244: 'argument' : conversion from 'int64_t' to 'double', possible loss of data
packets.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
packets.cpp(808) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
packets.cpp(808) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
packets.cpp(808) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
packets.cpp(1238) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
packets.cpp(1325) : warning C4018: '<' : signed/unsigned mismatch
physics.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
physics.cpp(275) : warning C4018: '<' : signed/unsigned mismatch
plugin.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
plugin_api.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
plugin_api.cpp(976) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
plugin_api.cpp(986) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
plugin_api.cpp(996) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
plugin_api.cpp(1006) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
screenBase.cpp
sockets.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
Generating Code...
Compiling...
tools.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
tree.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
tree.cpp(117) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
tree.cpp(107) : warning C4101: 'meta' : unreferenced local variable
tree.cpp(106) : warning C4101: 'blocktype' : unreferenced local variable
user.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
basic.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
blocks\basic.cpp(169) : warning C4101: 'meta' : unreferenced local variable
blocks\basic.cpp(168) : warning C4101: 'block' : unreferenced local variable
blockfurnace.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\blocks\../tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
cake.cpp
chest.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\blocks\../tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
default.cpp
door.cpp
dyed.cpp
blocks\dyed.cpp(102) : warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
blocks\dyed.cpp(103) : warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
falling.cpp
fire.cpp
ladder.cpp
leaves.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
blocks\leaves.cpp(22) : error C2169: 'abs' : intrinsic function, cannot be defined
blocks\leaves.cpp(74) : error C2264: 'abs' : error in function definition or declaration; function not called
blocks\leaves.cpp(74) : error C2264: 'abs' : error in function definition or declaration; function not called
blocks\leaves.cpp(74) : error C2264: 'abs' : error in function definition or declaration; function not called
liquid.cpp
note.cpp
plant.cpp
blocks\plant.cpp(106) : warning C4018: '<' : signed/unsigned mismatch
blocks\plant.cpp(465) : warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
blocks\plant.cpp(466) : warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
redstone.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
blocks\redstone.cpp(69) : warning C4305: 'argument' : truncation from '' to 'const uint8_t'
blocks\redstone.cpp(69) : warning C4309: 'argument' : truncation of constant value
sign.cpp
snow.cpp
Generating Code...
Compiling...
stair.cpp
blocks\stair.cpp(87) : warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
blocks\stair.cpp(88) : warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
torch.cpp
tracks.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
workbench.cpp
biomegen.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
worldgen\biomegen.cpp(284) : warning C4244: 'initializing' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\biomegen.cpp(288) : warning C4244: 'initializing' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\biomegen.cpp(289) : warning C4244: 'initializing' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\biomegen.cpp(306) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
worldgen\biomegen.cpp(418) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
worldgen\biomegen.cpp(473) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
worldgen\biomegen.cpp(473) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
cavegen.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
eximgen.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
worldgen\eximgen.cpp(277) : warning C4244: 'initializing' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(281) : warning C4244: 'initializing' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(282) : warning C4244: 'initializing' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(349) : warning C4244: 'initializing' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(536) : warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(542) : warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(548) : warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(554) : warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(560) : warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(566) : warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(572) : warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(578) : warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(590) : warning C4244: '=' : conversion from 'double' to 'int32_t', possible loss of data
worldgen\eximgen.cpp(591) : warning C4244: '=' : conversion from 'double' to 'int32_t', possible loss of data
worldgen\eximgen.cpp(594) : warning C4244: '-=' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(606) : warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(624) : warning C4244: 'initializing' : conversion from 'double' to 'uint8_t', possible loss of data
heavengen.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
worldgen\heavengen.cpp(222) : warning C4101: 'currentHeight' : unreferenced local variable
worldgen\heavengen.cpp(223) : warning C4101: 'ymax' : unreferenced local variable
worldgen\heavengen.cpp(224) : warning C4101: 'ciel' : unreferenced local variable
mapgen.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
worldgen\mapgen.cpp(258) : warning C4244: 'initializing' : conversion from 'float' to 'uint8_t', possible loss of data
worldgen\mapgen.cpp(259) : warning C4244: 'initializing' : conversion from 'float' to 'uint8_t', possible loss of data
worldgen\mapgen.cpp(340) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
worldgen\mapgen.cpp(340) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
nethergen.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
lexer.cpp
node.cpp
parser.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\config\../tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
scanner.cpp
config\scanner.cpp(61) : warning C4244: 'initializing' : conversion from 'std::streamoff' to 'int', possible loss of data
Generating Code...

--- End code ---

I have installed CMake when i press generate it say's i dont have the dependency's installed.

I thought i could use it from the build pack.
But no clue where to place them.


--- Code: ---Check for working C compiler using: Visual Studio 10
Check for working C compiler using: Visual Studio 10 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 10
Check for working CXX compiler using: Visual Studio 10 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
CONFIG_LOCAL is set -- assuming local build
Dependency check: mineserver
Could NOT find ZLIB (missing:  ZLIB_INCLUDE_DIR ZLIB_LIBRARY)
Could NOT find EVENT (missing:  EVENT_LIBRARY EVENT_INCLUDE_DIR)
Could NOT find NOISE (missing:  NOISE_LIBRARY NOISE_INCLUDE_DIR)
CMake Error at CMakeLists.txt:179 (message):
  

   Not all dependencies could be found:

   - ZLIB

   - Event

   - Noise

  

  After installing them please rerun cmake.


--- End code ---

Any more information would really help thanks :).

[edit]
I tried the new rev of the do_build.bat with plugins it does compile the plugins.. err weird ?

xoft:
Hi,
with CMake You need a little bit more patience, since it is not yet finished for the MSVC builds and probably needs a bit more tweaking.

First of all, you do need the MSVC build pack. Extract its contents to the root folder of where you put mineserver sources (so that you have the /src, /plugins, /files from Git together with /include and /lib from the build pack)

Then you need to run CMake, point it to the source dir and hit Configure. It will work for a while and then list a few values in red and finish with the error messages complaining about dependencies.
In the red values, look for ZLIB_INCLUDE_DIR, ZLIB_LIBRARY, EVENT_INCLUDE_DIR, EVENT_LIBRARY, NOISE_INCLUDE_DIR and NOISE_LIBRARY. You need to rewrite those to point to the msvc build pack's include directories (*_INCULDE_DIR) and the specific *.lib files (*_LIBRARY)

Then hit Configure again, this time you shouldn't see more errors in the progress window, just one warning about missing curses (that's okay). Now you can click Generate and the project files and the solution file are generated for you.

Open those and compile with MSVC.

You might run into compiler error complaining about missing stdint.h.
If so, edit the main CMakeLists.txt and insert this line after IF (MSVC_IDE):

--- Code: ---include_directories(${PROJECT_SOURCE_DIR}/include)

--- End code ---

Generate again in CMake and recompile in MSVC. If there's any more problems, post them here and I'll try to help as best as I can :)

ThuGie:
Hey thanks for the fast reply,

And not sure if your on irc but it seems to be on invite only could you invite me me = ThuGie on irc :).


--- Quote from: xoft ---ZLIB_INCLUDE_DIR, ZLIB_LIBRARY, EVENT_INCLUDE_DIR, EVENT_LIBRARY, NOISE_INCLUDE_DIR and NOISE_LIBRARY. You need to rewrite those to point to the msvc build pack's include directories (*_INCULDE_DIR) and the specific *.lib files (*_LIBRARY)
--- End quote ---

For the INCLUDE dir should it be the lib directory ? or simply the include dir ?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version