Building FlameRobin on Mac OSX 10.9

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Building FlameRobin on Mac OSX 10.9

Milan Babuskov-4
Hello,

I recently bought a Mac Mini and after playing around with it finally
decided to start doing development stuff. Of course, first thing I
want to do is to build FR :)

The OS is 10.9 Mavericks, I have installed Xcode 5.1.1 and its
command-line tools. Compiler is clang:

Milans-Mac-mini:flamerobin milan$ gcc --version
Configured with:
--prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.2.0
Thread model: posix

I build wxWidgets 3.0 from source using:

mkdir wx301
cd wx301
../wxWidgets-3.0.1/configure --disable-debug --disable-shared --enable-unicode

I tried samples, esp. etc sample, and everything seems to work fine.
I also installed Boost using Homebrew, with this command:

brew install boost

I checked out the latest FR from git, and set up the build with
configure script:

../configure --with-wx-config=/Users/milan/Documents/devel/wx301/wx-config
--disable-debug

And after I run "make", I get this error:

Milans-Mac-mini:flamerobin milan$ make
cd .. && ./update-revision-info.sh
/Users/milan/Documents/devel/flamerobin-flamerobin-git/flamerobin/bk-make-pch
./.pch/flamerobin/wx/wxprec.h.gch wx/wxprec.h g++ -I./.pch/flamerobin
-DHAVE_FRCONFIG_H   -DIBPP_DARWIN -I. -I../src -I../src/ibpp -I../res
-I/Users/milan/Documents/devel/wx301-unicode-release-x86/lib/wx/include/osx_cocoa-unicode-static-3.0
-I/Users/milan/Documents/devel/wxWidgets-3.0.1/include
-D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0 -D__WXMAC__ -D__WXOSX__
-D__WXOSX_COCOA__    -DWX_PRECOMP -g -O2 -fno-common
clang: warning: treating 'c-header' input as 'c++-header' when in C++
mode, this behavior is deprecated
In file included from
/Users/milan/Documents/devel/wxWidgets-3.0.1/include/wx/wxprec.h:58:
In file included from
/Users/milan/Documents/devel/wxWidgets-3.0.1/include/wx/wx.h:15:
In file included from
/Users/milan/Documents/devel/wxWidgets-3.0.1/include/wx/object.h:19:
In file included from
/Users/milan/Documents/devel/wxWidgets-3.0.1/include/wx/memory.h:15:
In file included from
/Users/milan/Documents/devel/wxWidgets-3.0.1/include/wx/string.h:46:
/Users/milan/Documents/devel/wxWidgets-3.0.1/include/wx/strvararg.h:30:18:
fatal error: 'tr1/type_traits' file not found
        #include <tr1/type_traits>
                 ^
1 error generated.
make: *** [.pch/flamerobin/wx/wxprec.h.gch] Error 1
=================

I googled for this error message, and found that many had the problem,
but I don't understand what exactly is the problem, or how to solve it
in FR code. I found some solutions that add #ifdefs in their code, but
this shows up in wx code and I'm not sure if I want to patch wx. I
assume there has to be some way to fix it in our sources?

Any ideas?

P.S. If we can get this working, I will be able to provide builds for
newer versions of Mac (AFAIR, Michael wrote recently that he is unable
to upgrade his system).

--
Milan Babuskov
http://www.guacosoft.com

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Flamerobin-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/flamerobin-devel
Reply | Threaded
Open this post in threaded view
|

Re: Building FlameRobin on Mac OSX 10.9

Milan Babuskov-4
On Wed, Jul 9, 2014 at 9:48 PM, Milan Babuskov <[hidden email]> wrote:
> /Users/milan/Documents/devel/wxWidgets-3.0.1/include/wx/strvararg.h:30:18:
> fatal error: 'tr1/type_traits' file not found
>         #include <tr1/type_traits>
>                  ^
> 1 error generated.
> make: *** [.pch/flamerobin/wx/wxprec.h.gch] Error 1
> =================

I experimented a bit. It seems that adding:

CXXFLAGS="-mmacosx-version-min=10.5" LDFLAGS="-mmacosx-version-min=10.5"

to ../configure solves the problem.

Is this correct way to do it?


Anyway, I am able to run FR, but when I open the SQL editor and type
enough characters for autocomplete to kick-in, the program crashes. I
will probably have to build the debug version to find out the reason.
Anyway, it's 3:20 AM now, I'm going to sleep :)

--
Milan Babuskov
http://www.guacosoft.com

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Flamerobin-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/flamerobin-devel
Reply | Threaded
Open this post in threaded view
|

Re: Building FlameRobin on Mac OSX 10.9

Simeon Mitev
"... Anyway, I am able to run FR, but when I open the SQL editor and
type enough characters for autocomplete to kick-in, the program crashes."


the same problem here but still no solution for it ...


On 10/07/14 03:25, Milan Babuskov wrote:

> On Wed, Jul 9, 2014 at 9:48 PM, Milan Babuskov <[hidden email]> wrote:
>> /Users/milan/Documents/devel/wxWidgets-3.0.1/include/wx/strvararg.h:30:18:
>> fatal error: 'tr1/type_traits' file not found
>>          #include <tr1/type_traits>
>>                   ^
>> 1 error generated.
>> make: *** [.pch/flamerobin/wx/wxprec.h.gch] Error 1
>> =================
>
> I experimented a bit. It seems that adding:
>
> CXXFLAGS="-mmacosx-version-min=10.5" LDFLAGS="-mmacosx-version-min=10.5"
>
> to ../configure solves the problem.
>
> Is this correct way to do it?
>
>
> Anyway, I am able to run FR, but when I open the SQL editor and type
> enough characters for autocomplete to kick-in, the program crashes. I
> will probably have to build the debug version to find out the reason.
> Anyway, it's 3:20 AM now, I'm going to sleep :)
>

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Flamerobin-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/flamerobin-devel