Re: [beagleboard] Re: Problem in dynamically loading libraries (QT5 on AM335x board)
Hi Morix, I recompiled QT5 no ICU and it works. I need the ICU, so I recompile the ICU. If I compile for static library works, but if I compile to static library does not work, still the same error that you mentioned. I'm cross compiling this way: $ export CC=arm-linux-gnueabihf-gcc $ export CXX=arm-linux-gnueabihf-g++ $ export AR=arm-linux-gnueabihf-ar $ export RANLIB=arm-linux-gnueabihf-ranlib $ export CFLAGS=-pipe -O2 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard $ export CPPFLAGS=$CFLAGS $ export ICU_FLAGS=-I/mnt/lhome/am335x/libs_apps/libicu/icu/source/common/ -I/mnt/lhome/am335x/libs_apps/libicu/icu/source/tools/tzcode/ $ export LDFLAGS=-Wl,-rpath-link=/usr/local/ti-sdk-am335x-evm/linux-devkit/filesystem/lib -L/usr/local/ti-sdk-am335x-evm/linux-devkit/filesystem/lib -Wl,-rpath-link=/usr/local/ti-sdk-am335x-evm/linux-devkit/filesystem/usr/lib -L/usr/local/ti-sdk-am335x-evm/linux-devkit/filesystem/usr/lib $ sh /mnt/lhome/am335x/libs_apps/libicu/icu/source/configure --host=arm-linux-gnueabihf --prefix=/opt/icu --disable-samples --disable-tests --with-cross-build=/mnt/lhome/am335x/libs_apps/libicu/icu_pc $ make -j 4 $ make install I see your post but don't work. Did you only recompile ICU arm? 2014-04-08 5:33 GMT-03:00 Morix Dev morix@gmail.com: Hello, I found the solution: the problem is due to ICU which cannot (don't know why) dynamically load its data at runtime from libicudata.so.52. I recompiled ICU for packaging data in standard file (instead of shared library) and now it works fine! You can review the full story herehttp://stackoverflow.com/questions/22858103/qt-5-2-1-with-icu-support-all-applications-exit-with-code-1and herehttp://stackoverflow.com/questions/22859444/cross-compiled-icu4c-does-not-work-all-applications-exit-with-code-1/22931536#22931536 . /Morix Il giorno giovedì 3 aprile 2014 15:28:37 UTC+2, Morix Dev ha scritto: Thiago, just to narrow down the problem... can you tell me how you cross-compiled QT? I mean can you tell me which flags have you put on your ./configure command line and what is the content of your qtbase/mkspecs/your- architecture/qmake.conf? Thanks, /Morix Il giorno giovedì 3 aprile 2014 15:17:08 UTC+2, Morix Dev ha scritto: Hi Thiago, I haven't found a solution yet... I am still working on it... now I am suspecting that is something related to compiler optimization flags when compiling QT... I'll let you know if I find a useful solution... but hey: please do not hesitate to write here if you found a valid solution too! :) Thanks regards. /Morix Il giorno giovedì 3 aprile 2014 15:00:35 UTC+2, Thiago Marques ha scritto: Hi Morix Dev, I had a similar problem. Do you find out what was causing this error? Qt AM335x application exits with code 1 at startup. Tḧanks, Best regards , Em quarta-feira, 2 de abril de 2014 11h05min09s UTC-3, Morix Dev escreveu: Hello everybody, I've cross compiled QT5.2.1 with ICU support for TI AM335x (not exactly a Beagleboard but much similar). Now I am doing some tests, but I am not able to execute any program built against the cross-compiled QT. Any program (even the simples console-based Hello, world exits with code 1 just at the startup and does not produce any output). If a perform a strace of my program I have the output that you can read at the following address: https://onedrive.live.com/ redir?resid=DCB987547568DE13!107authkey=!ANC7D8Zh7ZfGz4w ithint=file,.log The problem seems to be something wrong just after loading libicudata.so.52 library... exit_group(1) is being called somewhere... but who is calling it? How can I discover that? Can somebody help me? Thanks for your support! -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to a topic in the Google Groups BeagleBoard group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/-BY4H6RC8W4/unsubscribe. To unsubscribe from this group and all its topics, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- * Thiago Marques.* *Link - Plataforma Lattes: http://lattes.cnpq.br/1955476621748054 http://lattes.cnpq.br/1955476621748054* *phone : +55 (61) 8274-9140 * *+55 (61) 3032-4506* -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] Re: Problem in dynamically loading libraries (QT5 on AM335x board)
Hi, Thanks, sorry for the delay to respond, it's because I was in another project. Today I will try to compile the ICU again. My ./configure command line is: ./configure -prefix /opt/qt5 -debug-and-release -make libs -xplatform linux-arm-gnueabi-g++ -opengl es2 -confirm-license -opensource -icu -no-xcb -no-pch -make examples -verbose -shared -plugin-sql-sqlite -qt-zlib -no-cups -qt-libpng -qt-libjpeg I apply this path that I made: patch_qt5_1_1__1.0 I copied the include to my filesystem. https://github.com/prabindh/qt-configs/tree/master/qt5_1.0_Aug13 2014-04-03 10:28 GMT-03:00 Morix Dev morix@gmail.com: Thiago, just to narrow down the problem... can you tell me how you cross-compiled QT? I mean can you tell me which flags have you put on your ./configure command line and what is the content of your qtbase/mkspecs/your-architecture/qmake.conf? Thanks, /Morix Il giorno giovedì 3 aprile 2014 15:17:08 UTC+2, Morix Dev ha scritto: Hi Thiago, I haven't found a solution yet... I am still working on it... now I am suspecting that is something related to compiler optimization flags when compiling QT... I'll let you know if I find a useful solution... but hey: please do not hesitate to write here if you found a valid solution too! :) Thanks regards. /Morix Il giorno giovedì 3 aprile 2014 15:00:35 UTC+2, Thiago Marques ha scritto: Hi Morix Dev, I had a similar problem. Do you find out what was causing this error? Qt AM335x application exits with code 1 at startup. Tḧanks, Best regards , Em quarta-feira, 2 de abril de 2014 11h05min09s UTC-3, Morix Dev escreveu: Hello everybody, I've cross compiled QT5.2.1 with ICU support for TI AM335x (not exactly a Beagleboard but much similar). Now I am doing some tests, but I am not able to execute any program built against the cross-compiled QT. Any program (even the simples console-based Hello, world exits with code 1 just at the startup and does not produce any output). If a perform a strace of my program I have the output that you can read at the following address: https://onedrive.live.com/ redir?resid=DCB987547568DE13!107authkey=!ANC7D8Zh7ZfGz4w ithint=file,.log The problem seems to be something wrong just after loading libicudata.so.52 library... exit_group(1) is being called somewhere... but who is calling it? How can I discover that? Can somebody help me? Thanks for your support! -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to a topic in the Google Groups BeagleBoard group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/-BY4H6RC8W4/unsubscribe. To unsubscribe from this group and all its topics, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- * Thiago Marques.* *Link - Plataforma Lattes: http://lattes.cnpq.br/1955476621748054 http://lattes.cnpq.br/1955476621748054* *phone : +55 (61) 8274-9140 * *+55 (61) 3032-4506* -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. patch_qt5_1_1__1.0 Description: Binary data
[beagleboard] Re: Problem in dynamically loading libraries (QT5 on AM335x board)
Hi Morix Dev, I had a similar problem. Do you find out what was causing this error? Qt AM335x application exits with code 1 at startup. Tḧanks, Best regards , Em quarta-feira, 2 de abril de 2014 11h05min09s UTC-3, Morix Dev escreveu: Hello everybody, I've cross compiled QT5.2.1 with ICU support for TI AM335x (not exactly a Beagleboard but much similar). Now I am doing some tests, but I am not able to execute any program built against the cross-compiled QT. Any program (even the simples console-based Hello, world exits with code 1 just at the startup and does not produce any output). If a perform a strace of my program I have the output that you can read at the following address: https://onedrive.live.com/redir?resid=DCB987547568DE13!107authkey=!ANC7D8Zh7ZfGz4withint=file,.log The problem seems to be something wrong just after loading libicudata.so.52 library... exit_group(1) is being called somewhere... but who is calling it? How can I discover that? Can somebody help me? Thanks for your support! -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.