aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: compilation on macOS Mojave 10.14  (Read 1561 times)

pthall

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
compilation on macOS Mojave 10.14
« on: May 28, 2019, 03:34:26 AM »

I have compilation errors on macOS Mojave 10.14 that I haven't been able to resolve.

wxWidgets 3.0.4 was compiled:
Code: [Select]
$ ls -l /usr/local/bin/wx*
lrwxr-xr-x  1 root        wheel            53 May 26 10:37 /usr/local/bin/wx-config -> /usr/local/lib/wx/config/osx_cocoa-unicode-static-3.0
lrwxr-xr-x  1 root        wheel             8 May 26 10:37 /usr/local/bin/wxrc -> wxrc-3.0
-rwxr-xr-x@ 1 localuser  1073494981  1360400 May 26 10:34 /usr/local/bin/wxrc-3.0

The error which seems relevant from error_output. I double-checked that I have bison and flex installed (from MacPorts):
Code: [Select]
./Parser.y:4:10: fatal error: 'Scanner.h' file not found
#include "Scanner.h"
         ^~~~~~~~~~~
1 error generated.
make[3]: *** [libmuleappcore_a-Parser.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Code: [Select]
$ find . -name "Scanner*"
./src/Scanner.l
./src/Scanner.cpp
./src/Scanner.h.in

Configure parameters for wxWidgets:
Code: [Select]
./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-macosx-version-min=10.14
Configure parameters for aMule:
Code: [Select]
    ./configure --enable-optimize --with-crypto-prefix=/opt/local --with-gdlib-prefix=/opt/local --enable-cas --enable-webserver \
    --enable-amulecmd --enable-amule-gui --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemon --enable-geoip \
    --with-geoip-lib=/opt/local/lib --with-geoip-headers=/opt/local/include --with-libpng-prefix=/opt/local --disable-debug

config.log:
https://pastebin.com/Fg4iY5v9

configure:
https://gist.github.com/pthall/c4ad8d6868a208b0decf762e223aa69b

Xcode 10.2
Source is from the DLP fork https://github.com/persmule/amule-dlp/

Thanks for any help in advance.
« Last Edit: May 28, 2019, 03:38:37 AM by pthall »
Logged

pthall

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: compilation on macOS Mojave 10.14
« Reply #1 on: June 01, 2019, 10:34:50 PM »

I resolved by manually generating the file with flex before running configure and make:
Code: [Select]
cd amule-cvs/src/
flex --header-file=./Scanner.h -o Scanner.cpp ./Scanner.l
Logged

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 65
  • Offline Offline
  • Posts: 1479
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: compilation on macOS Mojave 10.14
« Reply #2 on: June 06, 2019, 05:00:27 PM »

Nice to hear.
Logged
Homefucking is killing prostitution