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 04-05-2015, 03:40   #1
Registered User

Join Date: May 2015
Posts: 5
Problems Compiling

Hi

12>LINK : fatal error LNK1104: cannot open file '../../Debug/opencpn.lib'

13>LINK : fatal error LNK1104: cannot open file '../../Debug/opencpn.lib'

I follow the O Developer's Guide to try compiling on Windows,step 1 ~ 4.1b is all fine but
in step 4.2b compiling from Visual Studio some trouble show above coming out.

Could anyone give me solution method
wushinwei is offline   Reply With Quote
Old 04-05-2015, 05:43   #2
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,396
Re: Problems Compiling

wushinwei...

This could be a bug in the instructions.

If you are building a PlugIn, you will first need to build the OpenCPN base code to generate the opencpn.lib linkage file.

Otherwise, please search your machine for the missing file, and check the path names as called.

Dave
bdbcat is offline   Reply With Quote
Old 04-05-2015, 07:24   #3
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
Re: Problems Compiling

wushinwei...
Could you give us a bit more information? Which version of Visual Studio? Which plugins are producing the error (if not the bundled dashboard and grib)?
So far everything seems fine to me and I see no problems linking while building from VS2013.

Thanks

Pavel
nohal is offline   Reply With Quote
Old 05-05-2015, 02:55   #4
Registered User

Join Date: May 2015
Posts: 5
Re: Problems Compiling

Thanks Dave & Pavel


I work on Windows 8.1 , VS2010.
After configuring the build using Cmake-gui,I just open the solution created by cmake then compile the whole solution or individual projects.

From the debug output I can see this problem.
Code:
11>  options.cpp
11>C:\Users\yun\OpenCPN\src\options.cpp(4275): warning C4819: The file contains a character that cannot be represented in the current code page (950). Save the file in Unicode format to prevent data loss
11>C:\Users\yun\OpenCPN\src\options.cpp(4924): error C2001: newline in constant
11>C:\Users\yun\OpenCPN\src\options.cpp(4925): error C2143: syntax error : missing ')' before '}'
11>C:\Users\yun\OpenCPN\src\options.cpp(5987): error C2664: 'bool wxListCtrl::SortItems(wxListCtrlCompare,wxIntPtr)' : cannot convert argument 1 from 'int (__cdecl *)(long,long,wxIntPtr)' to 'wxListCtrlCompare'
11>          None of the functions with this name in scope match the target type
wushinwei is offline   Reply With Quote
Old 05-05-2015, 05:48   #5
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
Re: Problems Compiling

wushinwei...
No problems here with VS2010 and no such problems ever reported by anyone.
To understand better - the linker problems you reported earlier were just a consequence of opencpn not being built with these errors, right?
What are you building? current master? Against which version of wxWidgets?
Would you mind to actually look at the lines reported by the warning and errors - I suspect your source was somehow messed up as at least in my tree for example options.cpp:5987 has absolutely nothing to do with sorting the control...

Pavel
nohal is offline   Reply With Quote
Old 10-05-2015, 01:32   #6
Registered User

Join Date: May 2015
Posts: 5
Re: Problems Compiling

Few days ago I try the new instruction of the "Developer Manual\Compiling - Windows",the same problems...

Windows 8.1 , Visual Studio 2013

PHP Code:
Error    13    error LNK1104cannot open file '../../Debug/opencpn.lib'    C:\OpenCPN\build\plugins\grib_pi\LINK    grib_pi
Error    14    error LNK1104
cannot open file '../../Debug/opencpn.lib'    C:\OpenCPN\build\plugins\dashboard_pi\LINK    dashboard_pi
Error    3    error C2143
syntax error missing ')' before '}'    C:\OpenCPN\src\options.cpp    4949    1    opencpn
Error    2    error C2001
newline in constant    C:\OpenCPN\src\options.cpp    4948    1    opencpn 
wushinwei is offline   Reply With Quote
Old 10-05-2015, 04:44   #7
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
Re: Problems Compiling

wushinwei...
Unless you have something new to tell us, we can't help you further. There is no problem compiling the current master source with either VS2010 or 2013 for anybidy but you. And the info you provide is useless to resolve it.

Sorry

Pavel
nohal is offline   Reply With Quote
Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems Compiling Release Opencpn 4.0.0 cachaciero OpenCPN 2 09-03-2015 01:42
Compiling Under PowerPC - Missed libgps19 adolfogal OpenCPN 5 14-10-2010 12:56
Make - Problems (Compiling) schotenandi OpenCPN 2 10-10-2010 17:57
Compiling on Fedora 12 teejayevans OpenCPN 29 01-04-2010 00:34
Compiling OpenCPN on Fedora 12 inSaNo OpenCPN 9 08-12-2009 04:09

Advertise Here


All times are GMT -7. The time now is 16:05.


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.