Welcome, Guest. Please Login
YaBB - Yet another Bulletin Board
 
  HomeHelpSearchLogin  
 
Compiling with Cygwin (Read 7128 times)
Christopher
YaBB Newbies
*
Offline


Curious HyPhy user

Posts: 3
Compiling with Cygwin
Jun 18th, 2014 at 3:44am
 
Hey there

I'm running into trouble compiling with Cygwin
I've looked at "Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login Login"
but no specifics were given in terms of compiling.

My trouble is :
Code:
$ cmake ./
CMake Error at CMakeLists.txt:268 (install):
  install Library TARGETS given no DESTINATION!


-- Could NOT find OpenCL (missing:  OPENCL_LIBRARIES OPENCL_INCLUDE_DIR)
-- Could NOT find Freetype (missing:  FREETYPE_INCLUDE_DIRS)
-- Configuring incomplete, errors occurred!
 



Now I assume OpenCl and freetype aren't prerequisite for compiling HYPHY, therefore I need to define DESTINATION.
Can you help with this please?

I've tried putting a source path then destination path with cmake ($cmake ./ /source/to/hyphy/ /destination/wanted)
but this doesn't work, both are treated as sources
Back to top
 
 
IP Logged
 
Steven
Global Moderator
*****
Offline


Datamonkey Curious

Posts: 21
Gender: male
Re: Compiling with Cygwin
Reply #1 - Jun 18th, 2014 at 6:09pm
 
Hi Christopher,

Thank you for making us aware of this issue.

The issue is with the "hyphy_mp" target inside of the cmake file.

I will go ahead and file a bug for this.

In the meantime, I've attached a CMake file that did work for me. (I simply removed all references to the hyphy_mp target).

Please be aware that we mostly test our source code on *nix based machines.

You can find a precompiled executable for windows here:
Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login Login

Back to top
 
Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login Login (26 KB | 2 )
 
IP Logged
 
Christopher
YaBB Newbies
*
Offline


Curious HyPhy user

Posts: 3
Re: Compiling with Cygwin
Reply #2 - Jun 19th, 2014 at 8:20am
 
Hey thanks Steven Smiley

I'm trying to create an executable accessible from the command-line for use by another program (like MEGA does), hence the cygwin environment.

When I use the CMakeList.txt you provided (hyphy_mp commented out, I get this error:
Code:
$ cmake ./
-- Could NOT find OpenCL (missing:  OPENCL_LIBRARIES OPENCL_INCLUDE_DIR)
-- Could NOT find Freetype (missing:  FREETYPE_INCLUDE_DIRS)
CMake Error at CMakeLists.txt:548 (set_property):
  set_property could not find TARGET hyphy_mp.  Perhaps it has not yet been
  created.

-- Configuring incomplete, errors occurred!
 



So I removed the hyphy_mp TARGET.
That compiled fine, but when I try make HYPHYMP I get a further error when  Building CXX object CMakeFiles/HYPHYMP.dir/src/core/calcnode2.cpp.o

Code:
some scope problems

CMakeFiles/HYPHYMP.dir/build.make:287: recipe for target 'CMakeFiles/HYPHYMP.dir/src/core/calcnode2.cpp.o' failed
make[3]: *** [CMakeFiles/HYPHYMP.dir/src/core/calcnode2.cpp.o] Error 1
CMakeFiles/Makefile2:249: recipe for target 'CMakeFiles/HYPHYMP.dir/all' failed
make[2]: *** [CMakeFiles/HYPHYMP.dir/all] Error 2
CMakeFiles/Makefile2:257: recipe for target 'CMakeFiles/HYPHYMP.dir/rule' failed
make[1]: *** [CMakeFiles/HYPHYMP.dir/rule] Error 2
Makefile:228: recipe for target 'HYPHYMP' failed
make: *** [HYPHYMP] Error 2
 



I have compiled it successfully using Linux Mint, but I want a Windows compatible command line version.

Any help is greatly appreciated as always  Smiley
Back to top
 
 
IP Logged
 
Steven
Global Moderator
*****
Offline


Datamonkey Curious

Posts: 21
Gender: male
Re: Compiling with Cygwin
Reply #3 - Jun 19th, 2014 at 5:26pm
 
Hi Christopher,

In order for HyPhy to be compiled on Windows, a specific preprocessor directive needs to be set. This flag is needed because there are unix specific system calls such as getpid() in parts of the codebase.

Unfortunately, this same preprocessor directive will automatically compile HyPhy to be run in a GUI setting. 

In this scenario, I think the only reassurance I can provide is that we are working on a new version of HyPhy, and I can see if we can ensure that a cli version of HyPhy will be possible on Windows.
Back to top
 
 
IP Logged
 
Christopher
YaBB Newbies
*
Offline


Curious HyPhy user

Posts: 3
Re: Compiling with Cygwin
Reply #4 - Jun 21st, 2014 at 12:57pm
 
Hey Steven

So is there no way to compile a version under cygwin, for use on Windows? I thought that's what MEGA does?

I think I may just shift development to linux then.

Thanks for your help and hopefully a cli version is available soon Smiley

Back to top
 
 
IP Logged