Compilation errors

23 views
Skip to first unread message

Jan Diepens

unread,
Aug 31, 2022, 9:35:58 AM8/31/22
to Accelerad Users
Hi all, I have been trying compile Accelerad on Linux but get errors like

[ 25%] Built target ev
[ 25%] Building C object src/cal/CMakeFiles/histo.dir/histo.c.o
[ 25%] Linking C executable ../../bin/histo
[ 25%] Built target histo
[ 25%] Building C object src/cal/CMakeFiles/icalc.dir/calc.c.o
[ 25%] Linking C executable ../../bin/icalc
../common/librtrad.a(getpath.c.o): In function `getpath':
getpath.c:(.text+0x5d): undefined reference to `strlcpy'
getpath.c:(.text+0x97): undefined reference to `strlcpy'
getpath.c:(.text+0x153): undefined reference to `strlcat'
getpath.c:(.text+0x1b3): undefined reference to `strlcpy'
getpath.c:(.text+0x262): undefined reference to `strlcat'
../common/librtrad.a(gethomedir.c.o): In function `gethomedir':
gethomedir.c:(.text+0x4f): undefined reference to `strlcpy'
gethomedir.c:(.text+0x99): undefined reference to `strlcpy'
gethomedir.c:(.text+0xda): undefined reference to `strlcpy'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/icalc] Error 1
make[1]: *** [src/cal/CMakeFiles/icalc.dir/all] Error 2
make: *** [all] Error 2

Can some body help to solve this problem?

Best regards,
Jan

Nathaniel Jones

unread,
Aug 31, 2022, 9:50:30 AM8/31/22
to Accelerad Users
Hi Jan,

The programs histo and icalc are part of Radiance and are unmodified in Accelerad. Are you able to compile Radiance on your machine? In any case, this looks like a problem with the compiler you are using. I did a quick web search, which yielded this possible solution.

Nathaniel
Reply all
Reply to author
Forward
0 new messages