GCC Cross-Compiler: Difference between revisions

m
fix formatting
[unchecked revision][unchecked revision]
m (add troubleshooting information for a specific error when building for mingw32)
m (fix formatting)
Line 162:
 
The solution is simply to create the empty folders:
<source lang="bash">
<tt>mkdir -p $SYSROOT/mingw/include</tt>
<tt>mkdir -p $SYSROOT/mingw/lib</tt>include
<tt>mkdir -p $SYSROOT/mingw/include</tt>lib
</source>
 
This will allow the build to proceed. The reason this happens is that the <tt>mingw32</tt> (and mingw itself) configures <tt>INCLUDE_PATH</tt> and <tt>LIBRARY_PATH</tt> to be, as can be guessed, <tt>/mingw/include</tt> and <tt>/mingw/lib</tt>, instead of the defaults <tt>/usr/include</tt> and <tt>/usr/lib</tt>. Why the build fails even though nothing is required in those folders, and why it doesn't just make them, is beyond me.
 
Why the build fails even though nothing is required in those folders, and why it doesn't just make them, is beyond me.
 
== See Also ==
Anonymous user