Results 1 to 8 of 8
  1. #1

    Default Compiling SM3.9 or SM3.9+ from source is not working

    I wonder how anyone ever are sucessful with this.
    While writing I repeat all the steps on my 2nd PC so this would take a while and I will splitt the Post into logical parts.

    My System:
    Windows XP SP2 or SP3
    VS2003 Enterprise Architect

    What I have done:
    * Download and install: DX9 SDK as told on the "Build the StepMania Source in Windows" Side
    * Download StepMania-3.9-src.tar.gz at http://sourceforge.net/project/showf...group_id=37892
    * Extract StepMania-3.9-src.tar.gz and open StepMania-net2003.sln with VS2003
    * Add Paths to DX9 SDK in the options (include and lib)
    * Build->Rebuild Solution
    * Ok Error. Nobody told me that there has to be some Files compiled before. Ok I found out Somehow and opend VS Studio Command promt go to the Directory "src/disasm" and did nmake Disasm.exe, nmake Mapconv.exe and nmake Verinc.exe.
    * Back in VS Build->Rebuild Solution again...
    * Well Errors again. Sometimes I could kill all coders that are not able to release clean sources and since there is an explizit VS2003 Solution file it should be clean....
    * Next part: Solve the Compile errors for some librarys (SDL, LUA,...)

  2. #2

    Default

    Part 2: Solve the Compile errors for some librarys - LUA

    Well what a nice looking Task List
    Code:
    fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory
    fatal error C1083: Cannot open include file: 'baseclasses/streams.h': No such file or directory
    fatal error C1083: Cannot open include file: 'baseclasses/streams.h': No such file or directory
    fatal error C1083: Cannot open include file: 'baseclasses/streams.h': No such file or directory
    fatal error C1083: Cannot open include file: 'lua.h': No such file or directory
    fatal error C1083: Cannot open include file: 'lua.h': No such file or directory
    fatal error C1083: Cannot open include file: 'lua.h': No such file or directory
    fatal error C1083: Cannot open include file: 'lua.h': No such file or directory
    fatal error C1083: Cannot open include file: 'lua.h': No such file or directory
    fatal error C1083: Cannot open include file: 'lua.h': No such file or directory
    fatal error C1083: Cannot open include file: 'lua.h': No such file or directory
    fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory
    fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory
    fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory
    fatal error C1083: Cannot open include file: 'SDL_video.h': No such file or directory
    fatal error C1083: Cannot open include file: 'vorbis/vorbisfile.h': No such file or directory
    warning C4244: '=' : conversion from 'const int' to 'float', possible loss of data
    warning C4505: 'CryptoPP::AbstractEuclideanDomain<T>::Mod' : unreferenced local function has been removed
            with
            [
                T=CryptoPP::Integer
            ]
    Ok looks like SDL, LUA, vorbis, and somethin called "baseclasses" is missing.
    * For LUA I used (since the directory the solutions points is lua5.0) Version 5.0.3 (lua5_0_3_Win32_vc7_lib.zip from http://luaforge.net/frs/?group_id=110).
    * I Changed the Additional Include Directoriey in the StepMania Proterty Page and after a little search in the code I found
    Code:
    #if defined(_WINDOWS)
    	#pragma comment(lib, "lua-5.0/lib/LibLua.lib")
    	#pragma comment(lib, "lua-5.0/lib/LibLuaLib.lib")
    #endif
    There is only one lib file so I changed that to
    Code:
    #if defined(_WINDOWS)
    	#pragma comment(lib, "lua5.0.3/lua50.lib")
    #endif
    * Lets try a rebuild solution first before continue.
    * Note: lua 5.1.3 is not working since lua_open is not present there. I do not want to investigate so I simply used 5.0.3
    * Now SM3.9+ comes in handy. The zip file contains an lua-5.0 directory. So I take back all changes (Propertys and code) and copy the lua-5.0 in the sm3.9 soucre directory.

    * Either Way: The compile error "fatal error C1083: Cannot open include file: 'lua.h': No such file or directory" is gone.

  3. #3

    Default

    Part 2: Solve the Compile errors for some librarys - vorbis

    Solution 1:
    * simply copy the vorbis and ogg directory of the SM3.9+ zip file to your sm3.9 directory

    Solution 2:
    *Download http://xiph.org/downloads/ libogg and libvorbis and compile them for yourself.
    *It's a bit tricky since you have to set the paths to the lib-files correctly or the projects will not compile
    * copy the include folders of libogg and libvorbis to your sm3.9 directory
    *Do not forget to change the #pragma comment to match the new names of the libs. In my case
    Code:
    #elif defined(_WINDOWS)
    #pragma comment(lib, "vorbis/win32/libogg.lib")
    #pragma comment(lib, "vorbis/win32/libvorbis.lib")
    #pragma comment(lib, "vorbis/win32/libvorbisfile.lib")
    #endif
    Last edited by swtrse; 08-13-2008 at 12:40 PM.

  4. #4

    Default

    Part 2: Solve the Compile errors for some librarys - SDL

    This one is a litte strange. I checkt varouse Versions from the SDL Homepage (http://www.libsdl.org/)
    No Version contains SDL_REFRESH_DEFAULT with is used in LowLevelWindow_SDL. So the only option here is copy the SDL-1.2.6 directory from the sm3.9+ zip file to your sm3.9 folder (Even SDL-1.2.6 from the SDL Homepage does not contain SDL_REFRESH_DEFAULT).

    Part 2: Solve the Compile errors for some librarys - baseclasses

    Well I did not have a clue about that library, so I also copied the baseclasses directory from the sm3.9+ zip file.

    Part 2: Solve the Compile errors for some librarys - ffmpeg

    Just copy that one from sm3.9+ too. The real problem is not the sources but the linker paths. But that comes soon enougth

    Part 2: Solve the Compile errors for some librarys - archutils
    Haha funny. Libfile is missing Just copy that one from sm3.9+

    Part 2: Solve the Compile errors for some librarys - zlib
    Haha funny. Libfile is missing Just copy that one from sm3.9+

    Part 2: Solve the Compile errors for some librarys - mad-0.15.1b
    Not funny anymore. Libfile is missing Just copy that one from sm3.9+

    Part 2: Solve the Compile errors for some librarys - libresample
    Not funny anymore. Libfile is missing Just copy that one from sm3.9+

    and so on and so on...

    Part 2: Final
    *Ok now we are getting an litte error that ERROR_REPORT_URL is not defined just comment that one out (who needs error reporting anyway ;))

    The real Problem is this
    Code:
    StepMania error LNK2005: _acos already defined in MSVCRT.lib(MSVCR71.dll)
    libc.lib(87): error LNK2005: _fmod already defined in MSVCRT.lib(MSVCR71.dll)
    StepMania error LNK2005: _pow already defined in MSVCRT.lib(MSVCR71.dll)
    StepMania error LNK2005: _exit already defined in MSVCRT.lib(MSVCR71.dll)
    StepMania error LNK2005: __exit already defined in MSVCRT.lib(MSVCR71.dll)
    StepMania error LNK2005: __cexit already defined in MSVCRT.lib(MSVCR71.dll)
    StepMania error LNK2005: __c_exit already defined in MSVCRT.lib(MSVCR71.dll)
    StepMania error LNK2005: __ldused already defined in a previous module
    StepMania error LNK2005: __fltused already defined in a previous module
    StepMania error LNK2005: _fflush already defined in MSVCRT.lib(MSVCR71.dll)
    StepMania error LNK2005: ___xc_z already defined in MSVCRT.lib(cinitexe.obj)
    StepMania error LNK2005: ___xc_a already defined in MSVCRT.lib(cinitexe.obj)
    StepMania error LNK2005: ___xi_z already defined in MSVCRT.lib(cinitexe.obj)
    StepMania error LNK2005: ___xi_a already defined in MSVCRT.lib(cinitexe.obj)
    StepMania error LNK2005: _atoi already defined in MSVCRT.lib(MSVCR71.dll)
    StepMania error LNK2005: __amsg_exit already defined in MSVCRT.lib(MSVCR71.dll)
    StepMania error LNK2005: __stricmp already defined in libc.lib(stricmp.obj)
    StepMania error LNK2005: __lseek already defined in libc.lib(lseek.obj)
    StepMania error LNK2005: __read already defined in libc.lib(read.obj)
    StepMania error LNK2005: __write already defined in libc.lib(write.obj)
    StepMania error LNK2005: __strnicmp already defined in libc.lib(strnicmp.obj)
    StepMania error LNK2005: __isctype already defined in libc.lib(isctype.obj)
    StepMania error LNK2005: _calloc already defined in libc.lib(calloc.obj)
    StepMania warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
    StepMania warning LNK4098: defaultlib 'libc.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
    StepMania fatal error LNK1169: one or more multiply defined symbols found
    Well at this point I give up and tryed STEP 3 ;)
    Last edited by swtrse; 08-13-2008 at 01:35 PM.

  5. #5

    Default

    STEP 3: Last hope.
    1) extract the sm3.9 Source
    2) copy the sm3.9+ source in the same directory and override any file and directory with the sm3.9+ Version
    3) nmake like in STEP 1
    4) open the StepMania-net2003.sln and rebuild the solution
    5) on no errors again
    Code:
    StepMania error LNK2001: unresolved external symbol "class BackgroundCache * BACKGROUNDCACHE" (?BACKGROUNDCACHE@@3PAVBackgroundCache@@A)
    StepMania error LNK2001: unresolved external symbol "class BackgroundCache * BACKGROUNDCACHE" (?BACKGROUNDCACHE@@3PAVBackgroundCache@@A)
    StepMania error LNK2001: unresolved external symbol "public: __thiscall FadingBackground::FadingBackground(void)" (??0FadingBackground@@QAE@XZ)
    StepMania error LNK2001: unresolved external symbol "public: virtual bool __thiscall BackgroundSSM::Load(struct RageTextureID)" (?Load@BackgroundSSM@@UAE_NURageTextureID@@@Z)
    StepMania error LNK2001: unresolved external symbol "public: virtual bool __thiscall BackgroundSSM::Load(struct RageTextureID)" (?Load@BackgroundSSM@@UAE_NURageTextureID@@@Z)
    StepMania error LNK2001: unresolved external symbol "public: virtual void __thiscall BackgroundSSM::Update(float)" (?Update@BackgroundSSM@@UAEXM@Z)
    StepMania error LNK2001: unresolved external symbol "public: virtual void __thiscall BackgroundSSM::Update(float)" (?Update@BackgroundSSM@@UAEXM@Z)
    StepMania error LNK2001: unresolved external symbol "public: void __thiscall BackgroundCache::CacheBackground(class CStdStr<char>)" (?CacheBackground@BackgroundCache@@QAEXV?$CStdStr@D@@@Z)
    StepMania error LNK2001: unresolved external symbol "public: void __thiscall BackgroundCache::CacheBackground(class CStdStr<char>)" (?CacheBackground@BackgroundCache@@QAEXV?$CStdStr@D@@@Z)
    StepMania error LNK2001: unresolved external symbol "public: void __thiscall FadingBackground::ScaleToClipped(float,float)" (?ScaleToClipped@FadingBackground@@QAEXMM@Z)
    StepMania error LNK2019: unresolved external symbol "class BackgroundCache * BACKGROUNDCACHE" (?BACKGROUNDCACHE@@3PAVBackgroundCache@@A) referenced in function "public: __thiscall LyricSegment::~LyricSegment(void)" (??1LyricSegment@@QAE@XZ)
    StepMania error LNK2019: unresolved external symbol "class BackgroundCache * BACKGROUNDCACHE" (?BACKGROUNDCACHE@@3PAVBackgroundCache@@A) referenced in function "void __cdecl ResetGame(bool)" (?ResetGame@@YAX_N@Z)
    StepMania error LNK2019: unresolved external symbol "public: __thiscall BackgroundCache::~BackgroundCache(void)" (??1BackgroundCache@@QAE@XZ) referenced in function "public: void * __thiscall BackgroundCache::`scalar deleting destructor'(unsigned int)" (??_GBackgroundCache@@QAEPAXI@Z)
    StepMania error LNK2019: unresolved external symbol "public: __thiscall BackgroundCache::BackgroundCache(void)" (??0BackgroundCache@@QAE@XZ) referenced in function _SDL_main
    StepMania error LNK2019: unresolved external symbol "public: __thiscall FadingBackground::FadingBackground(void)" (??0FadingBackground@@QAE@XZ) referenced in function "public: __thiscall ScreenSelectGroup::ScreenSelectGroup(class CStdStr<char>)" (??0ScreenSelectGroup@@QAE@V?$CStdStr@D@@@Z)
    StepMania error LNK2019: unresolved external symbol "public: __thiscall RollGhostArrow::RollGhostArrow(void)" (??0RollGhostArrow@@QAE@XZ) referenced in function "public: void __thiscall GhostArrowRow::Load(enum PlayerNumber,class CStdStr<char>,float)" (?Load@GhostArrowRow@@QAEXW4PlayerNumber@@V?$CStdStr@D@@M@Z)
    StepMania error LNK2019: unresolved external symbol "public: __thiscall RollJudgment::RollJudgment(void)" (??0RollJudgment@@QAE@XZ) referenced in function "public: __thiscall PlayerMinus::PlayerMinus(void)" (??0PlayerMinus@@QAE@XZ)
    StepMania error LNK2019: unresolved external symbol "public: bool __thiscall FadingBackground::Load(struct RageTextureID)" (?Load@FadingBackground@@QAE_NURageTextureID@@@Z) referenced in function "protected: void __thiscall ScreenSelectMusic::CheckBackgroundRequests(void)" (?CheckBackgroundRequests@ScreenSelectMusic@@IAEXXZ)
    StepMania error LNK2019: unresolved external symbol "public: bool __thiscall FadingBackground::LoadFromCachedBackground(class CStdStr<char> const &)" (?LoadFromCachedBackground@FadingBackground@@QAE_NABV?$CStdStr@D@@@Z) referenced in function "protected: void __thiscall ScreenSelectMusic::AfterMusicChange(void)" (?AfterMusicChange@ScreenSelectMusic@@IAEXXZ)
    StepMania error LNK2019: unresolved external symbol "public: void __thiscall BackgroundCache::CacheBackground(class CStdStr<char>)" (?CacheBackground@BackgroundCache@@QAEXV?$CStdStr@D@@@Z) referenced in function "public: void __thiscall Course::LoadFromCRSFile(class CStdStr<char>)" (?LoadFromCRSFile@Course@@QAEXV?$CStdStr@D@@@Z)
    StepMania error LNK2019: unresolved external symbol "public: void __thiscall BackgroundCache::LoadBackground(class CStdStr<char>)" (?LoadBackground@BackgroundCache@@QAEXV?$CStdStr@D@@@Z) referenced in function "public: bool __thiscall Song::LoadFromSongDir(class CStdStr<char>)" (?LoadFromSongDir@Song@@QAE_NV?$CStdStr@D@@@Z)
    StepMania error LNK2019: unresolved external symbol "public: void __thiscall FadingBackground::LoadAllMusic(void)" (?LoadAllMusic@FadingBackground@@QAEXXZ) referenced in function "public: void __thiscall ScreenSelectGroup::AfterChange(void)" (?AfterChange@ScreenSelectGroup@@QAEXXZ)
    StepMania error LNK2019: unresolved external symbol "public: void __thiscall FadingBackground::LoadFallback(void)" (?LoadFallback@FadingBackground@@QAEXXZ) referenced in function "protected: void __thiscall ScreenSelectMusic::AfterMusicChange(void)" (?AfterMusicChange@ScreenSelectMusic@@IAEXXZ)
    StepMania error LNK2019: unresolved external symbol "public: void __thiscall FadingBackground::LoadFromGroup(class CStdStr<char>)" (?LoadFromGroup@FadingBackground@@QAEXV?$CStdStr@D@@@Z) referenced in function "public: void __thiscall ScreenSelectGroup::AfterChange(void)" (?AfterChange@ScreenSelectGroup@@QAEXXZ)
    StepMania error LNK2019: unresolved external symbol "public: void __thiscall FadingBackground::LoadMode(void)" (?LoadMode@FadingBackground@@QAEXXZ) referenced in function "protected: void __thiscall ScreenSelectMusic::AfterMusicChange(void)" (?AfterMusicChange@ScreenSelectMusic@@IAEXXZ)
    StepMania error LNK2019: unresolved external symbol "public: void __thiscall FadingBackground::LoadRandom(void)" (?LoadRandom@FadingBackground@@QAEXXZ) referenced in function "protected: void __thiscall ScreenSelectMusic::AfterMusicChange(void)" (?AfterMusicChange@ScreenSelectMusic@@IAEXXZ)
    StepMania error LNK2019: unresolved external symbol "public: void __thiscall FadingBackground::LoadRoulette(void)" (?LoadRoulette@FadingBackground@@QAEXXZ) referenced in function "protected: void __thiscall ScreenSelectMusic::AfterMusicChange(void)" (?AfterMusicChange@ScreenSelectMusic@@IAEXXZ)
    StepMania error LNK2019: unresolved external symbol "public: void __thiscall FadingBackground::LoadSort(void)" (?LoadSort@FadingBackground@@QAEXXZ) referenced in function "protected: void __thiscall ScreenSelectMusic::AfterMusicChange(void)" (?AfterMusicChange@ScreenSelectMusic@@IAEXXZ)
    StepMania error LNK2019: unresolved external symbol "public: void __thiscall FadingBackground::ScaleToClipped(float,float)" (?ScaleToClipped@FadingBackground@@QAEXMM@Z) referenced in function "public: __thiscall ScreenSelectGroup::ScreenSelectGroup(class CStdStr<char>)" (??0ScreenSelectGroup@@QAE@V?$CStdStr@D@@@Z)
    StepMania error LNK2019: unresolved external symbol "public: void __thiscall RollJudgment::SetRollJudgment(enum RollNoteScore)" (?SetRollJudgment@RollJudgment@@QAEXW4RollNoteScore@@@Z) referenced in function "protected: void __thiscall PlayerMinus::UpdateRollNotes(float,int)" (?UpdateRollNotes@PlayerMinus@@IAEXMH@Z)
    StepMania fatal error LNK1120: 21 unresolved externals
    c:\Dokumente und Einstellungen\SchoellerM\Desktop\StepMania-3.9-src\src\pcre\pcre.c(361): warning C4232: nonstandard extension used : 'pcre_free' : address of dllimport 'free' is not static, identity not guaranteed
            c:\Programme\Microsoft Visual Studio .NET 2003\Vc7\include\stdlib.h(279) : see declaration of 'free'
    c:\Dokumente und Einstellungen\SchoellerM\Desktop\StepMania-3.9-src\src\pcre\pcre.c(360): warning C4232: nonstandard extension used : 'pcre_malloc' : address of dllimport 'malloc' is not static, identity not guaranteed
    c:\Dokumente und Einstellungen\SchoellerM\Desktop\StepMania-3.9-src\src\pcre\pcre.c(363): warning C4232: nonstandard extension used : 'pcre_stack_free' : address of dllimport 'free' is not static, identity not guaranteed
            c:\Programme\Microsoft Visual Studio .NET 2003\Vc7\include\stdlib.h(279) : see declaration of 'free'
    c:\Dokumente und Einstellungen\SchoellerM\Desktop\StepMania-3.9-src\src\pcre\pcre.c(362): warning C4232: nonstandard extension used : 'pcre_stack_malloc' : address of dllimport 'malloc' is not static, identity not guaranteed
            c:\Programme\Microsoft Visual Studio .NET 2003\Vc7\include\stdlib.h(296) : see declaration of 'malloc'
    c:\Dokumente und Einstellungen\SchoellerM\Desktop\StepMania-3.9-src\src\crypto51\algebra.h(145): warning C4505: 'CryptoPP::AbstractEuclideanDomain<T>::Mod' : unreferenced local function has been removed
            with
            [
                T=CryptoPP::Integer
            ]
    6) Dont give up, thats no compile but linker errors. So...seek and
    7) Well start with searching all libs in the source directory and his subdirectories
    8) hm gives me no hint. but is has to be a missing lib. Does someone know?

  6. #6

    Default

    Well here is the solution for all the poor people in the world....

    The Solution is not complete. <- a detail that is so top secret even the NSA does not know
    Add an directory to the solution (I named it NotFoundElsewere)
    And add the files
    FadingBackgound.h
    FadingBackgound.cpp
    BackgroundSSM.h
    BackgroundSSM.cpp
    BackgroundCache.h
    BackgroundCache.cpp
    RollGhostArrow.h
    RollGhostArrow.cpp
    RollJudgment.h
    RollJudgment.cpp

    now its compiling and linking fine.

  7. #7
    Member Archer's Avatar
    Join Date
    Aug 2006
    Location
    Toronto, ON, CA
    Posts
    909

    Default

    Quote Originally Posted by swtrse View Post
    Well here is the solution for all the poor people in the world....

    The Solution is not complete. <- a detail that is so top secret even the NSA does not know
    Add an directory to the solution (I named it NotFoundElsewere)
    And add the files
    FadingBackgound.h
    FadingBackgound.cpp
    BackgroundSSM.h
    BackgroundSSM.cpp
    BackgroundCache.h
    BackgroundCache.cpp
    RollGhostArrow.h
    RollGhostArrow.cpp
    RollJudgment.h
    RollJudgment.cpp

    now its compiling and linking fine.
    Those files were added in the development of 3.9+, and I only updated the 2003.vcproj file to include them since that was the only one I was using for development.

    Since 3.9+ is not an official build, I never bothered to update any of the other project files except the one I was using.

  8. #8

    Default

    Well I didn't want to blame you for that.
    As you can see without your build I wouldn't be able to sucessfully compile SM3.9 ^^.

Similar Threads

  1. Failures compiling 3.9+ from source
    By kurisu in forum 3rd-Party builds
    Replies: 3
    Last Post: 07-10-2008, 09:58 PM
  2. 3.95/4.0 source
    By Hssarth in forum General questions
    Replies: 0
    Last Post: 01-28-2008, 07:17 PM
  3. Compiling Stepmania 3.9 from Source
    By kurisu in forum General questions
    Replies: 0
    Last Post: 11-08-2007, 07:25 AM
  4. Compiling SM source
    By tjbautista01 in forum General StepMania
    Replies: 1
    Last Post: 09-09-2007, 08:48 AM
  5. Compiling source binaries (dependency hell?)
    By DustAurora in forum General questions
    Replies: 8
    Last Post: 10-21-2006, 07:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Thanks to

SourceForge.net Logo