Nevermind, problem solved. Seems that the missing "enviroment variables" "$(LIB)" and "$(INCLUDE)" caused the fatal errors. Im not sure what these should be as ive not set them, but removing them from the "lua50_lib" and "iris" properties fixed the problem. Ill put this to the wiki [url=http://www.iris2.de/index.php/Building_From_Source#building_under_WIN32_with_Visual_C.2B.2B_8.0_Express]Building From Source
As ive already talked about this in the IRC but here goes, perhaps someone can help me out. Im trying to compile Iris on my own, using VC++ 2005 Express. Ive done the first few step from
this page. Also ive installed the SP1 and "Microsoft Platform SDK for Windows Server 2003 R2". Ive manually added directories to "VC++ directories" in options and those seem to work as i dont get (many) errors, missing files or directories.
VC++ "Include" directories ive added myself:
Code:
C:\Program Files\OgreSDK\include
C:\Program Files\FMOD SoundSystem\FMOD Programmers API Win32\api\inc
D:\Projects\Iris2\iris2_latest_unstable_repoaccess\lugre\lib\cadune_tree\include
D:\Projects\Iris2\iris2_latest_unstable_repoaccess\lugre\lib\lua-5.0.3\include
C:\Program Files\OgreSDK\Dependencies\include
D:\Projects\Iris2\iris2_latest_unstable_repoaccess\lugre\include
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include
Library paths:
Code:
C:\Program Files\FMOD SoundSystem\FMOD Programmers API Win32\api\lib
C:\Program Files\OgreSDK\Dependencies\lib\Release
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib
The "dependencies" folder i just copied from the "dependencies package" i downloaded from Ogre website.
The two errors i get seems to be caused by paths in the "lua50_lib" and "iris" properties called "additional Include directories". Also the "enviroment variables" arent set and im not sure what they are suppose to be set to. "Iris2.exe" with this configuration will not get compiled, so it will be missing altogether.
Heres the saved
build log for iris and
lua50_lib.
Code:
------ Rebuild All started: Project: lua50_lib, Configuration: Release Win32 ------
Deleting intermediate and output files for project 'lua50_lib', configuration 'Release|Win32'
Compiling...
c1 : fatal error C1083: Cannot open source file: 'C:\Programme\Microsoft Platform SDK\Include\': No such file or directory
lapi.c
..\src\lapi.c(158) : warning C4244: 'return' : conversion from '__w64 int' to 'int', possible loss of data
..\src\lapi.c(834) : warning C4244: 'function' : conversion from '__w64 int' to 'int', possible loss of data
ltablib.c
lstrlib.c
..\src\lib\lstrlib.c(333) : warning C4244: '=' : conversion from '__w64 int' to 'sint32', possible loss of data
..\src\lib\lstrlib.c(530) : warning C4244: 'initializing' : conversion from '__w64 int' to 'int', possible loss of data
loadlib.c
lmathlib.c
liolib.c
..\src\lib\liolib.c(681) : warning C4244: 'function' : conversion from 'time_t' to 'lua_Number', possible loss of data
..\src\lib\liolib.c(698) : warning C4244: 'function' : conversion from 'time_t' to 'lua_Number', possible loss of data
ldblib.c
lbaselib.c
lauxlib.c
lzio.c
lvm.c
..\src\lvm.c(745) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data
lundump.c
..\src\lundump.c(43) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
..\src\lundump.c(52) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
..\src\lundump.c(56) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
..\src\lundump.c(67) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
..\src\lundump.c(73) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
..\src\lundump.c(106) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data
ltm.c
ltests.c
ltable.c
..\src\ltable.c(108) : warning C4311: 'type cast' : pointer truncation from 'void *const ' to 'lu_hash'
..\src\ltable.c(110) : warning C4311: 'type cast' : pointer truncation from 'GCObject *const ' to 'lu_hash'
lstring.c
lstate.c
lparser.c
lopcodes.c
Generating Code...
Compiling...
lobject.c
..\src\lobject.c(147) : warning C4244: 'function' : conversion from '__w64 int' to 'int', possible loss of data
..\src\lobject.c(173) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
..\src\lobject.c(182) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
lmem.c
llex.c
lgc.c
..\src\lgc.c(229) : warning C4244: 'initializing' : conversion from '__w64 int' to 'int', possible loss of data
..\src\lgc.c(233) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data
lfunc.c
ldump.c
ldo.c
..\src\ldo.c(97) : warning C4244: 'initializing' : conversion from '__w64 int' to 'int', possible loss of data
..\src\ldo.c(168) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data
..\src\ldo.c(187) : warning C4244: 'initializing' : conversion from '__w64 int' to 'int', possible loss of data
ldebug.c
..\src\ldebug.c(110) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data
..\src\ldebug.c(519) : warning C4244: 'function' : conversion from '__w64 int' to 'int', possible loss of data
lcode.c
Generating Code...
Project : warning PRJ0018 : The following environment variables were not found:
$(INCLUDE)
Build log was saved at "file://d:\Projects\Iris2\iris2_latest_unstable_repoaccess\lugre\lib\lua-5.0.3\obj\lua50_lib\Release\BuildLog.htm"
lua50_lib - 1 error(s), 25 warning(s)
------ Rebuild All started: Project: iris, Configuration: Release Win32 ------
Deleting intermediate and output files for project 'iris', configuration 'Release|Win32'
Compiling...
c1xx : fatal error C1083: Cannot open source file: 'C:\Program Files\OgreSDK\include\': No such file or directory
CTStem.cpp
CTSerializer.cpp
CTSection.cpp
CTParameters.cpp
lugre_widget_L.cpp
lugre_widget.cpp
lugre_viewport_L.cpp
lugre_transform_mesh.cpp
lugre_timer.cpp
lugre_thread_L.cpp
lugre_thread.cpp
lugre_sound_L.cpp
lugre_sound_fmod.cpp
lugre_sound.cpp
lugre_SortedOverlayContainer.cpp
lugre_shell.cpp
lugre_scripting.ogre.cpp
lugre_scripting.general.cpp
lugre_scripting.cpp
Compiling...
lugre_robstring.cpp
lugre_RobRenderableOverlay.cpp
lugre_robrenderable.cpp
lugre_rendertexture_L.cpp
lugre_random_L.cpp
lugre_random.cpp
lugre_profile.cpp
..\lugre\src\lugre_profile.cpp(63) : warning C4312: 'reinterpret_cast' : conversion from 'long' to 'void *' of greater size
..\lugre\src\lugre_profile.cpp(112) : warning C4311: 'reinterpret_cast' : pointer truncation from 'void *' to 'long'
..\lugre\src\lugre_profile.cpp(123) : warning C4311: 'reinterpret_cast' : pointer truncation from 'void *' to 'long'
lugre_ogrewrapper.cpp
lugre_ode_L.cpp
lugre_ode.cpp
lugre_net_L.cpp
..\lugre\src\lugre_net_L.cpp(104) : warning C4312: 'reinterpret_cast' : conversion from 'Lugre::uint32' to 'void *' of greater size
..\lugre\src\lugre_net_L.cpp(215) : warning C4312: 'reinterpret_cast' : conversion from 'Lugre::uint32' to 'void *' of greater size
..\lugre\src\lugre_net_L.cpp(257) : warning C4311: 'type cast' : pointer truncation from 'void *' to 'long'
lugre_net.cpp
lugre_meshshape.cpp
lugre_material_L.cpp
lugre_main.cpp
lugre_luaxml.cpp
lugre_listener.cpp
lugre_input.cpp
lugre_gfx3D_L.cpp
lugre_gfx3D.cpp
Compiling...
lugre_gfx2D_L.cpp
lugre_gfx2D.cpp
lugre_game.cpp
lugre_fifo_L.cpp
..\lugre\src\lugre_fifo_L.cpp(103) : warning C4311: 'type cast' : pointer truncation from 'Lugre::cFIFO *' to 'long'
lugre_CompassOverlay.cpp
lugre_ColourClipTextOverlay.cpp
lugre_ColourClipPaneOverlay.cpp
lugre_camera_L.cpp
lugre_cadune_L.cpp
lugre_BorderColourClipPaneOverlay.cpp
lugre_bitmask_L.cpp
lugre_bitmask.cpp
lugre_beam_L.cpp
lugre_beam.cpp
terrain_multitex.cpp
terrain.cpp
spritemanager_L.cpp
spritemanager.cpp
scripting.iris.cpp
radar_L.cpp
Compiling...
radar.cpp
prefix.cpp
pathsearch.cpp
ogremanualloader_L.cpp
ogremanualloader.cpp
main.cpp
huffman.cpp
grannyparser.cpp
grannyogreloader.cpp
grannyloader_i2.cpp
grannydump.cpp
granny_L.cpp
data_L.cpp
..\src\data_L.cpp(398) : warning C4313: 'printf' : '%x' in format string conflicts with argument 2 of type 'cStaticTileType *'
..\src\data_L.cpp(398) : warning C4313: 'printf' : '%x' in format string conflicts with argument 3 of type 'RawStaticTileType *'
data.cpp
builder_L.cpp
builder.cpp
Project : warning PRJ0018 : The following environment variables were not found:
$(LIB)
$(INCLUDE)
Build log was saved at "file://d:\Projects\Iris2\iris2_latest_unstable_repoaccess\vs8\Release\BuildLog.htm"
iris - 1 error(s), 9 warning(s)
========== Rebuild All: 0 succeeded, 2 failed, 0 skipped ==========