Spread the Word | Create Account | My Account  
digsby
Location: Forum Home » Customizing » Linux Compilation
 

Linux Compilation

#1 2012-09-27 20:07:28
Linux Compilation
psykar
New member
Offline

 

Thought I'd start this now Digsby has been open sourced so we can hopefully get it compiled!

Patch for changes I've had to make so far are below.
After setting up the virtualenv I've been attempting to run
./digsby/build/build-deps.py
which appears to have been intended for a linux setup.

Current issue is with an unknown type name 'STACK' in the SWIG/_m2crypto_wrap.c file. Given I'm more a python guy I'm truggling a little with it!





(digsby-venv)[louis@PsykarBox build]$ git diff
diff --git a/bootstrap.py b/bootstrap.py
index 3cd95e8..725bf72 100644
--- a/bootstrap.py
+++ b/bootstrap.py
@@ -300,7 +300,7 @@ if __name__ == '__main__':
         }

         activate_scripts = [
-            ('unix', os.path.join(virtual_env, 'Scripts', 'activate')),
+            ('unix', os.path.join(virtual_env, 'bin', 'activate')),
             ('windows', os.path.join(virtual_env, 'Scripts', 'activate.bat')),
         ]
         for script_type, script_path in activate_scripts:
@@ -315,5 +315,8 @@ if __name__ == '__main__':
                              pathsep = env_types[script_type]['pathsep']
                         )
                     )
-            with open(script_path, 'a') as f:
-                f.writelines(lines)
+            try:
+                with open(script_path, 'a') as f:
+                    f.writelines(lines)
+            except IOError:
+                continue
\ No newline at end of file
diff --git a/digsby/build/buildutil/buildfileutils.py b/digsby/build/buildutil/buildfileutils.py
index c27e0e7..682932e 100644
--- a/digsby/build/buildutil/buildfileutils.py
+++ b/digsby/build/buildutil/buildfileutils.py
@@ -143,7 +143,7 @@ def which(cmd, default=None):
                 if os.path.exists(cmd_path + ext):
                     return cmd_path + ext
     else:
-        return commands.getoutput('which ' + cmd)
+        return commands.getstatusoutput('which ' + cmd)

     return default

diff --git a/digsby/build/buildutil/common.py b/digsby/build/buildutil/common.py
index b410e29..fdf65eb 100644
--- a/digsby/build/buildutil/common.py
+++ b/digsby/build/buildutil/common.py
@@ -67,7 +67,7 @@ if sys.platform.startswith('win'):
def checkForDeps(swig=False):
     retVal = which("which bakefile")

-    if retVal != 0:
+    if retVal[0] != 0:
         print "ERROR: You must have Bakefile (http://bakefile.org) installed to continue. Exiting..."
         sys.exit(1)



#2 2012-09-28 01:42:54
Re: Linux Compilation
mike
Digsby Developer
Offline

 

i'd recommend starting a fork + branch of digsby on github. it's a much better place for code & code discussions - forums simply don't have the tools to deal with this sort of thing.



#3 2012-10-03 12:56:54
Re: Linux Compilation
Zero3K
Member
Offline

 

psykar: Any updates?



#4 2012-10-04 19:22:38
Re: Linux Compilation
chris
Digsby Developer
Offline

 

Zero3K wrote:

psykar: Any updates?

https://github.com/tagged/digsby/issues/13




closed topic w/ link == punBB doesn't have merge.
Pages: 1 

Board footer


Copyright © 2007-2009 dotSyntax, LLC.   All Rights Reserved