Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[FIX] heimdall-frontend: symbol lookup error: heimdall-frontend: undefined symbol: _Z

OP iMil

6th March 2012, 11:58 PM   |  #1  
iMil's Avatar
OP Junior Member
Flag Paris
Thanks Meter: 9
 
19 posts
Join Date:Joined: Mar 2012
More
Debian packages for heimdall-frontend from official Heimdall website fail under Debian GNU/Linux Squeeze with the following message:

Code:
heimdall-frontend: symbol lookup error: heimdall-frontend: undefined symbol: _ZN9QListData11detach_growEPii
When trying to detect the device. This is due to a missing symbol in Debian's qt4.

Here's how to rebuild the frontend using Heimdall source code:

0. Install what's needed to build qt code

Code:
$ sudo apt-get build-essential
$ sudo apt-get install qt4-qmake
$ sudo apt-get install libqt4-dev
1. Fetch heimdall sources from GitHub (sorry no link, not allowed to post them yet)

2. Uncompress the obtained source

Code:
tar zxvf Benjamin-Dobell-Heimdall-v1.3.1-0-gfbbed42.tar.gz
3. Build libpit

Code:
$ cd Benjamin-Dobell-Heimdall-fbbed42/libpit/
$ ./configure
$ make
4. Build heimdall-frontend

cd to ../heimdall-frontend/. You'll need to modify a qt4.7 incompatible function, in Source/Packaging.cpp, modify:

Code:
toMSecsSinceEpoch
to
Code:
toTime_t
And then type

Code:
make
You should now have a functionnal heimdall-frontend located in ../Linux.

And if you're too lazy to build it yourself, here's a i386 / Debian Squeeze version as an attachement

Enjoy.
Attached Files
File Type: bz2 heimdall-frontend.bz2 - [Click for QR Code] (97.1 KB, 252 views)
The Following 3 Users Say Thank You to iMil For This Useful Post: [ View ]
17th March 2012, 04:42 PM   |  #2  
davidmore's Avatar
Senior Member
Flag Venice
Thanks Meter: 606
 
323 posts
Join Date:Joined: Dec 2007
More
a great job. Thank you very much.
I recompiled heimdall-frontend after changed value in Packaging.cpp and all works fine.
You are a very big linux programmer :)
Last edited by davidmore; 17th March 2012 at 04:47 PM.
10th April 2012, 03:07 AM   |  #3  
Junior Member
Flag Atlanta
Thanks Meter: 0
 
4 posts
Join Date:Joined: Apr 2012
More
Thanks...
Thanks for the post on the fix; however, following the instructions, I have a snag.
Downloaded the Heimdall 1.3.1 source (GithubDOTcom/Benjamin-Dobell/Heimdall/zipball/v1.3.1)
Uncompressed it
cd heimdall/Benjamin-Dobell-Heimdall-fbbed42/libpit
./configure
make (got a libpit-1.3.a) as root
cd ../../Benjamin-Dobell-Heimdall-fbbed42/heimdall-frontend
vi Source/Packaging.cpp
:%s/toMSecsSinceEpoch/toTime_t/g
:wq

pwd
/home/user/heimdall/Benjamin-Dobell-Heimdall-fbbed42/heimdall-frontend

But I see no configure or make files for the frontend. What have I missed?

Thanks again.
16th May 2012, 11:44 PM   |  #4  
Senior Member
Thanks Meter: 36
 
361 posts
Join Date:Joined: Dec 2010
More
Very first command "sudo apt-get build-essential" Gives me the following error
E: Invalid operation build-essential

Now what?

Please help thanks

k got past that did the first step now im lost!!
Last edited by bambam1978; 17th May 2012 at 01:40 AM.
21st May 2012, 11:52 AM   |  #5  
Junior Member
Thanks Meter: 4
 
23 posts
Join Date:Joined: Dec 2011
"sudo apt-get install build-essential" and not "sudo apt-get build-essential"
The Following User Says Thank You to Skelli For This Useful Post: [ View ]
28th May 2012, 12:17 AM   |  #6  
Senior Member
Thanks Meter: 36
 
361 posts
Join Date:Joined: Dec 2010
More
Quote:
Originally Posted by Skelli

"sudo apt-get install build-essential" and not "sudo apt-get build-essential"

ok so now im stuck on #3. i instead used heimdall 1.1.1 and uncompressed that here i'll copy and paste what i have done so you can help me go from there. starting with the unpacking of heimdall 1.1.1
"$ tar zxvf Benjamin-Dobell-Heimdall-47faaf0.tar.gz
heimdall/
heimdall/source/
heimdall/m4/
heimdall/doc-pak/
heimdall/autom4te.cache/
heimdall-frontend/
heimdall-frontend/doc-pak/
heimdall-frontend/Source/
libusb-1.0/
libusb-1.0/msvc/
libusb-1.0/m4/
libusb-1.0/libusb/
libusb-1.0/examples/
libusb-1.0/doc/
libusb-1.0/autom4te.cache/
libusb-1.0/libusb/os/
Linux/
OSX/
OSX/heimdall.kext/
OSX/heimdall.kext/Contents/
Win32/
Win32/Drivers/
heimdall/postremove-pak
heimdall/postinstall-pak
heimdall/missing
heimdall/ltmain.sh
heimdall/install-sh
heimdall/heimdall.vcxproj.filters
heimdall/heimdall.vcxproj
heimdall/description-pak
heimdall/depcomp
heimdall/configure.ac
heimdall/configure
heimdall/config.sub
heimdall/config.h.in~
heimdall/config.h.in
heimdall/config.guess
heimdall/autogen.sh
heimdall/aclocal.m4
heimdall/Makefile.in
heimdall/Makefile.am
heimdall/LICENSE
heimdall/60-heimdall-galaxy-s.rules
heimdall/source/main.cpp
heimdall/source/SendFilePartResponse.h
heimdall/source/SendFilePartPacket.h
heimdall/source/ResponsePacket.h
heimdall/source/ReceiveFilePartPacket.h
heimdall/source/RebootDevicePacket.h
heimdall/source/PitFileResponse.h
heimdall/source/PitFilePacket.h
heimdall/source/Packet.h
heimdall/source/OutboundPacket.h
heimdall/source/InterfaceManager.h
heimdall/source/InterfaceManager.cpp
heimdall/source/InboundPacket.h
heimdall/source/Heimdall.h
heimdall/source/FlashPartPitFilePacket.h
heimdall/source/FlashPartFileTransferPacket.h
heimdall/source/FileTransferPacket.h
heimdall/source/EndPhoneFileTransferPacket.h
heimdall/source/EndModemFileTransferPacket.h
heimdall/source/EndFileTransferPacket.h
heimdall/source/DumpResponse.h
heimdall/source/DumpPartPitFilePacket.h
heimdall/source/DumpPartFileTransferPacket.h
heimdall/source/DeviceInfoResponse.h
heimdall/source/DeviceInfoPacket.h
heimdall/source/ControlPacket.h
heimdall/source/BridgeManager.h
heimdall/source/BridgeManager.cpp
heimdall/source/BeginDumpPacket.h
heimdall/m4/lt~obsolete.m4
heimdall/m4/ltversion.m4
heimdall/m4/ltsugar.m4
heimdall/m4/ltoptions.m4
heimdall/m4/libtool.m4
heimdall/doc-pak/README
heimdall/doc-pak/LICENSE
heimdall/autom4te.cache/traces.1
heimdall/autom4te.cache/traces.0
heimdall/autom4te.cache/requests
heimdall/autom4te.cache/output.1
heimdall/autom4te.cache/output.0
heimdall-frontend/mainwindow.ui
heimdall-frontend/mainwindow.qrc
heimdall-frontend/heimdall-frontend.vcxproj.filters
heimdall-frontend/heimdall-frontend.vcxproj
heimdall-frontend/heimdall-frontend.pro
heimdall-frontend/heimdall-frontend.pri
heimdall-frontend/description-pak
heimdall-frontend/aboutform.ui
heimdall-frontend/Qt4VSPropertySheet.props
heimdall-frontend/doc-pak/README
heimdall-frontend/doc-pak/LICENSE
heimdall-frontend/Source/mainwindow.h
heimdall-frontend/Source/mainwindow.cpp
heimdall-frontend/Source/main.cpp
heimdall-frontend/Source/aboutform.h
heimdall-frontend/Source/aboutform.cpp
libusb-1.0/missing
libusb-1.0/ltmain.sh.orig
libusb-1.0/ltmain.sh
libusb-1.0/libusb-1.0.pc.in
libusb-1.0/libtool-nls.diff
libusb-1.0/install-sh
libusb-1.0/depcomp
libusb-1.0/configure.ac
libusb-1.0/configure
libusb-1.0/config.sub
libusb-1.0/config.h.in
libusb-1.0/config.guess
libusb-1.0/compile
libusb-1.0/autogen.sh
libusb-1.0/aclocal.m4
libusb-1.0/_testing.test
libusb-1.0/_libusb_static_2010.vcxproj
libusb-1.0/_libusb_static_2008.vcxproj.filters
libusb-1.0/_libusb_static_2008.vcproj
libusb-1.0/_libusb_dll_2008.vcproj
libusb-1.0/_libusb_2008.sln
libusb-1.0/_bump.sh
libusb-1.0/_bm.sh
libusb-1.0/_bd.cmd
libusb-1.0/_README.txt
libusb-1.0/TODO
libusb-1.0/THANKS
libusb-1.0/README
libusb-1.0/PORTING
libusb-1.0/NEWS
libusb-1.0/Makefile.in
libusb-1.0/Makefile.am
libusb-1.0/INSTALL_WIN.txt
libusb-1.0/INSTALL
libusb-1.0/COPYING
libusb-1.0/AUTHORS
libusb-1.0/.gitattributes
libusb-1.0/msvc/xusb_sources
libusb-1.0/msvc/xusb.vcproj
libusb-1.0/msvc/xusb.dsp
libusb-1.0/msvc/stdint.h
libusb-1.0/msvc/lsusb_sources
libusb-1.0/msvc/lsusb.vcproj
libusb-1.0/msvc/lsusb.dsp
libusb-1.0/msvc/libusb_static.vcproj
libusb-1.0/msvc/libusb_static.dsp
libusb-1.0/msvc/libusb_sources
libusb-1.0/msvc/libusb_dll.vcproj
libusb-1.0/msvc/libusb_dll.dsp
libusb-1.0/msvc/libusb.sln
libusb-1.0/msvc/libusb.dsw
libusb-1.0/msvc/inttypes.h
libusb-1.0/msvc/ddk_build.cmd
libusb-1.0/msvc/config.h
libusb-1.0/m4/lt~obsolete.m4
libusb-1.0/m4/ltversion.m4
libusb-1.0/m4/ltsugar.m4
libusb-1.0/m4/ltoptions.m4
libusb-1.0/m4/libtool.m4
libusb-1.0/libusb/sync.c
libusb-1.0/libusb/libusbi.h
libusb-1.0/libusb/libusb_version.h.in
libusb-1.0/libusb/libusb_version.h
libusb-1.0/libusb/libusb.h
libusb-1.0/libusb/libusb-1.0.rc
libusb-1.0/libusb/libusb-1.0.def
libusb-1.0/libusb/io.c
libusb-1.0/libusb/descriptor.c
libusb-1.0/libusb/core.c
libusb-1.0/libusb/Makefile.in
libusb-1.0/libusb/Makefile.am
libusb-1.0/examples/xusb.c
libusb-1.0/examples/lsusb.c
libusb-1.0/examples/dpfp_threaded.c
libusb-1.0/examples/dpfp.c
libusb-1.0/examples/_xusb_2008.vcproj
libusb-1.0/examples/_lsusb_2008.vcproj
libusb-1.0/examples/Makefile.in
libusb-1.0/examples/Makefile.am
libusb-1.0/doc/doxygen.cfg.in
libusb-1.0/doc/Makefile.in
libusb-1.0/doc/Makefile.am
libusb-1.0/autom4te.cache/traces.1
libusb-1.0/autom4te.cache/traces.0
libusb-1.0/autom4te.cache/requests
libusb-1.0/autom4te.cache/output.1
libusb-1.0/autom4te.cache/output.0
libusb-1.0/libusb/os/windows_usb.h
libusb-1.0/libusb/os/windows_usb.c
libusb-1.0/libusb/os/threads_windows.h
libusb-1.0/libusb/os/threads_windows.c
libusb-1.0/libusb/os/threads_posix.h
libusb-1.0/libusb/os/poll_windows.h
libusb-1.0/libusb/os/poll_windows.c
libusb-1.0/libusb/os/poll_posix.h
libusb-1.0/libusb/os/linux_usbfs.h
libusb-1.0/libusb/os/linux_usbfs.c
libusb-1.0/libusb/os/darwin_usb.h
libusb-1.0/libusb/os/darwin_usb.c
Linux/README
OSX/install-kext.sh
OSX/README.txt
OSX/heimdall.kext/Contents/Info.plist
Win32/README.txt
Win32/Drivers/zadig.exe
msvc2010.sln
README
chris@chris-laptop:~$"

now what cd .. am i trying to get to to build libpit?
Here's the result of trying what I thought might work.
"chris@chris-laptop:~$ cd Benjamin-Dobell-Heimdall-47faaf0/libpit/
bash: cd: Benjamin-Dobell-Heimdall-47faaf0/libpit/: No such file or directory"


Thanks a lot for your help I really appreciate it.
Last edited by bambam1978; 28th May 2012 at 12:25 AM.
29th May 2012, 02:31 PM   |  #7  
Recognized Developer
Flag Melbourne
Thanks Meter: 561
 
842 posts
Join Date:Joined: Jul 2010
Donate to Me
Heimdall 1.1.1 doesn't have libpit, so you can safely skip that part. However, I see no valid reason why anyone would use Heimdall 1.1.1 over 1.3.1.
The Following User Says Thank You to Benjamin Dobell For This Useful Post: [ View ]
29th May 2012, 05:57 PM   |  #8  
Senior Member
Thanks Meter: 36
 
361 posts
Join Date:Joined: Dec 2010
More
Quote:
Originally Posted by Benjamin Dobell

Heimdall 1.1.1 doesn't have libpit, so you can safely skip that part. However, I see no valid reason why anyone would use Heimdall 1.1.1 over 1.3.1.

You say i can skip that part but i still get the error. I think i'll take your advice and try the 1.3.1 and see if i have better luck with that.

edit- So do I still need to build front end? If so how exactly?
Last edited by bambam1978; 29th May 2012 at 06:35 PM.
1st June 2012, 11:40 PM   |  #9  
Senior Member
Thanks Meter: 49
 
236 posts
Join Date:Joined: Jan 2011
How have you managed with version 1.3? And have you tried the pre-compiled binary in the original post? If you are still having problems, I would suggest the terminal. If you tell us which files you want to flash , we can tell you what the terminal command is.
The Following User Says Thank You to dabl8 For This Useful Post: [ View ]
2nd June 2012, 10:06 AM   |  #10  
Senior Member
Thanks Meter: 36
 
361 posts
Join Date:Joined: Dec 2010
More
Quote:
Originally Posted by dabl8

How have you managed with version 1.3? And have you tried the pre-compiled binary in the original post? If you are still having problems, I would suggest the terminal. If you tell us which files you want to flash , we can tell you what the terminal command is.

ok here is something that might make things easier, I just did a fresh install of xubuntu 10.04-2 and havent attempted to install heimdall on it yet I would ultimately like to install heimdall 1.1.1 (because im used to it) If I have to install 1.3 then so be it, but again would like 1.1.1. So if you can give me the commands for terminal to install heimdall suite 1.1.1 from scratch you will get a thanks for every post you put on here with commands. Thanks a lot for replying and I look forward to getting heimdall back on here.

THANKS!!!!
Last edited by bambam1978; 2nd June 2012 at 02:13 PM.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes