-
Notifications
You must be signed in to change notification settings - Fork 8
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
can't build on macos #3
Comments
By default Allegro & Boron are used. If you wish to use SDL & libxml then configure with the "--sdl --xml" options. If you want to use Boron you must install that from source first. I have no idea if the project still builds and runs on Mac OS. Please let us know if you get it working. |
The SaveGame warning has been fixed in commit 467787e. |
Thanks for the help. I got the build to complete, but launching it results in no display window
|
Do you have a link to the Boron source ? I can't seem to find the project |
The Boron homepage is http://urlan.sourceforge.net/boron/. The Makefile.macosx will probably need to be modified to link with libboron. |
The display messages may be two separate issues. You will have to debug the "Unable to obtain graphics context" problem. The unsupported pixel format warning will not prevent the program from running, but would most likely result in bad RGB mapping. The SDL backend really needs to be updated to SDL2. Is there any chance you can try the Allegro backend? |
I tried to reconfigure and make again, but it's failing on the missing boron.h |
Where did the headers get installed (what commands did you use to install Boron)? By default they are put under /usr/local which might not be in the default compiler include path. Please note that using the Boron configuration currently requires the Allegro backend, as the scripts are read from the u4.mod file. Xu4 game modules are not currently supported when using SDL. |
So I tried to install boron from the 2.0.6 tarball and building it, but it fails to build too.
|
It looks like the correct libtool option is "-dynamic". Try replacing "-dynamiclib" with that in the Makefile. An alternative to that is to use "./configure --static". This may be better overall as you won't have any problems linking at runtime. The xu4 development snapshots for Linux and Windows (http://xu4.sourceforge.net/download.php) use this option. The actual configuration used is:
|
ok thanks. That helped to build boron. I also had to do make install-dev to get the header files to be installed in /usr/local/include. I then re-ran u4 ./configure --allegro --boron. The Makefile from the top level directory still errors out with
I can cd into src and run make and that now completes. I then have to cd .. (back to the top level u4 directory to run the app)
|
It looks like the src/Makefile.macosx assumes that there are files called macosx/SDLMain.m and macosx/SDLMain.h |
Yes, Makefile.macosx needs to be fixed to not assume libxml & SDL are being used. You can look at Makefile (for Linux) to see how the UI & CONF variables are used. To build the u4.mod game module run "./tools/pack-xu4.b" from the project root. The script assumes boron (the interpreter binary) is installed in /usr/bin. If it is not then run "/path/to/boron tools/pack-xu4.b". |
ok I was just discovering there lots of assumptions in the makefile for SDL. Also src/u4.cpp assumes SDL here: |
You are probably the first to build the project for Mac in years. If you can sort out those issues and submit a patch it would be most welcome. |
I ran ./configure
then make, which fails
I have SDL installed via brew.
I cd into src dir and ran make, which got further, but still failed
The text was updated successfully, but these errors were encountered: