Author

Topic: Help Building -QT on OSX/Mac? (Read 399 times)

sr. member
Activity: 308
Merit: 250
May 21, 2013, 05:04:16 PM
#1
ok, I posted this in the Technical Discussion section, but not knowing how much traffic it gets and knowing a few around here are good with this kinda thing I thought I'd repost it here too:

I'm stuck. I've tried a lot of things yet I can simply NOT get past this:

Undefined symbols:
  "MapPort()", referenced from:
      OptionsModel::setData(QModelIndex const&, QVariant const&, int)in optionsmodel.o
  "_fUseUPnP", referenced from:
      OptionsModel::setData(QModelIndex const&, QVariant const&, int)in optionsmodel.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

When it tries to build. I have tried on multiple VMs with multiple QT and GCC versions, nearly all end up with this error. Here's what I did on the latest build:

Installed OSX 10.6 in VMWare
Updated through 10.6.8 and all available software through today
Installed XCode 3.2.6
Installed MacPorts
$sudo port install boost db48 git-core openssl miniupnpc
went in to ~/bitcoin and tried to do:
qmake and then make

When it errored out, I tried installing QT Creator just to take the qmake line and tried this one:

$ qmake /Users/adam/bitcoin/bitcoin-qt.pro -r -spec macx-g++ CONFIG+=x86_64 "USE_UPNP=-"

but when I make it errors out the same. I've tried editing the .pro file with /opt/local/ includes for MINIUPNPC and all others. I've also tried building another VM from scratch and doing the SAME thing without ports, using homebrew instead. SAME ISSUES!

Please, I know this has to be something easy I'm missing, anyone anyone help?
Jump to: