HyPhy message board
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl
HYPHY Package >> HyPhy bugs >> Problem with bgm.cpp during installation
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl?num=1267554417

Message started by AlexD on Mar 2nd, 2010 at 10:26am

Title: Problem with bgm.cpp during installation
Post by AlexD on Mar 2nd, 2010 at 10:26am
I have a problem during installation of release r797. I use the standard buildFromSVN.sh script:


Code (]
$ ./buildFromSVN.sh

Linux
Checking for curl
Curl seems to be present
+-----------------------------------------------------------+
|Building a multi-threaded HYPHYKernelMP with setconcurrency|
+-----------------------------------------------------------+
COMPILER=g++, gcc
COMPILER_FLAGS= -w -c -fsigned-char -O3 -fpermissive -I/homes/bierdepot/alex/svn/hyphy/HYPHY/Source -I/homes/bierdepot/alex/svn/hyphy/HYPHY/Source/SQLite -D INTPTR_TYPE=long -D __UNIX__  -D _SLKP_LFENGINE_REWRITE_  -D __MP__ -D __MP2__ -fopenmp
Building baseobj.cpp
Complete
Building batchlan2.cpp
Complete
Building batchlan.cpp
Complete
Building bayesgraph2.cpp
Complete
Building bayesgraph.cpp
Complete
Building bgm2.cpp
Complete
Building bgm.cpp
bgm.cpp: In member function ‘virtual void Bgm::CacheNodeScores()’:
bgm.cpp:1957: error: a function-definition is not allowed here before ‘{’ token
bgm.cpp:1970: error: a function-definition is not allowed here before ‘{’ token
bgm.cpp:1987: error: a function-definition is not allowed here before ‘{’ token
bgm.cpp:1998: error: a function-definition is not allowed here before ‘{’ token
bgm.cpp:3122: error: expected `}' at end of input
Error during compilation
Linux
Checking for curl
Curl seems to be present
+-----------------------------------------------------------+
|Building a multi-threaded HYPHYKernelMP with setconcurrency|
+-----------------------------------------------------------+
COMPILER=g++, gcc
COMPILER_FLAGS= -w -c -O3 -D INTPTR_TYPE=long -fsigned-char -fpermissive -I/homes/bierdepot/alex/svn/hyphy/HYPHY/GUI -I/homes/bierdepot/alex/svn/hyphy/HYPHY/Source -I/homes/bierdepot/alex/svn/hyphy/HYPHY/Source/SQLite -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12    -D GDK_PIXBUF_ENABLE_BACKEND -D __HYPHY_GTK__ -D _SLKP_LFENGINE_REWRITE_  -D __MP__ -D __MP2__ -fopenmp
Building baseobj.cpp
Complete
Building batchlan2.cpp
Complete
Building batchlan.cpp
Complete
Building bayesgraph2.cpp
Complete
Building bayesgraph.cpp
Complete
Building bgm2.cpp
Complete
Building bgm.cpp
bgm.cpp: In member function ‘virtual void Bgm::CacheNodeScores()’:
bgm.cpp:1957: error: a function-definition is not allowed here before ‘{’ token
bgm.cpp:1970: error: a function-definition is not allowed here before ‘{’ token
bgm.cpp:1987: error: a function-definition is not allowed here before ‘{’ token
bgm.cpp:1998: error: a function-definition is not allowed here before ‘{’ token
bgm.cpp:3122: error: expected `}' at end of input
Error during compilation
[/code):

[code]
$ uname -a
Linux 2.6.27.41-170.2.117.fc10.i686.PAE #1 SMP Thu Dec 10 10:48:30 EST 2009 i686 i686 i386 GNU/Linux


any suggestions?

thanks, alex

Title: Re: Problem with bgm.cpp during installation
Post by Sergei on Mar 2nd, 2010 at 3:25pm
Hi Alex,

Try updating the SVN - there was an extraneous #endif in bgm.cpp which I committed to the repository by accident.

Cheers,
Sergei


Title: Re: Problem with bgm.cpp during installation
Post by AlexD on Mar 3rd, 2010 at 1:05am
Thanks a lot Sergei - problem solved!  :)

So long,
Alex

HyPhy message board » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2024. All Rights Reserved.