Browse Source

Fix various build issues

rdb 11 years ago
parent
commit
5a51a7e08d

+ 2 - 2
.travis.yml

@@ -4,12 +4,12 @@ compiler:
   - clang
   - clang
 before_script:
 before_script:
   - sudo apt-get install python-dev libpng-dev zlib1g-dev libssl-dev libx11-dev libgl1-mesa-dev libxrandr-dev libxxf86dga-dev libxcursor-dev bison flex libfreetype6-dev libvorbis-dev libjpeg-dev libopenal-dev libode-dev nvidia-cg-toolkit
   - sudo apt-get install python-dev libpng-dev zlib1g-dev libssl-dev libx11-dev libgl1-mesa-dev libxrandr-dev libxxf86dga-dev libxcursor-dev bison flex libfreetype6-dev libvorbis-dev libjpeg-dev libopenal-dev libode-dev nvidia-cg-toolkit
-script: python makepanda/makepanda.py --everything --git-commit $TRAVIS_COMMIT
+script: python makepanda/makepanda.py --everything --git-commit $TRAVIS_COMMIT --installer
 notifications:
 notifications:
   irc:
   irc:
     channels:
     channels:
       - "chat.freenode.net#panda3d"
       - "chat.freenode.net#panda3d"
     on_success: change
     on_success: change
-    on_failure: change
+    on_failure: always
     use_notice: true
     use_notice: true
     skip_join: true
     skip_join: true

+ 4 - 1
panda/src/gobj/shader.cxx

@@ -27,10 +27,13 @@ TypeHandle Shader::_type_handle;
 Shader::ShaderTable Shader::_load_table;
 Shader::ShaderTable Shader::_load_table;
 Shader::ShaderTable Shader::_make_table;
 Shader::ShaderTable Shader::_make_table;
 Shader::ShaderCaps Shader::_default_caps;
 Shader::ShaderCaps Shader::_default_caps;
-CGcontext Shader::_cg_context = 0;
 int Shader::_shaders_generated;
 int Shader::_shaders_generated;
 ShaderUtilization Shader::_shader_utilization = SUT_unspecified;
 ShaderUtilization Shader::_shader_utilization = SUT_unspecified;
 
 
+#ifdef HAVE_CG
+CGcontext Shader::_cg_context = 0;
+#endif
+
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //     Function: Shader::cp_report_error
 //     Function: Shader::cp_report_error
 //       Access: Public
 //       Access: Public

+ 1 - 1
panda/src/putil/typedWritable_ext.cxx

@@ -17,7 +17,7 @@
 #ifdef HAVE_PYTHON
 #ifdef HAVE_PYTHON
 
 
 #ifndef CPPPARSER
 #ifndef CPPPARSER
-extern EXPCL_PANDA_PUTIL Dtool_PyTypedObject Dtool_BamWriter;
+extern Dtool_PyTypedObject Dtool_BamWriter;
 #endif  // CPPPARSER
 #endif  // CPPPARSER
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////

+ 2 - 0
panda/src/tinydisplay/zgl.h

@@ -1,6 +1,8 @@
 #ifndef _tgl_zgl_h_
 #ifndef _tgl_zgl_h_
 #define _tgl_zgl_h_
 #define _tgl_zgl_h_
 
 
+#include "dtoolbase.h"
+
 #include <stdlib.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdio.h>
 #include <math.h>
 #include <math.h>

+ 1 - 1
pandatool/src/progbase/programBase.cxx

@@ -200,7 +200,7 @@ show_text(const string &prefix, int indent_width, string text) {
 void ProgramBase::
 void ProgramBase::
 write_man_page(ostream &out) {
 write_man_page(ostream &out) {
   string prog = _program_name.get_basename_wo_extension();
   string prog = _program_name.get_basename_wo_extension();
-  out << ".\\\" Automatically generated by " << prog << " -write-bam\n";
+  out << ".\\\" Automatically generated by " << prog << " -write-man\n";
 
 
   // Format the man page title as the uppercase version of the program name,
   // Format the man page title as the uppercase version of the program name,
   // as per the UNIX manual conventions.
   // as per the UNIX manual conventions.