#78 ✓invalid
cghouly

Error compiling 0.10.0 source code in maemo armel sratchbox

Reported by cghouly | November 4th, 2009 @ 06:45 AM

I have been able to compile qTwitter 0.9.2 in maemo scratchbox and have it running on my Nokia N810.
Unfortunately when I compile version 0.10.0 it errors out during the make command.
Here is my output from the make command:

cd translations/ && make -f Makefile
make[1]: Entering directory /home/maemo/qtwitter/qtwitter-0.10.0/translations'<br/> make[1]: Leaving directory/home/maemo/qtwitter/qtwitter-0.10.0/translations'
cd twitterapi/ && make -f Makefile
make[1]: Entering directory /home/maemo/qtwitter/qtwitter-0.10.0/twitterapi'<br/> make[1]: Nothing to be done forfirst'.
make[1]: Leaving directory /home/maemo/qtwitter/qtwitter-0.10.0/twitterapi'<br/> cd qtwitter-app/ && make -f Makefile<br/> make[1]: Entering directory/home/maemo/qtwitter/qtwitter-0.10.0/qtwitter-app'
g++ -Wl,-O1 -o ../build/qtwitter ../tmp/qtwitterapp_adaptor.o ../tmp/knotification_interface.o ../tmp/oauthwizard.o ../tmp/pluginmanagerwidget.o ../tmp/account.o ../tmp/accountsmodel.o ../tmp/accountsview.o ../tmp/accountscontroller.o ../tmp/accountsdelegate.o ../tmp/newaccountdialog.o ../tmp/qticonloader.o ../tmp/main.o ../tmp/qtwitterapp.o ../tmp/mainwindow.o ../tmp/statusedit.o ../tmp/imagedownload.o ../tmp/core.o ../tmp/settings.o ../tmp/statuswidget.o ../tmp/statusmodel.o ../tmp/twitpicview.o ../tmp/twitpicengine.o ../tmp/aboutdialog.o ../tmp/statuslist.o ../tmp/userinfobutton.o ../tmp/userinfopopup.o ../tmp/dmdialog.o ../tmp/configfile.o ../tmp/themes.o ../tmp/updater.o ../tmp/welcomedialog.o ../tmp/moc_qtwitterapp_adaptor.o ../tmp/moc_knotification_interface.o ../tmp/moc_oauthwizard.o ../tmp/moc_pluginmanagerwidget.o ../tmp/moc_accountsmodel.o ../tmp/moc_accountsview.o ../tmp/moc_accountscontroller.o ../tmp/moc_newaccountdialog.o ../tmp/moc_qtwitterapp.o ../tmp/moc_mainwindow.o ../tmp/moc_statusedit.o ../tmp/moc_imagedownload.o ../tmp/moc_core.o ../tmp/moc_settings.o ../tmp/moc_statuswidget.o ../tmp/moc_statusmodel.o ../tmp/moc_statustextbrowser.o ../tmp/moc_statuslistview.o ../tmp/moc_twitpicview.o ../tmp/moc_twitpicengine.o ../tmp/moc_twitpictextedit.o ../tmp/moc_aboutdialog.o ../tmp/moc_statuslist.o ../tmp/moc_statuslist_p.o ../tmp/moc_userinfobutton.o ../tmp/moc_userinfopopup.o ../tmp/moc_dmdialog.o ../tmp/moc_updater.o ../tmp/moc_welcomedialog.o ../tmp/qrc_resources.o -L/usr/lib -L/home/maemo/qtwitter/qtwitter-0.10.0/build -Wl,-rpath,/home/maemo/qtwitter/qtwitter-0.10.0/build -ltwitterapi -lQtDBus -lQtXml -lQtGui -lQtNetwork -lQtCore -lpthread
make[1]: Leaving directory /home/maemo/qtwitter/qtwitter-0.10.0/qtwitter-app'<br/> ../tmp/statuslist.o: In functionStatusList::requestMentions()':statuslist.cpp:(.text+0x81c): undefined reference to TwitterAPI::mentions(int)' collect2: ld returned 1 exit status<br/> make[1]: *** [../build/qtwitter] Error 1<br/> make: *** [sub-qtwitter-app-make_default-ordered] Error 2

I have checked, and found the function TwitterAPI::mentions(int) in twitterapi.h. twitterapi.o is created in the tmp folder. I don't know what the problem can be.

I'm new to developing/porting and my coding is rusty. I hope this helps.

Comments and changes to this ticket

  • ayoy

    ayoy November 4th, 2009 @ 07:15 AM

    Hey,

    most probably the compiler tries to link qtwitter against libtwitterapi.so residing in system, instead of the freshly build one. Make sure that you don't have qtwitter installed in scratchbox and give it a try once more. Running make uninstall should do the job. To be sure, you can remove /usr/lib/libtwitterapi*.

  • cghouly

    cghouly November 4th, 2009 @ 07:53 AM

    Wow that was quick. I should have thought of that. FacePalm
    That did the trick. I thought it might be something easy I was missing. Thank you.

  • ayoy

    ayoy November 4th, 2009 @ 07:56 AM

    • State changed from “new” to “invalid”

    You're welcome, happy hacking :)

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

qTwitter is a simple application interacting with twitter.com social network. Aimed to be as compact as possible, still providing the needed usability. It's being developed in Qt framework for C++.

People watching this ticket

Pages