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

mac build doesn't work #35

Open
vichug opened this issue Apr 10, 2017 · 5 comments
Open

mac build doesn't work #35

vichug opened this issue Apr 10, 2017 · 5 comments

Comments

@vichug
Copy link

vichug commented Apr 10, 2017

it says "could not open because of a problem" (yes, very specific) but reason was image not found :

MacBook-Pro-de-Vic:~ vic_hug$ /Applications/LiberationCircuit-1.0.app/Contents/MacOS/LiberationCircuit ; exit;
dyld: Library not loaded: /usr/local/opt/freetype/lib/libfreetype.6.dylib
  Referenced from: /Applications/LiberationCircuit-1.0.app/Contents/MacOS/LiberationCircuit
  Reason: image not found
Trace/BPT trap: 5
logout

osx is 10.10.5, only tried the compiled build form itch.io

@linleyh
Copy link
Owner

linleyh commented Apr 13, 2017

I'm sorry, but I don't know anything about the Mac build. Someone on the allegro forum (at https://www.allegro.cc/forums/thread/616791/0) made it.

@gisborne
Copy link

gisborne commented Jan 2, 2023

FWIW, the offered Mac download doesn't work.

Trying to build following the instructions, I get:

do    bin/libcirc
do      ../src/g_game
do        c_compile.o
do          precompile.h.gch
do            precompile.o
precompile.h:1:10: fatal error: 'allegro5/allegro_acodec.h' file not found
#include "allegro5/allegro_acodec.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
do:           precompile.o: got exit code 1
do:         precompile.h.gch: got exit code 1
do:       c_compile.o: got exit code 1
do:     ../src/g_game: got exit code 1

@pedro-w
Copy link

pedro-w commented Jan 2, 2023

I just tried it using the "Compiling on macOS" section of the README.md file and I did not see that error.

Compiling on macOS

To build on macOS (Sierra (10.12) with latest Homebrew and Xcode)

git clone https://github.com/linleyh/liberation-circuit.git 
cd liberation-circuit 
brew install allegro 
./do 
cd bin 
libcirc 

Have you got homebrew and Allegro installed? (what does brew info allegro give you?)

Also by the way @linleyh on the last line it needs ./libcirc to run an executable in the current directory

@gisborne
Copy link

gisborne commented Jan 2, 2023 via email

@pedro-w
Copy link

pedro-w commented Jan 3, 2023

OK, as you see it can't find the allegro headers (allegro5/allegro_acodec.h being the first one that stops it)

  1. Has homebrew actually installed them - on my system they're in /usr/local/include/allegro5
  2. Also try pkg-config --cflags allegro-5
  3. Is clang looking in that place? (try echo|cc -E -v - and look for /usr/local/include in the list which starts '#include <...> search starts here:'

Alternatively try the Makefile - it will probably fail at the link stage as it's missing allegro_main-5 from the list of packages but if gets further than the do-file, then it's easily fixable.

What I get on my mac

% pkg-config --cflags allegro-5       
-I/usr/local/include
% echo|cc -E -v  -                               
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" blah blah  -o - -x c -
clang -cc1 version 12.0.0 (clang-1200.0.32.29) default target x86_64-apple-darwin19.6.0
ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/local/include"
ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/Library/Frameworks"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks (framework directory)
End of search list.
# 1 "<stdin>"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 366 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "<stdin>" 2

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