Fork me on GitHub
  May 23, 2018, 08:53:32 am
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Error at end of build. (Visual Studio 2010 build pack)  (Read 6870 times)
RHY3756547
Newbie
*
Posts: 4


View Profile
« on: March 14, 2011, 07:04:00 pm »

Compilation appears to go fine, then I recieve an error in the end which claims mineserver.exe cannot be opened. All the paths appear to be fine; what am I missing?
Logged
Fador
Administrator
Full Member
*****
Posts: 126


View Profile
« Reply #1 on: March 14, 2011, 07:53:14 pm »

hmm, the bin dir might not exist in the current repo =/
Logged
RHY3756547
Newbie
*
Posts: 4


View Profile
« Reply #2 on: March 14, 2011, 08:33:35 pm »

That appears to be the problem, I quickly added the bin dir during compilation and everything worked fine.

EDIT: Or at least it fixed some of it, now there are several other errors with plugin.cpp that occur near the end and no exe in the zip produced.
« Last Edit: March 14, 2011, 08:36:00 pm by RHY3756547 » Logged
RHY3756547
Newbie
*
Posts: 4


View Profile
« Reply #3 on: March 14, 2011, 08:37:21 pm »

(screenshot of other problems)
Logged
xoft
Newbie
*
Posts: 42


View Profile
« Reply #4 on: March 14, 2011, 10:39:49 pm »

Could you try installing CMake (www.cmake.org), pointing it to the sources, letting it generate the VS project and compiling those? That will be the preferred compilation path in the future, it should already give better results than the BAT script in the VS2010 buildpack.
Logged
RHY3756547
Newbie
*
Posts: 4


View Profile
« Reply #5 on: March 14, 2011, 11:48:26 pm »

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!
Logged
xoft
Newbie
*
Posts: 42


View Profile
« Reply #6 on: March 15, 2011, 10:20:22 am »

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

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

Then use CMake again.

This seems to be required for windows builds.
Logged
ThuGie
Newbie
*
Posts: 10


View Profile
« Reply #7 on: March 18, 2011, 09:31:32 am »

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...

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.


Any more information would really help thanks Smiley.

[edit]
I tried the new rev of the do_build.bat with plugins it does compile the plugins.. err weird ?
« Last Edit: March 18, 2011, 09:49:51 am by ThuGie » Logged
xoft
Newbie
*
Posts: 42


View Profile
« Reply #8 on: March 18, 2011, 09:50:53 am »

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)

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 Smiley
Logged
ThuGie
Newbie
*
Posts: 10


View Profile
« Reply #9 on: March 18, 2011, 10:05:12 am »

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 Smiley.

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)

For the INCLUDE dir should it be the lib directory ? or simply the include dir ?
Logged
xoft
Newbie
*
Posts: 42


View Profile
« Reply #10 on: March 18, 2011, 10:16:05 am »

Sorry, I'm not on irc

For mineserver sources in c:\mineserver, set to the following:
Code:
NOISE_LIBRARY="c:\mineserver/lib/libnoise.lib"
NOISE_INCLUDE_DIR="include"
EVENT_LIBRARY="c:\mineserver/lib/libevent.lib"
EVENT_INCLUDE_DIR="include"
ZLIB_LIBRARY="c:\mineserver/lib/zlibwapi.lib"
ZLIB_INCLUDE="include"
Logged
ThuGie
Newbie
*
Posts: 10


View Profile
« Reply #11 on: March 18, 2011, 10:35:40 am »

Hey your amazing its almost working i get

========== Build: 10 succeeded, 1 failed, 0 up-to-date, 2 skipped ==========

Could it be because of this ?
Code:
src\blocks\leaves.cpp(22): error C2169: 'abs' : intrinsic function, cannot be defined
src\blocks\leaves.cpp(74): error C2264: 'abs' : error in function definition or declaration; function not called
src\blocks\leaves.cpp(74): error C2264: 'abs' : error in function definition or declaration; function not called
src\blocks\leaves.cpp(74): error C2264: 'abs' : error in function definition or declaration; function not called
Should i remove that function and try again ?

[edit]
After removing the function the server did compile correctly.
Although it still skipped 2 i guess its PACKAGE and INSTALL dont really need that right ?
« Last Edit: March 18, 2011, 10:37:33 am by ThuGie » Logged
xoft
Newbie
*
Posts: 42


View Profile
« Reply #12 on: March 18, 2011, 10:52:37 am »

This seems to be a somewhat new error, I haven't run into that before.
The code is weird around that place, the comments say it all Wink

As long as there are no build errors, you are all set. Still, before running the server, make sure the config.cfg and related files are in the same folder as the executable (copy them from /files if needed; the executable should be in /bin/Debug or /bin/Release)
PACKAGE and INSTALL are virtual targets used by CMake, you don't need to worry about those.
Logged
ThuGie
Newbie
*
Posts: 10


View Profile
« Reply #13 on: March 18, 2011, 11:21:07 am »

Yeah removed the function and i had to set the ../files path to the ./ in the executable.
For some reason this build places them in %appdata%\.mineserver

And i had all files next to the executable while it was looking in a files directory Smiley.
Currently adding a getTime function so i can get the time..
Incase i want to spawn different mobs at night :p.
Logged
waralot
Newbie
*
Posts: 3


View Profile
« Reply #14 on: May 22, 2012, 10:21:31 pm »

Well I have been trying to compile mineserver for about a month (Not the entire time).
But I tryed doing it whit cmake, I tryed to create the solution file's myself.
But no luck (I do get errors but for some reason I cant scroll up to read them).
So I really hope someone can give me the solution files, the source (Evety thing really).
And as prove that i have indeed been trying: http://www.hackforums.net/showthread.php?tid=2501402
Im at a loss.
Greets waralot aka Melolz.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!