Changeset 928

Show
Ignore:
Timestamp:
12/20/07 04:40:57 (1 year ago)
Author:
glslang
Message:

+ build fixes

Location:
trunk
Files:
5 added
6 modified

Legend:

Unmodified
Added
Removed
  • trunk/installer/jahplayer.nsi

    r923 r928  
    192192   
    193193  SetOutPath $INSTDIR\JahPlayer\Lib 
    194   File /r "C:\Python25\jahplayer-pyc" 
    195  
    196 ;  SetOutPath $INSTDIR\JahTools 
    197 ;  SetOutPath $INSTDIR\JahTools\encoder 
    198 ;  File /r "..\JahTools\encoder\dist\*" 
     194  File /r "C:\Python25\jahplayer-pyc\*" 
     195 
     196  SetOutPath $INSTDIR\JahPlayer\encoder 
     197  File "..\Release\encoder.exe" 
     198  File "..\Release\wrapper.dll" 
     199  File "..\Release\widgets.dll" 
     200  File "..\Release\*.pyd" 
     201  File "..\jahtools\encoder\*.ui" 
     202  File "..\jahtools\encoder\*.py" 
     203  File "..\jahtools\encoder\*.png" 
     204  File /r "C:\Program Files\OpenLibraries\python\release\*" 
     205   
     206  SetOutPath $INSTDIR\JahPlayer\encoder\styles 
     207  File "..\Release\themes.dll" 
     208 
     209  SetOutPath $INSTDIR\JahPlayer\encoder\Lib 
     210  File /r "C:\Python25\jahplayer-pyc\*" 
    199211 
    200212  SetDetailsPrint both 
  • trunk/jahplayer/footer.py

    r924 r928  
    1313import pickle 
    1414import platform 
    15 #import subprocess 
    1615import re 
    1716 
     
    125124                        os.spawnv( os.P_NOWAIT, "/usr/bin/open", ["/usr/bin/open", "-a", bundle, pickle_file] ) 
    126125                elif platform.system() == "Windows" or platform.system() == 'Microsoft': 
    127                         subprocess.Popen( [ os.environ[ "JAHTOOLSPATH" ] + "\encoder\encoder.exe", pickle_file ], env=os.environ ) 
     126                        import subprocess 
     127                        subprocess.Popen( [ "encoder/encoder.exe", pickle_file ], env=os.environ ) 
    128128                        #subprocess.Popen( [ 'c:/python25/python.exe', utilities.get_absolute_path(os.path.join( os.environ['JAH_DEVEL_ROOT'], 'jahtools/encoder/encoder.py')), pickle_file ], env=os.environ ) 
    129129                else: 
  • trunk/jahplayer/jahplayer.cpp

    r917 r928  
    55 
    66#include <vector> 
     7#include <iostream> 
    78 
    89#include <boost/python.hpp> 
     
    2021#endif 
    2122 
    22         Py_Main( args.size( ), &args[ 0 ] ); 
     23        int ret = Py_Main( args.size( ), &args[ 0 ] ); 
     24        if( ret == 1 ) 
     25        { 
     26                PyObject* type; 
     27                PyObject* data; 
     28                PyObject* traceback; 
     29                 
     30                PyErr_Fetch( &type, &data, &traceback ); 
     31                PyErr_NormalizeException( &type, &data, &traceback ); 
     32                 
     33                if( type ) std::cerr << PyString_AsString( PyObject_Str( type ) ); 
     34                if( data ) std::cerr << PyString_AsString( PyObject_Str( data ) ); 
     35                if( traceback ) std::cerr << PyString_AsString( PyObject_Str( traceback ) ); 
     36                 
     37                Py_XDECREF( type ); 
     38                Py_XDECREF( data ); 
     39                Py_XDECREF( traceback ); 
     40        } 
    2341         
    2442        Py_Finalize( ); 
  • trunk/jahplayer/jahplayer_vc8.vcproj

    r920 r928  
    4444                                PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE" 
    4545                                MinimalRebuild="true" 
     46                                ExceptionHandling="2" 
    4647                                BasicRuntimeChecks="3" 
    4748                                RuntimeLibrary="3" 
    4849                                UsePrecompiledHeader="0" 
    49                                 WarningLevel="3" 
     50                                WarningLevel="4" 
    5051                                Detect64BitPortabilityProblems="true" 
    5152                                DebugInformationFormat="4" 
     
    121122                                AdditionalIncludeDirectories="&quot;C:\Boost\include\boost-1_34_1&quot;;C:\Python25\include;" 
    122123                                PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" 
     124                                ExceptionHandling="2" 
    123125                                RuntimeLibrary="2" 
    124126                                UsePrecompiledHeader="0" 
    125                                 WarningLevel="3" 
     127                                WarningLevel="4" 
    126128                                Detect64BitPortabilityProblems="true" 
    127129                                DebugInformationFormat="3" 
  • trunk/jahtools/encoder/bootstrap.py

    r926 r928  
    2020import jahwidgets 
    2121 
    22 openpluginlib.init() 
     22if len( sys.argv ) > 1 and sys.argv[ 1 ] == "-release": 
     23        openpluginlib.init( os.path.join( os.path.dirname( sys.argv[ 0 ] ), "..", "plugins" ), 0 ) 
     24else: 
     25        openpluginlib.init( ); 
  • trunk/jahwidgets_vc8.sln

    r914 r928  
    33Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "python", "jahwidgets\src\qt3\python\python_vc8.vcproj", "{4DED2532-4DE3-4184-BCD4-C57D1BA0520B}" 
    44        ProjectSection(ProjectDependencies) = postProject 
     5                {5BA092F5-1F55-41C3-857C-8A90B3A771FB} = {5BA092F5-1F55-41C3-857C-8A90B3A771FB} 
    56                {3E925FFE-47C0-42BB-BAFD-AA7E7E024312} = {3E925FFE-47C0-42BB-BAFD-AA7E7E024312} 
    6                 {5BA092F5-1F55-41C3-857C-8A90B3A771FB} = {5BA092F5-1F55-41C3-857C-8A90B3A771FB} 
    77        EndProjectSection 
    88EndProject 
     
    1818Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "jahplayer", "jahplayer\jahplayer_vc8.vcproj", "{64BC74DD-3E2F-4E90-A098-D531DC488A2F}" 
    1919        ProjectSection(ProjectDependencies) = postProject 
     20                {3E925FFE-47C0-42BB-BAFD-AA7E7E024312} = {3E925FFE-47C0-42BB-BAFD-AA7E7E024312} 
     21                {5BA092F5-1F55-41C3-857C-8A90B3A771FB} = {5BA092F5-1F55-41C3-857C-8A90B3A771FB} 
     22        EndProjectSection 
     23EndProject 
     24Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "encoder", "jahtools\encoder\encoder_vc8.vcproj", "{31DC3FA2-1470-45C6-B1B1-2B478E4D146A}" 
     25        ProjectSection(ProjectDependencies) = postProject 
     26                {4DED2532-4DE3-4184-BCD4-C57D1BA0520B} = {4DED2532-4DE3-4184-BCD4-C57D1BA0520B} 
    2027                {5BA092F5-1F55-41C3-857C-8A90B3A771FB} = {5BA092F5-1F55-41C3-857C-8A90B3A771FB} 
    2128                {3E925FFE-47C0-42BB-BAFD-AA7E7E024312} = {3E925FFE-47C0-42BB-BAFD-AA7E7E024312} 
     
    4855                {64BC74DD-3E2F-4E90-A098-D531DC488A2F}.Release|Win32.ActiveCfg = Release|Win32 
    4956                {64BC74DD-3E2F-4E90-A098-D531DC488A2F}.Release|Win32.Build.0 = Release|Win32 
     57                {31DC3FA2-1470-45C6-B1B1-2B478E4D146A}.Debug|Win32.ActiveCfg = Debug|Win32 
     58                {31DC3FA2-1470-45C6-B1B1-2B478E4D146A}.Debug|Win32.Build.0 = Debug|Win32 
     59                {31DC3FA2-1470-45C6-B1B1-2B478E4D146A}.Release|Win32.ActiveCfg = Release|Win32 
     60                {31DC3FA2-1470-45C6-B1B1-2B478E4D146A}.Release|Win32.Build.0 = Release|Win32 
    5061        EndGlobalSection 
    5162        GlobalSection(SolutionProperties) = preSolution