Mac build problems

Page 1 of 1
2 posts
Mac build problems

Mikaciu
New MMEX User

Posts: 1
Joined: Tue Mar 13, 2012 3:32 pm
Hi everyone,

I'm trying to compile mmex into this nice Mac App I have and which is now outdated.

I followed the instructions at the address http://www.codelathe.com/mmex/wiki/doku ... structions and I stumble upon 2 problems.

First, the bakefile thing is giving me some errors :
Code: Select all
root@maxwell:mmex# pwd
/Users/mika/Downloads/build_mmex/moneymanagerex/mmex
root@maxwell:mmex# ./bootstrap
[1/16] generating gnu from ../../setup/win/setup.bkl
[2/16] generating msvc from ../../setup/win/setup.bkl
Warning: disabling XML cache because it's not supported by this version of Python
Warning: disabling XML cache because it's not supported by this version of Python
[bakefile_gen] waiting for remaining jobs to finish after error...
[bakefile_gen] error: bakefile exited with error (-11)
using automake from /usr/share/
file INSTALL exists, skipping
file config.guess exists, skipping
file config.sub exists, skipping
file install-sh exists, skipping


Annoying. FYI :
Code: Select all
root@maxwell:mmex# python --version
Python 2.7.1


When i change the python binary from 2.7 to 3.2 :
Code: Select all
root@maxwell:mmex# mv /usr/bin/python /usr/bin/python.old && ln -s /opt/local/bin/python3.2 /usr/bin/python
root@maxwell:mmex# python --version
Python 3.2.2
root@maxwell:mmex# ./bootstrap
  File "/opt/local/bin/bakefile_gen", line 139
    print 'loading task description from %s...' % filename
                                              ^
SyntaxError: invalid syntax
using automake from /usr/share/
file INSTALL exists, skipping
file config.guess exists, skipping
file config.sub exists, skipping
file install-sh exists, skipping


Still annoying.

Anyways, I tried something seemingly stupid and ran the configure script :
Code: Select all
root@maxwell:mmex# ./configure CXXFLAGS="-I/Users/mika/Downloads/build_mmex/boost_1_42_0/" prefix=`pwd` datarootdir='${prefix}/mmex.app/Contents/SharedSupport' bindir='${prefix}/mmex.app/Contents/MacOS'
checking build system type... i686-apple-darwin11.3.0
checking host system type... i686-apple-darwin11.3.0
checking target system type... i686-apple-darwin11.3.0
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C++ preprocessor... g++ -E
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for the --enable-debug option... will be automatically detected
checking for the --enable-unicode option... will be automatically detected
checking for the --enable-shared option... will be automatically detected
checking for the --with-motif option... will be automatically detected
checking for the --with-gtk option... will be automatically detected
checking for the --with-x11 option... will be automatically detected
checking for the --with-mac option... will be automatically detected
checking for the --with-mgl option... will be automatically detected
checking for the --with-msw option... will be automatically detected
checking for the --with-wxshared option... will be automatically detected
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether ln -s works... yes
checking for ranlib... (cached) ranlib
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking how to run the C++ preprocessor... g++ -E
checking for wx-config... /opt/local/bin/wx-config
checking for wxWidgets version >= 2.8.10... yes (version 2.8.12)
checking for wxWidgets static library... no
checking if wxWidgets was built with UNICODE enabled... yes
checking if wxWidgets was built in DEBUG mode... no
checking if wxWidgets was built in STATIC mode... no
checking if wxWidgets port is wxGTK... no
checking if wxWidgets port is wxMotif... no
checking if wxWidgets port is wxMac... yes
checking if wxWidgets port is wxX11... no
checking if wxWidgets port is wxMGL... no
checking if wxWidgets port is wxMSW... no
checking whether we are using the Intel C compiler... no
checking whether we are using the Intel C++ compiler... no
checking whether we are using the Metrowerks C++ compiler... no
checking whether we are using the IBM xlC C++ compiler... no
checking for ranlib... (cached) ranlib
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for ar... ar
checking for strip... strip
checking for nm... nm
checking for command to install directories... /usr/bin/install -c -d
checking if make is GNU make... yes
checking for gcc 3.1 or later... yes
checking for dependency tracking method... gcc
checking for Rez... Rez
checking for SetFile... SetFile
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/tests/Makefile
config.status: creating ./po/Makefile
config.status: creating ./setup/win/Makefile

 ----------------------------------------------------------------
  Configuration for MoneyManagerEx 0.9.9.0 successfully completed.
  Summary of main configuration settings for MoneyManagerEx:
  - RELEASE build
  - UNICODE mode
  - SHARED mode
  - RELEASE build
  - UNICODE mode
  - SHARED mode
  - VERSION: 2.8.12
  - PORT: mac

  The wxWidgets build which will be used by MoneyManagerEx 0.9.9.0
  has the following settings:
  - RELEASE build
  - UNICODE mode
  - SHARED mode
  - VERSION: 2.8.12
  - PORT: mac

  Now, just run make.
 ----------------------------------------------------------------


It completed error-free. But when I 'make' the sources :
Code: Select all
ld: warning: ignoring file mmex_aboutdialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_appstartdialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_assetdialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_assetspanel.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_billsdepositsdialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_billsdepositspanel.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_budgetentrydialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_budgetingpanel.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_budgetyeardialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_budgetyearentrydialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_categdialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_chart.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_constants.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_currencydialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_customreportdialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_customreportdisplay.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_customreportindex.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_dbwrapper.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_fileviewerdialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_filtertransdialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_guiid.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_htmlbuilder.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_led.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_maincurrencydialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_mmaccount.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_mmcategory.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_mmcheckingpanel.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_mmcoredb.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_mmcurrency.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_mmex.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_mmgraphgenerator.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_mmgraphincexpensesmonth.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_mmgraphpie.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_mmgraphtopcategories.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_mmhelppanel.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_mmhomepagepanel.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_mmpayee.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_mmreportspanel.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_mmtransaction.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_mmyahoo.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_newacctdialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_optionsdialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_paths.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_payeedialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_qifimport.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_recentfiles.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_relocatecategorydialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_relocatepayeedialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_reportbudget.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_reportbudgetcategorysummary.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_reportbudgetingperf.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_reportcashflow.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_reportcategexp.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_reportcategovertimeperf.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_reportincexpenses.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_reportincexpensesfinancialperiod.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_reportincexpesestime.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_reportpayee.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_reportsummary.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_reportsummaryassets.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_reportsummarystocks.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_reporttransactions.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_reporttransstats.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_splitdetailsdialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_splittransactionsdialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_stockdialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_stockspanel.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_transactionfilterdialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_transdialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_univcsvdialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_util.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_yahoosettingsdialog.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file mmex_platfdep.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file ./libwxsqlite.a, file was built for archive which is not the architecture being linked (i386)
ld: warning: ignoring file ./libsqlite.a, file was built for archive which is not the architecture being linked (i386)
Undefined symbols for architecture i386:
  "_main", referenced from:
      start in crt1.10.6.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
make: *** [mmex] Error 1


FYI, my arch :
Code: Select all
root@maxwell:mmex# uname -a
Darwin maxwell.local 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64


If someone has some ideas on why I do stumble upon those errors, please help me build this fantastic tool :)

Thanks for your attention.
Re: Mac build problems

omalleypat
MMEX Developer

Posts: 175
Joined: Tue Jul 28, 2009 4:34 pm
Location: Atchison, KS
Not sure why you're getting a bakefile error (I get those XML python warnings - I don't think that is the problem). I have Snow Leopard though.
Page 1 of 1
Who is online

Users browsing this forum: No registered users and 1 guest

cron