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

Where is the MacOSX download ? #57

Closed
deesea opened this Issue Dec 30, 2013 · 12 comments

Comments

Projects
None yet
5 participants
@deesea

deesea commented Dec 30, 2013

Pardon my ignorance, but where / what distribution is for MacOSX ? It's not listed in the Operating System list.

  • deesea
@hltj

This comment has been minimized.

Show comment
Hide comment
@hltj

hltj Dec 31, 2013

Contributor

Sorry, I don't know how to make Mac OS X package currently.
But It realy support Mac OS X by building from source code as any other UNIX-like system.
Maybe you should install dependent packages by mac ports: http://www.macports.org/ .

I will write a build manual for it, maybe next year for I work busy recently.

Contributor

hltj commented Dec 31, 2013

Sorry, I don't know how to make Mac OS X package currently.
But It realy support Mac OS X by building from source code as any other UNIX-like system.
Maybe you should install dependent packages by mac ports: http://www.macports.org/ .

I will write a build manual for it, maybe next year for I work busy recently.

@hltj hltj closed this Dec 31, 2013

@deesea

This comment has been minimized.

Show comment
Hide comment
@deesea

deesea Dec 31, 2013

Ok. Thanks for your reply.

Anyone has the step by step instructions to build it on Mountain Lion or above ? I'm not a Linux developer and have no knowledge how to do so. Going to go through the documentation/how-to from scratch without any guidance would be too much of a big task.

deesea commented Dec 31, 2013

Ok. Thanks for your reply.

Anyone has the step by step instructions to build it on Mountain Lion or above ? I'm not a Linux developer and have no knowledge how to do so. Going to go through the documentation/how-to from scratch without any guidance would be too much of a big task.

@hltj

This comment has been minimized.

Show comment
Hide comment
@hltj

hltj Jan 1, 2014

Contributor

I have no Mountain Lion environment. While, there are steps buiding under Lion:

  1. install mac ports.
  2. sudo port install boost
  3. sudo port install wxgtk-2.8
  4. sudo port install pkgconfig
  5. sudo port install curl
  6. download the code package of wxMEdit from https://github.com/hltj/wxMEdit/releases or http://wxmedit.github.io/downloads.html . e.g.:
    ver=master
    curl -L https://github.com/wxMEdit/wxMEdit/archive/$ver.tar.gz > wxMEdit-$ver.tar.gz
  7. tar xvf wxMEdit-$ver.tar.gz
  8. cd wxMEdit-$ver
  9. touch aclocal.m4 configure Makefile.in config.h.in
    OR
    sudo port install autoconf
    sudo port install automake
    export ACLOCAL_AMFLAGS="-I /opt/local/share/aclocal -I /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/share/aclocal/"
    ./autogen.sh
  10. ./configure --prefix=/opt/local --with-wx-config=/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/bin/wx-config
  11. make
  12. sudo make install

Hope these can help you.
Happy New Year and have a good holiday.


If use wxgtk-3.0, should install gnu sed, and run gsed -i 's/gtk+-2.0/gtk+-3.0/g' configure* after step 8 in addition to replace step 3 with sudo port install wxgtk-3.0

Contributor

hltj commented Jan 1, 2014

I have no Mountain Lion environment. While, there are steps buiding under Lion:

  1. install mac ports.
  2. sudo port install boost
  3. sudo port install wxgtk-2.8
  4. sudo port install pkgconfig
  5. sudo port install curl
  6. download the code package of wxMEdit from https://github.com/hltj/wxMEdit/releases or http://wxmedit.github.io/downloads.html . e.g.:
    ver=master
    curl -L https://github.com/wxMEdit/wxMEdit/archive/$ver.tar.gz > wxMEdit-$ver.tar.gz
  7. tar xvf wxMEdit-$ver.tar.gz
  8. cd wxMEdit-$ver
  9. touch aclocal.m4 configure Makefile.in config.h.in
    OR
    sudo port install autoconf
    sudo port install automake
    export ACLOCAL_AMFLAGS="-I /opt/local/share/aclocal -I /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/share/aclocal/"
    ./autogen.sh
  10. ./configure --prefix=/opt/local --with-wx-config=/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/bin/wx-config
  11. make
  12. sudo make install

Hope these can help you.
Happy New Year and have a good holiday.


If use wxgtk-3.0, should install gnu sed, and run gsed -i 's/gtk+-2.0/gtk+-3.0/g' configure* after step 8 in addition to replace step 3 with sudo port install wxgtk-3.0

@deesea

This comment has been minimized.

Show comment
Hide comment
@deesea

deesea Jan 1, 2014

Thanks hltj for the quick reply and the steps. Happy New Year to you too !

I've followed the steps; all when successfully, except the "port install aclocal" that "Error: Port aclocal not found". Was this important ?

"make" and "sudo make install" were successful too. Now, I'm stuck here. What does this produce ? A pkg, a dmg, a .app ? Where? Shouldn't there be some kind of app somewhere with its icon ? (please keep in mind that I'm not a Linux dev).

Searching for anything modified lately shows wxmedit. Trying to run it in terminal gives
"Error: Unable to initialize gtk, is DISPLAY set properly?"

"export DISPLAY=0:0" doesn't help either.

.../wxMEdit-2.9.6> ls -lrt
(snip)
drwxr-xr-x 25 Dan staff 850 Jan 1 09:44 src
-rw-r--r-- 1 Dan staff 314 Jan 1 09:44 wxmedit.desktop
-rwxr-xr-x 1 Dan staff 4545484 Jan 1 09:44 wxmedit
.../wxMEdit-2.9.6> file wxmedit
wxmedit: Mach-O 64-bit executable x86_64

-deesea

deesea commented Jan 1, 2014

Thanks hltj for the quick reply and the steps. Happy New Year to you too !

I've followed the steps; all when successfully, except the "port install aclocal" that "Error: Port aclocal not found". Was this important ?

"make" and "sudo make install" were successful too. Now, I'm stuck here. What does this produce ? A pkg, a dmg, a .app ? Where? Shouldn't there be some kind of app somewhere with its icon ? (please keep in mind that I'm not a Linux dev).

Searching for anything modified lately shows wxmedit. Trying to run it in terminal gives
"Error: Unable to initialize gtk, is DISPLAY set properly?"

"export DISPLAY=0:0" doesn't help either.

.../wxMEdit-2.9.6> ls -lrt
(snip)
drwxr-xr-x 25 Dan staff 850 Jan 1 09:44 src
-rw-r--r-- 1 Dan staff 314 Jan 1 09:44 wxmedit.desktop
-rwxr-xr-x 1 Dan staff 4545484 Jan 1 09:44 wxmedit
.../wxMEdit-2.9.6> file wxmedit
wxmedit: Mach-O 64-bit executable x86_64

-deesea

@hltj

This comment has been minimized.

Show comment
Hide comment
@hltj

hltj Jan 2, 2014

Contributor

I found this http://hints.macworld.com/article.php?story=20120719101352282 . It said "Mac OS X 10.8 no longer includes X-11 as an option."

You can try install a X11 server by ports install xorg-server or install XQuartz: http://xquartz.macosforge.org/ .

Though I'm not sure if this is enough.

Contributor

hltj commented Jan 2, 2014

I found this http://hints.macworld.com/article.php?story=20120719101352282 . It said "Mac OS X 10.8 no longer includes X-11 as an option."

You can try install a X11 server by ports install xorg-server or install XQuartz: http://xquartz.macosforge.org/ .

Though I'm not sure if this is enough.

@deesea

This comment has been minimized.

Show comment
Hide comment
@deesea

deesea Jan 2, 2014

ok. Thanks

deesea commented Jan 2, 2014

ok. Thanks

@hltj hltj self-assigned this Sep 20, 2014

@hltj hltj added support and removed support labels Sep 20, 2014

@jjtx

This comment has been minimized.

Show comment
Hide comment
@jjtx

jjtx May 7, 2015

I just want to thank you for the instructions, and confirm I got it working on OS X 10.10, and the program is just what I needed (a hex editor that displays Chinese). I followed the instructions exactly, but received the "Error: Unable to initialize gtk, is DISPLAY set properly?" also. Then I did "ports install xorg-server", but still got the same error (maybe because I didn't know how to logout and log back in, and I didn't try to reboot yet). Then I installed XQuartz. After I rebooted, I was able to run the program by typing "wxmedit" in the install directory in terminal.

jjtx commented May 7, 2015

I just want to thank you for the instructions, and confirm I got it working on OS X 10.10, and the program is just what I needed (a hex editor that displays Chinese). I followed the instructions exactly, but received the "Error: Unable to initialize gtk, is DISPLAY set properly?" also. Then I did "ports install xorg-server", but still got the same error (maybe because I didn't know how to logout and log back in, and I didn't try to reboot yet). Then I installed XQuartz. After I rebooted, I was able to run the program by typing "wxmedit" in the install directory in terminal.

@hltj

This comment has been minimized.

Show comment
Hide comment
@hltj

hltj May 27, 2015

Contributor

OK. Updated.

Contributor

hltj commented May 27, 2015

OK. Updated.

@lordscales91

This comment has been minimized.

Show comment
Hide comment
@lordscales91

lordscales91 Sep 10, 2016

I tried to follow this procedure with latest version (3.1) and I got these errors:

src/dialog/wxm_conv_enc_dialog.h:47:3: error: use of undeclared identifier 'std'
                std::wstring GetEncoding() const;
                ^
src/dialog/wxm_conv_enc_dialog.cpp:94:23: error: no matching member function for
      call to 'Append'
                WxComboBoxEncoding->Append(xm::EncodingManager::Instance...
                ~~~~~~~~~~~~~~~~~~~~^~~~~~
src/dialog/wxm_conv_enc_dialog.cpp:101:11: error: no viable conversion from
      'std::wstring' (aka 'basic_string<wchar_t, char_traits<wchar_t>,
      allocator<wchar_t> >') to 'wxString'
        wxString convenc = encmgr.GetEncodingName(0);
                 ^         ~~~~~~~~~~~~~~~~~~~~~~~~~

The first one is caused because there is a missing header reference to src/dialog/wxm_conv_enc_dialog.h

I added #include <string> in that file and the error dissappeared. The other 2 are produced because std::wstring can't be converted to wxString directly. Starting from wxWidgets 3.0 there is a constructor to make de conversion, but I don't know how to do it on 2.8

lordscales91 commented Sep 10, 2016

I tried to follow this procedure with latest version (3.1) and I got these errors:

src/dialog/wxm_conv_enc_dialog.h:47:3: error: use of undeclared identifier 'std'
                std::wstring GetEncoding() const;
                ^
src/dialog/wxm_conv_enc_dialog.cpp:94:23: error: no matching member function for
      call to 'Append'
                WxComboBoxEncoding->Append(xm::EncodingManager::Instance...
                ~~~~~~~~~~~~~~~~~~~~^~~~~~
src/dialog/wxm_conv_enc_dialog.cpp:101:11: error: no viable conversion from
      'std::wstring' (aka 'basic_string<wchar_t, char_traits<wchar_t>,
      allocator<wchar_t> >') to 'wxString'
        wxString convenc = encmgr.GetEncodingName(0);
                 ^         ~~~~~~~~~~~~~~~~~~~~~~~~~

The first one is caused because there is a missing header reference to src/dialog/wxm_conv_enc_dialog.h

I added #include <string> in that file and the error dissappeared. The other 2 are produced because std::wstring can't be converted to wxString directly. Starting from wxWidgets 3.0 there is a constructor to make de conversion, but I don't know how to do it on 2.8

@hltj

This comment has been minimized.

Show comment
Hide comment
@hltj

hltj Nov 1, 2016

Contributor

@lordscales91 fixed.
Awfully sorry for so late.

Contributor

hltj commented Nov 1, 2016

@lordscales91 fixed.
Awfully sorry for so late.

@shipd

This comment has been minimized.

Show comment
Hide comment
@shipd

shipd Mar 2, 2018

Getting the following error:

/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in syntax
make[2]: Nothing to be done for all'. Making all in po make[2]: Nothing to be done forall'.
make[2]: MKDIR_P@: No such file or directory
make[2]: *** [src/wxm/encoding/.dirstamp] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

shipd commented Mar 2, 2018

Getting the following error:

/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in syntax
make[2]: Nothing to be done for all'. Making all in po make[2]: Nothing to be done forall'.
make[2]: MKDIR_P@: No such file or directory
make[2]: *** [src/wxm/encoding/.dirstamp] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

@hltj

This comment has been minimized.

Show comment
Hide comment
@hltj

hltj Apr 14, 2018

Contributor

@shipd do you follow the steps above ?

Oh, I think maybe the step 9 should be required.

Contributor

hltj commented Apr 14, 2018

@shipd do you follow the steps above ?

Oh, I think maybe the step 9 should be required.

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