Results 1 to 1 of 1

Thread: Install QCA on Linux for Windows (mingw32 cross compiler)

  1. #1

    Default Install QCA on Linux for Windows (mingw32 cross compiler)

    Hi guys,

    Hope somebody can help me out with this:

    I have my Linux system set up with a cross compiler (mingw32) and a qt installation. For an application I now need to add on QCA support to that. I'm trying to install QCA using my cross compiler, but it always fails. Here are some more details on the steps I take and the errors I get:

    Edit:
    Forgot at first, that I also adjust some env variables:
    Qt Code:
    1. export PKG_CONFIG_LIBDIR="/usr/i486-mingw32/lib/pkgconfig"
    2. export PATH=$PATH:"/usr/i486-mingw32/bin"
    3. unset PKG_CONFIG_PATH
    To copy to clipboard, switch view to plain text mode 
    Edit END

    First I run the configure and adjust it for the cross compiler:
    Qt Code:
    1. ./configure --prefix=/usr/i486-mingw32 --bindir=/usr/i486-mingw32/bin --includedir=/usr/i486-mingw32/include --libdir=/usr/i486-mingw32/lib --datadir=/usr/i486-mingw32/share --disable-tests --release --certstore-internal
    To copy to clipboard, switch view to plain text mode 

    This works fine. It at first does complain, that:
    Qt Code:
    1. Verifying Qt 4 build environment ... ./configure: Zeile 2170: .qconftemp/conf: File or Directory not found
    To copy to clipboard, switch view to plain text mode 
    Looking at the configure file, it seems like it checks for this file and then deletes it right away. So I commented out these three lines affected by that (could that possibly be all the problem??).

    After the above adjustment, configure finishes without errors. Running make also runs quite smoothly, until it gives me a whole bunch of error messages:
    Qt Code:
    1. i486-mingw32-g++ -Wl,-s -Wl,-subsystem,console -mthreads -o release/mozcerts.exe release/main.o -L'/usr/i486-mingw32/lib' -lQtCore -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32
    2. release/main.o: In function `ZN3QCA10TextFilterD1Ev':
    3. /home/***/qca-2.0.3/tools/mozcerts/../../include/QtCrypto/qca_textfilter.h:51: undefined reference to `_imp___ZTVN3QCA10TextFilterE'
    4. /home/***/qca-2.0.3/tools/mozcerts/../../include/QtCrypto/qca_textfilter.h:51: undefined reference to `_imp___ZN3QCA6FilterD2Ev'
    5. release/main.o: In function `~TextFilter':
    6. /home/***/qca-2.0.3/tools/mozcerts/../../include/QtCrypto/qca_textfilter.h:51: undefined reference to `_imp___ZTVN3QCA10TextFilterE'
    7. /home/***/qca-2.0.3/tools/mozcerts/../../include/QtCrypto/qca_textfilter.h:51: undefined reference to `_imp___ZN3QCA6FilterD2Ev'
    8. release/main.o: In function `ZN3QCA6Base64D1Ev':
    9. /home/***/qca-2.0.3/tools/mozcerts/../../include/QtCrypto/qca_textfilter.h:232: undefined reference to `_imp___ZTVN3QCA6Base64E'
    10. release/main.o: In function `~TextFilter':
    11. /home/***/qca-2.0.3/tools/mozcerts/../../include/QtCrypto/qca_textfilter.h:51: undefined reference to `_imp___ZTVN3QCA10TextFilterE'
    12. /home/***/qca-2.0.3/tools/mozcerts/../../include/QtCrypto/qca_textfilter.h:51: undefined reference to `_imp___ZN3QCA6FilterD2Ev'
    13. /home/***/qca-2.0.3/tools/mozcerts/../../include/QtCrypto/qca_textfilter.h:51: undefined reference to `_imp___ZTVN3QCA10TextFilterE'
    14. /home/***/qca-2.0.3/tools/mozcerts/../../include/QtCrypto/qca_textfilter.h:51: undefined reference to `_imp___ZN3QCA6FilterD2Ev'
    15. release/main.o: In function `main':
    16. /home/***/qca-2.0.3/tools/mozcerts/main.cpp:32: undefined reference to `_imp___ZN3QCA11InitializerC1ENS_10MemoryModeEi'
    17. /home/***/qca-2.0.3/tools/mozcerts/main.cpp:116: undefined reference to `_imp___ZN3QCA11InitializerD1Ev'
    18. /home/***/qca-2.0.3/tools/mozcerts/main.cpp:105: undefined reference to `_imp___ZN3QCA6Base64C1ENS_9DirectionE'
    19. /home/***/qca-2.0.3/tools/mozcerts/main.cpp:106: undefined reference to `_imp___ZN3QCA6Base6420setLineBreaksEnabledEb'
    20. /home/***/qca-2.0.3/tools/mozcerts/main.cpp:107: undefined reference to `_imp___ZN3QCA6Base6419setLineBreaksColumnEi'
    21. /home/***/qca-2.0.3/tools/mozcerts/main.cpp:108: undefined reference to `_imp___ZN3QCA12MemoryRegionC1ERK10QByteArray'
    22. /home/***/qca-2.0.3/tools/mozcerts/main.cpp:108: undefined reference to `_imp___ZN3QCA10TextFilter13arrayToStringERKNS_12MemoryRegionE'
    23. /home/***/qca-2.0.3/tools/mozcerts/main.cpp:108: undefined reference to `_imp___ZN3QCA12MemoryRegionD1Ev'
    24. /home/***/qca-2.0.3/tools/mozcerts/main.cpp:116: undefined reference to `_imp___ZN3QCA11InitializerD1Ev'
    25. /home/***/qca-2.0.3/tools/mozcerts/main.cpp:108: undefined reference to `_imp___ZN3QCA12MemoryRegionD1Ev'
    26. collect2: error: ld returned 1 exit status
    27. make[3]: *** [release/mozcerts.exe] Fehler 1
    To copy to clipboard, switch view to plain text mode 


    And that's where I'm stuck. Googling didn't really produce any useful results to me. Anybody any hints/ideas?

    Regards
    huilui

    Edit:
    Some more details to my system and my set up: I'm using Linux (Arch Linux) 64 Bit. I have mingw32 installed with the gcc version 4.7.2 and qt 4.8. Compiling "normal" Qt4 apps on Linux for Windows works flawlessly.
    Last edited by huilui; 24th September 2013 at 00:31.

Similar Threads

  1. QT : Cross-compiling on WINDOWS to run at LINUX
    By andre_teprom in forum Qt Tools
    Replies: 5
    Last Post: 18th August 2013, 15:57
  2. Cross-compiler Qt4 app from ubuntu to windows xp
    By tiho_bg in forum Qt Programming
    Replies: 3
    Last Post: 1st December 2011, 17:52
  3. Replies: 9
    Last Post: 15th May 2011, 13:59
  4. Cross compiler in Linux
    By vincat in forum Qt Programming
    Replies: 1
    Last Post: 11th June 2009, 07:14
  5. Cross-Compiling Linux to Windows
    By xgoan in forum Qt Programming
    Replies: 10
    Last Post: 5th July 2007, 20:44

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.