Synfig Project Forum

Forums for Synfig Project
It is currently Wed Jun 19, 2013 8:32 am

All times are UTC - 4 hours [ DST ]




Post new topic Reply to topic  [ 103 posts ]  Go to page 1, 2, 3, 4, 5 ... 7  Next
Author Message
PostPosted: Tue Oct 06, 2009 11:30 am 
Offline
User avatar

Joined: Mon Mar 30, 2009 7:33 am
Posts: 394
Location: Spain
Genete and ulrik: If you tell me the steps I have to do, I can try to build it on an Intel based Mac. :D


Top
 Profile  
 
PostPosted: Tue Oct 06, 2009 3:40 pm 
Offline
Site Admin

Joined: Sat Dec 01, 2007 6:21 am
Posts: 101
Location: Sweden
Hi!

I am about to write how I manage to build Synfig against X11 in OSX at the wiki but I have not had the time yet to do it, but I have made a simple text doc for my self and I am willing to share it here and I hope you can follow it :D , if there will be problems I'm willing to answer your questions if I can, I'm not familiar with data programming I think I'm just plain lucky to have succesfully managed to build Synfig :lol:
This is the doc:
I wish you good luck and please report here how it goes.

Build environment for building against X11

Since these instructions assume one is using MacPorts, make sure the following environment variables are set accordingly:
export PATH="/opt/local/bin:$PATH"
export ACLOCAL_FLAGS="-I /opt/local/share/aclocal"
export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig"

I shall assume you only have XCode and MacPorts installed. In order to get subversion and git, you should be able to type the following into the terminal:
sudo port install git-core
sudo port install subversion

Assuming MacPorts installed subversion and git correctly, you'll now need to grab and compile a copy of jhbuild from the gnome repository, which can be done like so:
svn co http://svn.gnome.org/svn/jhbuild/trunk jhbuild
cd jhbuild && make -f Makefile.plain install

Building GTK+

Download, from here:
http://downloads.sourceforge.net/source ... d-setup.sh
gtk-osx-setup.sh to your home directory and run it:
$ sh gtk-osx-build-setup.sh
It will install jhbuild in ~/Source and create ~/bin/jhbuild. It will also install ~/.jhbuildrc and ~/.jhbuildrc-custom and will copy the current gtk-osx modules into ~/Source/jhbuild/modulesets.
Note: jhbuild requires Python 2.5 to unpack tar files, but Tiger provides Python 2.3. We provide Python 2.5 in meta-gtk-osx-bootstrap, but that doesn't help for running jhbuild because the non-jhbuild shell doesn't ordinarily see your gtk installation. You can define an alias to get around this problem:
$ alias jhbuild="PATH=gtk-prefix/bin:$PATH jhbuild"
Obviously you should substitute the actual path of your gtk installation for gtk-prefix. If you add it to your .bashrc or .bash_profile you won't need to worry about it.
Now do
$ jhbuild bootstrap

In order to compile synfig for X11, you will need to install gtkmm and libxml++ via MacPorts (or Fink). This can be done as follows:
sudo port install gtkmm libxmlxx2

This will also install all the other dependencies (such as X11), so it make take some time to compile.
You need to set PKG_CONFIG_PATH so that the ETL and synfig-core header files and libraries can be found:
export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig


For some unknown reason compiling ETL, synfig-core and synfig-studio doesn't work properly when using MacPorts auto* tools. However, it does work with the bootstrap toolset used to compile Imendio's native GTK port. So it is suggested that you follow the Boot strapping section up to and including the 'jhbuild bootstrap' line and make sure "/opt/gtk/bin" is first in your $PATH in order to properly compile etl, synfig-core and synfig-studio.
You should now be able to follow the Build instructions to compile ETL, synfig-core, and synfig-studio. The only thing different you should do is add "--prefix=/opt/local --exec-prefix=/opt/local" to the "./configure" options when building each package.
Assuming you manage to build it correctly, you should now be able to type the following in order for Synfig to pop up on your desktop:
synfigstudio

Follow the instructions to build ETL, Synfig core and Synfig studio here:
http://www.synfig.com/wiki/Build_instructions

after installing all dependent libraries that the Synfig package requires build all packages and see to that you have /opt/synfig in your path.

Building all packages:

cd synfig/ETL
export PKG_CONFIG_PATH=/opt/synfig/lib/pkgconfig
export PATH=/opt/synfig/bin:$PATH
autoreconf --install --force
./configure --prefix=/opt/synfig
sudo make install


cd synfig/synfig-core
glibtoolize --ltdl --copy --force
export PKG_CONFIG_PATH=/opt/synfig/lib/pkgconfig
export PATH=/opt/synfig/bin:$PATH
autoreconf --install --force
./configure --prefix=/opt/synfig
make
sudo make install


cd synfig/synfig-studio
export PKG_CONFIG_PATH=/opt/synfig/lib/pkgconfig
export PATH=/opt/synfig/bin:$PATH
autoreconf --install --force
./configure --prefix=/opt/synfig
make
sudo make install


Top
 Profile  
 
PostPosted: Tue Oct 06, 2009 4:18 pm 
Offline
Site Admin

Joined: Sat Dec 01, 2007 6:21 am
Posts: 101
Location: Sweden
Much of this text is taken from:
http://www.synfig.com/wiki/Building_On_Mac_OS_X

However there are some differencies and it is mainly about the jhbuild matter since the old link to the .jhbuildrc file is not valid anymore.


Top
 Profile  
 
PostPosted: Tue Oct 06, 2009 5:35 pm 
Offline
User avatar

Joined: Mon Mar 30, 2009 7:33 am
Posts: 394
Location: Spain
Thank you very much. I tried some months ago following the instructions on the wiki, but I couldn't build it. I had a lot of problems (native and using X11). I have Macports installed and the last xcode tools, so I'm going to try again with your instructions. I will tell you about.
Thanks again.
Rafael.


Top
 Profile  
 
PostPosted: Wed Oct 07, 2009 7:10 am 
Offline
User avatar

Joined: Mon Mar 30, 2009 7:33 am
Posts: 394
Location: Spain
The first problem: I had an old version of git-core and subversion. I solved this updating them with Porticus.
Second problem:
Attachment:
Imagen 5.png
Imagen 5.png [ 15.72 KiB | Viewed 3177 times ]


You write: "Obviously you should substitute the actual path of your gtk installation for gtk-prefix. If you add it to your .bashrc or .bash_profile you won't need to worry about it".

Sorry: How can I do that?

Rafael.


Top
 Profile  
 
PostPosted: Wed Oct 07, 2009 7:24 am 
Offline
Site Admin

Joined: Sat Dec 01, 2007 6:21 am
Posts: 101
Location: Sweden
you can use a text editor to open the .bashrc file located in your user root, if you dont have that file edit the .profile file instead, enter the path and save it. You have to have a texteditor that can find invisible files, the dot in front of the files name indicates that it's hidden. A good text editor that is capable of finding hidden files is "Textwrangler" and it's free.


Top
 Profile  
 
PostPosted: Thu Oct 08, 2009 4:49 am 
Offline
User avatar

Joined: Mon Mar 30, 2009 7:33 am
Posts: 394
Location: Spain
I don't have the .bashrc file. This is the .profile file:
Attachment:
Imagen 7.png
Imagen 7.png [ 98.04 KiB | Viewed 3152 times ]


What must I write and in which line?
Thanks.

I don't know if it is important: I have installed Porticus.
Rafael.


Last edited by Rafael on Thu Oct 08, 2009 4:55 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Thu Oct 08, 2009 5:04 am 
Offline
Site Admin

Joined: Sat Dec 01, 2007 6:21 am
Posts: 101
Location: Sweden
I don't have the bashrc file either, this is my .profile:


# MacPorts Installer addition on 2009-01-25_at_14:22:05: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/Users/ulrik/bin:/opt/synfig/bin:/Users/ulrik/sbin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.


# MacPorts Installer addition on 2009-01-25_at_14:22:05: adding an appropriate MANPATH variable for use with MacPorts.
export MANPATH=/opt/local/share/man:$MANPATH
# Finished adapting your MANPATH environment variable for use with MacPorts.


test -r /sw/bin/init.sh && . /sw/bin/init.sh
export PATH=Users/ulrik/bin:$PATH

The "export PATH" line is the one you should edit, this is my line:

export PATH=/opt/local/bin:/Users/ulrik/bin:/opt/synfig/bin:/Users/ulrik/sbin:/opt/local/sbin:$PATH

Your "export PATH" line does not include your user paths, I suggest you to include "/Users/rafaymaria/bin" and also "/opt/synfig/bin" I think that will do it :)


Top
 Profile  
 
PostPosted: Thu Oct 08, 2009 5:17 am 
Offline
User avatar

Joined: Mon Mar 30, 2009 7:33 am
Posts: 394
Location: Spain
Something like that?
Attachment:
Imagen 9.png
Imagen 9.png [ 65.06 KiB | Viewed 3257 times ]


I haven't theese lines. Do I copy that too, or they are another thing?
Attachment:
Imagen 10.png
Imagen 10.png [ 10.06 KiB | Viewed 3244 times ]


Top
 Profile  
 
PostPosted: Thu Oct 08, 2009 5:25 am 
Offline
User avatar

Joined: Mon Mar 30, 2009 7:33 am
Posts: 394
Location: Spain
Bad luck:
Attachment:
Imagen 11.png
Imagen 11.png [ 13.56 KiB | Viewed 3265 times ]


Any idea?


Top
 Profile  
 
PostPosted: Thu Oct 08, 2009 7:34 am 
Offline
Site Admin

Joined: Sat Dec 01, 2007 6:21 am
Posts: 101
Location: Sweden
As soon as you close the terminal window, all temporary commands, paths etc is lost, I think that is why it can't find the jhbuild command, if you run the jhbuild bootstrap directly after running the jhbuld script it should work (that is what I usually do when I have to rebuild the gtk via jhbuild) when you have succeed with the jhbuild bootstrap cammand it is not nessecairy to run it again.

btw, do you have /Users/yourname/bin in your path? if you have have , terminal should find the jhbuild script I think, could you please check that you have a file called "jhbuild" here: /Users/yourname/bin?


Top
 Profile  
 
PostPosted: Thu Oct 08, 2009 7:40 am 
Offline
User avatar

Joined: Mon Mar 30, 2009 7:33 am
Posts: 394
Location: Spain
Yes, I have this file:
Attachment:
Imagen 13.png
Imagen 13.png [ 16.81 KiB | Viewed 3238 times ]

How I see if I have Users/rafaymaria/bin in the PATH?
Now, I have this:
Attachment:
Imagen 12.png
Imagen 12.png [ 67.01 KiB | Viewed 3245 times ]


Top
 Profile  
 
PostPosted: Thu Oct 08, 2009 7:49 am 
Offline
Site Admin

Joined: Sat Dec 01, 2007 6:21 am
Posts: 101
Location: Sweden
your "export PATH" line is a bit strange, it should be:

export PATH=/opt/local/bin:/Users/rafaymaria/bin:/opt/synfig/bin:/Users/rafaymaria/sbin:/opt/local/sbin:$PATH

there are some wrong typing there, don't forget the sign ":"


Top
 Profile  
 
PostPosted: Thu Oct 08, 2009 9:24 am 
Offline
User avatar

Joined: Mon Mar 30, 2009 7:33 am
Posts: 394
Location: Spain
Successfull.
Now I have downloaded:
Attachment:
descargados.png
descargados.png [ 17.48 KiB | Viewed 3204 times ]

I think I must untar them before continue. But, where can I put them? In rafaymaria directory?


Top
 Profile  
 
PostPosted: Thu Oct 08, 2009 9:53 am 
Offline
Site Admin

Joined: Sat Dec 01, 2007 6:21 am
Posts: 101
Location: Sweden
Great :D

I have them like this:
/User/myname/synfig/here I have all folders (ETL, synfig-core and synfig-studio)

make a new folder here /Users/yourname/, name it "synfig", drop you downloaded files into that folder and unpack them, then you should have at least, "ETL", "synfig-core" and "synfig-studio"


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 103 posts ]  Go to page 1, 2, 3, 4, 5 ... 7  Next

All times are UTC - 4 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group