Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 24-08-2012, 08:00   #16
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,243
Re: Development Debugging Environment - Setup Help

JesperWe, agreed, ran smack into permission problems! Moved both Ocpn-Dev and Ocpn-Source to my data directory. Why do you like to have your source directory below the Opcn-Dev compiled directory?
__________________

__________________
rgleason is offline   Reply With Quote
Old 24-08-2012, 08:08   #17
Registered User

Join Date: Dec 2008
Boat: Journeyman
Posts: 705
Re: Development Debugging Environment - Setup Help

I just personally like to have a single top folder for the project. Having two next to each other works fine too.
__________________

__________________
JesperWe is offline   Reply With Quote
Old 24-08-2012, 09:05   #18
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,243
Re: Development Debugging Environment - Setup Help

Okay, I guess I'm not going to mess around, but do it just as expected.

I've made a directory under ..OpenCPN-Source/build and then copied the files created earlier under the OpenCPN-Dev directory which are "Cmakecache.txt" , and directory "CMakeFiles" to this new "build" directory.

Now cd to ...OpenCPN-Source (where the source code is)
Execute "cmake C:\Data-Dart\Up-Soft\Navigation\OpenCPN-Source\" <---Path to existing build>

Then shows:
-- Building for: Visual Studio 10
--Check for working C compiler using: Visual Studion 10 --works
--Detecting C compiler ABI info - done
--Check for working CXX compiler using: Visual Studio -- works
--Detecting CXX compiler ABI info -done
-- *** Build architecture is i386
--*** Staging to build opencpn 3.1.814 ***
--Found OpenGL: opengle32
-- Lib: glu32opengl32
-- Include:
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (Message)
could not find wxWidgets (missing: wxwidgets_FOUND)
Call Stack (most recent call first):
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/Findwxwidgets.cmake:831 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:148 (Find_PACKAGE)

---Configuring incomplete, errors occurred!

What's missing? Do I first have to point to wxwidgets somehow? (Notes in "Compiling Windows")

-Tried running cmake again. Same errors.
__________________
rgleason is offline   Reply With Quote
Old 24-08-2012, 09:30   #19
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,243
Re: Development Debugging Environment - Setup Help

Went back into Cmake Gui and pointed
wxWidgets_Lib_Dir to C:\wxWidgets-2.8.12\lib\vc_dll
wxWidgets_Root_Dir to C:\wxWidgets-2.8.12

Still getting errors messages when "configure" under Cmake Gui
*** Build Architecture is i386 *** Staging to build opencpn 3.1.814 ***
Found OpenGL...
Lib: glu32opengl32
Include:
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
Could NOT find wxWidgets (missing: wxWidgets_FOUND)
Call Stack (most recent call first):
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindwxWidgets.cmake:831 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:148 (FIND_PACKAGE)
Configuring incomplete, errors occurred!


The CMAKE_INSTALL_PREFIX value was a previous OpenCPN-Dev directory under Program Files (x86). Now is:

CMAKE_INSTALL_PREFIX C:/Data-Dart/Up-Soft/Navigation/OpenCPN-Source - Is this correct?



Also redirected Source Code to

C:/Data-Dart/Up-Soft/Navigation/OpenCPN-Source
and where to build binaries:
C:/Data-Dart/Up-Soft/Navigation/OpenCPN-Source/build

Thanks, Rick
__________________
rgleason is offline   Reply With Quote
Old 24-08-2012, 09:36   #20
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,763
Re: Development Debugging Environment - Setup Help

Rick...

Where exactly is your wxWidgets installation?

Dave
__________________
bdbcat is offline   Reply With Quote
Old 24-08-2012, 09:53   #21
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,763
Re: Development Debugging Environment - Setup Help

Rick...

The cmake module to find wxWidgets on Windows is known broken in cmake 2.8. sigh....

In the cmake GUI, you will see in the middle pane a directory tree. It will be red if a particular entry is not found. You need to manually correct the entries related to wxWidgets. Hard to describe, really, but if you click on say wxWidgets_ROOT_DIR on the left, then on the right you can browse to find and manually specify the location of the root dir.

I attach a picture of my setup in the cmake GUI.

Anyway, you can set all those wxWdigets entries correctly, and run the configure button again. If all is well, there will be no red in the middle pane.

Dave
Attached Thumbnails
Click image for larger version

Name:	gui1.png
Views:	228
Size:	37.0 KB
ID:	45497  
__________________
bdbcat is offline   Reply With Quote
Old 24-08-2012, 10:20   #22
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,243
Re: Development Debugging Environment - Setup Help

Locations of programs:

wxWidgets C:\wxWidgets-2.8.12
CMake 2.8 C:\Program Files (x86)\CMake 2.8
MS VS10 C:\Program Files (x86)\Microsoft Visual Studio 10.0
PoEdit C:\Program Files (x86)\Poedit
Git C:\Program Files (x86)\Git

OPCN Source C:\Data-Dart\Up-Soft\Navigation\OpenCPN-Source
OPCN Build C:\Data-Dart\Up-Soft\Navigation\OpenCPN-Source\build
__________________
rgleason is offline   Reply With Quote
Old 24-08-2012, 10:28   #23
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,243
Re: Development Debugging Environment - Setup Help

Dave "...set all those wxWdigets entries correctly, and run the configure button again. If all is well, there will be no red in the middle pane."

CMAKE_INSTALL_PREFIX
C:/Data-Dart/Up-Soft/Navigation/OpenCPN-Source
PACKAGE_RELEASE
1
wxWidgets_CONFIGURATION
mswu
wxWidgets_LIB_DIR
C:/wxWidgets-2.8.12/lib/vc_dll
wxWidgets_ROOT_DIR
C:/wxWidgets-2.8.12/
wxWidgets_USE_REL_AND_DBG
check mark

After hit "Configure" middle box has NO red, but the notes below state:

*** Build Architecture is i386 *** Staging to build opencpn 3.1.814 ***
Found OpenGL...
Lib: glu32opengl32
Include:
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
Could NOT find wxWidgets (missing: wxWidgets_FOUND)
Call Stack (most recent call first):
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindwxWidgets.cmake:831 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:148 (FIND_PACKAGE)
Configuring incomplete, errors occurred!


--IS THIS OK?
Keep in mind I moved the source and build directories out of Program Files (x86), and have changed this accordingly in CMake Gui
__________________
rgleason is offline   Reply With Quote
Old 24-08-2012, 12:15   #24
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
Re: Development Debugging Environment - Setup Help

rgleason...
Definitely not OK
Could you post the file CMakeCache.txt which cmake created in your build directory?
In case all is set up well, there is no error message at all.

Pavel
__________________
nohal is offline   Reply With Quote
Old 24-08-2012, 14:31   #25
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,243
Re: Development Debugging Environment - Setup Help

This is the cmakecache.txt from c:/Data-Dart/Up-Soft/Navigation/OpenCPN-Source/build:


# This is the CMakeCache file.
# For build in directory: c:/Data-Dart/Up-Soft/Navigation/OpenCPN-Source/build
# It was generated by CMake: C:/Program Files (x86)/CMake 2.8/bin/cmake.exe
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.

########################
# EXTERNAL cache entries
########################

//Semicolon separated list of supported configuration types, only
// supports Debug, Release, MinSizeRel, and RelWithDebInfo, anything
// else will be ignored.
CMAKE_CONFIGURATION_TYPES:STRING=Debug;Release;Min SizeRel;RelWithDebInfo

//C++ compiler
CMAKE_CXX_COMPILER:FILEPATH=cl

//Flags used by the compiler during all build types.
CMAKE_CXX_FLAGS:STRING= /DWIN32 /D_WINDOWS /W3 /Zm1000 /EHsc /GR

//Flags used by the compiler during debug builds.
CMAKE_CXX_FLAGS_DEBUG:STRING=/D_DEBUG /MDd /Zi /Ob0 /Od /RTC1

//Flags used by the compiler during release minsize builds.
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=/MD /O1 /Ob1 /D NDEBUG

//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_CXX_FLAGS_RELEASE:STRING=/MD /O2 /Ob2 /D NDEBUG

//Flags used by the compiler during Release with Debug Info builds.
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=/MD /Zi /O2 /Ob1 /D NDEBUG

//Libraries linked by defalut with all C++ applications.
CMAKE_CXX_STANDARD_LIBRARIES:STRING='kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib '

//C compiler
CMAKE_C_COMPILER:FILEPATH=cl

//Flags used by the compiler during all build types.
CMAKE_C_FLAGS:STRING= /DWIN32 /D_WINDOWS /W3 /Zm1000

//Flags used by the compiler during debug builds.
CMAKE_C_FLAGS_DEBUG:STRING=/D_DEBUG /MDd /Zi /Ob0 /Od /RTC1

//Flags used by the compiler during release minsize builds.
CMAKE_C_FLAGS_MINSIZEREL:STRING=/MD /O1 /Ob1 /D NDEBUG

//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_C_FLAGS_RELEASE:STRING=/MD /O2 /Ob2 /D NDEBUG

//Flags used by the compiler during Release with Debug Info builds.
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=/MD /Zi /O2 /Ob1 /D NDEBUG

//Libraries linked by defalut with all C applications.
CMAKE_C_STANDARD_LIBRARIES:STRING='kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib '

//Flags used by the linker.
CMAKE_EXE_LINKER_FLAGS:STRING=' /STACK:10000000 /machine:X86 '

//Flags used by the linker during debug builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=/debug /INCREMENTAL

//Flags used by the linker during release minsize builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=/INCREMENTAL:NO

//Flags used by the linker during release builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=/INCREMENTAL:NO

//Flags used by the linker during Release with Debug Info builds.
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /INCREMENTAL

//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=C:/Data-Dart/Up-Soft/Navigation/OpenCPN-Source

//Path to a program.
CMAKE_LINKER:FILEPATH=CMAKE_LINKER-NOTFOUND

//Path to a program.
CMAKE_MAKE_PROGRAM:FILEPATH=C:/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe

//Flags used by the linker during the creation of modules.
CMAKE_MODULE_LINKER_FLAGS:STRING=' /STACK:10000000 /machine:X86 '

//Flags used by the linker during debug builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=/debug /INCREMENTAL

//Flags used by the linker during release minsize builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=/INCREMENTAL:NO

//Flags used by the linker during release builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=/INCREMENTAL:NO

//Flags used by the linker during Release with Debug Info builds.
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /INCREMENTAL

//Value Computed by CMake
CMAKE_PROJECT_NAME:STATIC=OpenCPN

//RC compiler
CMAKE_RC_COMPILER:FILEPATH=rc

//Flags for Fortran compiler.
CMAKE_RC_FLAGS:STRING=' '

//Flags used by the linker during the creation of dll's.
CMAKE_SHARED_LINKER_FLAGS:STRING=' /STACK:10000000 /machine:X86 '

//Flags used by the linker during debug builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=/debug /INCREMENTAL

//Flags used by the linker during release minsize builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=/INCREMENTAL:NO

//Flags used by the linker during release builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=/INCREMENTAL:NO

//Flags used by the linker during Release with Debug Info builds.
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /INCREMENTAL

//If set, runtime paths are not added when installing shared libraries,
// but are added when building.
CMAKE_SKIP_INSTALL_RPATH:BOOL=OFF

//If set, runtime paths are not added when using shared libraries.
CMAKE_SKIP_RPATH:BOOL=OFF

//If true, cmake will use relative paths in makefiles and projects.
CMAKE_USE_RELATIVE_PATHS:BOOL=OFF

//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make. This is useful for debugging only. With Visual
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=OFF

//OpenGL library for win32
OPENGL_gl_LIBRARY:STRING=opengl32

//GLU library for win32
OPENGL_glu_LIBRARY:STRING=glu32

//Value Computed by CMake
OpenCPN_BINARY_DIR:STATIC=C:/Data-Dart/Up-Soft/Navigation/OpenCPN-Source/build

//Value Computed by CMake
OpenCPN_SOURCE_DIR:STATIC=C:/Data-Dart/Up-Soft/Navigation/OpenCPN-Source

//Package release number
PACKAGE_RELEASE:STRING=1

//Cleared.
WX_adv:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28u_adv.lib

//Cleared.
WX_advd:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28ud_adv.lib

//Cleared.
WX_aui:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28u_aui.lib

//Cleared.
WX_auid:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28ud_aui.lib

//Cleared.
WX_base:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxbase28u.lib

//Cleared.
WX_based:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxbase28ud.lib

//Cleared.
WX_core:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28u_core.lib

//Cleared.
WX_cored:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28ud_core.lib

//Cleared.
WX_dbgrid:FILEPATH=WX_dbgrid-NOTFOUND

//Cleared.
WX_dbgridd:FILEPATH=WX_dbgridd-NOTFOUND

//Cleared.
WX_expat:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxexpat.lib

//Cleared.
WX_expatd:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxexpatd.lib

//Cleared.
WX_gl:FILEPATH=WX_gl-NOTFOUND

//Cleared.
WX_gld:FILEPATH=WX_gld-NOTFOUND

//Cleared.
WX_html:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28u_html.lib

//Cleared.
WX_htmld:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28ud_html.lib

//Cleared.
WX_jpeg:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxjpeg.lib

//Cleared.
WX_jpegd:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxjpegd.lib

//Cleared.
WX_media:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28u_media.lib

//Cleared.
WX_mediad:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28ud_media.lib

//Cleared.
WX_mono:FILEPATH=WX_mono-NOTFOUND

//Cleared.
WX_monod:FILEPATH=WX_monod-NOTFOUND

//Cleared.
WX_net:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxbase28u_net.lib

//Cleared.
WX_netd:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxbase28ud_net.lib

//Cleared.
WX_odbc:FILEPATH=WX_odbc-NOTFOUND

//Cleared.
WX_odbcd:FILEPATH=WX_odbcd-NOTFOUND

//Cleared.
WX_png:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxpng.lib

//Cleared.
WX_pngd:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxpngd.lib

//Cleared.
WX_propgrid:FILEPATH=WX_propgrid-NOTFOUND

//Cleared.
WX_propgridd:FILEPATH=WX_propgridd-NOTFOUND

//Cleared.
WX_qa:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28u_qa.lib

//Cleared.
WX_qad:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28ud_qa.lib

//Cleared.
WX_regex:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxregexu.lib

//Cleared.
WX_regexd:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxregexud.lib

//Cleared.
WX_ribbon:FILEPATH=WX_ribbon-NOTFOUND

//Cleared.
WX_ribbond:FILEPATH=WX_ribbond-NOTFOUND

//Cleared.
WX_richtext:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28u_richtext.lib

//Cleared.
WX_richtextd:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28ud_richtext.lib

//Cleared.
WX_scintilla:FILEPATH=WX_scintilla-NOTFOUND

//Cleared.
WX_scintillad:FILEPATH=WX_scintillad-NOTFOUND

//Cleared.
WX_stc:FILEPATH=WX_stc-NOTFOUND

//Cleared.
WX_stcd:FILEPATH=WX_stcd-NOTFOUND

//Cleared.
WX_tiff:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxtiff.lib

//Cleared.
WX_tiffd:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxtiffd.lib

//Path to a library.
WX_webview:FILEPATH=WX_webview-NOTFOUND

//Path to a library.
WX_webviewd:FILEPATH=WX_webviewd-NOTFOUND

//Cleared.
WX_xml:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxbase28u_xml.lib

//Cleared.
WX_xmld:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxbase28ud_xml.lib

//Cleared.
WX_xrc:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28u_xrc.lib

//Cleared.
WX_xrcd:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxmsw28ud_xrc.lib

//Cleared.
WX_zlib:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxzlib.lib

//Cleared.
WX_zlibd:FILEPATH=C:/wxWidgets-2.8.12/lib/vc_dll/wxzlibd.lib

//Set wxWidgets configuration (mswud;mswu)
wxWidgets_CONFIGURATION:STRING=mswu

//Cleared.
wxWidgets_LIB_DIR:PATH=C:/wxWidgets-2.8.12/lib/vc_dll

//wxWidgets base/installation directory?
wxWidgets_ROOT_DIR:PATH=C:/wxWidgets-2.8.12

//Use release and debug configurations?
wxWidgets_USE_REL_AND_DBG:BOOL=ON


########################
# INTERNAL cache entries
########################

//ADVANCED property for variable: CMAKE_BUILD_TOOL
CMAKE_BUILD_TOOL-ADVANCED:INTERNAL=1
//What is the target build tool cmake is generating for.
CMAKE_BUILD_TOOL:INTERNAL=C:/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe
//This is the directory where this CMakeCache.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=c:/Data-Dart/Up-Soft/Navigation/OpenCPN-Source/build
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=2
//Minor version of cmake used to create the current loaded cache
CMAKE_CACHE_MINOR_VERSION:INTERNAL=8
//Patch version of cmake used to create the current loaded cache
CMAKE_CACHE_PATCH_VERSION:INTERNAL=9
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=C:/Program Files (x86)/CMake 2.8/bin/cmake.exe
//ADVANCED property for variable: CMAKE_CONFIGURATION_TYPES
CMAKE_CONFIGURATION_TYPES-ADVANCED:INTERNAL=1
//Path to cpack program executable.
CMAKE_CPACK_COMMAND:INTERNAL=C:/Program Files (x86)/CMake 2.8/bin/cpack.exe
//Path to ctest program executable.
CMAKE_CTEST_COMMAND:INTERNAL=C:/Program Files (x86)/CMake 2.8/bin/ctest.exe
//ADVANCED property for variable: CMAKE_CXX_COMPILER
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
CMAKE_CXX_COMPILER_WORKS:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_STANDARD_LIBRARIES
CMAKE_CXX_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_COMPILER
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
CMAKE_C_COMPILER_WORKS:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_STANDARD_LIBRARIES
CMAKE_C_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1
//Result of TRY_COMPILE
CMAKE_DETERMINE_CXX_ABI_COMPILED:INTERNAL=TRUE
//Result of TRY_COMPILE
CMAKE_DETERMINE_C_ABI_COMPILED:INTERNAL=TRUE
//Path to cache edit program executable.
CMAKE_EDIT_COMMAND:INTERNAL=C:/Program Files (x86)/CMake 2.8/bin/cmake-gui.exe
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Name of generator.
CMAKE_GENERATOR:INTERNAL=Visual Studio 10
//Start directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=C:/Data-Dart/Up-Soft/Navigation/OpenCPN-Source
//ADVANCED property for variable: CMAKE_LINKER
CMAKE_LINKER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//number of local generators
CMAKE_NUMBER_OF_LOCAL_GENERATORS:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_COMPILER
CMAKE_RC_COMPILER-ADVANCED:INTERNAL=1
CMAKE_RC_COMPILER_WORKS:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS
CMAKE_RC_FLAGS-ADVANCED:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=C:/Program Files (x86)/CMake 2.8/share/cmake-2.8
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//Suppress Warnings that are meant for the author of the CMakeLists.txt
// files.
CMAKE_SUPPRESS_DEVELOPER_WARNINGS:INTERNAL=FALSE
//ADVANCED property for variable: CMAKE_USE_RELATIVE_PATHS
CMAKE_USE_RELATIVE_PATHS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
//Details about finding OpenGL
FIND_PACKAGE_MESSAGE_DETAILS_OpenGL:INTERNAL=[opengl32][v()]
//ADVANCED property for variable: OPENGL_gl_LIBRARY
OPENGL_gl_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: OPENGL_glu_LIBRARY
OPENGL_glu_LIBRARY-ADVANCED:INTERNAL=1
//Stored GUID
SG_Filter_CMake Rules_GUID_CMAKE:INTERNAL=C7FB2A45-5E06-417D-8E6A-52447CDD55A7
//Stored GUID
SG_Filter_Header Files_GUID_CMAKE:INTERNAL=2C7E88C3-579F-440E-A558-92CCD9C584BA
//Stored GUID
SG_Filter_Object Files_GUID_CMAKE:INTERNAL=B18CD871-AA20-4BA7-9D79-0A3D8DB504D0
//Stored GUID
SG_Filter_Resources_GUID_CMAKE:INTERNAL=1920185B-1FC7-46DC-9435-48BF76683D17
//Stored GUID
SG_Filter_Source Files_GUID_CMAKE:INTERNAL=E9210F0E-8789-48CB-9495-DE65BACCA12C
//wxWidgets_LIB_DIR
WX_LIB_DIR:INTERNAL=C:/wxWidgets-2.8.12/lib/vc_dll
//wxWidgets_ROOT_DIR
WX_ROOT_DIR:INTERNAL=C:/wxWidgets-2.8.12
//ADVANCED property for variable: WX_adv
WX_adv-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_advd
WX_advd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_aui
WX_aui-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_auid
WX_auid-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_base
WX_base-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_based
WX_based-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_core
WX_core-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_cored
WX_cored-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_dbgrid
WX_dbgrid-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_dbgridd
WX_dbgridd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_expat
WX_expat-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_expatd
WX_expatd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_gl
WX_gl-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_gld
WX_gld-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_html
WX_html-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_htmld
WX_htmld-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_jpeg
WX_jpeg-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_jpegd
WX_jpegd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_media
WX_media-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_mediad
WX_mediad-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_mono
WX_mono-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_monod
WX_monod-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_net
WX_net-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_netd
WX_netd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_odbc
WX_odbc-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_odbcd
WX_odbcd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_png
WX_png-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_pngd
WX_pngd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_propgrid
WX_propgrid-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_propgridd
WX_propgridd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_qa
WX_qa-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_qad
WX_qad-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_regex
WX_regex-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_regexd
WX_regexd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_ribbon
WX_ribbon-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_ribbond
WX_ribbond-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_richtext
WX_richtext-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_richtextd
WX_richtextd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_scintilla
WX_scintilla-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_scintillad
WX_scintillad-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_stc
WX_stc-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_stcd
WX_stcd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_tiff
WX_tiff-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_tiffd
WX_tiffd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_webview
WX_webview-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_webviewd
WX_webviewd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_xml
WX_xml-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_xmld
WX_xmld-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_xrc
WX_xrc-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_xrcd
WX_xrcd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_zlib
WX_zlib-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_zlibd
WX_zlibd-ADVANCED:INTERNAL=1
//Stored GUID
ZERO_CHECK_GUID_CMAKE:INTERNAL=20906D76-2495-416C-B7CC-93374EC82285
__________________
rgleason is offline   Reply With Quote
Old 24-08-2012, 14:34   #26
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,243
Re: Development Debugging Environment - Setup Help

These were in the txt file

//Path to a library.
WX_webview:FILEPATH=WX_webview-NOTFOUND

//Path to a library.
WX_webviewd:FILEPATH=WX_webviewd-NOTFOUND
__________________
rgleason is offline   Reply With Quote
Old 24-08-2012, 14:51   #27
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
Re: Development Debugging Environment - Setup Help

Rick...
It looks like your WX build is a bit screwed - at least the WX_gl and WX_gld Opengl libraries are missing. Try to recheck the WX settings from the build instructions and perhaps rebuild WX - wxmsw28u_gl_vc_custom.dll and wxmsw28ud_gl_vc_custom.dll must be created in WX/lib/vc_dll if you do everything right...
A little hint to make the posts looking reasonably: You can use [CODE] tags (the # icon in the post toolbar) before and after text like the listing above and it's shrunk to a scrollable subwindow with formatting left intact.

Pavel
__________________
nohal is offline   Reply With Quote
Old 24-08-2012, 16:51   #28
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,243
Re: Development Debugging Environment - Setup Help

Thanks Pavel, I think I'm going to redo the whole thing, this time knowing better what to do, also perhaps without the startup and "restore" glitch that I had.
__________________
rgleason is offline   Reply With Quote
Old 24-08-2012, 21:10   #29
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,243
Re: Development Debugging Environment - Setup Help

Second try

Locations of programs:
MS VS10 C:\Program Files (x86)\Microsoft Visual Studio 10.0
Git C:\Program Files (x86)\Git
CMake 2.8 C:\Program Files (x86)\CMake 2.8
GetText PoEdit C:\Program Files (x86)\Poedit
wxWidgets C:\wxWidgets-2.8.12
OCpn Source C:\Data-Dart\Up-Soft\Navigation\OpenCpn-Dev\OpenCPN
OCpn Build C:\Data-Dart\Up-Soft\Navigation\OpenCpn-Dev\build

Programs
(See the Compiling for Windows page)VC++ 2010 Express w/ServicePack 1
http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visua...
Git for Windows (Git-1.7.11-preview20120710.exe) Visual Studio 2008 Express | Microsoft Visual Studio
CMake (cmake-2.8.9-win32-x86.exe) CMake - Cross Platform Make
GetText Poedit Poedit
WxWidgets
wxMSW-2.8.12-Setup.exe http://www.wxwidgets.org/downloads/#latest_stabl
add C:\wxWidgets-2.8.12\lib\vc_dll to your PATH environment variable
edit C:\wxWidgets-2.8.12\include\wx\msw\setup.h and set
#define wxUSE_GRAPHICS_CONTEXT 1
#define wxUSE_GLCANVAS 1
-inserted after #define _WX_SETUP_H_
--------
Compile wxWidgets alternative 1: From command line (recommended and faster)
Use Start-All Programs-Visual Studio 2010 Command Prompt and navigate to cd C:\${WXDIR}\build\msw
OR cd C:\wxWidgets-2.8.12\build\msw
1. Then compile using the makefile with the following command :
nmake -f makefile.vc BUILD=release MONOLITHIC=0 SHARED=1 UNICODE=1 USE_GDIPLUS=1 USE_OPENGL=1
Visual Studio Command Prompt (2010) will show "Creating library...." a number of times. No error comments at the end.
link /DLL /NOLOGO /OUT;..\..\lib\vc_dll\wxbase28u_vc_custom.dll \pdb: "..\..\lib\vc_dll\wxbase28u_vc_custiom.pdb"
LIBPATH..\..\lib\vc_dlll @c:\Users\Rick\AppData\LOcal\Temp\nmD3B5,tmp
Creating library ..\..\libvc_dl\wxbase28u.lib and object ..\..\lib\vc_dllwxbase28u.exp
And so on...
2. If you want to fully debug OpenCPN, build the wxWidgets debug dlls also.
nmake -f makefile.vc BUILD=debug MONOLITHIC=0 SHARED=1 UNICODE=1 USE_GDIPLUS=1 USE_OPENGL=1
Visual Studio Command Prompt (2010) will show "link...."
3. After executing both nmake commands above several times, there would be no messages with just a new blank line once the command had completed execution. I believe wxWidgets has compiled. The newly compiled files should be in C:\wxWidgets-2.8.12\lib\vc_dll
-------

Getting the OpenCPN source
(downloading current opencpn source from a repository using git)
Open Visual Studio Command Prompt
cd C:/Data-Dart/Up-Soft/Navigation/OpenCpn-Dev directory.
Then execute: git clone git://github.com/OpenCPN/OpenCPN.git
Prompts "Cloning into 'OpenCPN' ...remote counting objects...remote compressing objects 100% done....receiving objects 100%...Resolving deltas 100%, done."
Checking C:/Data-Dart/Up-Soft/Navigation/OpenCpn-Dev directory, there is now a new OpenCPN directory which has all the source code from the remote repository.

I found that issuing the git clone command from the VS10 command prompt was a slow download.
The above command might be faster issued from the cmd prompt,

Earlier I tried to use Git Gui - did find the git subdirectory created filled but was taking too long.
Use Git Gui - Windows Start-All Programs- find Git - Git Gui the program says "Clone Existing Repository"
Source Location to: git://github.com/OpenCPN/OpenCPN.git
Target Directory: C:/Data-Dart/Up-Soft/Navigation/OpenCpn-Dev {OpenCpn-Dev should not exist as a directory, it will be made}
Now hit "Clone" ... new screen "Working...please wait... -This may work but it takes a long time. I stopped.

Building the OpenCPN source

Tried using cMake Gui program to set the source and build, and to get thing pointed to wxWidgets directories
See attached -no red in middle, but the comments below show problems.

Create a directory named build under the topmost source directory C:/Data-Dart/Up-Soft/Navigation/OpenCpn-Dev/build

Configuring alternative 1: From the command line (recommended):
cmd
cd into the build source directory "C:/Data-Dart/Up-Soft/Navigation/OpenCpn-Dev/OpenCPN"
issue cmake -G "Visual Studio 10"
Got errors see attached.
__________________
rgleason is offline   Reply With Quote
Old 24-08-2012, 21:18   #30
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,243
Re: Development Debugging Environment - Setup Help

http://tgp-architects.com/OpenCPN/cMake.jpg


__________________

__________________
rgleason is offline   Reply With Quote
Reply

Tags
environment

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



Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities


Copyright 2002- Social Knowledge, LLC All Rights Reserved.

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


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.