Skip to content

Compiling on a Mac #5

@mcoughlin

Description

@mcoughlin

I am attempting to compile the shared library on a Mac (I have successfully compiled on SL7 and it works great!). To do so, I added the framework flags below to the $(CC) line:

libfli.so: libfli.o $(ALLOBJ)
$(CC) -shared -o $@ $^ -framework Foundation -framework IOKit

I am still running into an error of:

gcc -shared -o libfli.so libfli.o libfli-sys.o libfli-debug.o libfli-mem.o libfli-usb.o libfli-usb-sys.o libfli-serial.o libfli-camera.o libfli-camera-parport.o libfli-camera-usb.o libfli-filter-focuser.o -framework Foundation -framework IOKit
Undefined symbols for architecture x86_64:
"_linux_bulktransfer", referenced from:
_FLIUsbBulkIO in libfli.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libfli.so] Error 1

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions