Jump to content


Photo

Adding A New Lib?


  • Please log in to reply
1 reply to this topic

#1 Beatkiller

Beatkiller

    Sergeant

  • Forum Members
  • PipPipPip
  • 15 posts

Posted 19 December 2005 - 10:46 AM

Is it possible to add some libs (allegropak)? Because its much easier to do things with existing code and not to write all by my own.
Well, Member No.: 8,204 lives ;)

#2 Serge

Serge

    Project Leader: UFO 2000

  • Xenocide Programming Department
  • 785 posts

Posted 19 December 2005 - 12:33 PM

Is it possible to add some libs (allegropak)? Because its much easier to do things with existing code and not to write all by my own.

<{POST_SNAPBACK}>

It is possible, though it is not recommented to add any extra library dependency without a real need. Any extra dependency adds extra work for people trying to compile the game from sources. Also we should make sure that this library works on all the patforms supported by the game (currently windows, linux, macos x, freebsd, 64-bit linux on amd64). The set of supported platforms will probably grow.

We currenly include some of the exotic libraries directly into ufo2000 source tree (subdirectories inside of 'src' dir). For example, 'jpgalleg' is currently not amd64 compatible. We have a fixed version included into our source tree (and the fix was sent to jpgalleg author - but no new version with this fix was released yet).

As for allegropak, it does not seem to be maintained. Probably if we really need some code from it, the best way to use it is to directly include it in our sources.
ufo2000 development team
http://ufo2000.sourceforge.net