jnaulet / dloadtool

HTC One / Qualcomm DLOAD mode software
Other
13 stars 6 forks source link

when i insert 'make' in the terminal i get lots of errors? #3

Open ghost opened 7 years ago

ghost commented 7 years ago

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 2

how do i fix this?

jnaulet commented 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:

cd /usr/include

grep uint8_t * -R

ghost commented 7 years ago

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

jnaulet commented 7 years ago

You need to install the autotools. Something like sudo apt-get install autotools

ghost commented 7 years ago

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!

jnaulet commented 7 years ago

Ok package seems separated into autoconf & automake. So you need to sudo apt-get install autoconf & sudo apt-get install automake

ghost commented 7 years ago

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.

jnaulet commented 7 years ago

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

ghost commented 7 years ago

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

jnaulet commented 7 years ago

Just try the old fashioned way make clean ./configure make

Cloverk1t commented 7 years ago

screenshot from 2017-08-15 23-18-03

jnaulet commented 7 years ago

Thanks, i forgot about your patch Cloverkits ^^

ghost commented 7 years ago

do i need the automake-1.14 for it to work?

ghost commented 7 years ago

I'm getting this error still

Cloverk1t commented 7 years ago

Please read README

jnaulet commented 7 years ago

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

ghost commented 7 years ago

Because I get so many errors can you do a single command line program to make my life much easier

ghost commented 7 years ago

@jnaulet did you manage to compile it using cmake yet, did it install for you without any problems?

jnaulet commented 7 years ago

Just tried on my personal macintosh & it works fine even there:

capture d ecran 2017-08-16 a 21 47 14
ghost commented 7 years ago

Im very confused why it won't work for me?

I was using Ubuntu 17.04 when the errors happened