• Advertisement
Sign in to follow this  

Compile libraries or whatever

This topic is 4729 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

Advertisement
Doesn't Dev-Cpp come with a tool to convert MSVC .libs to a format it can understand? In that case, just download the "VC6 Binary Release", and convert corona.lib.
Alternatively, it shouldn't be too hard to build the UNIX source. Just create a new project (Static library or DLL) and add all the files to it.

Share this post


Link to post
Share on other sites
It doesn't seem to come with anything to do that, so if someone finds something like that, please let me know! I downloaded the UNIX source, but it gave me this compiler error (I am using windows XP and dev-cpp, and tried to add all the source files to a static library project. If this is wrong, please let me know.):


[Build Error] No rule to make target `"../Documents', needed by `corona.a'. Stop.

Share this post


Link to post
Share on other sites
Now I don't believe in doing other peoples work for them, but since there was no Dev-CPP version avaliable, I decided to try for myself. As was said, "how hard could it be". Well compiling it was not an 'easy' task because there are 4 libraries included that you have to build yourself first.

Not only that, you must build them using certain defines as well as project settings. To make a long story short, it took me 2 hrs to figure it out, but I did figure that little punk library out! Oh indeed I did [evil] Anyways, I have made the project avaliable.

Anyone intrested in this should be able to download this and be able to build it themselves if they want to make modifications, all the projects are setup correctly. I really don't sew how the average dev cpp programmer could build this... There was no straight forward help with it!

I made the demo project as well. Here is a screenshot of it in action. Yea purty graphics [wink]. For the demo, I made the .bat file that runs it since it uses arg line commands. Anyways if anyone has questions/comments on this feel free to ask. It looks like an intresting library, I guess I will have a look at it now [lol].

Download Entire Project Here | Screenshot | How To Build Guide

- Drew

P.S. Buy Visual Studio [grin]

[Edited by - Drew_Benton on March 16, 2005 8:15:15 PM]

Share this post


Link to post
Share on other sites
Most *nix programs can be built quite easily. Using MSYS, go to the directory you extracted the source to and type:

$ ./configure --help

Look through the list and see if there's anything you want to enable/disable, and add it to the configure command. For example, if I was compiling SDL, I would add --disable-stdio-redirect because I hate that stupid feature.

$ ./configure

After that finishes, you can compile and install it:

$ make install

With any luck you're now done and have your library installed. I'm not sure how well this works with Corona but it works for most libraries.

Share this post


Link to post
Share on other sites
Believe it or not smart_idiot, one of the main problems I had with it was trying to get, you should see this coming, libpng (sucky docs indeed), to compile correctly. I just had to eventually make *everything* static libraries and use those, because I could not get the .dll versions to work correctly. For some reason, the JPEG and GIF libraries were not in .dll exportable format, but no mention that they had to be static C libraries was made. I will take a look at your suggestion. This is on windows though, so I assume I need to command line compile using GCC tools?

Share this post


Link to post
Share on other sites
Yeah, I compiled everything inside MSYS. libpng doesn't have a configure script, but you can compile it with this:

$ make -f scripts/makefile.gcc all

Then just copy libpng.a and png.h to the appropriate directories.

zlib which libpng uses does have a configure script, and will install without any fuss using previous instructions.

Share this post


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

  • Advertisement