Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 16 of 16
Like Tree1Likes
No worries. You have a 64bit system, but this usburn explicitly asks to compile for 32bit ( in the makefile: g++ -m32 ). It is possible to compile and run ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,392

    No worries.

    You have a 64bit system, but this usburn explicitly asks to compile for 32bit ( in the makefile: g++ -m32 ).
    It is possible to compile and run 32bit binaries on a 64bit system, but you need the 32bit include files and libraries.
    There seems to be a package "glibc-devel-32bit-devel" for suse.
    You must always face the curtain with a bow.

  2. #12
    Just Joined!
    Join Date
    Jul 2012
    Posts
    8
    Thanks, but there are things to install ...

    g++ usburn.c programmer_usb.c database.c hexfile.c calibration.c firmware.c test.c -m32 -I/usr/local/include -L. -lnsl -lm -lc -L/usr/local/lib -lusb -o usburn
    /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../libusb.so when searching for -lusb
    /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/libusb.so when searching for -lusb
    /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lusb
    /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-suse-linux/4.6/libstdc++.so when searching for -lstdc++
    /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-suse-linux/4.6/libstdc++.a when searching for -lstdc++
    /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lstdc++
    collect2: ld returned 1 exit status
    make: *** [all] Error 1
    Everything works when I changed to "-m64"! Thanks so much for the help!

  3. #13
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,392
    Hmm, my C is not good enough to judge, if usburn works as a 64bit executeable.
    It might be a good idea to ask the developer.
    Or at least start burning with the least expensive PICs
    jorexa likes this.
    You must always face the curtain with a bow.

  4. #14
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,392
    If all else fails, you can install a 32bit linux.
    Maybe for the only purpose of burning PICs.
    It can be a VM, because e.g. virtualbox supports passthrough of usb devices from the host to a VM.
    You must always face the curtain with a bow.

  5. #15
    Just Joined!
    Join Date
    Jul 2012
    Posts
    8
    I burned PICs on 64-bit Ubuntu successfully ...

  6. #16
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,392
    Good. But there are differences.
    Iirc: int, long and pointers are 32bit datatypes on a 32bit system and 64bit datatypes on a 64bit system.

    Which means there might be cases in the programs workflow, where usburn doesnt work or produces unwanted results.
    To prove or disprove that, one needs to understand the source.
    Hence: A mail to the dev.
    You must always face the curtain with a bow.

Page 2 of 2 FirstFirst 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •