Page 2 of 2

Re: installing tellstick on embedded linux

Posted: Fri Mar 17, 2023 9:45 am
by auto
micke.prag wrote:You can try it on your computer where you have built the application. The file utility should probably be available there.
i know its avaible on my computer but i will control the tellstick on my board. when i build the app on my computer i can use tdtool tdadmin ... but when i send the binary files like tdtool tdadmin on my board, i cant use this bin there..

it is the files tdtool ... not compiled correctly ??? or why can not execute it.

Which files or directory i should be sent on my board ? the directory or only the files... ???

Re: installing tellstick on embedded linux

Posted: Fri Mar 17, 2023 9:45 am
by micke.prag
auto wrote:it is the files tdtool ... not compiled correctly ??? or why can not execute it.
That is why I asked you to check how the binay was compiled using the "file" utility!
auto wrote:when i build the app on my computer i can use tdtool tdadmin ... but when i send the binary files like tdtool tdadmin on my board, i cant use this bin there..
If you can execute the files on your computer then they are not compiled using your crosscompiler toolchain.

Re: installing tellstick on embedded linux

Posted: Fri Mar 17, 2023 9:45 am
by auto
micke.prag wrote:
auto wrote:it is the files tdtool ... not compiled correctly ??? or why can not execute it.
That is why I asked you to check how the binay was compiled using the "file" utility!
auto wrote:when i build the app on my computer i can use tdtool tdadmin ... but when i send the binary files like tdtool tdadmin on my board, i cant use this bin there..
If you can execute the files on your computer then they are not compiled using your crosscompiler toolchain.

using "file" ... ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped

Re: installing tellstick on embedded linux

Posted: Fri Mar 17, 2023 9:45 am
by micke.prag
Intel 80386
This shows that the file was built for i386, not for your embedded arm board. Please check that your crosscompiler is used and not your native toolchain. For an ARM binary the output from file should look similar to this:

Code: Select all

ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped

Re: installing tellstick on embedded linux

Posted: Fri Mar 17, 2023 9:45 am
by auto
micke.prag wrote:
Intel 80386
Please check that your crosscompiler is used and not your native toolchain.

Code: Select all

ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
How can I check this or to do ... ?

Re: installing tellstick on embedded linux

Posted: Fri Mar 17, 2023 9:45 am
by auto
auto wrote:
micke.prag wrote:
Intel 80386
Please check that your crosscompiler is used and not your native toolchain.

Code: Select all

ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
How can I check this or to do ... ?
I tell him the following... cmake -DCMAKE _CXX ...C_COMPILER _LINKER _ AR_ RANLIB _ OBJCOPY _ OBJDUMP _ NM _ STRIP ....

but when i tape make && make install dont use my crosscompiler . has the file Makefile an impact... Perhaps the file must be changed... ? :banghead:

how can I tell him that use my crosscompiler ?

Re: installing tellstick on embedded linux

Posted: Fri Mar 17, 2023 9:45 am
by auto
when i used direct about the command -DCMAKE_CXX_COMPILER ..... C_COMPILER LINKER OBJDUMP ...... and than tape make ... follow error..

cc1plus: error: unrecognized command line option "-fvisibility=hidden"
make[2]: *** [common/CMakeFiles/TelldusCommon.dir/Message.cpp.o] Fehler 1
make[1]: *** [common/CMakeFiles/TelldusCommon.dir/all] Fehler 2
make: *** [all] Fehler 2

:help:

Re: installing tellstick on embedded linux

Posted: Fri Mar 17, 2023 9:45 am
by micke.prag
auto wrote:cc1plus: error: unrecognized command line option "-fvisibility=hidden"
Try removing that option from client/CMakeLists.txt

Re: installing tellstick on embedded linux

Posted: Fri Mar 17, 2023 9:45 am
by auto
THX!

but now ... this Error

LINKING shared Library telldus-core.so
.../bin../ lib..
.../bin/ld : cannot find -lconfuse
collect2...
make[2] Error1

:banghead:

:help:

Re: installing tellstick on embedded linux

Posted: Fri Mar 17, 2023 9:45 am
by micke.prag
This is already stated as a prerequisite: http://developer.telldus.com/wiki/TellS ... tionSource
Make sure CMake finds it.

Re: installing tellstick on embedded linux

Posted: Fri Mar 17, 2023 9:45 am
by auto
micke.prag wrote:This is already stated as a prerequisite: http://developer.telldus.com/wiki/TellS ... tionSource
Make sure CMake finds it.

I've already installed all the prerequisites, but it can still can not find it.
micke.prag wrote: Make sure CMake finds it.
How can I make it.

Re: installing tellstick on embedded linux

Posted: Fri Mar 17, 2023 9:45 am
by micke.prag
auto wrote:I've already installed all the prerequisites, but it can still can not find it.
Did you install it for your machine or for your target board? Do you have an arm version of libconfuse installed?

Re: installing tellstick on embedded linux

Posted: Fri Mar 17, 2023 9:45 am
by auto
micke.prag wrote:
auto wrote:I've already installed all the prerequisites, but it can still can not find it.
Did you install it for your machine or for your target board? Do you have an arm version of libconfuse installed?
I did it for my maschine. How should I install it now. What packages should I install for arm version. I have to uninstall the previously installed packages ?

Re: installing tellstick on embedded linux

Posted: Fri Mar 17, 2023 9:45 am
by micke.prag
As I told you before. It is not possible for me to tell you how to setup your toolchain. This is platform specific.