Getting hl2 to compile Created 15 years ago2009-03-06 18:28:53 UTC by =NH= Yodalman =NH= Yodalman

Created 15 years ago2009-03-06 18:28:53 UTC by =NH= Yodalman =NH= Yodalman

Posted 15 years ago2009-03-06 18:30:06 UTC Post #263901
Well, I'm sure at least some of you have heard about my new mod "interest mod", i just randomly decided to use the source engine for it, however, i can't get the damned thing to compile, first i was using 2008, so i moved to visual c++ 2005 express edition, i open up the "Game_HL2-2005.sln" it should work, i run compile, and get this.
---- Build started: Project: client_hl2, Configuration: Debug HL2 Win32 ----
Compiling...
stdafx.cpp
Compiling...
episodic_screenspaceeffects.cpp
c_weapon_hopwire.cpp
c_prop_coreball.cpp
vguitextwindow.cpp
teammenu.cpp
SpectatorGUI.cpp
NavProgress.cpp
MapOverview.cpp
commandmenu.cpp
ClientScoreBoardDialog.cpp
smoke_fog_overlay.cpp
particlesphererenderer.cpp
fx_sparks.cpp
fx_line.cpp
fx_envelope.cpp
fx_discreetline.cpp
fx.cpp
c_tracer.cpp
c_testtraceline.cpp
c_te_worlddecal.cpp
Generating Code...
Compiling...
c_te_spritespray.cpp
c_te_sprite.cpp
c_te_sparks.cpp
c_te_smoke.cpp
c_te_showline.cpp
c_te_projecteddecal.cpp
c_te_playerdecal.cpp
c_te_physicsprop.cpp
c_te_particlesystem.cpp
c_te_muzzleflash.cpp
c_te_legacytempents.cpp
c_te_largefunnel.cpp
c_te_killplayerattachments.cpp
c_te_impact.cpp
c_te_glowsprite.cpp
c_te_glassshatter.cpp
c_te_footprint.cpp
c_te_fizz.cpp
c_te_explosion.cpp
c_te_energysplash.cpp
Generating Code...
Compiling...
c_te_effect_dispatch.cpp
c_te_dynamiclight.cpp
c_te_decal.cpp
c_te_bubbletrail.cpp
c_te_bubbles.cpp
c_te_bspdecal.cpp
c_te_breakmodel.cpp
c_te_bloodstream.cpp
c_te_bloodsprite.cpp
c_te_beamspline.cpp
c_te_beamringpoint.cpp
c_te_beamring.cpp
c_te_beampoints.cpp
c_te_beamlaser.cpp
c_te_beaments.cpp
c_te_beamentpoint.cpp
c_te_basebeam.cpp
c_te_armorricochet.cpp
c_te.cpp
c_stickybolt.cpp
Generating Code...
Compiling...
c_steamjet.cpp
c_smokestack.cpp
c_smoke_trail.cpp
c_recipientfilter.cpp
c_prop_vehicle.cpp
c_particle_smokegrenade.cpp
c_particle_fire.cpp
c_movie_explosion.cpp
c_impact_effects.cpp
c_effects.cpp
c_basetempentity.cpp
vgui_rootpanel_hl2.cpp
shieldproxy.cpp
hud_zoom.cpp
hud_weaponselection.cpp
hud_suitpower.cpp
hud_squadstatus.cpp
hud_quickinfo.cpp
hud_poisondamageindicator.cpp
hud_health.cpp
Generating Code...
Compiling...
hud_hdrdemo.cpp
hud_flashlight.cpp
hud_damageindicator.cpp
hud_credits.cpp
hud_blood.cpp
hud_battery.cpp
hud_autoaim.cpp
c:\interest mod\src\cl_dll\hl2_hud\hud_autoaim.cpp(202) : warning C4189: 'dist' : local variable is initialized but not referenced
hud_ammo.cpp
hl_prediction.cpp
hl_in_main.cpp
hl_gamemovement.cpp
hl2_usermessages.cpp
hl2_gamerules.cpp
hl2_clientmode.cpp
fx_hl2_tracers.cpp
fx_hl2_impacts.cpp
fx_bugbait.cpp
fx_antlion.cpp
env_headcrabcanister_shared.cpp
death.cpp
Generating Code...
Compiling...
clientmode_hlnormal.cpp
c_weapon_stunstick.cpp
c_weapon_physcannon.cpp
c_weapon_crossbow.cpp
c_weapon__stubs_hl2.cpp
c_waterbullet.cpp
c_vehicle_prisoner_pod.cpp
c_vehicle_crane.cpp
c_vehicle_cannon.cpp
c_vehicle_airboat.cpp
c_thumper_dust.cpp
c_te_flare.cpp
c_te_concussiveexplosion.cpp
c_strider.cpp
c_script_intro.cpp
c_rotorwash.cpp
c_prop_combine_ball.cpp
c_plasma_beam_node.cpp
c_npc_rollermine.cpp
c_npc_manhack.cpp
Generating Code...
Compiling...
c_npc_combinegunship.cpp
c_info_teleporter_countdown.cpp
c_hl2_playerlocaldata.cpp
c_func_tankmortar.cpp
c_extinguisher.cpp
c_env_starfield.cpp
c_env_headcrabcanister.cpp
c_env_alyxtemp.cpp
c_corpse.cpp
c_citadel_effects.cpp
c_basehlplayer.cpp
c_basehlcombatweapon.cpp
c_basehelicopter.cpp
c_barney.cpp
c_barnacle.cpp
c_ar2_explosion.cpp
c_antlion_dust.cpp
basehlcombatweapon_shared.cpp
WorldDimsProxy.cpp
weapons_resource.cpp
Generating Code...
Compiling...
weapon_selection.cpp
weapon_parse_default.cpp
weapon_parse.cpp
WaterLODMaterialProxy.cpp
warp_overlay.cpp
voice_status.cpp
voice_banmgr.cpp
ViewConeImage.cpp
view_scene.cpp
view_effects.cpp
view_beams.cpp
view.cpp
vgui_textmessagepanel.cpp
vgui_netgraphpanel.cpp
vgui_messagechars.cpp
vgui_loadingdiscpanel.cpp
vgui_int.cpp
vgui_grid.cpp
vgui_game_viewport.cpp
vgui_fpspanel.cpp
Generating Code...
Compiling...
vgui_debugoverlaypanel.cpp
vgui_consolepanel.cpp
vgui_centerstringpanel.cpp
vgui_bitmappanel.cpp
vgui_bitmapimage.cpp
vgui_bitmapbutton.cpp
vgui_basepanel.cpp
util_shared.cpp
usermessages.cpp
usercmd.cpp
train.cpp
toolframework_client.cpp
toggletextureproxy.cpp
timematerialproxy.cpp
texturescrollmaterialproxy.cpp
text_message.cpp
test_ehandle.cpp
takedamageinfo.cpp
survival_gamerules.cpp
studio_shared.cpp
Generating Code...
Compiling...
SpriteTrail.cpp
spritemodel.cpp
Sprite.cpp
splinepatch.cpp
SoundParametersInternal.cpp
soundenvelope.cpp
SoundEmitterSystem.cpp
singleplay_gamerules.cpp
simple_keys.cpp
sequence_Transitioner.cpp
ScreenSpaceEffects.cpp
sceneentity_shared.cpp
saverestore.cpp
rope_helpers.cpp
recvproxy.cpp
ragdoll_shared.cpp
ragdoll.cpp
proxypupil.cpp
proxyplayer.cpp
ProxyHealth.cpp
Generating Code...
Compiling...
proxyentity.cpp
props_shared.cpp
predictioncopy.cpp
prediction.cpp
predictableid.cpp
precache_register.cpp
playerandobjectenumerator.cpp
physpropclientside.cpp
physics_shared.cpp
physics_saverestore.cpp
physics_main_shared.cpp
physics_main_client.cpp
physics.cpp
perfvisualbenchmark.cpp
particles_simple.cpp
particles_localspace.cpp
particles_ez.cpp
particles_attractor.cpp
particlemgr.cpp
particle_simple3d.cpp
Generating Code...
Compiling...
particle_proxies.cpp
particle_litsmokeemitter.cpp
particle_collision.cpp
panelmetaclassmgr.cpp
obstacle_pushaway.cpp
multiplay_gamerules.cpp
mp3player.cpp
movevars_shared.cpp
movehelper_client.cpp
message.cpp
menu.cpp
matrixproxy.cpp
mathproxy.cpp
mapentities_shared.cpp
lamphaloproxy.cpp
lampbeamproxy.cpp
interpolatedvar.cpp
initializer.cpp
in_main.cpp
in_camera.cpp
Generating Code...
Compiling...
igamesystem.cpp
hud_weapon.cpp
hud_vehicle.cpp
hud_redraw.cpp
hud_pdump.cpp
hud_numericdisplay.cpp
hud_msg.cpp
hud_hintdisplay.cpp
hud_element_helper.cpp
hud_crosshair.cpp
hud_closecaption.cpp
hud_chat.cpp
hud_bitmapnumericdisplay.cpp
hud_basetimer.cpp
hud_basechat.cpp
hud_animationinfo.cpp
hud.cpp
hltvcamera.cpp
history_resource.cpp
glow_overlay.cpp
Generating Code...
Compiling...
geiger.cpp
gamevars_shared.cpp
gametrace_client.cpp
gamestringpool.cpp
gamerules_register.cpp
gamerules.cpp
gamemovement.cpp
fx_water.cpp
fx_trail.cpp
fx_tracer.cpp
fx_staticline.cpp
fx_shelleject.cpp
fx_quad.cpp
fx_interpvalue.cpp
fx_impact.cpp
fx_fleck.cpp
fx_explosion.cpp
fx_cube.cpp
fx_blood.cpp
functionproxy.cpp
Generating Code...
Compiling...
func_ladder.cpp
flashlighteffect.cpp
eventlist.cpp
env_wind_shared.cpp
env_detail_controller.cpp
EntityParticleTrail_Shared.cpp
entitylist_base.cpp
entity_client_tools.cpp
ehandle.cpp
EffectsClient.cpp
effect_dispatch_data.cpp
dummyproxy.cpp
detailobjectsystem.cpp
decals.cpp
death_pose.cpp
collisionproperty.cpp
clientsideeffects_test.cpp
clientsideeffects.cpp
clientshadowmgr.cpp
clientmode_shared.cpp
Generating Code...
Compiling...
clientleafsystem.cpp
cliententitylist.cpp
clienteffectprecachesystem.cpp
client_thinklist.cpp
client_factorylist.cpp
classmap.cpp
cl_mat_stub.cpp
cdll_util.cpp
cdll_client_int.cpp
camomaterialproxy.cpp
c_world.cpp
C_WaterLODControl.cpp
c_vguiscreen.cpp
c_vehicle_jeep.cpp
c_vehicle_choreo_generic.cpp
c_user_message_register.cpp
c_test_proxytoggle.cpp
c_tesla.cpp
c_team.cpp
c_te_beamfollow.cpp
Generating Code...
Compiling...
c_sun.cpp
c_sprite.cpp
c_spotlight_end.cpp
c_soundscape.cpp
c_shadowcontrol.cpp
c_sceneentity.cpp
c_rumble.cpp
c_rope.cpp
c_ragdoll_manager.cpp
c_props.cpp
c_point_commentary_node.cpp
c_point_camera.cpp
c_playerresource.cpp
c_plasma.cpp
c_pixel_visibility.cpp
c_physmagnet.cpp
c_physicsprop.cpp
c_physbox.cpp
C_MaterialModifyControl.cpp
c_lightglow.cpp
Generating Code...
Compiling...
c_hairball.cpp
c_gib.cpp
c_func_tracktrain.cpp
c_func_smokevolume.cpp
c_func_occluder.cpp
C_Func_Monitor.cpp
c_func_lod.cpp
c_func_dust.cpp
c_func_conveyor.cpp
c_func_breakablesurf.cpp
c_func_areaportalwindow.cpp
c_fish.cpp
c_fire_smoke.cpp
c_env_screenoverlay.cpp
c_env_particlescript.cpp
c_entityparticletrail.cpp
c_entitydissolve.cpp
c_dynamiclight.cpp
c_breakableprop.cpp
c_baseviewmodel.cpp
Generating Code...
Compiling...
c_baseplayer.cpp
c_baseflex.cpp
c_baseentity.cpp
c_basedoor.cpp
c_basecombatweapon.cpp
c_basecombatcharacter.cpp
c_baseanimatingoverlay.cpp
c_baseanimating.cpp
c_ai_basenpc.cpp
c_ai_basehumanoid.cpp
bonelist.cpp
bone_merge_cache.cpp
bone_accessor.cpp
beamdraw.cpp
beam_shared.cpp
baseviewport.cpp
baseviewmodel_shared.cpp
baseplayer_shared.cpp
baseparticleentity.cpp
basegrenade_shared.cpp
Generating Code...
Compiling...
baseentity_shared.cpp
basecombatweapon_shared.cpp
basecombatcharacter_shared.cpp
baseanimatedtextureproxy.cpp
base_playeranimstate.cpp
animation.cpp
animatedtextureproxy.cpp
animatedoffsettextureproxy.cpp
animatedentitytextureproxy.cpp
ammodef.cpp
alphamaterialproxy.cpp
activitylist.cpp
Generating Code...
Compiling...
vmatrix.cpp
vallocator.cpp
studio.cpp
stringregistry.cpp
simple_physics.cpp
sheetsimulator.cpp
sentence.cpp
ScratchPadUtils.cpp
scratchpad3d.cpp
rope_physics.cpp
rendertexture.cpp
randoverride.cpp
networkvar.cpp
memoverride.cpp
c:\interest mod\src\public\tier0\memoverride.cpp(16) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
interval.cpp
interpolatortypes.cpp
in_mouse.cpp
c:\interest mod\src\cl_dll\in_mouse.cpp(9) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
in_joystick.cpp
c:\interest mod\src\cl_dll\in_joystick.cpp(10) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
IceKey.cpp
filesystem_helpers.cpp
Generating Code...
Compiling...
dt_utlvector_recv.cpp
dt_utlvector_common.cpp
dt_recv.cpp
crtmemdebug.cpp
collisionutils.cpp
client_class.cpp
choreoscene.cpp
c:\interest mod\src\game_shared\choreoscene.cpp(11) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
choreoevent.cpp
choreochannel.cpp
choreoactor.cpp
bone_setup.cpp
Generating Code...
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 8.00.50727
Copyright (C) Microsoft Corporation. All rights reserved.
BSCMAKE: error BK1506 : cannot open file '.\debug hl2\choreoscene.sbr': No such file or directory
Build log was saved at "file://c:\interest mod\src\cl_dll\Debug HL2\BuildLog.htm"
client_hl2 - 5 error(s), 1 warning(s)
ARHG
Posted 15 years ago2009-03-06 19:24:23 UTC Post #263904
VC++ 2005 Express isn't a complete package, you need the platform SDK.
http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/2bfed529-fb6d-48a3-ad48-fc6301486646/
m0p m0pIllogical.
Posted 15 years ago2009-03-06 19:48:04 UTC Post #263905
Sorry, we were unable to service your request. Please try again later.

For the latest headlines and to see what?s new, visit the MSDN home page.

Check out the various MSDN Developer Centers where you can find the latest product information, technical resources and community offerings. Visit the MSDN Library for the latest technical articles, reference documentation, downloads and more.

Browse to MSDN Forums to get fast answers for technical questions or use the search option below to find out other relevant resources.
EDIT: [quote]---- Build started: Project: client_hl2, Configuration: Release HL2 Win32 ----
Linking...
LINK : fatal error LNK1181: cannot open input file 'winmm.lib'
Build log was saved at "file://c:\interest mod\src\cl_dll\Release HL2\BuildLog.htm"
client_hl2 - 1 error(s), 0 warning(s)
Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========[/quote]
Posted 15 years ago2009-03-06 19:53:37 UTC Post #263906
The MSDN link works for me. Try refreshing :P Your other error is also fixed by installing the platform SDK, Google is your friend.
m0p m0pIllogical.
Posted 15 years ago2009-03-06 20:04:21 UTC Post #263907
Now i am getting a linking error, ARRRGH

...Why does coding hate me so much?

EDIT:

[quote]Generating Code...
Linking...
tier2.lib(tier2.obj) : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
Creating library Release HL2/client.lib and object Release HL2/client.exp
LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
in_mouse.obj : error LNK2019: unresolved external symbol __imp__SystemParametersInfoA@16 referenced in function "public: virtual void __thiscall CInput::ActivateMouse(void)" (?ActivateMouse@CInput@@UAEXXZ)
Release HL2/client.dll : fatal error LNK1120: 1 unresolved externals
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 8.00.50727
Copyright (C) Microsoft Corporation. All rights reserved.
Build log was saved at "file://c:\interest mod\src\cl_dll\Release HL2\BuildLog.htm"
client_hl2 - 2 error(s), 4 warning(s)
Build: 0 succeeded, 1 failed, 0 up-to-date, 1 skipped ==========[/quote]
Posted 15 years ago2009-03-06 20:14:15 UTC Post #263908
http://developer.valvesoftware.com/wiki/Compiling_under_VS2005

Make sure you've done this:
Finally, in the Solution Explorer right click 'client_hl2', and select Properties, then:
In the client_hl2 properties window, navigate to Linker -> Input
Select the 'Additional Dependencies' box. Then click the '...' on the right hand side of the box
If there is already an entry here, take a new line after it (a space will suffice if you cannot create a new line), and type 'user32.lib', and without the quotes. Vista users may have to input "user32.lib" and "kernel32.lib" within the double quotes.
Repeat these steps for 'server_hl2'
m0p m0pIllogical.
Posted 15 years ago2009-08-19 14:08:18 UTC Post #263909
W00t, plenty thanks man

[quote]---- Skipped Build: Project: server_hl2, Configuration: Release HL2 Win32 ----
Project not selected to build for this solution configuration
---- Build started: Project: client_hl2, Configuration: Release HL2 Win32 ----
Linking...
tier2.lib(tier2.obj) : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
Creating library Release HL2/client.lib and object Release HL2/client.exp
LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
tier2.lib(MaterialSystemUtil.obj) : warning LNK4204: 'c:\interest mod\src\cl_dll\Release HL2\vc80.pdb' is missing debugging information for referencing module; linking object as if no debug info
tier2.lib(tier2.obj) : warning LNK4204: 'c:\interest mod\src\cl_dll\Release HL2\vc80.pdb' is missing debugging information for referencing module; linking object as if no debug info
Embedding manifest...
Copying to destination folder
1 file(s) copied.
1 file(s) copied.
Build log was saved at "file://c:\interest mod\src\cl_dll\Release HL2\BuildLog.htm"
client_hl2 - 0 error(s), 4 warning(s)
Build: 1 succeeded, 0 failed, 0 up-to-date, 1 skipped ==========[/quote]
You must be logged in to post a response.