acdsn:acdsn-a:mac
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| acdsn:acdsn-a:mac [2013/08/19 08:44] – created sbolay | acdsn:acdsn-a:mac [2015/07/08 08:43] (current) – [Install wxPerl for Mac] tret | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ==== Compile acdsn-a | + | ==== Install wxPerl |
| - | FIXME | + | |
| - | Update to a threaded perlbrew version | + | $ sudo cpanm Wx |
| - | * http:// | + | |
| - | dyld: Library not loaded: | + | If you get the error '' |
| - | mbp-Sylvain: | + | Find your '' |
| - | -rw-r--r-- 1 root wheel 60588 26 jui 22:47 libintl.8.dylib | + | |
| - | mbp-Sylvain: | + | |
| + | $ # => / | ||
| - | mbp-Sylvain: | + | We're only interested by the path up to the '' |
| - | -rwxr-xr-x | + | |
| - | dyld: Library not loaded: / | + | Go to your Wx build directory. |
| - | ==> DOES NOT WORK! | + | |
| + | $ cd ~/ | ||
| - | So: | + | Edit '' |
| - | mbp-Sylvain: | + | |
| - | declare -x PATH="/Users/sbolay/ | + | |
| - | mbp-Sylvain:easyaccess-app sbolay$ export PATH="/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/ | + | You should have a line like this: |
| + | | ||
| + | |||
| + | Rebuild! | ||
| - | dyld: Library not loaded: / | + | $ sudo make && sudo make install |
| - | ==> DOES NOT WORK! | + | |
| - | mbp-Sylvain:lib sbolay# mv libintl.8.dylib libintl.8.dylib.bck | + | ==== Compile acdsn-a for Mac ==== |
| + | FIXME | ||
| + | Update to a threaded perlbrew version | ||
| + | * http:// | ||
| - | You can download MacPorts here. After installing MacPorts unarchive the pkg-config file, open a terminal, switch to the folder and type the following command: | + | http:// |
| - | mbp-Sylvain:pkg-config-0.27 sbolay$ sudo port selfupdate | + | After a pp compilation |
| - | mbp-Sylvain:pkg-config-0.27 sbolay$ sudo port install pkgconfig | + | $ ./ |
| + | Can't load '/ | ||
| - | mbp-Sylvain: | ||
| - | Must specify package names on the command line | ||
| - | ==> GOOD!!!! | + | First this small error: |
| + | dyld: Library not loaded: / | ||
| - | mbp-Sylvain: | + | Check what is going on |
| + | $ cd / | ||
| + | | ||
| + | | ||
| - | mbp-Sylvain: | + | Try to change mode |
| - | mbp-Sylvain: | + | |
| - | mbp-Sylvain:pkg-config-0.27 sbolay$ cpanm ExtUtils:: | + | $ ls -la libintl.8* |
| + | -rwxr-xr-x 1 root wheel 60588 26 jui 22:47 libintl.8.dylib | ||
| + | but | ||
| + | dyld: Library not loaded: / | ||
| + | ==> DOES NOT WORK! | ||
| - | mbp-Sylvain: | ||
| - | --> Working on ExtUtils:: | ||
| - | Fetching http:// | ||
| - | Configuring ExtUtils-PkgConfig-1.14 ... OK | ||
| - | Building and testing ExtUtils-PkgConfig-1.14 ... OK | ||
| - | Successfully installed ExtUtils-PkgConfig-1.14 | ||
| - | 1 distribution installed | ||
| + | So have a look to the PATH: | ||
| + | $ export | ||
| + | declare -x PATH="/ | ||
| - | mbp-Sylvain:easyaccess-app | + | Trying to put the perl locations at the end |
| + | $ export PATH="/ | ||
| - | mbp-Sylvain:easyaccess-app sbolay$ cpanm Device::SerialPort | + | but: |
| + | dyld: Library not loaded: / | ||
| + | ==> DOES NOT WORK! | ||
| - | mbp-Sylvain: | + | OK, first backup the library |
| + | # mv libintl.8.dylib libintl.8.dylib.bck | ||
| - | Can't locate Wx/Perl/Packager.pm in @INC ... | + | Then, download MacPorts [[http://www.macports.org/|here]]. After installing MacPorts unarchive the pkg-config file, open a terminal, switch to the folder and type the following command: |
| + | $ sudo port selfupdate | ||
| + | $ sudo port install pkgconfig | ||
| + | $ pkg-config | ||
| + | Must specify package names on the command line | ||
| + | ==> GOOD!!!! | ||
| - | mbp-Sylvain:easyaccess-app sbolay$ which pp | + | Ok, go ahead: |
| - | /usr/bin/pp | + | $ perlbrew install |
| + | | ||
| + | $ hash -r | ||
| + | $ cpanm ExtUtils:: | ||
| + | --> Working on ExtUtils:: | ||
| + | Fetching http://www.cpan.org/authors/ | ||
| + | Configuring ExtUtils-PkgConfig-1.14 ... OK | ||
| + | Building and testing ExtUtils-PkgConfig-1.14 ... OK | ||
| + | Successfully installed ExtUtils-PkgConfig-1.14 | ||
| + | 1 distribution installed | ||
| - | mbp-Sylvain: | + | Install all what in modules.txt |
| + | | ||
| - | mbp-Sylvain:easyaccess-app sbolay$ cpanm Wx::Perl:: | + | Install a missing package(not yet in modules.txt): |
| + | | ||
| - | mbp-Sylvain: | + | And now |
| + | $ pp --gui -I lib -o test -x bin/ | ||
| + | Can't locate Wx/ | ||
| + | |||
| + | So which pp do I use? | ||
| + | $ which pp | ||
| + | / | ||
| + | |||
| + | Ok, update this perlbrew version | ||
| + | $ cpanm PAR:: | ||
| + | $ cpanm Wx:: | ||
| + | |||
| + | And we can try also this | ||
| + | | ||
| + | <code perl> | ||
| Add | Add | ||
| use Wx:: | use Wx:: | ||
| above | above | ||
| use Wx; | use Wx; | ||
| + | </ | ||
| - | mbp-Sylvain:easyaccess-app sbolay$ which pp | + | And now, check which pp: |
| - | /Users/sbolay/ | + | |
| - | + | /Users/somebody/ | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | mbp-Sylvain: | + | |
| - | / | + | |
| - | + | ||
| - | ls | + | |
| - | + | ||
| - | -rwxr-xr-x | + | |
| - | lrwxr-xr-x | + | |
| - | lrwxr-xr-x | + | |
| - | mbp-Sylvain:lib sbolay$ rm libwx_osx_cocoau_adv-2.9.dylib | + | Symlinks are not properly included during the compilation with pp. So: |
| - | mbp-Sylvain: | + | |
| - | mbp-Sylvain: | + | $ ls |
| - | mbp-Sylvain: | + | |
| + | lrwxr-xr-x | ||
| + | lrwxr-xr-x | ||
| - | mbp-Sylvain: | + | So, remove the symlink and cp the original file instead |
| - | mbp-Sylvain: | + | |
| + | $ cp libwx_osx_cocoau_adv-2.9.4.0.0.dylib | ||
| - | mbp-Sylvain: | + | |
| - | mbp-Sylvain: | + | $ cp libwx_osx_cocoau_core-2.9.4.0.0.dylib |
| - | mbp-Sylvain: | + | |
| - | mbp-Sylvain: | + | $ cp libwx_baseu-2.9.4.0.0.dylib |
| + | $ rm libwx_osx_cocoau_media-2.9.dylib | ||
| + | $ cp libwx_osx_cocoau_media-2.9.4.0.0.dylib libwx_osx_cocoau_media-2.9.dylib | ||
| + | $ rm libwx_osx_cocoau_html-2.9.dylib | ||
| + | $ cp libwx_osx_cocoau_html-2.9.4.0.0.dylib libwx_osx_cocoau_html-2.9.dylib | ||
| + | And now, the compilation should be ok! | ||
| + | ===== Driver ===== | ||
| + | You can find on the [[http:// | ||
| + | You may have to delete the extended attribute | ||
| + | sudo xattr -d com.apple.quarantine / | ||
acdsn/acdsn-a/mac.1376901864.txt.gz · Last modified: 2013/08/19 08:44 by sbolay