Tenderfoot Thahd CromagnonCoder Posted June 25, 2018 Share Posted June 25, 2018 I am trying to rewrite the sources for linux on Fedora 28 with code::blocks. After I open the project, make a few minor changes, save, and close, code::blocks locks up when reopening the project. Is anyone else having a similar issue? And if you are not using code::blocks, what ide are you using? Quote Link to comment Share on other sites More sharing options...
Understated Ur-Drakon Celtic Minstrel Posted June 26, 2018 Share Posted June 26, 2018 I'm pretty sure I was just building with scons (from the command-line) and using the built-in Fedora/GNOME/whatever text editor to edit the source files. I was disillusioned with Code::Blocks after trying to use it for a personal project. My guess is that most other people who contributed Linux code were doing the same thing. Quote Link to comment Share on other sites More sharing options...
Tenderfoot Thahd CromagnonCoder Posted June 26, 2018 Author Share Posted June 26, 2018 Add me to the list of disappointed people. I like using an IDE because it makes linking simpler. Quote Link to comment Share on other sites More sharing options...
Understated Ur-Drakon Celtic Minstrel Posted June 27, 2018 Share Posted June 27, 2018 If you can get it working in Code::Blocks, Eclipse, or any other Linux-friendly IDE, feel free to offer a pull request so that others don't need to redo your work. For the record, I too prefer using an IDE; I've been using Xcode on Mac and Visual Studio on Windows. Quote Link to comment Share on other sites More sharing options...
Tenderfoot Thahd CromagnonCoder Posted June 29, 2018 Author Share Posted June 29, 2018 I hope to share. I work two jobs and have little coding skills so it will take a while. The only changes I've made so far are to comment out the include windows.h statement and changed the case of the header filenames. Could one of those be causing the problem? Quote Link to comment Share on other sites More sharing options...
Understated Ur-Drakon Celtic Minstrel Posted June 29, 2018 Share Posted June 29, 2018 Uhh. What? There should be no places where you need to comment out a Windows include... any file that has an unguarded windows.h include should not be built at all on Linux. (I think all such files also have "win" in the name; naturally you also want to exclude the ones with "mac" in the name. However, if I recall correctly, you do want prefs.win.cpp.) Quote Link to comment Share on other sites More sharing options...
Tenderfoot Thahd CromagnonCoder Posted June 30, 2018 Author Share Posted June 30, 2018 I managed to get a compile to work and got an undefined reference to windows.h error. Maybe something else is going on. Quote Link to comment Share on other sites More sharing options...
Understated Ur-Drakon Celtic Minstrel Posted June 30, 2018 Share Posted June 30, 2018 I can't help you with an error that's only vaguely stated. Just to be sure though, you do have the most up-to-date code from GitHub, right? Quote Link to comment Share on other sites More sharing options...
Tenderfoot Thahd CromagnonCoder Posted June 30, 2018 Author Share Posted June 30, 2018 I fixed the locking problem. I got the source files from Spiderweb Software website. They differ from github? And any ideas what libraries the game used? Quote Link to comment Share on other sites More sharing options...
Understated Ur-Drakon Celtic Minstrel Posted June 30, 2018 Share Posted June 30, 2018 Yes, the GitHub files vastly differ. The source files from Spiderweb Software won't compile on Linux, unless you're using WINE or something. For the GitHub version, the README explains the libraries used. The original version just used the Mac Toolkit (pre-Carbon!) on Mac and basic WinAPI on Windows, no external libraries as far as I know. Quote Link to comment Share on other sites More sharing options...
Tenderfoot Thahd CromagnonCoder Posted July 1, 2018 Author Share Posted July 1, 2018 Thatcould explain the locking problem then. In the fileio.h header, there is a data variable named hfile. Is that a user defined variable or is it in the windows header? Quote Link to comment Share on other sites More sharing options...
Understated Ur-Drakon Celtic Minstrel Posted July 1, 2018 Share Posted July 1, 2018 I have no idea. Is there a reason why you're working with the original sources instead of the GitHub sources? The GitHub sources will compile just fine on Linux, though the game is not quite fully functional (missing the menu bar). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.