Difference between revisions of "FAQ:Compiling 02"

From Net-SNMP Wiki
Jump to: navigation, search
(Move FAQ text to a template page & 5.4 release synchronisation)
(Latest FAQ revision - preparing for 5.5 release)
 
Line 1: Line 1:
= The compilation is complaining about missing libraries. Why? =  
+
= How do I control the environment used to compile the software under Windows? =  
  
<!-- NB:
+
{{FAQ:Compiling_02b}}
  There is a mismatch between the template numbering
+
  for this entry, and the FAQ entries that refer to it.
+
  This follows a review of the entries in the
+
  Compiling section.
+
-->
+
{{FAQ:Compiling_03}}
+
  
 
     [[FAQ:Compiling]]
 
     [[FAQ:Compiling]]
 
     {{FAQ:Compiling}}
 
     {{FAQ:Compiling}}

Latest revision as of 16:11, 19 July 2009

How do I control the environment used to compile the software under Windows?

If you are compiling the project within the MinGW or Cygwin environments, then these use the same configure mechanism as Unix-based systems. See the previous entry for more information.

If you are compiling the project from within Visual Studio, then this does not use the standard configure mechanism. Instead, there is a separate Configure script within the win32 directory. This can be used enable or disable various aspects of the build environment, such as support for encryption or IPv6.
Run Configure --help for more information

Note that this script does not include an equivalent of --with-mib-modules for extending the MIB information supported by the agent. Instead, this needs to be done by tweaking the build environment manually. See the file README.win32 for more details of this, and various other aspects of building the project on Windows systems.

   FAQ:Compiling
   
  1. How do I control the environment used to compile the software?
  2. How do I control the environment used to compile the software under Windows?
  3. Why does the compilation complain about missing libraries?
  4. How can I reduce the memory footprint?
  5. How can I reduce the installation footprint or speed up compilation?
  6. How can I compile the project for use on an embedded system?
  7. How can I compile the project to use static linking?
  8. Why does 'make test' skip various tests?
  9. Why does 'make test' complain about a pid file?