Need help with building on Mac

Bug #1109585 reported by temnor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Brewtarget
Fix Released
Medium
jazzbeerman

Bug Description

Hello,
I am not able to build brewtarget on mac... I always ends wtih following error:
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
make[2]: *** [src/brewtarget] Error 1
make[1]: *** [src/CMakeFiles/brewtarget.dir/all] Error 2
make: *** [all] Error 2
Thanks for advices

Revision history for this message
Mik Firestone (mikfire) wrote :

What version of Mac, brewtarget and Qt?

Revision history for this message
temnor (temnor) wrote :

MacBook White with Lion 10.7.5
QT installed with homebrew
qt: stable 4.8.3 (bottled), HEAD
http://qt.nokia.com/
/usr/local/Cellar/qt/4.8.2 (2752 files, 197M)
/usr/local/Cellar/qt/4.8.3 (2779 files, 194M) *
https://github.com/mxcl/homebrew/commits/master/Library/Formula/qt.rb
==> Options
--developer
Compile and link Qt with developer options
--with-mysql
Enable MySQL plugin
--universal
Build a universal binary
--with-debug-and-release
Compile Qt in debug and release mode
--with-demos-examples
Enable Qt demos and examples
--with-qt3support
Enable deprecated Qt3Support module
--with-qtdbus
Enable QtDBus module
==> Caveats
We agreed to the Qt opensource license for you.
If this is unacceptable you should uninstall.

Revision history for this message
temnor (temnor) wrote :

And brewtarget is trunk version

Revision history for this message
jazzbeerman (dcavanagh) wrote :

I'm creating a new bug for this issue. In the meantime, Petr, in CMakeLists.txt find
IF( APPLE AND NOT CMAKE_OSX_ARCHITECTURES )
   SET( CMAKE_OSX_ARCHITECTURES i386 x86_64 ) # Build intel binary.
   #SET( CMAKE_OSX_ARCHITECTURES ppc i386 ppc64 x86_64 ) # Build universal binary.
ENDIF(), under
change that second line to
SET( CMAKE_OSX_ARCHITECTURES x86_64 ) # Build intel binary.

Revision history for this message
jazzbeerman (dcavanagh) wrote :
Revision history for this message
temnor (temnor) wrote :

The CMakeList.txt fix works, but now the app throws error on launch - cannot read the database or something like that

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.