Page 2 of 2
RE: Issues compiling with MSVC C++ 2008 Express
Posted: Fri Apr 09, 2010 4:45 am
by Nic
You may want to try adding win32-dirent.h and win32-dirent.cpp to the project, they are in the msvc directory.(The solution/project files need to be updated to include these)Although it should be picking up win32-dirent.h anyways (at the top of lmrmodel.cpp)....is _WIN32 definitely defined? Should be.And yes the warnings are expected....should probably remove the warnings at some stage, that lmrmodel.cpp needs to be split eventually. Has too much stuff in it right now :)Cheers,-Nic
RE: Issues compiling with MSVC C++ 2008 Express
Posted: Fri Apr 09, 2010 8:58 am
by Psirus
Hi Nicwin32-dirent.cpp doesnt seem to be in the source or the zip file you linked me too :s-Psirus
RE: Issues compiling with MSVC C++ 2008 Express
Posted: Fri Apr 09, 2010 10:27 am
by Nic
Apols, thought it had been submitted to SVN.http://nic.dnslias.com/dirent.zip
RE: Issues compiling with MSVC C++ 2008 Express
Posted: Fri Apr 09, 2010 11:25 am
by sscadmin
Link is dead Nic.
RE: Issues compiling with MSVC C++ 2008 Express
Posted: Sat Apr 10, 2010 4:31 am
by Psirus
he just missed the "a" from "alias" thats all:http://nic.dnsalias.com/dirent.zip

RE: Issues compiling with MSVC C++ 2008 Express
Posted: Mon Jun 07, 2010 12:06 pm
by Potsmoke66
[url]http://pioneerspacesim.net/wiki/index.php?title=Compiling_pioneer[/url]
RE: Issues compiling with MSVC C++ 2008 Express
Posted: Fri Jun 11, 2010 10:29 pm
by Potsmoke66
seems like i'm not the brightest light in compiling Cno, 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 pioneeri 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.
RE: Issues compiling with MSVC C++ 2008 Express
Posted: Fri Jun 11, 2010 10:49 pm
by sscadmin
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.
RE: Issues compiling with MSVC C++ 2008 Express
Posted: Tue Jun 15, 2010 3:05 pm
by munitio
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.
RE: Issues compiling with MSVC C++ 2008 Express
Posted: Tue Jun 15, 2010 9:16 pm
by Potsmoke66
not bad, only 3 errors

RE: Issues compiling with MSVC C++ 2008 Express
Posted: Thu Jun 17, 2010 12:51 pm
by sscadmin
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

RE: Issues compiling with MSVC C++ 2008 Express
Posted: Fri Oct 08, 2010 1:12 am
by s2odan
Did anyone have any luck with this?
RE: Issues compiling with MSVC C++ 2008 Express
Posted: Sat Oct 23, 2010 8:48 pm
by tiger
on msvc9 svn744 compiles and runs (with unrelated shader errors)libs used:freetype-2.4.3glew-1.5.6libogg-1.2.0libsigc++-2.2.8libvorbis-1.3.1SDL_image-1.2.10SDL-1.2.14dx10 sdk
RE: Issues compiling with MSVC C++ 2008 Express
Posted: Sat Oct 23, 2010 8:56 pm
by s2odan
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.hAnd I couldn't find them anywhere.
RE: Issues compiling with MSVC C++ 2008 Express
Posted: Sun Oct 24, 2010 3:12 am
by tiger
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 filesdependency as afxres.h is not part of the Microsoft PlatformSDK provided with Visual C++ Express 2008.Bug #503933.

RE: Issues compiling with MSVC C++ 2008 Express
Posted: Sun Oct 24, 2010 11:49 am
by s2odan
I was once blind but now I see!Cheers tiger.
RE: Issues compiling with MSVC C++ 2008 Express
Posted: Sun Oct 24, 2010 7:06 pm
by s2odan
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' specification1>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library1>LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library1>GeoSphere.obj : error LNK2001: unresolved external symbol __imp____glewUniform4f1>GeoSphere.obj : error LNK2001: unresolved external symbol __imp____glewGetUniformLocation1>LmrModel.obj : error LNK2001: unresolved external symbol __imp____glewGetUniformLocation1>Render.obj : error LNK2001: unresolved external symbol __imp____glewGetUniformLocation1>GeoSphere.obj : error LNK2001: unresolved external symbol __imp____glewUniform1f1>Render.obj : error LNK2001: unresolved external symbol __imp____glewUniform1f1>GeoSphere.obj : error LNK2001: unresolved external symbol __imp____glewUniform3f1>GeoSphere.obj : error LNK2001: unresolved external symbol __imp____glewBufferSubDataARB1>GeoSphere.obj : error LNK2001: unresolved external symbol __imp____glewBufferDataARB1>LmrModel.obj : error LNK2001: unresolved external symbol __imp____glewBufferDataARB1>WorldView.obj : error LNK2001: unresolved external symbol __imp____glewBufferDataARB1>GeoSphere.obj : error LNK2001: unresolved external symbol __imp____glewBindBufferARB1>Render.obj : error LNK2001: unresolved external symbol __imp____glewBindBufferARB1>WorldView.obj : error LNK2001: unresolved external symbol __imp____glewBindBufferARB1>GeoSphere.obj : error LNK2001: unresolved external symbol __imp____glewGenBuffersARB1>LmrModel.obj : error LNK2001: unresolved external symbol __imp____glewGenBuffersARB1>WorldView.obj : error LNK2001: unresolved external symbol __imp____glewGenBuffersARB1>GeoSphere.obj : error LNK2001: unresolved external symbol __imp____GLEW_ARB_vertex_buffer_object1>Pi.obj : error LNK2001: unresolved external symbol __imp____GLEW_ARB_vertex_buffer_object1>WorldView.obj : error LNK2001: unresolved external symbol __imp____GLEW_ARB_vertex_buffer_object1>GeoSphere.obj : error LNK2001: unresolved external symbol __imp____glewDeleteBuffersARB1>GeoSphere.obj : error LNK2001: unresolved external symbol __imp____glewDrawRangeElements1>LmrModel.obj : error LNK2001: unresolved external symbol __imp____glewUniform1i1>Render.obj : error LNK2001: unresolved external symbol __imp____glewUniform1i1>LmrModel.obj : error LNK2001: unresolved external symbol __imp____glewUnmapBufferARB1>LmrModel.obj : error LNK2001: unresolved external symbol __imp____glewMapBufferARB1>Pi.obj : error LNK2001: unresolved external symbol __imp____GLEW_ARB_point_sprite1>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_object1>Render.obj : error LNK2001: unresolved external symbol __imp____glewBindFramebuffer1>Render.obj : error LNK2001: unresolved external symbol __imp____glewGetProgramInfoLog1>Render.obj : error LNK2001: unresolved external symbol __imp____glewGetShaderInfoLog1>Render.obj : error LNK2001: unresolved external symbol __imp____glewIsShader1>Render.obj : error LNK2001: unresolved external symbol __imp____glewUseProgram1>Render.obj : error LNK2001: unresolved external symbol __imp____glewActiveTexture1>Render.obj : error LNK2001: unresolved external symbol __imp____glewGetProgramiv1>Render.obj : error LNK2001: unresolved external symbol __imp____glewLinkProgram1>Render.obj : error LNK2001: unresolved external symbol __imp____glewAttachShader1>Render.obj : error LNK2001: unresolved external symbol __imp____glewCreateProgram1>Render.obj : error LNK2001: unresolved external symbol __imp____glewGetShaderiv1>Render.obj : error LNK2001: unresolved external symbol __imp____glewCompileShader1>Render.obj : error LNK2001: unresolved external symbol __imp____glewShaderSource1>Render.obj : error LNK2001: unresolved external symbol __imp____glewCreateShader1>Render.obj : error LNK2001: unresolved external symbol __imp____GLEW_VERSION_2_01>..\pioneer-msvc-9.0_release.exe : fatal error LNK1120: 32 unresolved externals1>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
oops
RE: Issues compiling with MSVC C++ 2008 Express
Posted: Sun Oct 24, 2010 11:38 pm
by s2odan
Success at last1>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?
RE: Issues compiling with MSVC C++ 2008 Express
Posted: Mon Oct 25, 2010 8:14 am
by sscadmin
So you got it compile and Pioneer is playable as far as you can see? Great job s20dan!
RE: Issues compiling with MSVC C++ 2008 Express
Posted: Mon Oct 25, 2010 11:50 am
by s2odan
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.