Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 07-12-2013, 14: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, 15:31   #2
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,208
Re: OpenCPN Linux compile problems

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

Pavel
nohal is online now   Reply With Quote
Reply

Tags
enc, linux, opencpn


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


Advertise Here


All times are GMT -7. The time now is 09:50.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.