Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 25-05-2015, 19:24   #331
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
Images: 2
Re: Development Debugging Environment - Setup Help

In an effort to become current with the compiling the most current version of OpenCPN (currrently v 4.1.427) I have uninstalled Poedit, Cmake and wxWidgets 2.8.12 and reinstalled the newest versions. The after about a dozen hangups/reboots/tries where my machine was literally hung up such that I was unable to get it to install and unable to remove it even with Revo! So I just gave up and left the computer on overnight, after having tried to start VC Express 2013 for Windows Desktop and eventually the next morning nothing seemed to happen except it was shut down. I tried starting VC Express 2013 again and it hung up again. I then checked Windows Update for some reason and found an update for VC Express 2013 and was home free. Weird process.

Next I went through Pavel's entire Compiling Windows Compiling - Windows | Official OpenCPN Homepage and made sure that I had all the path details correct, compiled wxWidgets for debug and release successfully and finally rebooted.

The next step was to try to compile Opencpn, from the "Developer Command Prompt for VS 2013 and after deleting C:\Users\Rick\Documents\GitHub\OpenCPN\build\cmake .chache.txt and running "cmake .."
Unfortunately there are errors with some Gettext problem and I think it is because I do not have a current version installed, but there does not seem to be any reference in the Developer's manual to GetText now.

Now I see that I should have run
cmake -T v120_xp ..
so delete cmake.cache.txt and cmakefiles directory and try again.
Please see the two attached files.
I guess I won't be compiling tonight or until I figure this out.
Attached Files
File Type: doc cmake...results.doc (2.8 KB, 58 views)
File Type: doc CMakeOutput.log.doc (45.0 KB, 39 views)
rgleason is offline   Reply With Quote
Old 25-05-2015, 19:32   #332
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
Images: 2
Re: Development Debugging Environment - Setup Help

Still getting these errors.

--
-- *** Staging to build opencpn ***
-- Build type: Release
-- *** Will install to C:/Program Files (x86)/OpenCPN ***
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindPackageHandleStan
ake:138 (message):
Could NOT find Gettext (missing: GETTEXT_MSGMERGE_EXECUTABLE
GETTEXT_MSGFMT_EXECUTABLE)
Call Stack (most recent call first):
C:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmak
SA_FAILURE_MESSAGE)
C:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindGettext.cmake:87 (FIND_PACKAGE
NDARD_ARGS)
CMakeLists.txt:526 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "C:/Users/Rick/Documents/GitHub/OpenCPN/build/CMakeFiles/CMakeOutput.log".
rgleason is offline   Reply With Quote
Old 25-05-2015, 20:10   #333
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,145
Re: Development Debugging Environment - Setup Help

Rick...
Refer to the paragraph 1.4 of Compiling - Windows | Official OpenCPN Homepage

Pavel
nohal is online now   Reply With Quote
Old 26-05-2015, 03:18   #334
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
Images: 2
Re: Development Debugging Environment - Setup Help

In the path I had
C:\Program Files (x86)\Poedit\bin;C:\Program Files (x86)\Poedit\GettextTools\bin
so I removed the first incorrect one and corrected the user variable
"Poedit" to "C:\Program Files (x86)\Poedit\GettextTools\bin" also
"WxWin" variable shows as "C:/wxWidgets-3.0.2"
"Git" variable shows as "C:/Program Files (x86)/Git/bin"

The path that is relevant is: "Path"
"C:\Program Files (x86)Poedit\GettextTools\bin;
C:\Program Files (x86)\Git\bin;
C:\wxWidgets-3.0.2;
C:\wxWidgets-3.0.2\lib\vc_dll;
[I also added] C:\Program Files (x86)\CMake\bin"

I think I need to reboot now.
--------
It appears that the Program Folder is "Visual Studio 2013" and the program executable is "VS Express 2013 for Desktop" however the target is
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\WDExpress.exe" on top of the 6.6 gb of additional programs when I am trying to "clean up" laptop! Microsoft takes the cake,but I guess I should not complain because I don't have to pay for it.

Talk about weird install and weird naming conventions!
rgleason is offline   Reply With Quote
Old 26-05-2015, 04:08   #335
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
Images: 2
Re: Development Debugging Environment - Setup Help

Dear Pavel,

After checking the paths as above, reboot and deleting the cmakecache.txt and CmakeFiles directory under the 'build' directory I opened the "Developer Command Prompt for VS2013"
"cd C:\..\GitHub\OpenCPN\build" and "cmake -T v120_xp .."

Unfortunately I still get this

Quote:
C:\Users\Rick\Documents\GitHub\OpenCPN\build> cmake -T v120_xp ..
-- Building for: Visual Studio 12 2013
-- The C compiler identification is MSVC 18.0.31101.0
-- The CXX compiler identification is MSVC 18.0.31101.0
-- Check for working C compiler using: Visual Studio 12 2013 -- works
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 12 2013 -- works
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features - done
-- *** Build Architecture is i386
-- *** Staging to build opencpn 4.1.427 ***
-- *** Package will include documentation ***
-- *** Package will include GSHHS basechart level: CRUDE ***
-- *** Package will include tide and current data ***
-- Found OpenGL: opengl32
-- Lib: glu32opengl32
-- Found wxWidgets: TRUE
-- debug; [Deleted- widgets were found]--
-- *** Staging to build opencpn ***
-- Build type: Release
-- *** Will install to C:/Program Files (x86)/OpenCPN ***
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find Gettext (missing: GETTEXT_MSGMERGE_EXECUTABLE
GETTEXT_MSGFMT_EXECUTABLE)
Call Stack (most recent call first):
C:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindGettext.cmake:87 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:526 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!
See also "C:/Users/Rick/Documents/GitHub/OpenCPN/build/CMakeFiles/CMakeOutput.log".
I find xGetText.exe, msguniq.exe, msgunfmt.exe, msgmerge.exe msgfmt.exe, msgcat.exe
under "C:\Program Files (x86)\Poedit\GettextTools\bin"
but no "Gettext.exe" Is that correct? Perhaps Poedit did not install properly?
Attached Files
File Type: doc CMakeOutput2.log.doc (25.2 KB, 36 views)
rgleason is offline   Reply With Quote
Old 26-05-2015, 04:22   #336
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,145
Re: Development Debugging Environment - Setup Help

Rick...
Why should gettext.exe be there? If you actually read the error messages, it is obvious from them that the tools needed are msgfmt and msgmerge. You have both so it leaves with a couple of options:
* Your PATH variable is wrong (if you type msgfmt in the command prompt window and hit Enter, what happens?)
* There is a bug in cmake
* Something else
I really can't tell anything else.

Pavel
nohal is online now   Reply With Quote
Old 26-05-2015, 06:11   #337
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
Images: 2
Re: Development Debugging Environment - Setup Help

Sorry, I should know by now, it must be my eyes and those small boxes and text. I redid the Poedit pathnames and rebooted. Now cmake -T v120_xp .. no longer results in gettext errors and the normal Policy CMP0043 is not set scrolls up, so I think it is working. Thank you for the tips.
rgleason is offline   Reply With Quote
Old 26-05-2015, 06:28   #338
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
Images: 2
Re: Development Debugging Environment - Setup Help

MS VC 2013 Express for Windows Desktop now compiles Opencpn. Thank you Pavel.
rgleason is offline   Reply With Quote
Old 02-06-2015, 05:29   #339
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Development Debugging Environment - Setup Help

I have a new compile machine Windows 8.1. Latest OpenCPN master git (yesterday). All compiles fine and O runs. But at startup I get this message box presumably from WxWidgets library:
Attached Images
 
transmitterdan is offline   Reply With Quote
Old 02-06-2015, 05:38   #340
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,145
Re: Development Debugging Environment - Setup Help

Dan...
Never seen this one but it looks like you did not properly set the toolchain version while building wxWidgets, make sure you built it using
Code:
nmake -f makefile.vc BUILD=release SHARED=1 CFLAGS=/D_USING_V120_SDK71_ CXXFLAGS=/D_USING_V120_SDK71_
Pavel
nohal is online now   Reply With Quote
Old 02-06-2015, 05:42   #341
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Development Debugging Environment - Setup Help

I thought the same but that is the command I used to build wxWidgets. I have verified that the wx dlls I built using that command are in C:\storage\odev\OpenCPN\buildwin\wxWidgets

Do we know how to decipher the difference indicated by the 1600/1800 flag word? Assuming this is a hex number it would suggest that only one thing is different.
transmitterdan is offline   Reply With Quote
Old 02-06-2015, 05:51   #342
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,145
Re: Development Debugging Environment - Setup Help

Dan...
1800 means MSVC 12.0 (Visual Studio 2013), 1600 means MSVC 10.0 (Visual Studio 2010)
More at c++ - How to Detect if I'm Compiling Code With Visual Studio 2008? - Stack Overflow
Do you have both these versions of VS installed? If so, look into CMakeCache.txt in your OpenCPN build directory and it should probably show that VS2010 was detected and used...

Pavel
nohal is online now   Reply With Quote
Old 02-06-2015, 09:56   #343
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Development Debugging Environment - Setup Help

This line appears in CMakeCache.txt:

CMAKE_GENERATOR:INTERNAL=Visual Studio 12 2013

I installed Visual Studio Community 2013 from this link:

https://www.visualstudio.com/en-us/p...munity-vs.aspx

When I look in my C:\Program Files (x86) folder I see these 2 folders:

Microsoft Visual Studio 11.0
Microsoft Visual Studio 12.0

Both of these folders seem to contain full blown development systems. They were created within a few minutes of one another at the time I installed Community 2013.

Plus there are numerous VC redistributable runtime packages installed.

When I compile O I see this from the compiler startup:

Microsoft (R) C/C++ Optimizing Compiler Version 18.00.31101 for x86
Copyright (C) Microsoft Corporation. All rights reserved.

So I think this is the right compiler. But the problem remains the same.
transmitterdan is offline   Reply With Quote
Old 02-06-2015, 10:44   #344
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,145
Re: Development Debugging Environment - Setup Help

Dan...
Really weird.
How do you perform the build? Command line or VS IDE? When you open opencpn.sln in Visual Studio, does it have the correct toolset (Visual Studio 2013 - Windows XP (v120_xp))?
How did you build WX? Command line or IDE?
And last but not least - Anybody has seen such a problem?

Pavel
nohal is online now   Reply With Quote
Old 02-06-2015, 18:13   #345
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Development Debugging Environment - Setup Help

I build O with this command line in the Developer Command Prompt for VS2013:

C:\storage\odev\OpenCPN\build>cmake --build . --config release --target package

I built wxWidgets in the same command prompt window with this:

nmake -f makefile.vc BUILD=release SHARED=1 CFLAGS=/D_USING_V120_SDK71_ CXXFLAGS=/D_USING_V120_SDK71_

If I open the file OpenCPN.sln in Help->About the

Microsoft Visual Studio Community 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Version 4.5.51641

I also built the O package with the IDE and the same error happens at startup.
transmitterdan is offline   Reply With Quote
Reply

Tags
environment

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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


Advertise Here


All times are GMT -7. The time now is 04:28.


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.