Open ghost opened 7 years ago
Usually these types are defined in stdint.h, which is included in util.h I see a warning indicating a null character at line 1 in util.h. Don't know where this comes from. Try to remove that first line in util.h & recompile.
If this doesn't work, we'll have to find where these types are defined now in ubuntu... Try this:
hmm a different error popped up this time:
cd . && automake-1.14 --gnu /bin/bash: line 4: automake-1.14: command not found Makefile:272: recipe for target 'Makefile.in' failed make: *** [Makefile.in] Error 1
You need to install the autotools. Something like sudo apt-get install autotools
linux hates me!
now im getting
ubuntu@ubuntu:~/Desktop/dloadtool$ sudo apt-get install autotools
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package autotools
im a noob at linux!
Ok package seems separated into autoconf & automake. So you need to sudo apt-get install autoconf & sudo apt-get install automake
i already have this installed according to linux:
ubuntu@ubuntu:~/Desktop/dloadtool$ sudo apt-get install autoconf & sudo apt-get install automake
[1] 12462
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Reading package lists... Done
Building dependency tree
Reading state information... Done
automake is already the newest version (1:1.15-5ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[1]+ Exit 100 sudo apt-get install autoconf
ubuntu@ubuntu:~/Desktop/dloadtool$ sudo apt-get install autoconf
Reading package lists... Done
Building dependency tree
Reading state information... Done
autoconf is already the newest version (2.69-10).
autoconf set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Sorry i didn't express myself correctly. Just type the two commands one after the other, otherwise the system will try to get the lock twice & you'll get an error
i have them both installed and i ran "sudo make" but their is a line im interested in "automake-1.14: command not found" i think i need this version of automake
Just try the old fashioned way make clean ./configure make
Thanks, i forgot about your patch Cloverkits ^^
do i need the automake-1.14 for it to work?
I'm getting this error still
Please read README
Just look at Cloverkits' screenshot & everything should go fine. I'm sorry i can't access my computer today. I'll take a look tomorrow if it still doesn't compile by using cmake
Because I get so many errors can you do a single command line program to make my life much easier
@jnaulet did you manage to compile it using cmake yet, did it install for you without any problems?
Just tried on my personal macintosh & it works fine even there:
Im very confused why it won't work for me?
I was using Ubuntu 17.04 when the errors happened
the errors are:
ubuntu@ubuntu:~/Desktop/dloadtool/build$ 'make' [ 40%] Built target cintelhex [ 40%] Building C object CMakeFiles/dloadtool.dir/util.c.o In file included from /home/ubuntu/Desktop/dloadtool/util.c:20:0: /home/ubuntu/Desktop/dloadtool/util.h:1:1: warning: null character(s) ignored
^ /home/ubuntu/Desktop/dloadtool/util.c:65:1: error: unknown type name ‘uint16_t’ uint16_t flip_endian16(uint16_t value) { ^
~~~ /home/ubuntu/Desktop/dloadtool/util.c:65:24: error: unknown type name ‘uint16_t’ uint16_t flip_endian16(uint16_t value) { ^~~~ /home/ubuntu/Desktop/dloadtool/util.c:72:1: error: unknown type name ‘uint32_t’ uint32_t flip_endian32(uint32_t value) { ^~~~ /home/ubuntu/Desktop/dloadtool/util.c:72:24: error: unknown type name ‘uint32_t’ uint32_t flip_endian32(uint32_t value) { ^~~~ /home/ubuntu/Desktop/dloadtool/util.c:81:1: error: unknown type name ‘uint64_t’ uint64_t flip_endian64(uint64_t value) { ^~~~ /home/ubuntu/Desktop/dloadtool/util.c:81:24: error: unknown type name ‘uint64_t’ uint64_t flip_endian64(uint64_t value) { ^~~~ CMakeFiles/dloadtool.dir/build.make:62: recipe for target 'CMakeFiles/dloadtool.dir/util.c.o' failed make[2]: [CMakeFiles/dloadtool.dir/util.c.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/dloadtool.dir/all' failed make[1]: [CMakeFiles/dloadtool.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2how do i fix this?