Unable to compile the AJTCL code after customization on RaspberryPI

asked 2015-04-20 23:41:26 -0700

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi, Can anyone let me know the procedure to compile custom AJTCL code on RaspberryPI(i.e. minor changes in basic_service sample code)? I tried doing it, using gcc compiler and supplied all required libraries but could not succeed. It is giving me lot of errors such as undefined reference to 'AJ_InitMessageFromMsgID', 'AJ_Printf', etc. Do we need any IDE to do a cross-compilation? What should be my Target device?

edit retag flag offensive close merge delete


Did you change ANY SConscripts/SConstructs? The raspberry pi should compile ajtcl by default using the linux target i.e. scons TARG=linux (though just 'scons' should auto detect that its a linux envionment). Does it compile without your changes to basic_service?

jprestwo ( 2015-04-21 09:00:25 -0700 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-04-21 07:48:26 -0700

jworr gravatar image

You should be able to just modify the SConscript in the basic folder if you are simply compiling additional files. Linking in additional libraries will require modifying the SConstruct file. Either way, go back to the samples folder and run the command "scons WS=off" and it will recompile them for you.

edit flag offensive delete publish link more


Thank you it is working... The problem was I tried compiling code using gcc instead of going through scons script.

kamble4u ( 2015-04-22 03:42:33 -0700 )edit

Glad I could help.

jworr ( 2015-04-22 07:40:11 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-04-20 23:41:26 -0700

Seen: 171 times

Last updated: Apr 21 '15