<div dir="ltr">Sorry if this has already been covered but my google-fu hasn&#39;t gotten me anywhere.<div><br></div><div>I&#39;m trying to cross compile a project I&#39;ve helped develop a cmake configuration for since the autotools one doesn&#39;t work for all platforms currently.</div>
<div><br></div><div style>I&#39;ve had luck cross compiling all the dependencies but when I try to build the project I end up with undefined references and I noticed there&#39;s not a single -I/usr/i686/... type option anywhere in the build results:</div>
<div style><br></div><div style><div>/usr/bin/i686-w64-mingw32-g++   -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4  -Wall -mthreads -O3 -DNDEBUG    -mwindows -Wl,--whole-archive CMakeFiles/freedv.dir/objects.a -Wl,--no-whole-archive  -o freedv.exe -Wl,--out-implib,libfreedv.dll.a -Wl,--major-image-version,0,--minor-image-version,0  -lportaudio-2 -lsamplerate -lsndfile -lsox -L/usr/i686-w64-mingw32/sys-root/mingw/lib -Wl,--subsystem,windows -mwindows -lwx_mswu_core-2.9-i686-w64-mingw32 -lwx_baseu-2.9-i686-w64-mingw32 -lwx_mswu_aui-2.9-i686-w64-mingw32 -lwx_mswu_html-2.9-i686-w64-mingw32 -lwx_baseu_net-2.9-i686-w64-mingw32 -lwx_mswu_adv-2.9-i686-w64-mingw32 /usr/i686-w64-mingw32/sys-root/mingw/bin/libcodec2.dll -Wl,-Bstatic -lctb -Wl,-Bdynamic -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 </div>
<div>CMakeFiles/freedv.dir/objects.a(fdmdv2_main.cpp.obj): In function `ZN9MainFrame15SetupSerialPortEv&#39;:</div><div>/home/build/mingw32-proj/fdmdv2-0.96.svn1244/src/fdmdv2_main.cpp:3046: undefined reference to `ctb::SerialPort::SerialPort()&#39;</div>
<div>/home/build/mingw32-proj/fdmdv2-0.96.svn1244/src/fdmdv2_main.cpp:3047: undefined reference to `ctb::SerialPort_x::Open(char const*, int, char const*, ctb::SerialPort_x::FlowControl)&#39;</div><div>collect2: error: ld returned 1 exit status</div>
<div><br></div><div style>libctb is installed and found by cmake...</div><div style><br></div></div><div style>Is this not required when cross compiling?</div><div style><br></div><div style>Thanks,</div><div style>Richard</div>
</div>