|
|
14-04-2013, 08:07
|
#151
|
Registered User
Join Date: Jan 2010
Location: Cologne, Germany
Boat: Beneteau Oceanis 331
Posts: 557
|
Re: Development Debugging Environment - Setup Help
Pavel ...
I thought it was clear, but OK ....
Quote:
Originally Posted by nohal
Gunther...
You have to post the errors you actually get, otherwise we will very hardly be able to help you.
If you really did everything that's in the build instructions, you should not have any problem.
|
Well, we certainly can re-do things for debugging if needed ...!
Quote:
The troubles Rick experienced at the time this thread was started were caused by not following the instructions exactly, as far as I can remember...
|
And AFAIS there are three people who report having trouble, or not being able to successfully compile wxWidgets 2.8.12.
And as I wrote:
Quote:
I downloaded the 'wxMSW-2.8.12-Setup.exe' form wxwidgets.org website and strictly followed the instructions on opencpn.org.
Tried all alternatives ...
|
Quote:
From your post I don't even understand if you managed to build wx itself, but I suppose you didn't, right?
|
That's right. I had to use your "package".
Quote:
There are no PATH entries needed for it, so they are hardly a problem, just post the output of
Code:
nmake -f makefile.vc BUILD=release MONOLITHIC=0 SHARED=1 UNICODE=1 USE_GDIPLUS=1 USE_OPENGL=1
and we'll see what's wrong...
|
I do that on occasion - at the moment I am happy to have "a working compile environment" again ...!
I had to update my old on from wxWidgets 2.8.10 and VC2008 ...!
But just to repeat: I did it 3 times. Each time precisely following the given instructions. And each time the compilation of wxWidgets failed!
BTW:
Quote:
If you are asked to choose the generator, select „Visual Studio 9 2008“
|
Shouldn't this be: "Visual Studio 10"?
Just for clarification:
I was not able to successfully compile wxWidgets 2.8.12!
Using your "ready to use" pack I had no problems at all (with the exception of the "ALL_BUILD" which I guess needs some additional settings, or so).
Gunther
__________________
Deutschsprachige Community- und Support-Website unter OpenCPN.de
|
|
|
14-04-2013, 08:36
|
#152
|
Registered User
Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,145
|
Re: Development Debugging Environment - Setup Help
Quote:
Originally Posted by Netsurfer
Well, we certainly can re-do things for debugging if needed ...!
|
That would be greatly appreciated.
Quote:
And AFAIS there are three people who report having trouble, or not being able to successfully compile wxWidgets 2.8.12.
|
As far as I can remember, none of the people reporting problems actually followed the instructions to the point...
Quote:
But just to repeat: I did it 3 times. Each time precisely following the given instructions. And each time the compilation of wxWidgets failed!
|
Gunther, even I am following these instructions step by step while making new Windows VMs as I don't use this OS myself anymore. If there was a problem, believe me, I would have corrected the instructions... If you find time to do it again, please record exactly what you did and which output you got. It might be the instructions are not clear for people who read it and lead to screwing something, but I really can't see where, especially as to build WX you need to change 2 lines in 1 file and issue 1 (well 2, if you count changing of the directory) command...
Quote:
BTW: Shouldn't this be: "Visual Studio 10"?
|
Corrected, thanks for spotting it.
Pavel
|
|
|
14-04-2013, 09:45
|
#153
|
Registered User
Join Date: Jan 2010
Location: Cologne, Germany
Boat: Beneteau Oceanis 331
Posts: 557
|
Re: Development Debugging Environment - Setup Help
Quote:
Originally Posted by nohal
That would be greatly appreciated.
|
OK, so here we go ...
- Downloaded 'wxMSW-2.8.12-Setup.exe' from Downloads - wxWidgets
(BTW: should add a note that one have to download "wxMSW")
- Ran the EXE and installed to: D:\Program Files\wxWidgets-2.8.12
- Opened 'Name: wx/msw/setup.h'
and changed line 579 from: #define wxUSE_GRAPHICS_CONTEXT 0
to: #define wxUSE_GRAPHICS_CONTEXT 1
and line 1006 from: #define wxUSE_GLCANVAS 0
to: #define wxUSE_GLCANVAS 1
Saved and closed the file
- Continued with alternative 2
Opened file D:\Program Files\wxWidgets-2.8.12\build\msw\config.vc
and changed line 41 from: UNICODE = 0
to: UNICODE = 1
saved and closed the file.
Here is already the first discrepancy - see [1]
- Started Visual C++Express 2010 and loaded project file: D:\Program Files\wxWidgets-2.8.12\build\msw\wx_dll.dsw
- VC++ opened the file and prompted me with the update + convert message -> clicked 'Yes' -> first error!
Translated: The project file 'D:\Program Files\wxWidgets-2.8.12\build\msw\wx_adv.dsp' can not be loaded. Do you want to remove the project that couild not be loaded from the bundle/package?
Yes - No
This happened for all 20 project files.
- So right now I am at the point where the website says:
Quote:
If you keep getting the "Project files cannot be loaded. error is: X:\XXX\XXX\XXX.dsp: error: Project upgrade failed." errors, you have to take the intermediate step of converting the projects to VS2008 format - install VC++ 2008 as described earlier and Convert the solution to VC++ 2008 format
|
- So closed VC++ 2010 (without saving any changes to 'wx_dll.sln'!!!) and started VC++ 2008
- Repeated Step 5 - this time, after saying "Yes, all" (which is btw. not possible in VC++2010 - asks separately for each file) all 20 projects have been converted and loaded.
- Saved the solution (Ctrl-S) and closed VC++ 2008
(be careful to really save 'wx_dll-sln' and not only the first (adv) project!!!)
- Ran VC++ 2010 and opened 'D:\Program Files\wxWidgets-2.8.12\build\msw\wx_dll.sln'.
- Now no question followed, but the "Visual Studio Converting Assistent" window opened
- Here is the list of the projects to convert:
Zu konvertierende Projektmappe: wx_dll
Projekte:
adv
aui
base
core
dbgrid
gl
html
media
net
odbc
qa
richtext
wxexpat
wxjpeg
wxpng
wxregex
wxtiff
wxzlib
xml
xrc
- After starting the Assistent all 20 projects were converted without any error message. It also generates a report file 'D:\Program Files\wxWidgets-2.8.12\build\msw\UpgradeLog.XML'
- Saved (CTRL + S) the solution (once again watch out to save 'wx_dll.sln')
- Switched to 'DLL Unicode Debug' in the symbol bar
and added the GDIPlus.lib as described. The list looks as follows:
wxtiffd.lib
wxjpegd.lib
wxpngd.lib
wxzlibd.lib
wxregexud.lib
wxexpatd.lib
winmm.lib
comctl32.lib
rpcrt4.lib
wsock32.lib
odbc32.lib
..\..\lib\vc_dll\wxbase28ud.lib
GDIPlus.lib
- Did the same for 'DLL Unicode Release' and saved the solution
- Still on 'DLL Unicode Release' started debugging (F5)
- Prompted a window saying that the following projects are out-dated:
wxexpat - DLL Unicode Release Win32
wxzlib - DLL Unicode Release Win32
wxregex - DLL Unicode Release Win32
wxtiff - DLL Unicode Release Win32
wxpng - DLL Unicode Release Win32
wxjpeg - DLL Unicode Release Win32
base - DLL Unicode Release Win32
core - DLL Unicode Release Win32
adv - DLL Unicode Release Win32
and asked to build them -> Yes
- After the process is finished
9> Code wird generiert...
9>D:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuil d.targets(990,5): warning MSB8012: TargetPath(D:\Program Files\wxWidgets-2.8.12\build\msw\.\..\..\lib\vc_dll\adv.dll) entspricht nicht dem OutputFile-Eigenschaftswert (D:\Program Files\wxWidgets-2.8.12\lib\vc_dll\wxmsw28u_adv_vc_custom.dll) von Linker. Das Projekt wird daher möglicherweise nicht ordnungsgemäß erstellt. Damit dieses Problem behoben werden kann, müssen die Eigenschaftswerte für $(OutDir), $(TargetName) und $(TargetExt) dem in %(Link.OutputFile) angegebenen Wert entsprechen.
9>D:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuil d.targets(992,5): warning MSB8012: TargetName(adv) entspricht nicht dem OutputFile-Eigenschaftswert (wxmsw28u_adv_vc_custom) von Linker. Das Projekt wird daher möglicherweise nicht ordnungsgemäß erstellt. Damit dieses Problem behoben werden kann, müssen die Eigenschaftswerte für $(OutDir), $(TargetName) und $(TargetExt) dem in %(Link.OutputFile) angegebenen Wert entsprechen.
9> Bibliothek "..\..\lib\vc_dll\wxmsw28u_adv.lib" und Objekt "..\..\lib\vc_dll\wxmsw28u_adv.exp" werden erstellt.
9> wx_adv.vcxproj -> D:\Program Files\wxWidgets-2.8.12\build\msw\.\..\..\lib\vc_dll\adv.dll
========== Erstellen: 9 erfolgreich, Fehler bei 0, 0 aktuell, 0 übersprungen ==========
I got the following error message:
---------------------------
Microsoft Visual C++ 2010 Express
---------------------------
Das Programm "D:\Program Files\wxWidgets-2.8.12\build\msw\.\..\..\lib\vc_dll\adv.dll" kann nicht gestartet werden.
Das System kann die angegebene Datei nicht finden.
---------------------------
OK
---------------------------
__________________
Deutschsprachige Community- und Support-Website unter OpenCPN.de
|
|
|
14-04-2013, 09:45
|
#154
|
Registered User
Join Date: Jan 2010
Location: Cologne, Germany
Boat: Beneteau Oceanis 331
Posts: 557
|
Re: Development Debugging Environment - Setup Help
... continue
__________________
Deutschsprachige Community- und Support-Website unter OpenCPN.de
|
|
|
14-04-2013, 09:57
|
#155
|
Registered User
Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,145
|
Re: Development Debugging Environment - Setup Help
Gunther...
I wonder why you insist on making your life hard when it can be so easy if you followed the recommended way to do things...
BTW, it's kind of obvious that you can't start a DLL - it's not a program, it's just a library...
Pavel
|
|
|
14-04-2013, 10:47
|
#156
|
Registered User
Join Date: Jan 2010
Location: Cologne, Germany
Boat: Beneteau Oceanis 331
Posts: 557
|
Re: Development Debugging Environment - Setup Help
Quote:
Originally Posted by Netsurfer
... continue
|
... continue
Correction:
In Step 18 you did not have to press 'F5' (for debugging) but rather 'F7' (for creating the solution)!!!
Sorry - my bad.
When you do so, all went fine ... (just the 1 error for the odbc which can be ignored).
Pavel, just one last question:
[1] In the file wxWidgets-2.8.12\build\msw\config.vc in your settings the options
- SHARED = 0
- USE_OPENGL = 0
- USE_GDIPLUS = 0
are also enabled (set to '1'). Does it matter or not?
Gunther
__________________
Deutschsprachige Community- und Support-Website unter OpenCPN.de
|
|
|
14-04-2013, 11:18
|
#157
|
Registered User
Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,145
|
Re: Development Debugging Environment - Setup Help
Gunther...
SHARED is sure not needed, you set it by selecting the build configuration.
The rest should probably be set to
USE_OPENGL = 1
USE_GDIPLUS = 1
Pavel
|
|
|
14-04-2013, 16:16
|
#158
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
|
Re: Development Debugging Environment - Setup Help
Pavel is right, some of the troubles were from not following the thread exactly, however when it came to wxwidgets, I installed them twice I believe, then we found some picky Path Environment issues like I had put a ":" [colon] separator instead of a ";" [semi-colon] separator and could not see it very well. Pavel found it. The we tried to compile and were still having problems with wxWidgets because of some module. So Pavel sent me his wxWidgets compressed via Dropbox and that worked. Please let us know how it is going, and give us details, we'd very much like to help you get this environment going. ---Suddenly there is more thread above!!!! Yiikes I better read.
Quote:
Correction:
In Step 18 you did not have to press 'F5' (for debugging) but rather 'F7' (for creating the solution)!!!
|
Very good job ...Gunther it appears you are set up now with Pavel''s help.
|
|
|
21-04-2013, 12:39
|
#159
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
|
Re: Development Debugging Environment - Setup Help
Pavel:
Quote: Now I am having trouble figuring out where origin/master is located.
The "master" repository is https://github.com/OpenCPN/OpenCPN (the Git URL: git://github.com/OpenCPN/OpenCPN.git) - but it actually does not mean that it has to be called "origin" on your machine as it depends on the order you added remote repositories... Brainfood: Git Reference
Whenever you are not sure what's what, use
in your local repository to see from where you actually are pulling the code...
And about
Response:
Quote:
C:\Data\..\opencpn-git>git remote -v
origin git://github.com/OpenCPN/OpenCPN.git (fetch)
origin git://github.com/OpenCPN/OpenCPN.git (push)
ptizef git://github.com/Ptizef/OpenCPN.git (fetch)
ptizef git://github.com/Ptizef/OpenCPN.git (push)
sean git://github.com/seandepagnier/OpenCPN.git (fetch)
sean git://github.com/seandepagnier/OpenCPN.git (push)
|
Just what I was looking for!
|
|
|
21-04-2013, 12:53
|
#160
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
|
Re: Development Debugging Environment - Setup Help
Pavel's Post #17 Grib_enhancements Thread: Grib_enhancements was set up as a separate Git "Branch" by Sean so that he could make necessary changes to the base opencpn program needed for Grib_pi and Weather_routing_pi. In order to compile these files for us to test them it was necessary to
1. Establish a local repository git clone
2. git fetch --all
3. git pull sean grib_enhancements (Since I was not making changes to code)
4. git checkout sean/grib_enhancements
5. Then in MSVC Build Debug and Release
This is an instructive way to think about Branches. Now what has happened is yesterday, Dave pulled and merged Sean's work into the 'Master' so now the master has the 'hooks'' required for this updated version of grib_pi. Also the grib_pi.dll has been updated to the new 'merged' version of Sean's grib_enhancements_pi and Jean Pierre's New_Grib_pi. So that we can all be working from and on the same version in the 'Master'
located here
Quote:
git://github.com/OpenCPN/OpenCPN.git
|
|
|
|
21-04-2013, 13:03
|
#161
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
|
Re: Development Debugging Environment - Setup Help
Also see Pavel's Post #20 about debugging plugins
and Post #21 about "Remotes" where he uses
Pavel, I am almost ready to write a description about compiling plugins, just need some time.
|
|
|
21-04-2013, 13:20
|
#162
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
|
Re: Development Debugging Environment - Setup Help
See Post #148 for an example of Git Push, if you are writing code and want to share the code with another repository (I thought this was two step process, because someone on the other end had to 'merge' it, but this does not appear true, what actually happens is a new branch is made, I think.)
|
|
|
21-04-2013, 13:38
|
#163
|
Registered User
Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,145
|
Re: Development Debugging Environment - Setup Help
Rick...
Actually getting code to the master repository is a two step process for most of the contributors, as they can't push there themselves and have to send us a pull request with their changes. More about it at https://help.github.com/articles/using-pull-requests
Pavel
|
|
|
21-04-2013, 13:38
|
#164
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
|
Re: Development Debugging Environment - Setup Help
Trying to git clone a remote directory and it fails:
Thomas (Cagney) Try:
It worked.
|
|
|
|
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
Advertise Here
Recent Discussions |
|
|
|
|
|
|
|
|
|
|
|
|
Vendor Spotlight |
|
|
|