Problem with building FreeOrion

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
gevor
Space Krill
Posts: 2
Joined: Thu Aug 17, 2006 2:20 pm

Problem with building FreeOrion

#1 Post by gevor »

I try to build FreeOrion from svn on my Linux/x86 box and got numerous problems with file UI/TechTreeWnd.cpp:

UI/TechTreeWnd.cpp:23:17: error: gvc.h: No such file or directory
UI/TechTreeWnd.cpp:93: error: 'pointf' does not name a type
UI/TechTreeWnd.cpp: In function 'std::vector<std::pair<double, double>, std::allocator<std::pair<double, double> > ><unnamed>::Spline(const std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >&)':
UI/TechTreeWnd.cpp:111: error: 'pointf' was not declared in this scope
UI/TechTreeWnd.cpp:111: error: expected `;' before 'patch'
UI/TechTreeWnd.cpp:112: error: 'patch' was not declared in this scope
UI/TechTreeWnd.cpp:123: error: expected `;' before 'pt'
UI/TechTreeWnd.cpp:124: error: 'pt' was not declared in this scope
UI/TechTreeWnd.cpp: In function 'void<unnamed>::FillTheoryPanel(const GG::Rect&, int)':
UI/TechTreeWnd.cpp:134: error: 'PI' was not declared in this scope
UI/TechTreeWnd.cpp: In function 'void<unnamed>::FillApplicationPanel(const GG::Rect&, int)':
UI/TechTreeWnd.cpp:164: error: 'PI' was not declared in this scope
UI/TechTreeWnd.cpp: In function 'void<unnamed>::TraceTechPanelOutline(TechType, const GG::Rect&, const GG::Rect&, bool)':
UI/TechTreeWnd.cpp:249: error: 'PI' was not declared in this scope
UI/TechTreeWnd.cpp:273: error: 'PI' was not declared in this scope
UI/TechTreeWnd.cpp:290: error: 'PI' was not declared in this scope
UI/TechTreeWnd.cpp:308: error: 'PI' was not declared in this scope
UI/TechTreeWnd.cpp: In member function 'virtual void TechTreeWnd::TechNavigator::SectionHeaderControl::Render()':
UI/TechTreeWnd.cpp:725: error: 'PI' was not declared in this scope
UI/TechTreeWnd.cpp: In member function 'void TechTreeWnd::LayoutPanel::Layout(bool, double)':
UI/TechTreeWnd.cpp:1450: error: 'GVC_t' was not declared in this scope
UI/TechTreeWnd.cpp:1450: error: 'gvc' was not declared in this scope


etc.

Probably, this is because the compiler can not find "gvc.h" file. Do you have any ideas, where it can be?
Use jabber!

User avatar
loonycyborg
Compilation Expert
Posts: 219
Joined: Thu Jul 06, 2006 10:30 pm
Location: Russia/Moscow

#2 Post by loonycyborg »

gvc.h is from GraphViz.

gevor
Space Krill
Posts: 2
Joined: Thu Aug 17, 2006 2:20 pm

#3 Post by gevor »

Thanks a lot, providing scons with graphviz include path helped.

However, now it segfaults trying to generate the universe in the single-user mode. Maybe, i'll try to compile it with debugging symbols and find an error.
Use jabber!

User avatar
Jo-Con-El
Space Floater
Posts: 19
Joined: Mon Sep 11, 2006 12:47 pm
Location: Palo Alto, California

Re: Problems compiling FreeOrion.

#4 Post by Jo-Con-El »

gevor wrote: However, now it segfaults trying to generate the universe in the single-user mode. Maybe, i'll try to compile it with debugging symbols and find an error.
It is probably due to missing artwork. You should have now ~/.freeorion/freeorion.log. There you will have information about your crash, something like "Trying to access default/data/whatever.png".

Regards,

Ender.
Debian developer

User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

Re: Problem with building FreeOrion

#5 Post by kroddn »


Post Reply