ESROCOS / buildconf

In this repository all the neccessary files are stored to build an esrocos environment with autoproj
0 stars 0 forks source link

asn to c compilation broken under linux #12

Closed Kynneb closed 6 years ago

Kynneb commented 6 years ago

In the esrocos.cmake the functions to compile the ASN types to C files will call asn1.exe which won't work under linux (and so neither under the taste ubuntu-docker nor debian vm)

esrocos.cmake 142: COMMAND asn1.exe -c -typePrefix asn1Scc -uPER -wordSize 8 -ACN -o ${ASN1_OUT_DIR} -atc ${ASN1_FILES}

and

esrocos.cmake 159: COMMAND asn1.exe -c -typePrefix asn1Scc -uPER -wordSize 8 -ACN -o ${ASN1_OUT_DIR} -atc ${ASN1_FILES}

this can be fixed by using

mono path/to/asn1.exe

The path differs between docker and VM though, so this should probably be set by environment variable setup.

Kynneb commented 6 years ago

I think the path $ENV{HOME}/tool-inst/share/asn1scc/asn1.exe evaluates for docker and vm