fastlib / fCWT

The fast Continuous Wavelet Transform (fCWT) is a library for fast calculation of CWT.
Apache License 2.0
263 stars 53 forks source link

fCWT matlab for window #22

Closed kingg0218 closed 1 year ago

kingg0218 commented 1 year ago

Hi

I'm trying to build MEX-file from source but I'm stuck on a problem I installed Cmake and GCC, so I made it through until [$ cmake ../ -DBUILD_MATLAB=ON] But when I type [make] after that, it says this and I cannot find MEX file **make: * No targets specified and no makefile found. Stop.

Can you spot the problem in this situation?

image These are the contents in 'build' file

DiellorBasha commented 1 year ago

Hi I am also experiencing the same issue. I installed Cmake and Microsoft Visual C++ but when I try to build from source using "make", I get: **make: * No targets specified and no makefile found. Stop.

Could you please advise on a possible solution?

whip123 commented 1 year ago

Hi, I also have encountered this issue, is there any update on this?

felixdollack commented 1 year ago

@kingg0218, @DiellorBasha and @whip123

If you do not see a Makefile, do you have a fCWT.sln instead? In this case you need to open this file with Visual Studio and build it from the Build menu.

whip123 commented 1 year ago

Not sure if correct or not, but I'm able to get the 2 mex file in fCWT\build\Debug using the same method

image

felixdollack commented 1 year ago

@whip123, do the Mex files work if you put them in your Matlab path?

whip123 commented 1 year ago

Yeah I believe so, after adding the 2 mex file, im able to run the example.mlx, but the fcwt is not at it's full potential due to Matlab implementation as discussed in #Issue#17. Wonder if there is any way to overcome this if I insist to implement fCWT in Matlab image

CrovaS commented 1 year ago

@felixdollack I have this issue, but I can't build the fCWT.sln file with visual studio because there's an error that visual studio can't find OpenMP. I wonder if there are any additional modifications to the CMakeLists.txt file. Is it okay to ask for help in this regard?

Building Custom Rule C:/Users/BRAIN/fCWT/CMakeLists.txt 2>CMake is re-running because C:/Users/BRAIN/fCWT/build/CMakeFiles/generate.stamp is out-of-date. 2> the file 'C:/Users/BRAIN/fCWT/CMakeLists.txt' 2> is newer than 'C:/Users/BRAIN/fCWT/build/CMakeFiles/generate.stamp.depend' 2> result='-1' 3>Building Custom Rule C:/Users/BRAIN/fCWT/CMakeLists.txt 2>Build type is Debug 3>CMake is re-running because C:/Users/BRAIN/fCWT/build/CMakeFiles/generate.stamp is out-of-date. 3> the file 'C:/Users/BRAIN/fCWT/CMakeLists.txt' 3> is newer than 'C:/Users/BRAIN/fCWT/build/CMakeFiles/generate.stamp.depend' 3> result='-1' 3>Build type is Debug 4>Building Custom Rule C:/Users/BRAIN/fCWT/CMakeLists.txt 4>CMake is re-running because C:/Users/BRAIN/fCWT/build/CMakeFiles/generate.stamp is out-of-date. 4> the file 'C:/Users/BRAIN/fCWT/CMakeLists.txt' 4> is newer than 'C:/Users/BRAIN/fCWT/build/CMakeFiles/generate.stamp.depend' 4> result='-1' 4>Build type is Debug 2>Building of shared library is enabled. 3>Building of shared library is enabled. 5>Building Custom Rule C:/Users/BRAIN/fCWT/CMakeLists.txt 5>CMake is re-running because C:/Users/BRAIN/fCWT/build/CMakeFiles/generate.stamp is out-of-date. 5> the file 'C:/Users/BRAIN/fCWT/CMakeLists.txt' 5> is newer than 'C:/Users/BRAIN/fCWT/build/CMakeFiles/generate.stamp.depend' 5> result='-1' 4>Building of shared library is enabled. 5>Build type is Debug 2>CMake Error at C:/Users/BRAIN/fCWT/build/CMakeFiles/CMakeScratch/TryCompile-0i2kun/CMakeLists.txt:18 (add_executable): 2> Cannot find source file: 2> 2> C:/Users/BRAIN/fCWT/build/CMakeFiles/CMakeScratch/TryCompile-0i2kun/OpenMPTryFlag.cpp 2> 2> 2>CMake Error at C:/Users/BRAIN/fCWT/build/CMakeFiles/CMakeScratch/TryCompile-0i2kun/CMakeLists.txt:18 (add_executable): 2> No SOURCES given to target: cmTC_8931b 2> 2> 2>CMake Error at C:/Program Files/CMake/share/cmake-3.26/Modules/FindOpenMP.cmake:219 (try_compile): 2> Failed to generate test project build system. 2>Call Stack (most recent call first): 2> C:/Program Files/CMake/share/cmake-3.26/Modules/FindOpenMP.cmake:483 (_OPENMP_GET_FLAGS) 2> CMakeLists.txt:141 (find_package) 2> 2> 2>-- Configuring incomplete, errors occurred!

CrovaS commented 1 year ago

It has been resolved. Thank you.