Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build instructions? #2

Open
mdeguzis opened this issue Dec 7, 2016 · 4 comments
Open

Build instructions? #2

mdeguzis opened this issue Dec 7, 2016 · 4 comments

Comments

@mdeguzis
Copy link

mdeguzis commented Dec 7, 2016

How do you compile this? Sorry for being a bit naive, since I have not built pascal projects before. I saw scripts/lua_make.lua, but lua makefile.lua only detects Linux as the OS then exits. If this should be a separate issue, that is fine, but I know this is a very early dump of the code. Maybe the assumption is, like doomrl, the instructions will be posted after the Kickstarter project concludes.

I'm sorry to be "that guy," but someone was bound to ask at some point.

@epyon
Copy link
Contributor

epyon commented Dec 7, 2016

FreePascal doesn't have the concept of building libraries, so you basically compile it alongside DoomRL. Will update after KS!

@subtract1
Copy link
Contributor

I can give you a quick starter geared for 'I've never dealt with Pascal before'. It's not a guide but I have built it on Windows (and failed to build on Linux but that looks like a compiler bug).

  • Download this and DoomRL. Put them side by side. Avoid spaces in directory names.
  • Download Lazarus with fpc bundled in (lazarus-1.6.2-fpc-3.0.0-win64 for most people)
  • Install Lazarus.
  • Open the DoomRL project (doomrl/src/doomrl.lpi)
  • Push the 'build' button
  • Cross your fingers

@mdeguzis
Copy link
Author

mdeguzis commented Dec 7, 2016

@subtract1 , thank you, i'll check out the IDE. Is there a CLI-equivalent?

Cross your fingers

I like the way you think. Anyway, my end goal is to host packages for SteamOS/Debian/Ubuntu when time allows (private repos, not upstream-sanctioned). I think there is a PR in doomrl to fix the compile issue.

Edit: I see lazarus is in most distro's repositories. I'll play around with it soon.

fpc - the Compiler, some command line tools, base units and non visual components like database access
fpcsrc - the sources of fpc and its packages, needed for code browsing
lazarus-project - the IDE, visual components and help files

@subtract1
Copy link
Contributor

@mdeguzis

Yes you can use fpc directly. And yes it is in most distros but I was NOT able to compile it myself--got an internal error. Internal errors in fpc as I understand them are compiler bugs; can't do much about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants