Notifications
Clear all

To all SSC Station occupants

Thank you for the donations over the past year (2024), it is much appreciated. I am still trying to figure out how to migrate the forums to another community software (probably phpbb) but in the meantime I have updated the forum software to the latest version. SSC has been around a while so their is some very long time members here still using the site, thanks for making SSC home and sorry I haven't been as vocal as I should be in the forums I will try to improve my posting frequency.

Thank you again to all of the members that do take the time to donate a little, it helps keep this station functioning on the outer reaches of space.

-D1-

Issues compiling with MSVC C++ 2008 Express

Page 2 / 2
(@potsmoke66)
Noble Member
(@potsmoke66)
Noble Member

seems like i'm not the brightest light in compiling C

no, i haven't done something like that ever before and of course it costs me nerves and time.

compared to modelling it's a very dry substance.

so if anyone would help me out i would appreciate it much.

there have been some important updates to the source, which i would need to get in a compiled version of pioneer

i can't give you much in exchange for it, except loads of new models.

some of the reasons why you can see only a "nil" behind division instead of the city's name.

i like the dynamic models of pioneer and i would like to concentrate on that, apart from that i have a complete mess on my machine (and my brain to) my download folder is a junkyard and my desk's look like berlin after bombing. so i would have to do some maintainance before do anything else (except modelling of course 😉 ). further creating a useful bezier sphere (one simply scaleable, one controlable in 4 dirs, why 4 ? x and y vector scaleable in both dirs from center, so when you need a egg you'll have one quick) as function(s) to use for us(me) keeps me also all night up and thats far from easy for a construction worker (air conditioning, but unemployed by choice now).

for the interested modeller, updates allows now certain enhancements to scripted models, like texture use (wow!),

implementation of more variables dependant stuff to your model and so on i can't cover all here, because i have to check that out myself first, but therefore i would appreciate some help in updating pioneer to the latest standing.

somebody who has experience in compiling C++, could help me maybe anyway just to get a start (D1?).

oh before i forgot, a win32 executeble of course, else i would have to install linux (perhaps a good idea anyway, since you can run xp as a emu in it, bah!). but like i said this would only expand my mess i allready have.

ReplyQuote
Posted : June 11, 2010 18:29
DarkOne
(@sscadmin)
Illustrious Member Admin

I haven't been able to successfully compile Pioneer on Windows yet using MSVC. I think I am missing something and just need a bit more help on exactly how to setup MSVC.

ReplyQuote
Topic starter Posted : June 11, 2010 18:49
(@munitio)
Active Member

I tried ... and failed! What a surprise... 😉

My errors:

\src\Sound.cpp(13) : fatal error C1083: "vorbis/vorbisfile.h": No such file or directory <-- i think Vorbis audio compression related? Time to check : http://xiph.org/vorbis/

..\src\MyLuaMathTypes.cpp(6) : error C2084: Funktion 'void *mylua_checkudata(lua_State *,int,const char *)' <-think its the not finished lua implementation...

and the worst error:

..\src\GameMenuView.cpp(15) : fatal error C1083: "atlbase.h": <---this is not included in the Vc 2088 Express Edition, and i have no idea how to solve this problem.

ReplyQuote
Posted : June 15, 2010 11:05
(@potsmoke66)
Noble Member

not bad, only 3 errors 😉

ReplyQuote
Posted : June 15, 2010 17:16
DarkOne
(@sscadmin)
Illustrious Member Admin

munitio if you do get your compile to be 100% successful due send me the instructions and I will run through it all and post some screenshots or if you have the time to take a few screenshots and step-by-step the process for everyone I'm sure a lot of people will be grateful 🙂

ReplyQuote
Topic starter Posted : June 17, 2010 08:51
(@s2odan)
Noble Member

Did anyone have any luck with this?

ReplyQuote
Posted : October 7, 2010 21:12
(@tiger)
New Member

on msvc9 svn744 compiles and runs (with unrelated shader errors)

libs used:

freetype-2.4.3

glew-1.5.6

libogg-1.2.0

libsigc++-2.2.8

libvorbis-1.3.1

SDL_image-1.2.10

SDL-1.2.14

dx10 sdk

ReplyQuote
Posted : October 23, 2010 16:48
(@s2odan)
Noble Member

Nice one. I ran into troubles with compiling libsigc++ when I last tried this.

More specifically, it was trying to find these 2 files: resource.h and afxres.h

And I couldn't find them anywhere.

ReplyQuote
Posted : October 23, 2010 16:56
(@tiger)
New Member

from sigc++ changelog on version 2.2.3:

Quote:
2008-04-06 Cedric Gustin

* MSVC_Net2003/sigc-2.0.rc.in: Removed ATL/MFC header files

dependency as afxres.h is not part of the Microsoft Platform

SDK provided with Visual C++ Express 2008.

Bug #503933.

😉

ReplyQuote
Posted : October 23, 2010 23:12
(@s2odan)
Noble Member

I was once blind but now I see!

Cheers tiger.

ReplyQuote
Posted : October 24, 2010 07:49
(@s2odan)
Noble Member

Its still not compiling for me, I get these errors in the log:

1>


......

1>Linking...

1>libvorbisfile.lib(vorbisfile.obj) : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/OPT:ICF' specification

1>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library

1>LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library

1>GeoSphere.obj : error LNK2001: unresolved external symbol __imp____glewUniform4f

1>GeoSphere.obj : error LNK2001: unresolved external symbol __imp____glewGetUniformLocation

1>LmrModel.obj : error LNK2001: unresolved external symbol __imp____glewGetUniformLocation

1>Render.obj : error LNK2001: unresolved external symbol __imp____glewGetUniformLocation

1>GeoSphere.obj : error LNK2001: unresolved external symbol __imp____glewUniform1f

1>Render.obj : error LNK2001: unresolved external symbol __imp____glewUniform1f

1>GeoSphere.obj : error LNK2001: unresolved external symbol __imp____glewUniform3f

1>GeoSphere.obj : error LNK2001: unresolved external symbol __imp____glewBufferSubDataARB

1>GeoSphere.obj : error LNK2001: unresolved external symbol __imp____glewBufferDataARB

1>LmrModel.obj : error LNK2001: unresolved external symbol __imp____glewBufferDataARB

1>WorldView.obj : error LNK2001: unresolved external symbol __imp____glewBufferDataARB

1>GeoSphere.obj : error LNK2001: unresolved external symbol __imp____glewBindBufferARB

1>Render.obj : error LNK2001: unresolved external symbol __imp____glewBindBufferARB

1>WorldView.obj : error LNK2001: unresolved external symbol __imp____glewBindBufferARB

1>GeoSphere.obj : error LNK2001: unresolved external symbol __imp____glewGenBuffersARB

1>LmrModel.obj : error LNK2001: unresolved external symbol __imp____glewGenBuffersARB

1>WorldView.obj : error LNK2001: unresolved external symbol __imp____glewGenBuffersARB

1>GeoSphere.obj : error LNK2001: unresolved external symbol __imp____GLEW_ARB_vertex_buffer_object

1>Pi.obj : error LNK2001: unresolved external symbol __imp____GLEW_ARB_vertex_buffer_object

1>WorldView.obj : error LNK2001: unresolved external symbol __imp____GLEW_ARB_vertex_buffer_object

1>GeoSphere.obj : error LNK2001: unresolved external symbol __imp____glewDeleteBuffersARB

1>GeoSphere.obj : error LNK2001: unresolved external symbol __imp____glewDrawRangeElements

1>LmrModel.obj : error LNK2001: unresolved external symbol __imp____glewUniform1i

1>Render.obj : error LNK2001: unresolved external symbol __imp____glewUniform1i

1>LmrModel.obj : error LNK2001: unresolved external symbol __imp____glewUnmapBufferARB

1>LmrModel.obj : error LNK2001: unresolved external symbol __imp____glewMapBufferARB

1>Pi.obj : error LNK2001: unresolved external symbol __imp____GLEW_ARB_point_sprite

1>Pi.obj : error LNK2019: unresolved external symbol __imp__glewInit referenced in function "public: static void __cdecl Pi::Init(void)" (?Init@Pi@@SAXXZ)

1>Render.obj : error LNK2001: unresolved external symbol __imp____GLEW_ARB_framebuffer_object

1>Render.obj : error LNK2001: unresolved external symbol __imp____glewBindFramebuffer

1>Render.obj : error LNK2001: unresolved external symbol __imp____glewGetProgramInfoLog

1>Render.obj : error LNK2001: unresolved external symbol __imp____glewGetShaderInfoLog

1>Render.obj : error LNK2001: unresolved external symbol __imp____glewIsShader

1>Render.obj : error LNK2001: unresolved external symbol __imp____glewUseProgram

1>Render.obj : error LNK2001: unresolved external symbol __imp____glewActiveTexture

1>Render.obj : error LNK2001: unresolved external symbol __imp____glewGetProgramiv

1>Render.obj : error LNK2001: unresolved external symbol __imp____glewLinkProgram

1>Render.obj : error LNK2001: unresolved external symbol __imp____glewAttachShader

1>Render.obj : error LNK2001: unresolved external symbol __imp____glewCreateProgram

1>Render.obj : error LNK2001: unresolved external symbol __imp____glewGetShaderiv

1>Render.obj : error LNK2001: unresolved external symbol __imp____glewCompileShader

1>Render.obj : error LNK2001: unresolved external symbol __imp____glewShaderSource

1>Render.obj : error LNK2001: unresolved external symbol __imp____glewCreateShader

1>Render.obj : error LNK2001: unresolved external symbol __imp____GLEW_VERSION_2_0

1>..\pioneer-msvc-9.0_release.exe : fatal error LNK1120: 32 unresolved externals

1>Build log was saved at "file://f:\Games\Pioneer Compiling\Pioneer 2nd attempt\trunk\msvc\Release\BuildLog.htm"

1>pioneer-msvc-9.0 - 45 error(s), 478 warning(s)

========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

Thats using the same files from tiger's post.

Also thats using the static libvorbis. If I use the other I get past that but still have the strange

Code:
LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library

1690093D.gif

smashed-computer.jpg

oops

ReplyQuote
Posted : October 24, 2010 15:06
(@s2odan)
Noble Member

Success at last

1>pioneer-msvc-9.0 - 0 error(s), 476 warning(s)

========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

Is it normal to have so many warnings?

ReplyQuote
Posted : October 24, 2010 19:38
DarkOne
(@sscadmin)
Illustrious Member Admin

So you got it compile and Pioneer is playable as far as you can see? Great job s20dan!

ReplyQuote
Topic starter Posted : October 25, 2010 04:14
(@s2odan)
Noble Member

Yeah, as far as I can see. My problem, if this means anything to you, seemed to be that I had the wrong release versions(Not the numbered versions, they were correct). That means that You have to choose either Debug or Release for every project and make sure they match up(Inside MSVC9). I don't think I ever had to do that before on a project which is why it threw me.

That PM that you received then forwarded to me seemed to be total bollox 🙂 So don't rely on the tips in that message. For example the message tells you to only use static versions, but I had to use dynamic/shared versions for it to work, It also gives other bad advice.

I'll update my guide shortly, but you should be able to compile by following the guide as it is now. And making a slight change to the release/debug settings of the projects.

ReplyQuote
Posted : October 25, 2010 07:50
Page 2 / 2