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

issue compiling on Linux #16

Open
chriscamacho opened this issue Nov 1, 2019 · 10 comments
Open

issue compiling on Linux #16

chriscamacho opened this issue Nov 1, 2019 · 10 comments

Comments

@chriscamacho
Copy link

While adjusting some paths in the makefile is almost expected! I did have to modify the source to get it to compile at around line 824 of ujprog.c

    //#ifdef __linux__
    //    usb_reset((void *) fc.usb_dev);
    //#else
         res = ftdi_usb_close(&fc);

in the makefile I had to comment out the arch define (the libs being in /usr/lib)
I had to add include directories

     -I/usr/include/libftdi1 -I/usr/include/libusb-1.0

additionally I had to change the order of libs and add a few

    FTLIB = /usr/lib/${ARCHNAME}/libftdi1.a
    USBLIB = /usr/lib/${ARCHNAME}/libusb-1.0.a
    
    ujprog:	${SRCS}
    	${CC} ${CFLAGS} ${SRCS} -o ujprog ${FTLIB} ${USBLIB} -lpthread -ludev 

while specific lib name and path oddities are distro specific, maybe the source modification needs review ?

Hope this helps

@chriscamacho
Copy link
Author

oh sorry forgot to mention, I'm running Void Linux on x86_64

@emard
Copy link
Member

emard commented Nov 1, 2019 via email

@chriscamacho
Copy link
Author

I'm still waiting on the new batch of ulx3s and was just building tools ready for it
Once I have confirmed that the tool works I will close this issue after confirming such
Out of interest - what version of Debian?

@emard
Copy link
Member

emard commented Nov 1, 2019 via email

@chriscamacho
Copy link
Author

thanks

@emard
Copy link
Member

emard commented Nov 1, 2019 via email

@chriscamacho
Copy link
Author

I'm waiting on crowd supply and in touch with Goran

@emard
Copy link
Member

emard commented Nov 1, 2019 via email

@chriscamacho
Copy link
Author

can you do me a favour and pop your email address in this form http://bedroomcoders.co.uk/captcha/ I think we might both benefit by sharing ideas / solutions with the ulx3s...

@emard
Copy link
Member

emard commented Nov 2, 2019 via email

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

2 participants