Results 1 to 5 of 5

Thread: difference between windows code and linux

  1. #1
    Join Date
    Dec 2007
    Posts
    28
    Thanks
    18
    Qt products
    Qt4
    Platforms
    Windows

    Default difference between windows code and linux

    Hi

    i wrote a working program in Windows, few days ago i wanted to compile my program in linux, so i did it... but not everything work properly, toolbar menu dosent work and console showes me error like this
    Qt Code:
    1. Object::disconnect: No such signal klient::iconSizeChanged(QSize)
    2. Object::disconnect: (sender name: 'klientClass')
    3. Object::disconnect: (receiver name: 'toolBar')
    4. Object::disconnect: No such signal klient::toolButtonStyleChanged(Qt::ToolButtonStyle)
    5. Object::disconnect: (sender name: 'klientClass')
    6. Object::disconnect: (receiver name: 'toolBar')
    7. Object::connect: No such signal klient::iconSizeChanged(QSize)
    8. Object::connect: (sender name: 'klientClass')
    9. Object::connect: (receiver name: 'toolBar')
    10. Object::connect: No such signal klient::toolButtonStyleChanged(Qt::ToolButtonStyle)
    11. Object::connect: (sender name: 'klientClass')
    12. Object::connect: (receiver name: 'toolBar')
    13. Object::connect: No such slot klient::Mustawienia()
    14. Object::connect: (receiver name: 'klientClass')
    15. Object::connect: No such slot klient::Mrejestracja()
    16. Object::connect: (receiver name: 'klientClass')
    To copy to clipboard, switch view to plain text mode 


    It is function wich is creating a actions for toolbar menu
    Qt Code:
    1. void klient::ustawakcje()
    2. {
    3.  
    4. Austawienia = new QAction(tr("&Ustawienia"), this);
    5. Austawienia->setShortcut(tr("Ctrl+S"));
    6. Austawienia->setStatusTip(tr("Comunicator settings"));
    7. connect(Austawienia, SIGNAL(triggered()), this, SLOT(Mustawienia()));
    8.  
    9. Arejestracja = new QAction(tr("&Rejestracja"),this);
    10. Arejestracja->setShortcut(tr("Ctrl+R"));
    11. Arejestracja->setStatusTip(tr("Register new account"));
    12. connect(Arejestracja, SIGNAL(triggered()), this, SLOT(Mrejestracja()));
    13.  
    14. menuKomunikator->addAction(Austawienia);
    15. menuKomunikator->addAction(Arejestracja);
    16.  
    17.  
    18.  
    19.  
    20. }
    To copy to clipboard, switch view to plain text mode 



    So i think thath there are diffrence between windows and linux...
    I have question, how can i fix it?
    Best regards
    Last edited by Zergi; 9th January 2008 at 15:06. Reason: updated contents

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: difference between windows code and linux

    How did you compile it under Linux? Do you use qmake?

  3. #3
    Join Date
    Dec 2007
    Posts
    28
    Thanks
    18
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: difference between windows code and linux

    i used eclipse to compile it

    make
    make -f Makefile.Release
    make[1]: Wejście do katalogu `/home/zergi/Programy/klient'
    g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.3.3/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.3.3/include/QtCore -I/usr/local/Trolltech/Qt-4.3.3/include/QtCore -I/usr/local/Trolltech/Qt-4.3.3/include/QtNetwork -I/usr/local/Trolltech/Qt-4.3.3/include/QtNetwork -I/usr/local/Trolltech/Qt-4.3.3/include/QtGui -I/usr/local/Trolltech/Qt-4.3.3/include/QtGui -I/usr/local/Trolltech/Qt-4.3.3/include -Irelease -I. -o release/klient.o klient.cpp
    g++ -Wl,-rpath,/usr/local/Trolltech/Qt-4.3.3/lib -o klient release/main.o release/klient.o release/moc_klient.o -L/usr/local/Trolltech/Qt-4.3.3/lib -lQtGui -L/usr/local/Trolltech/Qt-4.3.3/lib -L/usr/X11R6/lib -lSM -lICE -lXi -lXrender -lXrandr -lXfixes -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lQtNetwork -lQtCore -lz -lm -lrt -ldl -lpthread
    make[1]: Opuszczenie katalogu `/home/zergi/Programy/klient'
    Hmm i dont see here qmake ;p, so i think i compiled it without qmake
    Last edited by jacek; 9th January 2008 at 15:18. Reason: changed [code] to [quote]

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: difference between windows code and linux

    Is there a chance that you have copied moc_klient.cpp along with your sources? Or was it generated on Linux box? Nevertheless, I would suggest doing "make clean && make".

  5. The following user says thank you to jacek for this useful post:

    Zergi (9th January 2008)

  6. #5
    Join Date
    Dec 2007
    Posts
    28
    Thanks
    18
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: difference between windows code and linux

    Yes it was a reason ;d Big thx for help

    Best regards

Similar Threads

  1. C code linux to windows
    By deekayt in forum General Discussion
    Replies: 1
    Last Post: 19th October 2006, 22:17

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.