xc3sprog for linux

Home Forums Scarab IDE xc3sprog for linux

This topic contains 2 replies, has 2 voices, and was last updated by  jensdecker 4 years, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1091

    jensdecker
    Participant

    Hi,

    I was trying to build xc3sprog following the tutorial:
    http://www.scarabhardware.com/installing-pre-reqs-for-the-scarab-ide-xilinx-ise-and-xc3sprog/

    There is no makefile in the xc3sprog but with

    make build
    cd build
    cmake ..
    make

    I could get things starting, but fail with lots of linker errors:
    Linking CXX static library libxc3sproglib.a
    [ 56%] Built target xc3sproglib
    Scanning dependencies of target detectchain
    [ 58%] Building CXX object CMakeFiles/detectchain.dir/detectchain.cpp.o
    Linking CXX executable detectchain
    libxc3sproglib.a(ioxpc.cpp.o): In function `IOXPC::Init(cable_t*, char const*, unsigned int)’:
    /home/jens/FPGA/xc3sprog/ioxpc.cpp:150: undefined reference to `usb_close’
    /home/jens/FPGA/xc3sprog/ioxpc.cpp:166: undefined reference to `usb_close’
    libxc3sproglib.a(ioxpc.cpp.o): In function `IOXPC::xpcu_output_enable(usb_dev_handle*, int)’:
    /home/jens/FPGA/xc3sprog/ioxpc.cpp:184: undefined reference to `usb_control_msg’
    /home/jens/FPGA/xc3sprog/ioxpc.cpp:187: undefined reference to `usb_strerror’
    libxc3sproglib.a(ioxpc.cpp.o): In function `IOXPC::xpcu_request_28(usb_dev_handle*, int)’:
    /home/jens/FPGA/xc3sprog/ioxpc.cpp:199: undefined reference to `usb_control_msg’
    /home/jens/FPGA/xc3sprog/ioxpc.cpp:201: undefined reference to `usb_strerror’

    cmake gave me for the usb part:

    — checking for module ‘libusb’
    — found libusb, version 0.1.12
    — Found LIBUSB: /usr/local/lib/libusb.so

    Does someone have an idea whats wrong?

    Best Regards,
    Jens

    #1092

    roman3017
    Participant

    procedure here works for me:
    https://github.com/roman3017/miniSpartan6-plus

    #1102

    jensdecker
    Participant

    Hi Roman,

    thanks a lot for your hint! With your option -DUSE_FTD2XX=OFF and playing around with the usb header files and libraries I finally managed to build xc3sprog and run the LED counting example.

    Yours,
    Jens

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.