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

Pioneer with neither run nor compile on OSX #2702

Closed
designosis opened this issue Jan 31, 2014 · 9 comments
Closed

Pioneer with neither run nor compile on OSX #2702

designosis opened this issue Jan 31, 2014 · 9 comments

Comments

@designosis
Copy link

The trailer on youtube piqued my interest. The homepage http://pioneerspacesim.net/download had a big download link for pioneer-20140128-osx.tar.bz2, so I download and unarchive it. I see no app or icon in the directory, but eventually I double click pioneer, and after a moment of graphic, it dies with this error:

Initialized GL2 renderer
started 7 worker threads
ship definition for 'lunarshuttle' has deprecated 'camera_offset' field
ship definition for 'lunarshuttle' has deprecated 'gun_mounts' field
ship definition for 'venturestar' has deprecated 'camera_offset' field
ship definition for 'venturestar' has deprecated 'gun_mounts' field
Face Generation source images loaded.
Number of factions added: 103
dyld: lazy symbol binding failed: Symbol not found: ___sincos_stret
  Referenced from: ./libs/libassimp.3.dylib
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: ___sincos_stret
  Referenced from: ./libs/libassimp.3.dylib
  Expected in: /usr/lib/libSystem.B.dylib

./pioneer: line 11:  5195 Trace/BPT trap: 5       ./pioneer.osx $1 $2 $3

So I think, Ok, what else can I try? I see that sourceforge may have other versions, so I check out http://sourceforge.net/projects/pioneerspacesim/ ... I click the big green "Download" button, and get pioneer-alpha33.dmg ... which crashes immediately without any kind of report.

So then I try my luck with the source code. I grab the zip from https://github.com/pioneerspacesim/pioneer and read COMPILING.txt. I install Xcode, install the Xcode command line tools, download macports, and began going down the list of libraries mentioned in COMPILING.txt.

I get as far as sudo port install libsdl2_sound, which reports "Error: Port libsdl2_sound not found". Googling libsdl2_sound reveals pretty much no results whatsoever, so I try libsdl_sound instead, and it seems to go through. The rest of the libraries install fine. I run ./bootstrap, I make the OpenGL symbolic link (though I have to manually create /usr/local/include/ first), and I run ./configure with the suggested command line flags.

Step 6 says "Now you can run make as per normal." Well, I've never run make, but I give it a go. make. It compiles for a while, then I get 2 warnings and a fatal error.

In file included from PicoDDS.cpp:50:
./PicoDDS.h:224:12: warning: 5 enumeration values not handled in switch: 'FORMAT_NONE', 'FORMAT_RGBA16', 'FORMAT_RGB16'... [-Wswitch]
                        switch( format)
PicoDDS.cpp:100:8: warning: comparison of constant -1 with expression of type 'PicoDDS::ImgFormat' is always false [-Wtautological-constant-out-of-range-compare]
        if(-1 == imgdata_.format)
...
In file included from ./../Random.h:17:
./../RefCounted.h:7:10: fatal error: 'atomic' file not found
#include <atomic>

So then I see that a new release is out on http://pioneerspacesim.net ... Oh thank god, click and play. But even the latest version – pioneer-20140131-osx.tar.bz2 – crashes with this error ...

Initialized GL2 renderer
started 7 worker threads
ship definition for 'lunarshuttle' has deprecated 'camera_offset' field
ship definition for 'lunarshuttle' has deprecated 'gun_mounts' field
ship definition for 'venturestar' has deprecated 'camera_offset' field
ship definition for 'venturestar' has deprecated 'gun_mounts' field
Face Generation source images loaded.
Number of factions added: 103
dyld: lazy symbol binding failed: Symbol not found: ___sincos_stret
  Referenced from: /Users/niko/Downloads/pioneer-20140131-osx/libs/libassimp.3.dylib
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: ___sincos_stret
  Referenced from: /Users/niko/Downloads/pioneer-20140131-osx/libs/libassimp.3.dylib
  Expected in: /usr/lib/libSystem.B.dylib

/Users/niko/Downloads/pioneer-20140131-osx/pioneer: line 11:  9754 Trace/BPT trap: 5       ./pioneer.osx $1 $2 $3
logout

Obviously lots of people are playing this game without having to jump through these crazy hoops, but are any of them on a mac? I'm on OSX 10.8.5. If anyone can help me get started, I'd be very grateful.

@lwho
Copy link
Contributor

lwho commented Jan 31, 2014

Maybe #2610 helps you. Seems to be the same issue.

@lwho
Copy link
Contributor

lwho commented Jan 31, 2014

In file included from ./../Random.h:17:
./../RefCounted.h:7:10: fatal error: 'atomic' file not found
#include

What compiler (version) are you using? This is a C++11 feature that was very recently introduced into the code base.

@designosis
Copy link
Author

Thanks for the replies!
About #2610, I'm guessing you mean:

"Brewed my own libassimp from assimp, placed it where your libassimp was,
and changed the name in order to replace it. Seems to work just fine now."

I wouldn't know how to do that :) I'm happy to give it a go if you could direct me to some instructions.

My compiler is whatever was installed after following the instructions in COMPILING.txt.
Running gcc -v shows ...

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix

... which I guess is what Xcode installs.

Is there no working executable for OSX?

@lwho
Copy link
Contributor

lwho commented Jan 31, 2014

Sorry, I have absolutely no clue about Mac OS X and have never used it, so can not give you detailed directions. I think, "Brewed my own libassimp" refers to the Mac OS X packet manager homebrew and the associated command brew. Maybe that helps you to Google for that.

Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)

That's strange. LLVM should have atomic from 3.1. If you didn't already do so, try updating XCode to the newest version.

Is there no working executable for OSX?

I guess, the binary you tried, would work if you had the right version of libassimp. Unless you figure out how to "brew" one, we have to wait for someone, who has a clue about Mac OS X and can give you details.

@Vakarias: You mentioned in #2610 that you got it working, maybe you can help @neokio

@johnbartholomew
Copy link
Contributor

(Ping @Philbywhizz)

@designosis
Copy link
Author

Ok ... I installed Homebrew, and ran brew install assimp. It fails with the error:

Error: Download failed: http://downloads.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.tar.bz2

I checked out sourceforge, and noticed that they changed it from .bz2 to .gz. I did man brew (lol) and found that I could do brew edit boost to see the source. But changing the filename doesn't work (maybe the SHA1 has to change too?)

EDIT: #1: I was mistaken, there's a bz2 also, but the default mirror doesn't respond. After editing the formula to reference a specific mirror in the URL, boost downloaded fine.
EDIT #2: I had to edit the formula for assimp to use another mirror as well.

@designosis
Copy link
Author

That did it! I used Homebrew to install assimp, then replaced the libassimp in Pioneer's pioneer-20140131-osx/libs/ with the new Homebrew version in /usr/local/Cellar/assimp/lib/, and voila, the game runs on OSX.

Thanks @lwho for the pointers, and @Vakarias for posting about Homebrew and libassimp!

@robn
Copy link
Member

robn commented Feb 1, 2014

Great to hear you got it working.

Since the builds we do clearly aren't working, and I had no way to fix them myself (I don't really have access to a Mac) I'm going to stop producing them.

They can come back if and when someone can produce a working set of steps to build and bundle the game from scratch - something that I can turn into a build script. If you or anyone on reading this feels up to the challenge it would be a huge help.

@robn
Copy link
Member

robn commented Feb 1, 2014

Moved to the forum for discussion:

http://pioneerspacesim.net/forum/viewtopic.php?f=3&t=146

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

4 participants