GithubHelp home page GithubHelp logo

Compile xcpLite under Ubuntu about xcplite HOT 4 CLOSED

vectorgrp avatar vectorgrp commented on September 26, 2024
Compile xcpLite under Ubuntu

from xcplite.

Comments (4)

frederich avatar frederich commented on September 26, 2024

Which errors occurred, details please?

from xcplite.

ayoubziat avatar ayoubziat commented on September 26, 2024

Hi, sorry for my late reply.

Following errors occur when compiling the cmake project under Ubuntu /WSL.

~/xcpTl.c:421:46: error: invalid conversion from ‘char*’ to ‘uint8_t*’ {aka ‘unsigned char*’} [-fpermissive]
  421 |         n = socketRecv(gXcpTl.MulticastSock, (char*) buffer, (uint16_t)sizeof(buffer));
/usr/bin/ld: CMakeFiles/xcpLite.dir/xcpLite.c.o: in function `XcpCommand':
~/xcpLite.c:1116: undefined reference to `XcpTlSetClusterId'
/usr/bin/ld: CMakeFiles/xcpLite.dir/xcpLite.c.o: in function `XcpInit':
~/xcpLite.c:1349: undefined reference to `XcpTlSetClusterId'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/xcpLite.dir/build.make:219: xcpLite] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/xcpLite.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

Thank you!

from xcplite.

frederich avatar frederich commented on September 26, 2024

Hi, sorry for my late reply.

Following errors occur when compiling the cmake project under Ubuntu /WSL.

~/xcpTl.c:421:46: error: invalid conversion from ‘char*’ to ‘uint8_t*’ {aka ‘unsigned char*’} [-fpermissive]
  421 |         n = socketRecv(gXcpTl.MulticastSock, (char*) buffer, (uint16_t)sizeof(buffer));
/usr/bin/ld: CMakeFiles/xcpLite.dir/xcpLite.c.o: in function `XcpCommand':
~/xcpLite.c:1116: undefined reference to `XcpTlSetClusterId'
/usr/bin/ld: CMakeFiles/xcpLite.dir/xcpLite.c.o: in function `XcpInit':
~/xcpLite.c:1349: undefined reference to `XcpTlSetClusterId'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/xcpLite.dir/build.make:219: xcpLite] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/xcpLite.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

Thank you!

You can use the patch from the pull-request.

from xcplite.

mzurawski avatar mzurawski commented on September 26, 2024

Similarly on the Raspberry PI4 I used cmake and compiled it I made a few small modifications first due to the compilation errors.

xcpTl.h added: extern void XcpTlSetClusterId(uint16_t clusterId);
xcpAppl.c changed line 222: p = (char) APP_NAME;
xcpTl.c changed line 421: n = socketRecv(gXcpTl.MulticastSock, (char*)&buffer, (uint16_t)sizeof(buffer));

Afterwards I ran it up to about 40 MB/s on the DAQ rate with a few missing ODTs.

from xcplite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.