Regarding libphysfs in devpkg-mingw

For code related discussions and questions
Post Reply
User avatar
bornemix
Code contributor
Code contributor
Posts: 56
Joined: 09 Mar 2010, 09:39

Regarding libphysfs in devpkg-mingw

Post by bornemix »

Hi,

It seems that the source of zlib is included in libphysfs, instead of being linked to zl - could you please change this?

It creates a "multiple definition" error for me when compiling with MINGW...

Also, please put up the devpkgs in the SVN instead. Having a unified source of files is better.
i-NoD
Code contributor
Code contributor
Posts: 318
Joined: 30 Nov 2008, 00:42
Location: In the middle of nowhere

Re: Regarding libphysfs in devpkg-mingw

Post by i-NoD »

I don't think we have someone who's keeping an eye for mingw devpkg. It's a bit trial and error with mingw, but I'm still using previous devpkg without issue...

The devpkg existence is fueled by the very idea of NOT putting them into SVN. Do you want to download all the different packages for every platform every time they'll change? What's for?
User avatar
bornemix
Code contributor
Code contributor
Posts: 56
Joined: 09 Mar 2010, 09:39

Re: Regarding libphysfs in devpkg-mingw

Post by bornemix »

Hi iNod, thanks for your reply.... I'll try to fix it myself, no problem... :)
User avatar
bornemix
Code contributor
Code contributor
Posts: 56
Joined: 09 Mar 2010, 09:39

Re: Regarding libphysfs in devpkg-mingw

Post by bornemix »

That one is fixed.

If anyone wants libphysfs.lib without zlib, here it is..
Attachments
libphysfs.zip
(229.67 KiB) Downloaded 294 times
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Regarding libphysfs in devpkg-mingw

Post by Buginator »

bornemix wrote:That one is fixed.

If anyone wants libphysfs.lib without zlib, here it is..
Hmm.
While I don't use mingw either, I am curious to know what compile options you used with physfs?
Which version of physfs is this anyway?
Can your version read in .wz files OK?

As for sticking everything in svn, that isn't going to happen. It is a huge PITA when bisecting code with svn.
All external libs are either on SF or GNA for mingw + macs + MSVC.
and it ends here.
User avatar
bornemix
Code contributor
Code contributor
Posts: 56
Joined: 09 Mar 2010, 09:39

Re: Regarding libphysfs in devpkg-mingw

Post by bornemix »

I just added "HAS_ZLIB" with CMake/mingw-make static lib generation, so that it doesn't include the source of it, rather it needs to be linked when build wz, which is already done.

Its difference in size is about 20-30kb.
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA
Contact:

Re: Regarding libphysfs in devpkg-mingw

Post by Zarel »

Well, the Mac project file automatically downloads the packages it needs. I wonder if we could make the Windows build scripts do the same thing...
User avatar
bornemix
Code contributor
Code contributor
Posts: 56
Joined: 09 Mar 2010, 09:39

Re: Regarding libphysfs in devpkg-mingw

Post by bornemix »

That's what I'm doing now...
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: Regarding libphysfs in devpkg-mingw

Post by cybersphinx »

bornemix wrote:That's what I'm doing now...
win32/__BUILD_SCRIPT already does that for cross-compilation. Maybe you can adapt it to do native compiles as well?
User avatar
bornemix
Code contributor
Code contributor
Posts: 56
Joined: 09 Mar 2010, 09:39

Re: Regarding libphysfs in devpkg-mingw

Post by bornemix »

I'm making a windows BAT that includes svn and 7zip, downloads mingw, bison, all dependencies, downloads svn/trunk, compiles it...

Is that already done?
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: Regarding libphysfs in devpkg-mingw

Post by cybersphinx »

The Linux script downloads and builds all dependencies, but uses the system tools and an already downloaded source. If you can adapt it, you just need a wrapper that downloads source etc, but not the building itself. I think it depends on bash and Gnu make, though.
Post Reply