Sponsored Content
Operating Systems OS X (Apple) First time Compileing ARSS on G3 hardware Post 302314104 by orionrush on Thursday 7th of May 2009 11:21:10 AM
Old 05-07-2009
update

Im having trouble linking fftw3 properly with the CMakeLists.txt.
I've tied updating the CMakeLists.txt with proper file names but ultimately reverted and put symbolic links directly in the paths that CMakeLists.txt claimed it would be searching. however cmake still cant find the items -can anybody tell me wat Im doing wrong? Smilie

btw - (fftw3 was compiled via macports as fink finished with errors.)

Thanks in advance for any help you can offer.
b

Here is my process:

I unpack the tar.gz in the user dir:
Code:
tar -xzvf arss-0.2.3-src.tar.gz

the CMakeLists.text indicats that cmake will be looking for fftw3.h in /usr/local/include

Now at this stage I tried updating the CMakeLists.text to reflect the actual paths to fftw3.h as installed by macports in opt/local/include, but in the end opted to made symbolic links for files and paths from where I found them in the various macports paths /opt/local/ to where CMakeLists.txt indicated.

From CmakeLists.txt
Code:
FIND_PATH (FFTW3_INCLUDE_DIR fftw3.h PATHS /usr/local/include /usr/include /sw/include)

#which I found in opt/local/include/fftw3.h
FIND_LIBRARY (FFTW3_LIBRARY fftw3 fftw PATHS /usr/local/lib /usr/lib /lib /sw/lib)

I couldn't find FFTW3_LIBRARY fftw3 fftw at any of those paths but I did find
libfftw3.3.dylib in opt/local/lib/
So I created symbolic links bridging these.

Code:
sudo mkdir /usr/local/include
ln -s opt/local/include/fftw3.h /usr/local/include/ffw3.h
sudo li -s opt/local/lib/libfftw3.3.dylib usr/local/lib/FFTW3_LIBRARY

I've found under the INSTALL note that the command to compile with cmake:
Code:
cd /arss-0.2.3-src/src/
cmake . && make && make install

cmake still cant find fftw3.h and quits with errors Smilie

Here is the terminal output:
Code:
ibook-1:~/arss-0.2.3-src/src barefoot$ cmake . && make && make install       
-- The C compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Found components for FFTW3
-- FFTW3_INCLUDE_DIR = /opt/local/include
-- FFTW3_LIBRARY                 = /opt/local/lib/libfftw3.dylib
CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.6)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /Users/barefoot/arss-0.2.3-src/src
Scanning dependencies of target arss
[ 20%] Building C object CMakeFiles/arss.dir/arss.o
/Users/barefoot/arss-0.2.3-src/src/arss.c:22:19: error: fftw3.h: No such file or directory
make[2]: *** [CMakeFiles/arss.dir/arss.o] Error 1
make[1]: *** [CMakeFiles/arss.dir/all] Error 2
make: *** [all] Error 2
ibook-1:~/arss-0.2.3-src/src barefoot$

and the contents of the CMakeFiles.txt
Code:
project (arss C)
add_executable (arss arss.c dsp.c util.c image_io.c sound_io.c)


SET (CMAKE_BUILD_TYPE Release)

# look for the FFTW library
FIND_PATH (FFTW3_INCLUDE_DIR fftw3.h PATHS /usr/local/include /usr/include /sw/include)
FIND_LIBRARY (FFTW3_LIBRARY fftw3 fftw PATHS /usr/local/lib /usr/lib /lib /sw/lib)

IF (FFTW3_INCLUDE_DIR AND FFTW3_LIBRARY)
	SET (HAVE_FFTW3 TRUE)
ELSE (FFTW3_INCLUDE_DIR AND FFTW3_LIBRARY)
	IF (NOT FFTW3_FIND_QUIETLY)
		IF (NOT FFTW3_INCLUDE_DIR)
			MESSAGE (STATUS "Unable to find FFTW3 header files!")
		ENDIF (NOT FFTW3_INCLUDE_DIR)
		IF (NOT FFTW3_LIBRARY)
			MESSAGE (STATUS "Unable to find FFTW3 library files!")
		ENDIF (NOT FFTW3_LIBRARY)
	ENDIF (NOT FFTW3_FIND_QUIETLY)
ENDIF (FFTW3_INCLUDE_DIR AND FFTW3_LIBRARY)

IF (HAVE_FFTW3)
	IF (NOT FFTW3_FIND_QUIETLY)
		MESSAGE (STATUS "Found components for FFTW3")
		MESSAGE (STATUS "FFTW3_INCLUDE_DIR = ${FFTW3_INCLUDE_DIR}")
		MESSAGE (STATUS "FFTW3_LIBRARY		 = ${FFTW3_LIBRARY}")
	ENDIF (NOT FFTW3_FIND_QUIETLY)
ELSE (HAVE_FFTW3)
	IF (FFTW3_FIND_REQUIRED)
		MESSAGE (FATAL_ERROR "Could not find FFTW3!")
	ENDIF (FFTW3_FIND_REQUIRED)
ENDIF (HAVE_FFTW3)

TARGET_LINK_LIBRARIES (arss fftw3 m)

INSTALL(PROGRAMS arss DESTINATION bin)


still bumbling . . . .
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How To Provide Time Sync Using Nts-150 Time Server On Unix Network?

can anybody tel lme,how to instal NTS -150 on a unix network,it needs some patch to fetch time frm serve,,?? (2 Replies)
Discussion started by: pesty
2 Replies

2. Solaris

Hardware

Hi, I'm looking to run Sun Solaris 8 or 9, but have been running windows :mad: .can anyone give me advice about the hardware needed for solaris and possably any software i may need, the type of model and where i may be able to buy these within the uk. :confused: ... (3 Replies)
Discussion started by: franz
3 Replies

3. Red Hat

Problem with compileing CUPS

Hi guys, I'm trying to install a newer version of CUPS and my compilation fails: # ./configure checking for gawk... gawk checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling...... (4 Replies)
Discussion started by: eliraza6
4 Replies

4. Shell Programming and Scripting

Convert Epoch Time to Standard Date and Time & Vice Versa

Hi guys, I know that this topic has been discuss numerous times, and I have search the net and this forum for it. However, non able to address the problem I faced so far. I am on Solaris Platform and unable to install additional packages like the GNU date and gawk to make use of their... (5 Replies)
Discussion started by: DrivesMeCrazy
5 Replies

5. Solaris

Hardware faulty, but which hardware?

Hi folk, I have this hardware faunty message, but dont know which hardware is this ? can you guide me ? --------------- ------------------------------------ -------------- --------- TIME EVENT-ID MSG-ID SEVERITY ---------------... (9 Replies)
Discussion started by: dehetoxic
9 Replies

6. Solaris

modifying date and time and time zone on solaris 5.10 with (redundant server) veritas

I have a cluster of two Solaris server (veritas cluster). one working and the other is standby I am going to change the date on them , and am looking for a secure solution as it is giving an important service. my opinion is that the active one doesn't need to be restarted (if I don't change the... (1 Reply)
Discussion started by: barry1946
1 Replies

7. Shell Programming and Scripting

Convert UTC time into current UNIX sever time zone

Hi guys thanks for the help for my previous posts.Now i have a requirement that i download a XMl file which has UTC time stamp.I need to convert UTC time into Unix server timezone. For ex if the time zone of unix server is CDT then i need to convert into CDT.whatever may be the system time... (5 Replies)
Discussion started by: mohanalakshmi
5 Replies

8. Programming

Find gaps in time data and replace missing time value and column 2 value by interpolation in awk

Dear all, I am kindly seeking assistance on the following issue. I am working with data that is sampled every 0.05 hours (that is 3 minutes intervals) here is a sample data from the file 5.00000 15.5030 5.05000 15.6680 5.10000 16.0100 5.15000 16.3450 5.20000 16.7120 5.25000... (4 Replies)
Discussion started by: malandisa
4 Replies

9. Shell Programming and Scripting

Calculate Time diff in milli milliseconds(Time format : HH:MM:SS,NNN)

Hi All, I have one file which contains time for request and response. I want to calculate time difference in milliseconds for each line. This file can contain 10K lines. Sample file with 4 lines. for first line. Request Time: 15:23:45,255 Response Time: 15:23:45,258 Time diff... (6 Replies)
Discussion started by: Raza Ali
6 Replies
All times are GMT -4. The time now is 08:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy