Crystal Space
Welcome, Guest. Please login or register.
October 25, 2014, 12:18:28 pm

Login with username, password and session length
Search:     Advanced search
9011 Posts in 2044 Topics by 8827 Members
Latest Member: Kopanamina
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Missing Dependencies
« previous next »
Pages: [1] Print
Author Topic: Missing Dependencies  (Read 2740 times)
Wysardry
Newbie
*
Posts: 17


View Profile
« on: December 03, 2011, 01:29:23 am »

I have tried installing Crystal Space on Windows 7 Home Premium (64-bit) with MSYS and MinGW-W64, but seem to have a lot of dependencies missing. This is on a laptop with ATI/AMD HD 6520G graphics (driver version 8.902.0.0 dated 12th October, 2011).

I installed Python 2.7.2 64-bit for Windows, MinGW-W64 and MSYS from the MinGW-W64 site, got CS via SVN from https://crystal.svn.sourceforge.net/svnroot/crystal/CS/branches/release/V2.0/ and CEL from https://cel.svn.sourceforge.net/svnroot/cel/cel/branches/release/V2.0/ and downloaded the cs-winlibs-x64-2.0_001.exe Windows libraries.

I then ran the Windows library install program with all options enabled as I also have VS 2010 Express installed.

My directories were set up as follows:-

C:\CS
C:\CEL
C:\CrystalSpaceLibs-x64
C:\msys
C:\mingw64
C:\Python27

My environment variables were:-

CRYSTAL = C:\CS
CEL = C:\CEL
PATH = C:\Python27;C:\mingw64\bin;C:\other_unrelated_stuff

I ran msys.bat then typed
sh /postinstall/pi.sh
and filled in the info as asked. I closed the window, then ran msys.bat again and typed
cd /c/cs
./configure

When the process was complete, the following was displayed:-

******************************************************************************
***                 Crystal Space -- Configuration Summary                 ***
******************************************************************************

Build mode: optimize
Version: 2.0 (SVN: no)

Optional Dependencies
---------------------

Found

  directx              (rendering)
  opengl               (rendering)
  python               (bindings)
  waveout              (audio)
  wxwidgets            (gui)

Missing

  3ds                  (models)
  assimp               (models)
  bullet               (physics)
  cairo                (image)
  cairomm              (image)
  cal3d                (models)
  cegui                (gui)
  cg                   (rendering)
  cs-winlibs           (other)
  freetype2            (other)
  java                 (bindings)
  jpeg                 (image)
  lcms                 (image)
  mng                  (image)
  ode                  (physics)
  ogg                  (audio)
  openal               (audio)
  perl                 (bindings)
  png                  (image)
  speex                (audio)
  vgvm                 (image)
  vorbis               (audio)
  zlib                 (other)

Can anyone tell me why my system can't find all those items?
Logged
Wysardry
Newbie
*
Posts: 17


View Profile
« Reply #1 on: December 03, 2011, 03:54:00 am »

I've made some progress. By starting MSYS and then typing the following:-
cd /c/cs
./configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32

I now get:-

******************************************************************************
***                 Crystal Space -- Configuration Summary                 ***
******************************************************************************
Build mode: optimize
Version: 2.0 (SVN: no)

Optional Dependencies
---------------------
Found
  3ds                  (models)
  cal3d                (models)
  cegui                (gui)
  cg                   (rendering)
  cs-winlibs           (other)
  directx              (rendering)
  freetype2            (other)
  jpeg                 (image)
  mng                  (image)
  ode                  (physics)
  ogg                  (audio)
  openal               (audio)
  opengl               (rendering)
  png                  (image)
  python               (bindings)
  speex                (audio)
  vorbis               (audio)
  waveout              (audio)
  wxwidgets            (gui)
  zlib                 (other)

Missing
  assimp               (models)
  bullet               (physics)
  cairo                (image)
  cairomm              (image)
  java                 (bindings)
  lcms                 (image)
  perl                 (bindings)
  vgvm                 (image)

Is that the best I can get? I thought Bullet at least was included in the Windows libraries?

Edit: I compiled with the jam command, but none of the resulting programs will run. Some complain of a missing dll, others just do nothing.
« Last Edit: December 03, 2011, 03:22:55 pm by Wysardry » Logged
res
Develazyoper
CS Developer
Full Member
*****
Posts: 206


View Profile Email
« Reply #2 on: December 03, 2011, 03:52:37 pm »

Is that the best I can get? I thought Bullet at least was included in the Windows libraries?

Yeah, bullet is included. Checking the output for the bullet tests in config.log should shed some light on it.

Edit: I compiled with the jam command, but none of the resulting programs will run. Some complain of a missing dll, others just do nothing.

Which DLL is missing?
Logged
Wysardry
Newbie
*
Posts: 17


View Profile
« Reply #3 on: December 03, 2011, 04:28:46 pm »

libCEGUIBase-csmingw64-gcc-4.5.dll is missing. I see a load for VS 8, 9 and 10, but none with mingw or gcc in the name.
Logged
res
Develazyoper
CS Developer
Full Member
*****
Posts: 206


View Profile Email
« Reply #4 on: December 03, 2011, 05:16:53 pm »

That lib should be in CrystalSpaceLibs-x64/dlls/mingw64. That this lib was not copied is a bug in the installer.
Logged
Wysardry
Newbie
*
Posts: 17


View Profile
« Reply #5 on: December 03, 2011, 06:46:09 pm »

Okay, I copied that file across and no longer get an error message about it being missing, but the programs still don't do anything when I try to run them.
Logged
Wysardry
Newbie
*
Posts: 17


View Profile
« Reply #6 on: December 03, 2011, 09:23:33 pm »

I uninstalled the 64-bit libraries, deleted the CS directory, copied a fresh CS directory from my SVN folder and installed the 32-bit windows libraries. After running configure in MSYS I got:-

******************************************************************************
***                 Crystal Space -- Configuration Summary                 ***
******************************************************************************
Build mode: optimize
Version: 2.0 (SVN: no)

Optional Dependencies
---------------------
Found
  cs-winlibs           (other)
  directx              (rendering)
  opengl               (rendering)
  python               (bindings)
  waveout              (audio)

Missing
  3ds                  (models)
  assimp               (models)
  bullet               (physics)
  cairo                (image)
  cairomm              (image)
  cal3d                (models)
  cegui                (gui)
  cg                   (rendering)
  freetype2            (other)
  java                 (bindings)
  jpeg                 (image)
  lcms                 (image)
  mng                  (image)
  ode                  (physics)
  ogg                  (audio)
  openal               (audio)
  perl                 (bindings)
  png                  (image)
  speex                (audio)
  vgvm                 (image)
  vorbis               (audio)
  wxwidgets            (gui)
  zlib                 (other)
Logged
Wysardry
Newbie
*
Posts: 17


View Profile
« Reply #7 on: December 04, 2011, 11:56:54 pm »

I uninstalled the 32-bit libraries, MinGW etc. and deleted the CS directory and started again with a slightly older version of MinGW-W64 that has GCC 4.52 instead of 4.54 plus the 64-bit version of the Windows libraries. I also copied all the dll files from the mingw64 directory of CrystalSpaceLibs-x64 to my new CS directory.

I still have the same missing dependencies as in my second post, but most of the files that compiled do now run.

I'm not sure what I'm looking for in the config.log file. Here is an excerpt that might help someone who knows more track down the problem:-

configure:49977: checking if pkg-config recognizes bullet
configure:49988: result: yes
configure:49996: pkg-config --cflags bullet
configure:49999: 0 = 0
configure:50002: pkg-config --libs bullet
configure:50005: 0 = 0
configure:50311: checking for Bullet
configure:50396: x86_64-w64-mingw32-g++ -o conftest.exe  -Ic:/CrystalSpaceLibs-x64/mingw64/../common/include/bullet   -I/C/CrystalSpaceLibs-x64/mingw64/include -I/C/CrystalSpaceLibs-x64/common/include    -L/C/CrystalSpaceLibs-x64/mingw64-gcc-4.5/lib -L/C/CrystalSpaceLibs-x64/mingw64/lib -L/C/CrystalSpaceLibs-x64/common/lib conftest.cpp -lBulletSoftBody -lBulletDynamics -lBulletCollision -lLinearMath   >&5
c:/CrystalSpaceLibs-x64/mingw64-gcc-4.5/lib/libBulletSoftBody.a: could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status
configure:50396: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "crystalspace"
| #define PACKAGE_TARNAME "crystalspace"
| #define PACKAGE_VERSION "2.0"
| #define PACKAGE_STRING "crystalspace 2.0"
| #define PACKAGE_BUGREPORT "crystal-main@lists.sourceforge.net"
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CMATH 1
| #define HAVE_MATH_H 1
| #define HAVE_IEEEFP_H 1
| #define CS_PLATFORM_WIN32 /**/
| #define X_DISPLAY_MISSING 1
| #define HAVE_WINDOWS_H 1
| /* end confdefs.h.  */
| #include "btBulletDynamicsCommon.h"
|              #include "btBulletCollisionCommon.h"
| int
| main ()
| {
| btCollisionDispatcher* d;
|              btBroadphaseInterface* b;
|              btSequentialImpulseConstraintSolver* s;
|              btDefaultCollisionConfiguration* c;
|              btDynamicsWorld* world = new btDiscreteDynamicsWorld (d, b, s, c)
|   ;
|   return 0;
| }


Edit: I also tried the trunk version of CS with the cs-winlibs-x64-2.1_001.exe Windows libraries and got this:-

Missing
  assimp               (models)
  bullet               (physics)
  cairo                (image)
  cairomm              (image)
  curl                 (other)
  java                 (bindings)
  lcms                 (image)
  perl                 (bindings)
  vgvm                 (image)
« Last Edit: December 05, 2011, 08:11:51 pm by Wysardry » Logged
res
Develazyoper
CS Developer
Full Member
*****
Posts: 206


View Profile Email
« Reply #8 on: December 05, 2011, 07:26:07 pm »

c:/CrystalSpaceLibs-x64/mingw64-gcc-4.5/lib/libBulletSoftBody.a: could not read symbols: Archive has no index; run ranlib to add one

That actually points to an issue (incomplete build or so...) with the winlibs package itself (i.e. it's broken as it is currently available for download).

On the bright side, I'll probably roll a new version soon-ish and will pay attention to your issues Wink
Logged
Wysardry
Newbie
*
Posts: 17


View Profile
« Reply #9 on: December 05, 2011, 08:11:05 pm »

Okay, thanks. If this coming Saturday is the release day for CS and CEL 2.0 beta 1, a lot more people are going to encounter this.

The 2.1 libraries have the same problem, although I didn't check the log to see if it was the same cause.

Is there anywhere on the site that says what version of MinGW was used to create each Windows library package? I saw the notes on which version of GCC was used during installation, but you have to actually download the file and start the install to see that.

I ended up using mingw-w64-bin_x86_64-mingw_4.5.2_20110217_ext_megasoft78 as the CS files compiled using mingw-w64-bin_x86_64-mingw_20111101_sezero just didn't run (it contains a pre-release version of GCC 4.5.4).
Logged
Wysardry
Newbie
*
Posts: 17


View Profile
« Reply #10 on: December 09, 2011, 01:21:45 am »

Any progress on rebuilding the libraries? CS and CEL 2.0 beta 1 are being released tomorrow.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 6.19 seconds with 14 queries.