aliens

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mawaldne

Pages: [1]
1
Programming / Re: Problems compiling lastest on Mac OS X 10.8.5
« on: December 22, 2013, 08:36:41 pm »
grrussel, Thanks again.  I found my problem. I'm able to compile and run openxcom latest.

To anyone looking at this later, make sure you turn on debugging and compile with -g so gdb is more meaningful. It'll help to find problems:

Code: [Select]
export CXXFLAGS="-Wall -Wextra -O2 -g -D_DEBUG"
My problem was my locale wasn't set. getLocale() in CrossPlatform.cpp was trying to parse an empty string and it was throwing an exception. I set my locale in my terminal, and also set the language in the options.cfg and things are fine now.



2
Programming / Re: Problems compiling lastest on Mac OS X 10.8.5
« on: December 22, 2013, 06:57:45 am »
Hey grussel, saw your comment here: https://openxcom.org/bugs/openxcom/issues/403

I commented out the code in XcomResourcePack.cpp and the project is compiling for me! Horay! (Probably not a final solution but I'll leave it for now. ;) )

But I'm having one more issue. When I run ./bin/openxcom I just see the following:

$ ./openxcom
basic_string

I see a "Loading . . ." window pop up, but it closes and I just see "basic_string" at the console.  Any idea?

3
Programming / Re: Problems compiling lastest on Mac OS X 10.8.5
« on: December 22, 2013, 01:11:39 am »
You could add "git rev-parse HEAD" and that will print out the current git commit then just append that to the build_log.txt.

Code: [Select]
echo "build git-sha: $(git rev-parse HEAD)" >> build_log.txt
Currently I'm just going back one build at a time to see when the seg fault started happening.  Will let you know...

4
Programming / Re: Problems compiling lastest on Mac OS X 10.8.5
« on: December 21, 2013, 11:02:19 pm »
Hey grrussel, thanks for the help. Using the commands above I was able to compile, but when I try to run ../bin/openxcom I'm getting a segmentation fault. Probably the same as this bug: https://openxcom.org/bugs/openxcom/issues/403

I decided to just upgrade to OSX 10.9 today since it's a free upgrade. I tried grabbing the latest compiled macosx version from https://bitbucket.org/grrussel/openxcomosx/src, but it also throws a segmentation fault on startup. Are you able to run it?  I'll try going back a few versions to see if they run.

How do I find out which git-sha the builds on openxcomosx are built from?

5
Programming / Problems compiling lastest on Mac OS X 10.8.5
« on: December 20, 2013, 06:41:30 pm »
Hey guys, I'm having some issues getting latest (git-sha ba73a7b) to compile on MacOS 10.8.5.

I ran the normal install steps through homebrew:

Code: [Select]
brew install sdl sdl_gfx sdl_mixer sdl_image yaml-cpp
cd ~/OpenXcom/src && make -f Makefile.gcc-pch -j 4

Compile initially failed because of the yaml-cpp version. It appears you can use the latest yaml-cpp version now so I didn't install 0.3 like this post suggested. After I fixed that and recompiled, I got the following at the very end:

Code: [Select]
ld: library not found for -lGL
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [../bin/openxcom] Error 1

I also tried to apply the OSX_kludge.patch but that failed.  I think it's out of date:

Code: [Select]
$ git apply OSX_kludge.patch
error: patch failed: src/pch.h:1
error: src/pch.h: patch does not apply

Looking at the OSX_kludge.patch there were some changes in the makefile so I'll play around with that. Otherwise anyone had this problem? Any suggestions?

Thanks

Pages: [1]