Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-12-2013, 15:52   #1
Registered User

Join Date: Dec 2013
Location: Hawaii (currently)
Boat: 83m research vessel
Posts: 1
OpenCPN Linux compile problems

Hello,

I am trying to compile OpenCPN on Linux, but I'm getting some compile-time errors. I don't believe they are due to dependencies - cmake eventually seemed happy. The Linux distro is Debian with a 2.6.32 kernel.

Errors are shown below:

[ 49%] Building CXX object CMakeFiles/opencpn.dir/src/navutil.cpp.o
/home/mt/src/opencpn/src/navutil.cpp:8220: error: ISO C++ forbids declaration of ‘PaStreamCallbackTimeInfo’ with no type
/home/mt/src/opencpn/src/navutil.cpp:8220: error: expected ‘,’ or ‘...’ before ‘*’ token
/home/mt/src/opencpn/src/navutil.cpp: In function ‘int OCPNSoundCallback(const void*, void*, long unsigned int, int)’:
/home/mt/src/opencpn/src/navutil.cpp:8225: error: ‘userData’ was not declared in this scope
/home/mt/src/opencpn/src/navutil.cpp:8243: error: ‘paComplete’ was not declared in this scope
/home/mt/src/opencpn/src/navutil.cpp: In member function ‘bool OCPN_Sound::Create(const wxString&, bool)’:
/home/mt/src/opencpn/src/navutil.cpp:8338: error: invalid conversion from ‘int (*)(const void*, void*, long unsigned int, int)’ to ‘long unsigned int’
/home/mt/src/opencpn/src/navutil.cpp:8338: error: invalid conversion from ‘void*’ to ‘int (*)(void*, void*, long unsigned int, PaTimestamp, void*)’
/usr/include/portaudio.h:355: error: too few arguments to function ‘PaError Pa_OpenDefaultStream(PortAudioStream**, int, int, PaSampleFormat, double, long unsigned int, long unsigned int, int (*)(void*, void*, long unsigned int, PaTimestamp, void*), void*)’
/home/mt/src/opencpn/src/navutil.cpp:8338: error: at this point in file
/home/mt/src/opencpn/src/navutil.cpp:8343: error: ‘Pa_SetStreamFinishedCallback’ was not declared in this scope
make[2]: *** [CMakeFiles/opencpn.dir/src/navutil.cpp.o] Error 1
make[1]: *** [CMakeFiles/opencpn.dir/all] Error 2
make: *** [all] Error 2

Ideas anyone?

Thanks!

Paul.
__________________
rvsjimbo is offline   Reply With Quote
Old 07-12-2013, 16:31   #2
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,018
Re: OpenCPN Linux compile problems

Paul...
Looks like a wrong portaudio(-dev) package on your system.

Pavel
__________________
nohal is offline   Reply With Quote
Reply

Tags
enc, linux, opencpn

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 18:46.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.