<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Problems compilingxfm mdl project</title><link>https://communities.bentley.com/products/geospatial/desktop/f/bentley-map-forum/75717/problems-compilingxfm-mdl-project</link><description>Hi, 
 I know I&amp;#39;m a old timer but I never seem to get the time to enter the VC-world. Right now I need to add xfm functionality to an old mdl project. I&amp;#39;ve downloaded and modified the geodevshell.bat file and it work for compiling my project WITHOUT xfm</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Re: Problems compilingxfm mdl project</title><link>https://communities.bentley.com/thread/204309?ContentTypeID=1</link><pubDate>Mon, 02 Apr 2012 13:23:50 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:15348fac-9ac0-4075-a7dd-52fdb1193d1b</guid><dc:creator>Krister Surell</dc:creator><description>&lt;p&gt;Finally my friends!&lt;/p&gt;
&lt;p&gt;compOpts was the way to go.&lt;/p&gt;
&lt;p&gt;compOpts + -i&amp;quot;$(GEOINCS)&amp;quot;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Krister&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Problems compilingxfm mdl project</title><link>https://communities.bentley.com/thread/204207?ContentTypeID=1</link><pubDate>Fri, 30 Mar 2012 20:59:03 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:7ae46554-79a1-481e-a261-6dd21b24d8b6</guid><dc:creator>Jeff Bielefeld</dc:creator><description>&lt;p&gt;Krister,&lt;/p&gt;
&lt;p&gt;Jon is correct, if not using C/C++ native code then use of...&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span style="font-family:courier new,courier;"&gt;compOpts + i$(GEOINCS)&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;....in your .mke file is correct. It seems the definition of the GEOINCS environment variable may not be pointing to the location of the Bentley Map header files. From your development shell, what does the following command produce?&lt;/p&gt;
&lt;p&gt;&lt;code&gt;dir %GEOINCS%\XfmApi.fdf&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Problems compilingxfm mdl project</title><link>https://communities.bentley.com/thread/204204?ContentTypeID=1</link><pubDate>Fri, 30 Mar 2012 20:43:58 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:000ea344-c380-4b04-bd1b-68c64f3c676c</guid><dc:creator>Krister Surell</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;My make file now look (partly) like this:&lt;/p&gt;
&lt;p&gt;%ifndef CC_LANGUAGE&lt;/p&gt;
&lt;p&gt;langSpec = swedish&lt;/p&gt;
&lt;p&gt;%endif&lt;/p&gt;
&lt;p&gt;privateInc = ./$(langSpec)&lt;/p&gt;
&lt;p&gt;#privateInc = C:\PROGRA~2\Bentley\MICROS~1\Map\mdl\include&lt;/p&gt;
&lt;p&gt;%include mdl.mki&lt;/p&gt;
&lt;p&gt;dirToSearch = $(GEOINCS)&lt;/p&gt;
&lt;p&gt;#dirToSearch = $(genSrc) &lt;/p&gt;
&lt;p&gt;%include cincapnd.mki&lt;/p&gt;
&lt;p&gt;This results in a massive error listing (see below). Switching the comments (quick fix) will make my project compile.&lt;/p&gt;
&lt;p&gt;E:\Lagring\prj\Samlingskartan_v8i\src\SamText\txt_edit.mc(42) : error: can&amp;#39;t ope&lt;/p&gt;
&lt;p&gt;n #include file xfmElement.fdf&lt;/p&gt;
&lt;p&gt;E:\Lagring\prj\Samlingskartan_v8i\src\SamText\txt_edit.mc(42) : error: No such f&lt;/p&gt;
&lt;p&gt;ile or directory&lt;/p&gt;
&lt;p&gt;C:\PROGRA~2\Bentley\MICROS~1\MICROS~1\mdl\include\xfmApi.fdf(22) : error: can&amp;#39;t&lt;/p&gt;
&lt;p&gt;open #include file xfmApiDef.h&lt;/p&gt;
&lt;p&gt;C:\PROGRA~2\Bentley\MICROS~1\MICROS~1\mdl\include\xfmApi.fdf(22) : error: No suc&lt;/p&gt;
&lt;p&gt;h file or directory&lt;/p&gt;
&lt;p&gt;C:\PROGRA~2\Bentley\MICROS~1\MICROS~1\mdl\include\xfmApi.fdf(23) : error: can&amp;#39;t&lt;/p&gt;
&lt;p&gt;open #include file xfmApiTyp.h&lt;/p&gt;
&lt;p&gt;C:\PROGRA~2\Bentley\MICROS~1\MICROS~1\mdl\include\xfmApi.fdf(23) : error: No suc&lt;/p&gt;
&lt;p&gt;h file or directory&lt;/p&gt;
&lt;p&gt;C:\PROGRA~2\Bentley\MICROS~1\MICROS~1\mdl\include\xfmApi.fdf(24) : error: can&amp;#39;t&lt;/p&gt;
&lt;p&gt;open #include file xfmSettings.h&lt;/p&gt;
&lt;p&gt;C:\PROGRA~2\Bentley\MICROS~1\MICROS~1\mdl\include\xfmApi.fdf(24) : error: No suc&lt;/p&gt;
&lt;p&gt;h file or directory&lt;/p&gt;
&lt;p&gt;C:\PROGRA~2\Bentley\MICROS~1\MICROS~1\mdl\include\xfmApi.fdf(36) : error: expect&lt;/p&gt;
&lt;p&gt;ed ,, got *&lt;/p&gt;
&lt;p&gt;C:\PROGRA~2\Bentley\MICROS~1\MICROS~1\mdl\include\xfmApi.fdf(37) : error: expect&lt;/p&gt;
&lt;p&gt;ed ,, got IDENT&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Problems compilingxfm mdl project</title><link>https://communities.bentley.com/thread/204202?ContentTypeID=1</link><pubDate>Fri, 30 Mar 2012 20:43:11 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c0c4f367-8bc0-4598-a155-f280d400510e</guid><dc:creator>Jon Summers</dc:creator><description>&lt;p&gt;[quote user=&amp;quot;Jeff Bielefeld&amp;quot;]&lt;code&gt;%include mdl.mki&lt;/code&gt;&lt;code&gt;dirToSearch = $(GEOINCS)&lt;br /&gt;%include cincapnd.mki&lt;/code&gt;[/quote]&lt;/p&gt;
&lt;p&gt;That works when you&amp;#39;re using the C++ build tools.&amp;nbsp; It appends &lt;span style="font-family:courier new,courier;"&gt;/I $(GEOINCS)&lt;/span&gt; to the C++ compiler command.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re building a pure MDL application, as Kristel implies he is, then you need this in the make file:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:courier new,courier;"&gt;compOpts + i$(GEOINCS)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Problems compilingxfm mdl project</title><link>https://communities.bentley.com/thread/204195?ContentTypeID=1</link><pubDate>Fri, 30 Mar 2012 19:57:13 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:28c89dcf-a3d0-4842-893f-9e09cfdec145</guid><dc:creator>Jeff Bielefeld</dc:creator><description>&lt;p&gt;Krister,&lt;/p&gt;
&lt;p&gt;The bmake_opt variable is used to define options for bmake.exe&amp;nbsp;such as&amp;nbsp;-I option which&amp;nbsp;defines the Include (.mki) file path, not the header file includes. What you need to do is update your applications .mke file by extending the paths in which the compiler looks for the header and function prototype files. Something such as the following where GEOINCS has been defined in your shell to point to the folder containg the required header files etc...&lt;/p&gt;
&lt;p&gt;&lt;code&gt;%include mdl.mki&lt;/code&gt;&lt;code&gt;dirToSearch = $(GEOINCS)&lt;br /&gt;%include cincapnd.mki&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Problems compilingxfm mdl project</title><link>https://communities.bentley.com/thread/204192?ContentTypeID=1</link><pubDate>Fri, 30 Mar 2012 19:53:55 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c8a4817e-1639-4df3-aef9-e289a3787a6d</guid><dc:creator>Krister Surell</dc:creator><description>&lt;p&gt;BMAKE_OPT is set as defined by the geodevshell.bat, ie:&lt;/p&gt;
&lt;p&gt;REM ---------------------------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;REM Extend the BMAKE_OPT environment variable setting.&lt;/p&gt;
&lt;p&gt;REM ---------------------------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;SET BMAKE_OPT=%BMAKE_OPT% -I$(GEOINCS)&lt;/p&gt;
&lt;p&gt;SET BMAKE_OPT=%BMAKE_OPT% +dDEBUG&lt;/p&gt;
&lt;p&gt; I could change this to anything but the output in make.opt would still be the same.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve solved it for now by &amp;quot;stealing&amp;quot; the privateInc variable in the make file, but that meant I had to copy my llanguage files to the parent directory. Ugly, but it works.&lt;/p&gt;
&lt;p&gt;/Krister&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Problems compilingxfm mdl project</title><link>https://communities.bentley.com/thread/204190?ContentTypeID=1</link><pubDate>Fri, 30 Mar 2012 19:43:01 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:e33fc8d7-96a8-4d4a-bff8-44c6fd1c3234</guid><dc:creator>Jon Summers</dc:creator><description>&lt;p&gt;[quote user=&amp;quot;ksurell&amp;quot;]I know I&amp;#39;m a old timer but I never seem to get the time to enter the VC-world[/quote]&lt;/p&gt;
&lt;p&gt;The transition is really quite harmless!&lt;/p&gt;
&lt;p&gt;All the MDL examples in the V8i SDK are C++ (&lt;span style="font-family:courier new,courier;"&gt;.cpp&lt;/span&gt;) files.&amp;nbsp; In fact , there&amp;#39;s almost no C++ in those files, but they do use the Microsoft C++ tools (i.e. Visual Studio compiler and linker) to build an application.&lt;/p&gt;
&lt;p&gt;The &lt;em&gt;bmake&lt;/em&gt; (&lt;span style="font-family:courier new,courier;"&gt;.mke&lt;/span&gt;) files look similar to what you are used to.&amp;nbsp; &lt;em&gt;bmake&lt;/em&gt; invokes the Microsoft tools for you and builds a native-code application DLL.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Of course, you need to acquire Microsoft&lt;em&gt; Visual Studio&lt;/em&gt;, but I believe that the &lt;em&gt;Express&lt;/em&gt; editions work OK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Problems compilingxfm mdl project</title><link>https://communities.bentley.com/thread/204187?ContentTypeID=1</link><pubDate>Fri, 30 Mar 2012 19:38:52 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8e618e46-1687-47de-9d44-4cd05db814a2</guid><dc:creator>Jon Summers</dc:creator><description>&lt;p&gt;[quote user=&amp;quot;ksurell&amp;quot;]When I add xfm-includes it can&amp;#39;t find them eventhough BMAKE_OPT is updated[/quote]&lt;/p&gt;
&lt;p&gt;Please post your definition of &lt;span style="font-family:courier new,courier;"&gt;BMAKE_OPT&lt;/span&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>