Jump to content
  • Advertisement
Sign in to follow this  
SteveDeFacto

How should I handle dependencies?

This topic is 2498 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

My project currently uses cmake to automate the creation of project files. This works great, however, it also uses 7 different libraries and each one must be built then linked to the project. This makes it an awful pain to build the project files. I've recently just copied the source files for each library into the project its self but this increases the complication time to a staggering 20 minutes. My only idea to fix this would be to some how compile the libraries from the command line with cmake but I'm not sure if this can even be done. I need a better solution?

Share this post


Link to post
Share on other sites
Advertisement

My project currently uses cmake to automate the creation of project files. This works great, however, it also uses 7 different libraries and each one must be built then linked to the project. This makes it an awful pain to build the project files. I've recently just copied the source files for each library into the project its self but this increases the complication time to a staggering 20 minutes. My only idea to fix this would be to some how compile the libraries from the command line with cmake but I'm not sure if this can even be done. I need a better solution?

Does your build tool support project dependancies so you can tell it which to build first, I know this is possible for VS solutions. It gets worse even if there are dependancies between the libraries themselfs.

But the real question is the one the previous poster asked do they have to be rebuilt each time? If not you could decide to include some prebuild dlls with your distribution method.

Share this post


Link to post
Share on other sites

[quote name='SteveDeFacto' timestamp='1328869124' post='4911612']
My project currently uses cmake to automate the creation of project files. This works great, however, it also uses 7 different libraries and each one must be built then linked to the project. This makes it an awful pain to build the project files. I've recently just copied the source files for each library into the project its self but this increases the complication time to a staggering 20 minutes. My only idea to fix this would be to some how compile the libraries from the command line with cmake but I'm not sure if this can even be done. I need a better solution?

Does your build tool support project dependancies so you can tell it which to build first, I know this is possible for VS solutions. It gets worse even if there are dependancies between the libraries themselfs.

But the real question is the one the previous poster asked do they have to be rebuilt each time? If not you could decide to include some prebuild dlls with your distribution method.
[/quote]

It's cross platform which mean binaries would have to be created for each platform. I want it to be easy to build the project files so others can help develop the project without spending hours to build each dependency. I also want it to be easy to build for my sake since I tend to want to work on it while in class but I have to build each dependency before I can. I just want to be able to download the source code from the SVN repository, immediately create project files, and start working.

Share this post


Link to post
Share on other sites
I want it to be easy to build the project files so others can help develop the project without spending hours to build each dependency.[/quote]

Then provide pre-built binaries for several major platforms. Add a note somewhere along the lines of "hey, are you building this on a platform we don't have prebuilt binaries for? build them, send them to us and we'll put them up".

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!