• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
Octav

How can I use PhysFS?

5 posts in this topic

Hi.

While developing my game I figured I wanted to pack all my game resources in a .zip file or a .pak file so it looks a bit cleaner and organized, and I wanted to use PhysFS for that purpose. Well, truth is I'm a total beginner at this, I downloaded PhysFS, all I got was a bunch of headers and source files and I have to apparently build it to get a .lib or a .a file which I can link to in my code::Blocks project, but I am CLUELESS as to how to do that. I've never even used cmake or anything similar, can anyone guide me step-by-step as to building PhysFS for using it in my project?

Please, I've been looking for an answer everwhere, all I got was [url="http://www.cmake.org/cmake/help/examples.html"]this link[/url] which is not even slightly helpful [img]http://public.gamedev.net//public/style_emoticons/default/sad.png[/img]
0

Share this post


Link to post
Share on other sites
[quote name='renega_666' timestamp='1348921585' post='4985022']
CMake is a cross platform build system. The link you gave is a link to a tutorial that explains how to use cmake to create a simple project. You do not need to know that to build a cmake project.

I've never used PhysFS but I'm used to build cmake projects. Usually the build process is the following:
1. open a[b] shell[/b] an navigate to the root of the project.
2. there, create a build directory ([i][b]mkdir build[/b][/i]) and navigate to it ([i][b]cd build[/b][/i])
3. configure the project: [b][i]cmake ..[/i][/b] (before the .. you may add config options to specify the compiler and other options)
3.build the project: [b]make[/b] (or nmake or mingw32-make depending on the compiler used)
4.install the project: [b][i]make install[/i][/b]
[/quote]

Thanks a lot for the reply, but as I said it's my first time, I'm a total beginner so I don't know how to open a shell or create a build directory, could you tell me how to open a shell?

EDIT: after researching I found out what you meant by shell, You meant using the run feature. But the rest of the steps are still unknown to me Edited by Octav
0

Share this post


Link to post
Share on other sites
[quote name='Octav' timestamp='1348933107' post='4985085']
EDIT: after researching I found out what you meant by shell, You meant using the run feature. But the rest of the steps are still unknown to me
[/quote]
Actually, on Windows it's the "Command Prompt" (not "Run...", though you can start the Command Prompt by typing "cmd" into "Run..."). (I'm assuming you are on Windows)

If you're on Windows, just use the CMake GUI (run CMakeSetup.exe, which should be in your Start menu). [url="http://www.cmake.org/cmake/help/runningcmake.html"]Here's a nifty tutorial on running CMake[/url]. Using CMake through the GUI is easiest. If you have specific questions from that link I just posted, feel free to ask.
2

Share this post


Link to post
Share on other sites
[quote name='Cornstalks' timestamp='1348942451' post='4985113']
[quote name='Octav' timestamp='1348933107' post='4985085']
EDIT: after researching I found out what you meant by shell, You meant using the run feature. But the rest of the steps are still unknown to me
[/quote]
Actually, on Windows it's the "Command Prompt" (not "Run...", though you can start the Command Prompt by typing "cmd" into "Run..."). (I'm assuming you are on Windows)

If you're on Windows, just use the CMake GUI (run CMakeSetup.exe, which should be in your Start menu). [url="http://www.cmake.org/cmake/help/runningcmake.html"]Here's a nifty tutorial on running CMake[/url]. Using CMake through the GUI is easiest. If you have specific questions from that link I just posted, feel free to ask.
[/quote]

Alright what I did was:
Set the source code in Cmake GUI to "F:/CodeBlocks/physfs-2.0.2"
and build the binaries at "F:/CodeBlocks/physfs-2.0.2/build"

However when running it's giving me "The application has failed to start because libgmp-10.dll was not found." 5 times, after which it starts to configure, but before it ends it gives me this error: "Error in configuration process. Project files may be invalid".

What to do? [img]http://public.gamedev.net//public/style_emoticons/default/sad.png[/img]

EDIT: I do have the environmental variables set correctly
Error code:

CMake Error at C:/Documents and Settings/Stefan.MONA-H6H4KPUJNF/Desktop/cmake-2.8.9-win32-x86/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "c:/mingw/bin/gcc.exe" is not able to compile a simple test
program. Edited by Octav
0

Share this post


Link to post
Share on other sites
From within CMake GUI, you can enter the location of libraries needed to compile. Make sure you append that directory with libgmp-10.dll into the list.
Make sure to add all the bin/exe folders everywhere on your system into your system path.
I noticed the cmake file in version 2.0.2 has a typo in it. Use an earlier version, or fix the typo yourself.

I hope this helps you.
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0