CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > REEF3D

Compilation on windows without ubuntu app

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By dirkpr
  • 1 Post By harenaobsidet

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 6, 2022, 11:54
Default Compilation on windows without ubuntu app
  #1
New Member
 
Join Date: Dec 2022
Posts: 2
Rep Power: 0
dirkpr is on a distinguished road
Hi everyone,

I'm trying to install Reef3D on a windows 10 machine. Unfortunately I am not able to install the ubuntu app as it is on a corporate laptop. As a result the windows store is disabled and you can only download the ubuntu app through that, or at least... so it appears to me.

I've come a decent way trying to install it without the ubuntu app. I've installed the the compilers & openmpi using cygwin. I installed the hypre library using cmake and visual studios (following instructions of hypre).

With this setup, I can run "make -j N" in the cygwin terminal and all the different subroutines appear to compile succesfully. Only at the very end, an error is thrown, see the code below. I'm currently stuck here... Does anyone by any chance know how to fix this, and if this can be fixed? It seems some libraries are missing, but google doesnt help me much further. Just wondering if this is a dead end, or still worth pursuing.

Many thanks,
Dirk

**** ERROR CODE ****

/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lhwloc: No such file or directory
/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: cannot find -levent_core: No such file or directory
/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: cannot find -levent_pthreads: No such file or directory
/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lz: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [Makefile:27: bin/REEF3D] Error 1

**** ERROR CODE ****
dirkpr is offline   Reply With Quote

Old   December 7, 2022, 07:51
Default
  #2
Senior Member
 
Arun Kamath
Join Date: Nov 2014
Location: Trondheim, Norway
Posts: 265
Rep Power: 13
kamath is on a distinguished road
Hi Dirk,

We had previously explored Cygwin on windows, but by the time we standardised everything, Ubuntu on windows was available and due to its integration into the windows OS seemed to be the wise choice to make.

The error you paste points to hwloc package not being installed.

use

sudo apt-get install hwloc
(I hope this works on Cygwin but I dont have a machine to verify)
and try compiling again.

For best results, you might want to explore the possibility of a native Unix machine (Linux/ Mac OS)
__________________
Arun
X years with REEF3D
kamath is offline   Reply With Quote

Old   January 2, 2023, 05:20
Default
  #3
New Member
 
Join Date: Dec 2022
Posts: 2
Rep Power: 0
dirkpr is on a distinguished road
Hi Arun,

Thanks for your quick response. I was missing a fair number of libraries which were troubling my installation. Ultimately I got it working, thanks for pointing me in the right direction!

Best,
Dirk
kamath likes this.
dirkpr is offline   Reply With Quote

Old   February 17, 2024, 04:49
Default
  #4
New Member
 
EL MEHDI EL GANA
Join Date: Feb 2024
Posts: 4
Rep Power: 2
MehdiGana is on a distinguished road
I have the same problem, i try to install REEF3D and i got this error :
cannot find -lHYPRE
collect2: error: ld returned 1 exit status
make: *** [Makefile:27: bin/REEF3D] Error 1
MehdiGana is offline   Reply With Quote

Old   February 19, 2024, 03:12
Default
  #5
New Member
 
Alexander Hanke
Join Date: Dec 2023
Location: Trondheim
Posts: 25
Rep Power: 3
harenaobsidet is on a distinguished road
Hei MehdiGana,
your problem appears to not be the same as the previously described one. Please do not take over other peoples threads.
MehdiGana likes this.
__________________
Alexander Hanke
Team REEF3D
www.reef3d.com
harenaobsidet is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM for Windows 10 cfd.direct OpenFOAM Announcements from OpenFOAM Foundation 6 April 22, 2020 07:08
blockMesh wmake error for OpenFOAM5 on ubuntu on windows rclement OpenFOAM Programming & Development 2 March 5, 2018 16:57
errors during compilation and installation of OpenFOAM-1.7.x on Ubuntu 10.04 ftec OpenFOAM Installation 7 February 23, 2011 06:07
Wmake ccm26ToFoam compilation problem under Ubuntu x64 810 kprzysowagmailcom OpenFOAM Installation 7 November 6, 2009 04:33
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25


All times are GMT -4. The time now is 06:17.