Synfig Project Forum

Forums for Synfig Project
It is currently Thu May 23, 2013 12:06 am

All times are UTC - 4 hours [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Compilation error
PostPosted: Sun Jun 21, 2009 12:36 pm 
Offline
User avatar

Joined: Mon Aug 04, 2008 6:10 pm
Posts: 265
Location: Amsterdam, the Netherlands
Genete,

I get the following error on a clean checkout:
Quote:
zoomdial.cpp: In constructor 'studio::ZoomDial::ZoomDial(Gtk::IconSize&)':
zoomdial.cpp:54: error: 'GTK_STOCK_ZOOM_IN' was not declared in this scope
zoomdial.cpp:55: error: 'GTK_STOCK_ZOOM_OUT' was not declared in this scope
zoomdial.cpp:56: error: 'GTK_STOCK_ZOOM_FIT' was not declared in this scope
zoomdial.cpp:57: error: 'GTK_STOCK_ZOOM_100' was not declared in this scope

Could it be that you forgot to commit some files?

G.

_________________
Abstraction: The Biggest Lie in Computer Science.


Top
 Profile  
 
 Post subject: Re: Compilation error
PostPosted: Sun Jun 21, 2009 2:33 pm 
Offline
Site Admin
User avatar

Joined: Sat Dec 01, 2007 6:26 am
Posts: 4127
Location: Spain
It is weird because Zelgadis has the same problem, and I haven't. I'll double check it again.
-G

_________________
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D


Last edited by Genete on Sun Jun 21, 2009 6:17 pm, edited 1 time in total.
typo fix


Top
 Profile  
 
 Post subject: Re: Compilation error
PostPosted: Sun Jun 21, 2009 6:39 pm 
Offline
Site Admin
User avatar

Joined: Sat Dec 01, 2007 6:26 am
Posts: 4127
Location: Spain
I have no idea what's happening. Those are the steps I did to try to reproduce your compile errors:

Code:
~/$mkdir test
~/$cd test
~/test/$
~/test/$ git clone git://synfig.git.sourceforge.net/gitroot/synfig
~/test/$ cd synfig
~/test/synfig$ sh build_from_scratch.sh


and this is the script:

Attachment:
File comment: Build script
build-from-scratch.sh.txt [1.71 KiB]
Downloaded 94 times


As you can see I've disabled cache and also I've run the script in normal and debug mode (by commenting the proper lines).
After run the script it compiles and builds without problem.

Any idea on what's different on my configuration than yours?
Did you run the autoreconf command?

If it still giving compile errors then we must change to named icons: "gtk-zoom-100" etc.
-G

_________________
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D


Top
 Profile  
 
 Post subject: Re: Compilation error
PostPosted: Sun Jun 21, 2009 6:46 pm 
Offline
Site Admin
User avatar

Joined: Sat Dec 01, 2007 6:26 am
Posts: 4127
Location: Spain
Optional: checkout the previous commit: and check if it builds.
-G

_________________
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D


Top
 Profile  
 
 Post subject: Re: Compilation error
PostPosted: Sun Jun 21, 2009 7:09 pm 
Offline
User avatar

Joined: Mon Aug 04, 2008 6:10 pm
Posts: 265
Location: Amsterdam, the Netherlands
Genete,

On your system, in which file(s) are GTK_STOCK_ZOOM_IN, GTK_STOCK_ZOOM_OUT, GTK_STOCK_ZOOM_FIT, GTK_STOCK_ZOOM_100 declared?

Besides, shouldn't you be using Gtk::Stock::ZOOM_100, Gtk::Stock::ZOOM_FIT, Gtk::Stock::ZOOM_IN, Gtk::Stock::ZOOM_OUT instead? That is, use the gtkmm stuff instead of the gtk stuff?

G.

_________________
Abstraction: The Biggest Lie in Computer Science.


Top
 Profile  
 
 Post subject: Re: Compilation error
PostPosted: Sun Jun 21, 2009 7:35 pm 
Offline
Site Admin
User avatar

Joined: Sat Dec 01, 2007 6:26 am
Posts: 4127
Location: Spain
They are defined in /urs/include/gtk-2.0/gtk/gtkstock.h

Quote:
Besides, shouldn't you be using Gtk::Stock::ZOOM_100, Gtk::Stock::ZOOM_FIT, Gtk::Stock::ZOOM_IN, Gtk::Stock::ZOOM_OUT instead? That is, use the gtkmm stuff instead of the gtk stuff?

Then I obtain:
Code:
zoomdial.cpp: In constructor 'studio::ZoomDial::ZoomDial(Gtk::IconSize&)':
zoomdial.cpp:57: error: 'ZOOM_100' is not a member of 'Gtk::Stock'


My problem is that gtkmm defines its own icon stock but I don't know how to use them:

See:
gtkmm/stock.h

-G

_________________
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D


Top
 Profile  
 
 Post subject: Re: Compilation error
PostPosted: Mon Jun 22, 2009 10:11 am 
Offline
User avatar

Joined: Mon Aug 04, 2008 6:10 pm
Posts: 265
Location: Amsterdam, the Netherlands
I committed a fix on the master branch that should make it run again.

G.

_________________
Abstraction: The Biggest Lie in Computer Science.


Top
 Profile  
 
 Post subject: Re: Compilation error
PostPosted: Mon Jun 22, 2009 10:49 am 
Offline
Site Admin
User avatar

Joined: Sat Dec 01, 2007 6:26 am
Posts: 4127
Location: Spain
Thank you very much Gerco. Apart of solving the bug you have teach me something new. :D
-G

_________________
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 4 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


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:  
cron
Powered by phpBB® Forum Software © phpBB Group