← Back to team overview

kicad-developers team mailing list archive

[PATCH] Building on FreeBSD

 

Hi there,

This is a patch for building on FreeBSD 10.1. Note config options are
as follows:

cmake ../
-DwxWidgets_CONFIG_EXECUTABLE=/usr/local/bin/wxgtk2u-3.0-config
-DKICAD_SKIP_BOOST=YES

Cheers

Ashley

=== modified file 'include/kiway.h'
--- include/kiway.h	2014-11-15 13:43:23 +0000
+++ include/kiway.h	2014-12-09 22:13:10 +0000
@@ -114,7 +114,7 @@
 // be mangled.
 #define KIFACE_INSTANCE_NAME_AND_VERSION   "KIFACE_1"
 
-#if defined(__linux__)
+#if defined(__linux__) || defined(__FreeBSD__)
  #define LIB_ENV_VAR    wxT( "LD_LIBRARY_PATH" )
 #elif defined(__WXMAC__)
  #define LIB_ENV_VAR    wxT( "DYLD_LIBRARY_PATH" )

=== modified file 'utils/idftools/CMakeLists.txt'
--- utils/idftools/CMakeLists.txt	2014-10-02 23:03:52 +0000
+++ utils/idftools/CMakeLists.txt	2014-12-09 22:13:43 +0000
@@ -1,6 +1,7 @@
 include_directories(
     "${CMAKE_SOURCE_DIR}/lib_dxf"
     "${CMAKE_SOURCE_DIR}/utils/idftools"
+    "${OPENGL_INCLUDE_DIR}"
   )
 
 link_directories(


Follow ups

References