[Windows Mobile Software Development] supermorph:
solution if u have ubuntu 64bit (i have jaunty release)

i was finding issues trying to compile the sources or even find 32bit libraries

it was saying ia32-libs was already installed

then i found on some other random site for something else to do with gcc,

if u read and do this in a konsole/terminal it should work:

root@Tower1222:/home/supermorph/Desktop/HTCFlasher/src# apt-get install lib32z1-dev

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following extra packages will be installed:

cpp-4.3 g++-4.3 gcc-4.3 gcc-4.3-base gcc-4.3-multilib gcc-multilib lib32gcc1

lib32gomp1 lib32stdc++6 libc6-dev-i386 libgcc1 libgomp1 libstdc++6

libstdc++6-4.3-dev zlib1g-dev

Suggested packages:

gcc-4.3-locales g++-4.3-multilib gcc-4.3-doc libstdc++6-4.3-dbg

libmudflap0-4.3-dev libgcc1-dbg libgomp1-dbg libmudflap0-dbg lib32mudflap0

libstdc++6-4.3-doc

The following NEW packages will be installed

gcc-4.3-multilib gcc-multilib lib32gomp1 lib32z1-dev libc6-dev-i386

zlib1g-dev

The following packages will be upgraded:

cpp-4.3 g++-4.3 gcc-4.3 gcc-4.3-base lib32gcc1 lib32stdc++6 libgcc1 libgomp1

libstdc++6 libstdc++6-4.3-dev

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Need to get 17.4MB of archives.

After this operation, 9667kB of additional disk space will be used.

Do you want to continue [Y/n]? y (press y then return to continue here)

Get: 1 http://gb.archive.ubuntu.com jaunty/main libgomp1 4.3.3-5ubuntu2 [15.6kB]

Get: 2 http://gb.archive.ubuntu.com jaunty/main gcc-4.3-base 4.3.3-5ubuntu2 [107kB]

Get: 3 http://gb.archive.ubuntu.com jaunty/main libstdc++6 4.3.3-5ubuntu2 [336kB]

Get: 4 http://gb.archive.ubuntu.com jaunty/main lib32stdc++6 4.3.3-5ubuntu2 [334kB]

Get: 5 http://gb.archive.ubuntu.com jaunty/main cpp-4.3 4.3.3-5ubuntu2 [3391kB]

Get: 6 http://gb.archive.ubuntu.com jaunty/main gcc-4.3 4.3.3-5ubuntu2 [2799kB]

Get: 7 http://gb.archive.ubuntu.com jaunty/main g++-4.3 4.3.3-5ubuntu2 [4825kB]

Get: 8 http://gb.archive.ubuntu.com jaunty/main libstdc++6-4.3-dev 4.3.3-5ubuntu2 [1394kB]

Get: 9 http://gb.archive.ubuntu.com jaunty/main lib32gcc1 1:4.3.3-5ubuntu2 [26.1kB]

Get: 10 http://gb.archive.ubuntu.com jaunty/main libgcc1 1:4.3.3-5ubuntu2 [44.6kB]

Get: 11 http://gb.archive.ubuntu.com jaunty/main libc6-dev-i386 2.9-4ubuntu2 [1552kB]

Get: 12 http://gb.archive.ubuntu.com jaunty/main lib32gomp1 4.3.3-5ubuntu2 [13.7kB]

Get: 13 http://gb.archive.ubuntu.com jaunty/main gcc-4.3-multilib 4.3.3-5ubuntu2 [2325kB]

Get: 14 http://gb.archive.ubuntu.com jaunty/main gcc-multilib 4:4.3.2-2ubuntu1 [866B]

Get: 15 http://gb.archive.ubuntu.com jaunty/main zlib1g-dev 1:1.2.3.3.dfsg-12ubuntu1 [166kB]

Get: 16 http://gb.archive.ubuntu.com jaunty/main lib32z1-dev 1:1.2.3.3.dfsg-12ubuntu1 [74.1kB]

Fetched 17.4MB in 7s (2333kB/s)

(Reading database ... 122651 files and directories currently installed.)

Preparing to replace libgomp1 4.3.3-5ubuntu1 (using .../libgomp1_4.3.3-5ubuntu2_amd64.deb) ...

Unpacking replacement libgomp1 ...

Preparing to replace gcc-4.3-base 4.3.3-5ubuntu1 (using .../gcc-4.3-base_4.3.3-5ubuntu2_amd64.deb) ...

Unpacking replacement gcc-4.3-base ...

Setting up gcc-4.3-base (4.3.3-5ubuntu2) ...

(Reading database ... 122651 files and directories currently installed.)

Preparing to replace libstdc++6 4.3.3-5ubuntu1 (using .../libstdc++6_4.3.3-5ubuntu2_amd64.deb) ...

Unpacking replacement libstdc++6 ...

Setting up libstdc++6 (4.3.3-5ubuntu2) ...

Processing triggers for libc6 ...

ldconfig deferred processing now taking place

(Reading database ... 122651 files and directories currently installed.)

Preparing to replace lib32stdc++6 4.3.3-5ubuntu1 (using .../lib32stdc++6_4.3.3-5ubuntu2_amd64.deb) ...

Unpacking replacement lib32stdc++6 ...

Preparing to replace cpp-4.3 4.3.3-5ubuntu1 (using .../cpp-4.3_4.3.3-5ubuntu2_amd64.deb) ...

Unpacking replacement cpp-4.3 ...

Preparing to replace gcc-4.3 4.3.3-5ubuntu1 (using .../gcc-4.3_4.3.3-5ubuntu2_amd64.deb) ...

Unpacking replacement gcc-4.3 ...

Preparing to replace g++-4.3 4.3.3-5ubuntu1 (using .../g++-4.3_4.3.3-5ubuntu2_amd64.deb) ...

Unpacking replacement g++-4.3 ...

Preparing to replace libstdc++6-4.3-dev 4.3.3-5ubuntu1 (using .../libstdc++6-4.3-dev_4.3.3-5ubuntu2_amd64.deb) ...

Unpacking replacement libstdc++6-4.3-dev ...

Preparing to replace lib32gcc1 1:4.3.3-5ubuntu1 (using .../lib32gcc1_1%3a4.3.3-5ubuntu2_amd64.deb) ...

Unpacking replacement lib32gcc1 ...

Preparing to replace libgcc1 1:4.3.3-5ubuntu1 (using .../libgcc1_1%3a4.3.3-5ubuntu2_amd64.deb) ...

Unpacking replacement libgcc1 ...

Processing triggers for man-db ...

Setting up libgcc1 (1:4.3.3-5ubuntu2) ...

Processing triggers for libc6 ...

ldconfig deferred processing now taking place

Selecting previously deselected package libc6-dev-i386.

(Reading database ... 122651 files and directories currently installed.)

Unpacking libc6-dev-i386 (from .../libc6-dev-i386_2.9-4ubuntu2_amd64.deb) ...

Selecting previously deselected package lib32gomp1.

Unpacking lib32gomp1 (from .../lib32gomp1_4.3.3-5ubuntu2_amd64.deb) ...

Selecting previously deselected package gcc-4.3-multilib.

Unpacking gcc-4.3-multilib (from .../gcc-4.3-multilib_4.3.3-5ubuntu2_amd64.deb) ...

Selecting previously deselected package gcc-multilib.

Unpacking gcc-multilib (from .../gcc-multilib_4%3a4.3.2-2ubuntu1_amd64.deb) ...

Selecting previously deselected package zlib1g-dev.

Unpacking zlib1g-dev (from .../zlib1g-dev_1%3a1.2.3.3.dfsg-12ubuntu1_amd64.deb) ...

Selecting previously deselected package lib32z1-dev.

Unpacking lib32z1-dev (from .../lib32z1-dev_1%3a1.2.3.3.dfsg-12ubuntu1_amd64.deb) ...

Processing triggers for man-db ...

Setting up libgomp1 (4.3.3-5ubuntu2) ...

Setting up lib32gcc1 (1:4.3.3-5ubuntu2) ...

Setting up lib32stdc++6 (4.3.3-5ubuntu2) ...

Setting up cpp-4.3 (4.3.3-5ubuntu2) ...

Setting up gcc-4.3 (4.3.3-5ubuntu2) ...

Setting up libc6-dev-i386 (2.9-4ubuntu2) ...

Setting up lib32gomp1 (4.3.3-5ubuntu2) ...

Setting up gcc-4.3-multilib (4.3.3-5ubuntu2) ...

Setting up gcc-multilib (4:4.3.2-2ubuntu1) ...

Setting up zlib1g-dev (1:1.2.3.3.dfsg-12ubuntu1) ...

Setting up lib32z1-dev (1:1.2.3.3.dfsg-12ubuntu1) ...

Setting up libstdc++6-4.3-dev (4.3.3-5ubuntu2) ...

Setting up g++-4.3 (4.3.3-5ubuntu2) ...

Processing triggers for libc6 ...

ldconfig deferred processing now taking place

(i was already in the correct folder before the installation of those libraries)

root@Tower1222:/home/supermorph/Desktop/HTCFlasher/src# make

cc -Wall -m32 -c -o nbhextract.o nbhextract.c

cc -Wall -m32 -c -o utils.o utils.c

cc -Wall -m32 -c -o io.o io.c

cc -Wall -m32 -c -o crc32.o crc32.c

cc -Wall -m32 -c -o flasher.o flasher.c

cc -Wall -m32 -c -o info.o info.c

cc -Wall -m32 -c -o prompt.o prompt.c

cc -Wall -m32 -c -o nbh.o nbh.c

cc -Wall -m32 -c -o main.o main.c

cc -Wall -m32 -m32 nbhextract.o utils.o io.o crc32.o flasher.o info.o prompt.o nbh.o main.o -o HTCFlasher

cc -Wall -m32 -m32 nbhextract.o nbh.o yang.c -o yang

root@Tower1222:/home/supermorph/Desktop/HTCFlasher/src# make install (force of habit, im used to some things needing this lol)

make: *** No rule to make target `install'. Stop.

(it's finished the make process)

root@Tower1222:/home/supermorph/Desktop/HTCFlasher/src# ls

crc32.c HTCFlasher io.o Makefile nbh.h utils.c

crc32.o info.c main.c nbh.c nbh.o utils.o

flasher.c info.o main.h nbhextract.c prompt.c yang

flasher.o io.c main.o nbhextract.o prompt.o yang.c

(after checking contents to make sure it worked)

root@Tower1222:/home/supermorph/Desktop/HTCFlasher/src# ./HTCFlasher

=== HTCflasher v3.1

=== Open source RUU for HTC devices

=== (c) 2007-2008 Pau Oliva Fora

Usage: HTCFlasher [options]

options:

-F [filename] flash NBH file

-D [device] use another serial device (default: /dev/ttyUSB0)

-i get device info

-p enter serial prompt (minicom/mtty like)

-v verbose mode

-h shows this help message

(i ran HTCFlasher tool)

note for the new people the ./HTCFlasher issues theoretically the same idea as double click in windows or basically if u typed a command in dos and pressed return (it executes the file, which in this case is HTCFlasher)

oh and before people ask, i put this here and not the google code area as i could imagine people asking more things here than there about the library compatibility issues, (in theory saving pof some time :D)

it is a shame it doesnt support my wizards (g4 & g3) but i do have a hermes

only thing with that is i dont want to change rom as the currently flashed one i have gives insane battery results compared to stock, cannot remember who made it though lol sorry in advance incase someone thinks to ask

kind regards,

supermorph :cool:

p.s. this is for the command line files in the SRC folder

you can run make in the ../ folder which i forgot to check, before doing this, my very bad :D but is the gui files already compiled?

it might of been me doing the make THEN checking the folder.

but either way it works a treat.

p.s.s

pof, could u make the makefile put the compiled files into the "/usr/" folders via a make install , and a makefile uninstaller please?

(for the command line/gui apps i mean :D)

i wanted to ask you this as i dont know how to convert the makefiles to this,

and it would simplify everything and make it all neat and tidy so ppl can remove the source folders etc etc :-)