Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac OS X compatibility? #24

Open
mtivadar opened this issue Jun 30, 2015 · 10 comments
Open

Mac OS X compatibility? #24

mtivadar opened this issue Jun 30, 2015 · 10 comments

Comments

@mtivadar
Copy link
Owner

Qiew wasn't tested on MAC OS X. It should work, hopefully with minor modifications.

@DamianFekete
Copy link
Contributor

  • change distorm3* to distorm3 in requirements.txt
  • sudo pip install -r requirements.txt
  • install home-brew, qt4, sip
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)
brew install qt
brew install sip
brew install pyqt

Installing sip installs python 2.7 in /usr/local/bin, and puts in front of the /usr/bin in path. Change header qiew.py to

#!/usr/bin/env python2

After this qiew starts but doesn't receive key events (it does receive mouse clicks in the window).
I've moved the event filter to Qiew and than it works (shift-keys don't work to select, they just move the cursor):

--- a/qiew.py
+++ b/qiew.py
@@ -134,7 +134,7 @@ class binWidget(QtGui.QWidget):
         self.activateWindow()
         self.setFocus()

-        self.installEventFilter(self)
+        #self.installEventFilter(self)
     """        
             # build thumbnail

@@ -469,6 +469,11 @@ class Qiew(QtGui.QWidget):
         self.setWindowTitle('qiew - {0}'.format(sys.argv[1]))
         self.showMaximized()
         self.wid.activateWindow()
+       self.raise_()
+       self.installEventFilter(self)
+
+    def eventFilter(self, watched, event):
+       return self.wid.eventFilter(watched, event)
  • I'm also calling Qiew.raise_(), otherwise the window appears in the background.

@mtivadar
Copy link
Owner Author

selection doesn't work, perhaps transparency doesn't work? Have you tried selecting a section? ALT+S then F9 on a section.

@DamianFekete
Copy link
Contributor

Transparency works.
Also trying to dump the "selection" using the Ctrl-F10 shows the "no-selection" message in the console. I guess that "fix" above in the diff is not complete.

@mtivadar
Copy link
Owner Author

mtivadar commented Aug 2, 2015

can you try again? some changes have been done. (fixes for linux)

@DamianFekete
Copy link
Contributor

Selection still doesn't work. But keys work and window appears in front.
Please change

#!/usr/bin/python

with

#!/usr/bin/env python2

because I'm starting the brew python version.

It would be nice to have a icon for the window :)

If you want to test more maybe I can set you an account on the laptop.

@mtivadar
Copy link
Owner Author

mtivadar commented Aug 6, 2015

am schimbat '#!/usr/bin/python'.
o să am nevoie de user probabil, pentru că eu nu am contact cu MAC. nu știu ce poate fi cu selecția.. probabil nu suportă transparency.

deci eventual să-mi faci cont.. da cam într-o săptămână..

@DamianFekete
Copy link
Contributor

Dacă citești ceva mai sus vezi că merge transparency.

@mtivadar
Copy link
Owner Author

mtivadar commented Aug 7, 2015

Da, ciudat. Poate nu recunoaște shift apăsat atunci
On Aug 7, 2015 7:58 AM, "tehnicaorg" notifications@github.com wrote:

Dacă citești ceva mai sus vezi că merge transparency.


Reply to this email directly or view it on GitHub
#24 (comment).

@Congee
Copy link

Congee commented Oct 21, 2015

Works greatly on OSX 10.10
I've just done some basic editing, and it seems work well except lack of support for key shortcuts, since I'm using the laptop macbook air.
By the way, does it support mouse?

qiew is one of the a few hex editor with disassmbly support on OSX, but it's still on early stage. I believe you shall make a promotion about qiew on Hackernews or some other forums and blog.
:D

@mtivadar
Copy link
Owner Author

Thanks! It does not support mouse yet. I'll try to figure it out what to do with the shortcuts also. Thanks for the suggestions also!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants