-
Notifications
You must be signed in to change notification settings - Fork 15
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
OSX #17
Comments
This seems like the real issue... you didn't install Allegro properly. What command are you calling to install it? |
I didn't run 'make' or 'make install' with any options. Here's more: make: *** [install] Error 1 |
Hmm. Could you execute:
for me? That'll list the directories the linker searches under. Perhaps your OSX version isn't searching in Additionally, maybe doing |
Joels-MacBook-Pro:Build joelcnz$ ld --verbose | grep SEARCH_DIR |
With example (and verbose): Joels-MacBook-Pro:DAllegro5 joelcnz$ ./build_example_dmd.sh -L-L/usr/local/lib |
Huh, does your dmd even work at all for simple D programs? |
Yeah, I'm using it for D programming. I'm not sure it's all there though. One kind of config library (ini all the ini ones I tried) doesn't work, it crashes. I got farther before with DAllegro. |
I now mainly use Mac now.
I don't know how to install allegro to work with DAllegro any more.
I get this:
Joels-MacBook-Pro:DAllegro5 joelcnz$ ./build_example_dmd.sh
ld: library not found for -lallegro
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--- errorlevel 1
with installing Allegro:
CMake Error at cmake_install.cmake:54 (FILE):
file INSTALL cannot copy file
"/Users/joelcnz/jpro/dpro2/OtherPeoples/allegro/include/allegro5/allegro5.h"
to "/usr/local/include/allegro5/allegro5.h".
example with the -v flag thing:
Joels-MacBook-Pro:DAllegro5 joelcnz$ vim build_example_dmd.sh
Joels-MacBook-Pro:DAllegro5 joelcnz$ ./build_example_dmd.sh
binary dmd
version v2.065
config /usr/bin/dmd.conf
parse example
importall a5test
import object (/usr/share/dmd/src/druntime/import/object.di)
import std.stdio (/usr/share/dmd/src/phobos/std/stdio.d)
import core.stdc.stdio (/usr/share/dmd/src/druntime/import/core/stdc/stdio.d)
import core.stdc.config (/usr/share/dmd/src/druntime/import/core/stdc/config.d)
import core.stdc.stddef (/usr/share/dmd/src/druntime/import/core/stdc/stddef.d)
import core.stdc.stdarg (/usr/share/dmd/src/druntime/import/core/stdc/stdarg.d)
import core.stdc.stdint (/usr/share/dmd/src/druntime/import/core/stdc/stdint.d)
import core.stdc.signal (/usr/share/dmd/src/druntime/import/core/stdc/signal.d)
import core.stdc.wchar_ (/usr/share/dmd/src/druntime/import/core/stdc/wchar_.d)
import core.stdc.time (/usr/share/dmd/src/druntime/import/core/stdc/time.d)
import std.string (/usr/share/dmd/src/phobos/std/string.d)
import core.exception (/usr/share/dmd/src/druntime/import/core/exception.d)
import core.vararg (/usr/share/dmd/src/druntime/import/core/vararg.d)
import core.stdc.stdlib (/usr/share/dmd/src/druntime/import/core/stdc/stdlib.d)
import core.stdc.string (/usr/share/dmd/src/druntime/import/core/stdc/string.d)
import std.algorithm (/usr/share/dmd/src/phobos/std/algorithm.d)
import std.functional (/usr/share/dmd/src/phobos/std/functional.d)
import std.traits (/usr/share/dmd/src/phobos/std/traits.d)
import std.typetuple (/usr/share/dmd/src/phobos/std/typetuple.d)
import std.conv (/usr/share/dmd/src/phobos/std/conv.d)
import std.array (/usr/share/dmd/src/phobos/std/array.d)
import core.memory (/usr/share/dmd/src/druntime/import/core/memory.d)
import core.bitop (/usr/share/dmd/src/druntime/import/core/bitop.d)
import std.ascii (/usr/share/dmd/src/phobos/std/ascii.d)
import std.exception (/usr/share/dmd/src/phobos/std/exception.d)
import std.c.string (/usr/share/dmd/src/phobos/std/c/string.d)
import std.range (/usr/share/dmd/src/phobos/std/range.d)
import std.typecons (/usr/share/dmd/src/phobos/std/typecons.d)
import core.stdc.errno (/usr/share/dmd/src/druntime/import/core/stdc/errno.d)
import std.uni (/usr/share/dmd/src/phobos/std/uni.d)
import std.internal.unicode_tables (/usr/share/dmd/src/phobos/std/internal/unicode_tables.d)
import std.math (/usr/share/dmd/src/phobos/std/math.d)
import core.stdc.math (/usr/share/dmd/src/druntime/import/core/stdc/math.d)
import std.utf (/usr/share/dmd/src/phobos/std/utf.d)
import std.format (/usr/share/dmd/src/phobos/std/format.d)
import std.bitmanip (/usr/share/dmd/src/phobos/std/bitmanip.d)
import std.system (/usr/share/dmd/src/phobos/std/system.d)
import std.c.stdio (/usr/share/dmd/src/phobos/std/c/stdio.d)
import std.stdiobase (/usr/share/dmd/src/phobos/std/stdiobase.d)
import core.sys.posix.fcntl (/usr/share/dmd/src/druntime/import/core/sys/posix/fcntl.d)
import core.sys.posix.config (/usr/share/dmd/src/druntime/import/core/sys/posix/config.d)
import core.sys.posix.sys.types (/usr/share/dmd/src/druntime/import/core/sys/posix/sys/types.d)
import core.sys.posix.sys.stat (/usr/share/dmd/src/druntime/import/core/sys/posix/sys/stat.d)
import core.sys.posix.time (/usr/share/dmd/src/druntime/import/core/sys/posix/time.d)
import core.sys.posix.signal (/usr/share/dmd/src/druntime/import/core/sys/posix/signal.d)
import core.sys.posix.stdio (/usr/share/dmd/src/druntime/import/core/sys/posix/stdio.d)
import allegro5.allegro (allegro5/allegro.d)
import allegro5.base (allegro5/base.d)
import allegro5.altime (allegro5/altime.d)
import allegro5.bitmap (allegro5/bitmap.d)
import allegro5.color (allegro5/color.d)
import allegro5.internal.da5 (allegro5/internal/da5.d)
import allegro5.color_ret (allegro5/color_ret.d)
import allegro5.bitmap_draw (allegro5/bitmap_draw.d)
import allegro5.bitmap_io (allegro5/bitmap_io.d)
import allegro5.bitmap_lock (allegro5/bitmap_lock.d)
import allegro5.blender (allegro5/blender.d)
import allegro5.config (allegro5/config.d)
import allegro5.file (allegro5/file.d)
import allegro5.path (allegro5/path.d)
import allegro5.utf8 (allegro5/utf8.d)
import allegro5.al_debug (allegro5/al_debug.d)
import allegro5.display (allegro5/display.d)
import allegro5.events (allegro5/events.d)
import allegro5.joystick (allegro5/joystick.d)
import allegro5.keyboard (allegro5/keyboard.d)
import allegro5.keycodes (allegro5/keycodes.d)
import allegro5.mouse (allegro5/mouse.d)
import allegro5.timer (allegro5/timer.d)
import std.stdint (/usr/share/dmd/src/phobos/std/stdint.d)
import allegro5.drawing (allegro5/drawing.d)
import allegro5.error (allegro5/error.d)
import allegro5.fixed (allegro5/fixed.d)
import allegro5.fshook (allegro5/fshook.d)
import allegro5.fullscreen_mode (allegro5/fullscreen_mode.d)
import allegro5.memory (allegro5/memory.d)
import allegro5.monitor (allegro5/monitor.d)
import allegro5.mouse_cursor (allegro5/mouse_cursor.d)
import allegro5.system (allegro5/system.d)
import core.thread (/usr/share/dmd/src/druntime/import/core/thread.di)
import core.time (/usr/share/dmd/src/druntime/import/core/time.d)
import core.sys.posix.sys.time (/usr/share/dmd/src/druntime/import/core/sys/posix/sys/time.d)
import core.sys.posix.sys.select (/usr/share/dmd/src/druntime/import/core/sys/posix/sys/select.d)
import core.sys.osx.mach.kern_return (/usr/share/dmd/src/druntime/import/core/sys/osx/mach/kern_return.d)
import core.sys.posix.unistd (/usr/share/dmd/src/druntime/import/core/sys/posix/unistd.d)
import core.sys.posix.inttypes (/usr/share/dmd/src/druntime/import/core/sys/posix/inttypes.d)
import core.stdc.inttypes (/usr/share/dmd/src/druntime/import/core/stdc/inttypes.d)
import allegro5.threads (allegro5/threads.d)
import allegro5.tls (allegro5/tls.d)
import allegro5.transformations (allegro5/transformations.d)
import allegro5.allegro_primitives (allegro5/allegro_primitives.d)
import allegro5.allegro_image (allegro5/allegro_image.d)
import allegro5.allegro_font (allegro5/allegro_font.d)
import allegro5.allegro_ttf (allegro5/allegro_ttf.d)
import allegro5.allegro_color (allegro5/allegro_color.d)
import allegro5.allegro_color_ret (allegro5/allegro_color_ret.d)
semantic a5test
library dallegro5
library allegro
library allegro_primitives
library allegro_image
library allegro_font
library allegro_ttf
library allegro_color
library allegro
import core.sys.posix.pthread (/usr/share/dmd/src/druntime/import/core/sys/posix/pthread.d)
import core.sys.posix.sched (/usr/share/dmd/src/druntime/import/core/sys/posix/sched.d)
library allegro_primitives
library allegro_image
library allegro_font
library allegro_ttf
library allegro_color
entry main example.d
semantic2 a5test
semantic3 a5test
code a5test
function D main
function a5test.main.__lambda2
function std.stdio.writefln!(string, float, float, float, float).writefln
function std.stdio.File.writefln!(char, float, float, float, float).writefln
function std.format.formattedWrite!(LockingTextWriter, char, float, float, float, float).formattedWrite
function std.format.formattedWrite!(LockingTextWriter, char, float, float, float, float).formattedWrite.__lambda8
function std.format.formattedWrite!(LockingTextWriter, char, float, float, float, float).formattedWrite.__lambda9
function std.format.formattedWrite!(LockingTextWriter, char, float, float, float, float).formattedWrite.__lambda10
function std.format.formattedWrite!(LockingTextWriter, char, float, float, float, float).formattedWrite.__lambda11
function std.format.formattedWrite!(LockingTextWriter, char, float, float, float, float).formattedWrite.__lambda12
function std.format.formattedWrite!(LockingTextWriter, char, float, float, float, float).formattedWrite.__lambda13
function std.format.formattedWrite!(LockingTextWriter, char, float, float, float, float).formattedWrite.__lambda14
function std.format.formattedWrite!(LockingTextWriter, char, float, float, float, float).formattedWrite.__lambda15
function std.format.formattedWrite!(LockingTextWriter, char, float, float, float, float).formattedWrite.__dgliteral16
function std.format.formatGeneric!(LockingTextWriter, float, char).formatGeneric
function std.format.formatValue!(LockingTextWriter, float, char).formatValue
function std.format.formatValue!(LockingTextWriter, float, char).formatValue.__lambda4
function std.format.formatValue!(LockingTextWriter, float, char).formatValue.__dgliteral5
function std.format.formatValue!(LockingTextWriter, float, char).formatValue.__dgliteral6
function std.range.put!(LockingTextWriter, const(char)).put
function std.range.doPut!(LockingTextWriter, const(char)).doPut
function std.stdio.File.LockingTextWriter.put!(const(char)).put
function std.array.popFront!(immutable(char)).popFront
function std.utf.decode!string.decode
function std.utf.decodeImpl!(true, string).decodeImpl
function std.utf.decodeImpl!(true, string).decodeImpl.invalidUTF
function std.utf.decodeImpl!(true, string).decodeImpl.outOfBounds
function std.utf.decodeImpl!(true, string).decodeImpl.exception!string.exception
function std.array.save!(immutable(char)).save
function std.array.popBack!(immutable(char)).popBack
function std.utf.strideBack!string.strideBack
function std.array.back!(immutable(char)).back
function std.algorithm.find!("a == b", string, char).find
function std.algorithm.find!("a == b", string, char).find.trustedMemchr
function std.algorithm.find!("a == b", string, char).find.trustedFindRR
function std.utf.canSearchInCodeUnits!char.canSearchInCodeUnits
function std.array.popFront!char.popFront
function std.utf.decode!(char[]).decode
function std.utf.decodeImpl!(true, char[]).decodeImpl
function std.utf.decodeImpl!(true, char[]).decodeImpl.invalidUTF
function std.utf.decodeImpl!(true, char[]).decodeImpl.outOfBounds
function std.utf.decodeImpl!(true, char[]).decodeImpl.exception!(char[]).exception
function std.array.save!char.save
function std.functional.binaryFun!("a == b").binaryFun!(dchar, dchar).binaryFun
function std.algorithm.find!("a == b", string, char[]).find
function std.array.empty!ubyte.empty
function std.array.popFront!ubyte.popFront
function std.array.front!ubyte.front
function std.array.save!ubyte.save
function std.functional.binaryFun!("a == b").binaryFun!(ubyte, ubyte).binaryFun
function std.array.popBack!ubyte.popBack
function std.array.back!ubyte.back
function std.algorithm.find!("a == b", ubyte[], ubyte[]).find
function std.range.walkLength!(ubyte[]).walkLength
function std.algorithm.startsWith!("a == b", ubyte[], ubyte[]).startsWith
function std.range.put!(LockingTextWriter, char[]).put
function std.range.doPut!(LockingTextWriter, char[]).doPut
function std.stdio.File.LockingTextWriter.put!(char[]).put
function std.stdio.File.LockingTextWriter.put!(char[]).put.__dgliteral2
function std.stdio.File.LockingTextWriter.put!(char[]).put.__foreachbody3
function std.exception.errnoEnforce!(int, "/usr/share/dmd/src/phobos/std/stdio.d", 1940LU).errnoEnforce
function std.stdio.File.LockingTextWriter.put!dchar.put
function std.format.FormatSpec!char.FormatSpec.writeUpToNextSpec!(LockingTextWriter).writeUpToNextSpec
function std.format.FormatSpec!char.FormatSpec.writeUpToNextSpec!(LockingTextWriter).writeUpToNextSpec.__dgliteral2
function std.range.put!(LockingTextWriter, const(char)[]).put
function std.range.doPut!(LockingTextWriter, const(char)[]).doPut
function std.utf.decode!(const(char)[]).decode
function std.utf.decodeImpl!(true, const(char)[]).decodeImpl
function std.utf.decodeImpl!(true, const(char)[]).decodeImpl.invalidUTF
function std.utf.decodeImpl!(true, const(char)[]).decodeImpl.outOfBounds
function std.utf.decodeImpl!(true, const(char)[]).decodeImpl.exception!(const(char)[]).exception
function std.stdio.File.LockingTextWriter.put!(const(char)[]).put
function std.stdio.File.LockingTextWriter.put!(const(char)[]).put.__dgliteral2
function std.stdio.File.LockingTextWriter.put!(const(char)[]).put.__foreachbody3
function std.format.getNthInt!(float, float, float, float).getNthInt
function std.format.getNthInt!(float, float, float).getNthInt
function std.format.getNthInt!(float, float).getNthInt
function std.format.getNthInt!(float).getNthInt
function std.format.getNthInt!().getNthInt
function std.conv.to!int.to!(int).to
function std.conv.toImpl!(int, int).toImpl
function std.format.formatNth!(LockingTextWriter, char, float, float, float, float).formatNth
function std.format.formatNth!(LockingTextWriter, char, float, float, float, float).formatNth.gencode!4LU.gencode
function std.conv.to!string.to!(ulong).to
function std.conv.toImpl!(string, ulong).toImpl
function std.conv.toImpl!(string, ulong).toImpl
function std.conv.toImpl!(string, ulong).toImpl.__dgliteral4
function std.conv.toImpl!(string, ulong).toImpl.toStringRadixConvert!(25LU, 10, true).toStringRadixConvert
function std.conv.unsigned!ulong.unsigned
function std.conv.toImpl!(string, ulong).toImpl.toStringRadixConvert!(24LU, 10).toStringRadixConvert
function std.conv.toImpl!(string, ulong).toImpl.toStringRadixConvert!(16LU, 16).toStringRadixConvert
function std.conv.toImpl!(string, ulong).toImpl.toStringRadixConvert!(64LU, 2).toStringRadixConvert
function std.conv.toImpl!(string, ulong).toImpl.toStringRadixConvert!(24LU, 8).toStringRadixConvert
function std.conv.toImpl!(string, ulong).toImpl.toStringRadixConvert!48LU.toStringRadixConvert
function std.stdio.File.LockingTextWriter.put!char.put
gcc example.o -o example -m64 -L. -L/usr/share/dmd/lib -ldallegro5 -lallegro -lallegro_primitives -lallegro_image -lallegro_font -lallegro_ttf -lallegro_color -lphobos2 -lpthread -lm
ld: library not found for -lallegro
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--- errorlevel 1
Joels-MacBook-Pro:DAllegro5 joelcnz$
The text was updated successfully, but these errors were encountered: