Menu

Compiling CS MinGW

Help
2006-10-25
2012-12-05
  • Pavel Křupala

    Pavel Křupala - 2006-10-25

    Hi guyz,
    I have MinGW 5.0.3(C:/MinGW), MSYS-1.0.10, cs-win32libs-1.0rc1_001.exe (C:/CrystalSpaceLibs), cs-pseudo-stable-2006-01-27.tgz (D:/Work/.../CS) and I'm running WinXP (Dev-Cpp (MinGW)) - everything installed like the HTML Doc said, but I got some troubles :)... (u wouldn't believe it can happen, would ya? =])

    i started MSYS -> ./configure was succesfully finished, then i ran make -k all....

    was goig quite well, but stopped with ERROR:

    <here is list of the problematic part (at the end)>

            mkdir -p "./out/msysx86/optimize/plugins/video/cursor"

        g++ -c -o ./out/msysx86/optimize/plugins/video/cursor/cursor.o -I. -I./include -I./include -DMSYS -I/C/CrystalSpaceLibs/mingw/include -I/C/CrystalSpaceLibs/common/include -I/C/CrystalSpaceLibs/mingw/include -I/C/CrystalSpaceLibs/common/include -Wall -Wno-unknown-pragmas -pipe -march=i586 -I/C/CrystalSpaceLibs/mingw/include -I/C/CrystalSpaceLibs/common/include -fno-exceptions -O3 -fomit-frame-pointer -ffast-math -pipe  plugins/video/cursor/cursor.cpp

        cat > ./out/msysx86/optimize/plugins/video/cursor/cscursor_versionrc.rc << __EOF__
    // This file is generated automatically.

    1 VERSIONINFO
    FILEVERSION 0, 99, 0, 0
    PRODUCTVERSION 0, 99, 0, 0
    #ifdef CS_DEBUG
    FILEFLAGS 0x1
    #else
    FILEFLAGS 0x0
    #endif
    {
      BLOCK "StringFileInfo"
      {
        BLOCK "040904E4"
        {
          VALUE "ProductName", "Crystal Space"
          VALUE "ProductVersion", "0.99"
          VALUE "FileVersion", "0.99"
          VALUE "LegalCopyright", "Copyright (C)1998-2005 Jorrit Tyberghein and others"
          VALUE "FileDescription", "Custom cursor plugin"
    #ifdef CS_DEBUG
          VALUE "Comments", "Debug build"
    #else
          VALUE "Comments", "Release build"
    #endif
          VALUE "WWW", "http://www.crystalspace3d.org/"
        }
      }
    }
    __EOF__

        cat > ./out/msysx86/optimize/plugins/video/cursor/cscursor_metarc.rc << __EOF__
    // This file is automatically generated.

    17485 RCDATA
    {
    __EOF__

        cat plugins/video/cursor/cscursor.csplugin | sed "s:\&quot;:\&quot;\&quot;:g" | sed "s:\(.*\):  \&quot;\1\&quot;,:g" >> ./out/msysx86/optimize/plugins/video/cursor/cscursor_metarc.rc

        cat >> ./out/msysx86/optimize/plugins/video/cursor/cscursor_metarc.rc << __EOF__
      "\0"
    }
    __EOF__

        cat ./out/msysx86/optimize/plugins/video/cursor/cscursor_versionrc.rc ./out/msysx86/optimize/plugins/video/cursor/cscursor_metarc.rc | windres --use-temp-file  --include-dir=./out/msysx86/optimize/plugins/video/cursor --include-dir=./out/msysx86/optimize/plugins/video/cursor -o ./out/msysx86/optimize/plugins/video/cursor/cscursor_resource.o

        g++ -o cscursor.dll ./out/msysx86/optimize/plugins/video/cursor/cursor.o ./out/msysx86/optimize/plugins/video/cursor/cscursor_resource.o -L/C/CrystalSpaceLibs/mingw-gcc-3.4/lib -L/C/CrystalSpaceLibs/mingw/lib -L/C/CrystalSpaceLibs/common/lib -lm -L/usr/lib/w32api -lgdi32 -lshell32 -shared -mwindows ./out/msysx86/optimize/libs/libcrystalspace.a -lzlib -L/C/CrystalSpaceLibs/mingw-gcc-3.4/lib -L/C/CrystalSpaceLibs/mingw/lib -L/C/CrystalSpaceLibs/common/lib -lm -L/usr/lib/w32api -lgdi32 -lshell32
     
    <b>make: *** [all] Error 1</b>
    Please can anyone help me with this? I was searching  the Forum last 24hours without break and trying to compile last 48hours.... Now going to bed try to rest for 3-4 hours... :)... Thank you guyz for your time.

     
    • Pavel Křupala

      Pavel Křupala - 2006-10-25

      huh.... CS-0.98 ended after
      ./configure
      jam all

      with:

      MkDir1 ./out/msysx86/optimize/plugins/video/renderer/software
      C++ ./out/msysx86/optimize/plugins/video/renderer/software/drawpmap.o
      C++ ./out/msysx86/optimize/plugins/video/renderer/software/halo.o
      C++ ./out/msysx86/optimize/plugins/video/renderer/software/scan.o
      C++ ./out/msysx86/optimize/plugins/video/renderer/software/scan16.o
      C++ ./out/msysx86/optimize/plugins/video/renderer/software/scan32.o
      C++ ./out/msysx86/optimize/plugins/video/renderer/software/sft3dcom.o
      C++ ./out/msysx86/optimize/plugins/video/renderer/software/soft_g3d.o
      C++ ./out/msysx86/optimize/plugins/video/renderer/software/soft_txt.o
      C++ ./out/msysx86/optimize/plugins/video/renderer/software/tcache.o
      GenerateWin32VersionRc ./out/msysx86/optimize/plugins/video/renderer/software/soft3d_versionrc.rc
      GenerateWin32MetadataRc ./out/msysx86/optimize/plugins/video/renderer/software/soft3d_metarc.rc
      CompileResources ./out/msysx86/optimize/plugins/video/renderer/software/soft3d_resource.o
      LinkPlugin soft3d.dll
      ...failed updating 1 target(s)...
      ...updated 1425 target(s)...

      ... i start to believe i'll never compile it :'( cuz i'am such a big noob... :'(

       
    • Eric Sunshine

      Eric Sunshine - 2006-10-26

      You probably ought to be using the cs-win32libs version which was associated with the CS pseudo-stable package. The CS/docs/html/index.html documentation (section 2.3) should tell you which cs-win32libs version to download. Based upon the timestamps of the cs-win32libs versions, however, I would guess that it was probably one of these two:

      http://www.crystalspace3d.org/downloads/cs-win32libs/cs-win32libs-0.99r0_018.exe

      http://www.crystalspace3d.org/downloads/cs-win32libs/cs-win32libs-0.99r0_017.exe

      Unfortunately, the build output you pasted does not include the actual error message, so it is difficult to diagnose the problem. The error message would probably have appeared in the output immediately before the output which you did paste.

      Note that CS 1.0pre1 will be released today or tomorrow, so you might want to wait and try that package instead. It has a better chance of working with "modern" compilers and tools.

      Finally, you will find that the Crystal Community Forum is far more active, and you are likely to get more timely help if you post problems there.

      http://community.crystalspace3d.org/forum/

       
  • Ronn91

    Ronn91 - 2017-02-22
    Post awaiting moderation.

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.