Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » MSVC 10 to Upp conversion
Re: MSVC 10 to Upp conversion [message #32801 is a reply to message #32773] Fri, 10 June 2011 13:14 Go to previous messageGo to next message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
koldo wrote on Tue, 07 June 2011 06:59

Hello Neil

Program compiles well but I get this error:
ERROR 4: Unable to open EPSG support file gcs.csv.
Try setting the GDAL_DATA environment variable to point to the
directory containing EPSG csv files.
:

After playing with .bat files, I tried to force GDAL_DATA to the right folder, but the error always appear.


This may be your problem with linking.
These may be necessary to run/debug in theIDE

Setup->Build methods
PATH C:\FWTools2.4.7\bin
INCLUDE C:\FWTools2.4.7\include
LIB C:\FWTools2.4.7\lib

Run options
Program arguments: C:\WINDOWS\system32\cmd.exe /K "C:\FWTools2.4.7\setfw.bat"
Working directory: Where you have placed the .tif file.

Have the args hard coded.

Many of these requirements have been eliminated in the ntile code in the GUI.

If the earlier ntile.exe is placed in FWTools\bin then none of the extra stuff is necessary.
Re: MSVC 10 to Upp conversion [message #32806 is a reply to message #32801] Sat, 11 June 2011 09:02 Go to previous messageGo to next message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
Some of the previous .zip files probably have errors as posted here:
http://www.ultimatepp.org/forum/index.php?t=msg&goto=328 05&#msg_32805

Without doing anything other than setting the path for FWTools bin, include and lib in theIDE and compiling then placing the ntile.exe in the FWTools bin it works OK.

No changes to the FWTools properties, just open FWTools and cd to where images are and type ntile.exe with the args and it works OK.

Sorry for the problems and thanks again for the help getting the conversion and linking so it can be compiled in U++.
Re: MSVC 10 to Upp conversion [message #32828 is a reply to message #32806] Mon, 13 June 2011 13:06 Go to previous messageGo to next message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
Hi Koldo

95% done, it does everything (and more) than what I have used the
dstile for to merge and tile the U.S. FAA Charts for the last 3 years.

Here is a .zip with the two .exe and a help file.
http://www.nlneilson.com/apps/N_tile_01.zip

Thanks for the help getting the code converted enough to compile with U++.
Re: MSVC 10 to Upp conversion [message #32839 is a reply to message #32828] Tue, 14 June 2011 09:17 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3360
Registered: August 2008
Senior Veteran
Sorry Neil

I am very busy these weeks so I cannot check your code.

Congratulations!, it seems you are closer ...


Best regards
IƱaki
Re: MSVC 10 to Upp conversion [message #32840 is a reply to message #32839] Tue, 14 June 2011 10:15 Go to previous message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
Hi Koldo

I am just adding code for a .cfg file to save some of the settings and do additional checking.

If it was not for your help I would have given up and made changes to the tiling code in MSVC.

It's good to be able to do it in U++.

Thanks
Previous Topic: Please recommend a scripting language
Next Topic: String to std::string conversion
Goto Forum:
  


Current Time: Sun May 05 17:05:36 CEST 2024

Total time taken to generate the page: 0.04668 seconds