vs 2010

Source Code and development in general from a technical point of view. Post Patches here.

Moderator: SMC Team

vs 2010

Postby brandon » 19 Oct 2010 21:33

Has anyone had success with building SMC under VS2010 Express?
brandon
Flyon
Flyon
 
Posts: 13
Joined: 19 Oct 2010 21:32

Re: vs 2010

Postby penguin » 20 Oct 2010 02:43

The dependencies/code were all made for VS 2008 so they won't work with 2010 (yes, i tried.)
my wiki page
I may disappear for a long time, but trust me, I'm still alive.
User avatar
penguin
Turtle boss
Turtle boss
 
Posts: 665
Joined: 14 Nov 2009 14:37
Location: Nebraska

Re: vs 2010

Postby brandon » 20 Oct 2010 03:28

So too have I discovered. Looks like I found something to do in my free time :D
brandon
Flyon
Flyon
 
Posts: 13
Joined: 19 Oct 2010 21:32

Re: vs 2010

Postby brandon » 20 Oct 2010 20:17

Success! I have successfully gotten SMC to compile, link and execute under VS2010 Express. I have listed the dependencies I used below. Debug mode currently crashes with a heap corruption assertion, but release mode works great.

SDL 1.2.14
SDL_image 1.2.10
SDL_mixer 1.2.11
SDL_ttf 2.0.10
CEGUI 0.7.2
boost 1.44.0
libpng 1.2.37
libintl 0.14.4
zlib 1.2.3

I built all the SDL libraries in VS2010. boost was made with bjam, as usual. CEGUI was the prebuilt bins. The other 3 were prebuilt GnuWin32 packages. I can post the solution and libs when I get home, if anyone is interested.
brandon
Flyon
Flyon
 
Posts: 13
Joined: 19 Oct 2010 21:32

Re: vs 2010

Postby penguin » 20 Oct 2010 23:11

Can you please post the instructions on how to install these. i use vs2010 express also. i tried to use the dependencies from smc but i kept getting a afxres.h not found error. PLEASE HELP me with that.

i heard that you have to have mfc inorder to get it which vs express does not support. i`'d appreciate your help. Thanks. penguin
my wiki page
I may disappear for a long time, but trust me, I'm still alive.
User avatar
penguin
Turtle boss
Turtle boss
 
Posts: 665
Joined: 14 Nov 2009 14:37
Location: Nebraska

Re: vs 2010

Postby brandon » 20 Oct 2010 23:57

I was a bit brief in my explanation. I was posting from my phone since this URL is blocked when I'm at work.

You are correct in that the Visual Studio Express products do not have a resource compiler. That only comes with the full version. To get around this you simply remove resource.h and Skript.rc from the project. All these files do is link up the .ico file with the executable.

While I created the solution from scratch, it would probably work just as well to let VS convert the older solution and project files. VS2010 now produces warnings when your Output path and resulting target objects don't match up. You can adjust that if you want, but it's just a warning and won't affect the end result.

For the dependencies, CEGUI has prebuilt binaries for VS2010. I got the latest boost and built it with bjam. libintl, libpng and zlib are all prebuilt from the GnuWin32 packages. I got the sources for the SDL packages and built them with VS2010. They all built easily with no errors.

SMC does crash in debug mode in video.cpp at a call to SDL_free() while scaling textures. The assertion raised is _CrtIsValidHeapPointer. I haven't been able to look deeper into this.
brandon
Flyon
Flyon
 
Posts: 13
Joined: 19 Oct 2010 21:32

Re: vs 2010

Postby Luiji » 21 Oct 2010 04:14

< I encourage you to write a wiki article.
Custom Built IBM-Compatible (Arch Linux w/ KDE)
Dell Vostro (Windows 7)
Dell Inspiron 1440 (Windows Server 2003, Debian w/ KDE)
Dell Inspiron 11z (Linux Mint)
Luiji
MVP
MVP
 
Posts: 2703
Joined: 14 Jan 2010 23:20
Location: The Mushroom Kyngdom

Re: vs 2010

Postby penguin » 29 Oct 2010 12:43

I went back to vs 2008 express because i got really fusttrated with vs 2010. it kept giving me segfaults and mislinking and other stuff like that. VS 2008 doesn't do any of that.
my wiki page
I may disappear for a long time, but trust me, I'm still alive.
User avatar
penguin
Turtle boss
Turtle boss
 
Posts: 665
Joined: 14 Nov 2009 14:37
Location: Nebraska

Re: vs 2010

Postby Luiji » 29 Oct 2010 17:48

VS2010 sucks.
Custom Built IBM-Compatible (Arch Linux w/ KDE)
Dell Vostro (Windows 7)
Dell Inspiron 1440 (Windows Server 2003, Debian w/ KDE)
Dell Inspiron 11z (Linux Mint)
Luiji
MVP
MVP
 
Posts: 2703
Joined: 14 Jan 2010 23:20
Location: The Mushroom Kyngdom

Re: vs 2010

Postby penguin » 29 Oct 2010 23:41

Luiji wrote:VS2010 sucks.

yes it does! :D
my wiki page
I may disappear for a long time, but trust me, I'm still alive.
User avatar
penguin
Turtle boss
Turtle boss
 
Posts: 665
Joined: 14 Nov 2009 14:37
Location: Nebraska

Re: vs 2010

Postby brandon » 14 Dec 2010 16:57

I finally got my VC2010 Express solution to work in Debug mode. The problem lies in cVideo::Create_Texture() during the part where the surface gets scaled. The code created a new pixel buffer and passes this to cVideo::Downscale_Image(), which fills the new buffer. Upon returning from this function, the old surface pixels get deleted and assigned to the new buffer. This was breaking in debug mode during the call to free(). I modified the code to create/destroy a new SDL_Surface, rather than just the pixel buffer

old
Code: Select all
unsigned char *new_pixels = static_cast<unsigned char*>(SDL_malloc( texture_width * texture_height * 4 ));
Downscale_Image( static_cast<unsigned char*>(surface->pixels), surface->w, surface->h, surface->format->BytesPerPixel, new_pixels, reduce_block_x, reduce_block_y );
SDL_free( surface->pixels );
surface->pixels = new_pixels;


new
Code: Select all
SDL_Surface *new_surface = SDL_DisplayFormatAlpha(surface);
Downscale_Image(static_cast<unsigned char *>(surface->pixels), surface->w, surface->h, surface->format->BytesPerPixel, static_cast<unsigned char *>(new_surface->pixels), reduce_block_x, reduce_block_y);
SDL_FreeSurface(surface);
surface = new_surface;


Still haven't gotten around to writing the wiki article, but it really is pretty straight forward to get it working in VS2010.
brandon
Flyon
Flyon
 
Posts: 13
Joined: 19 Oct 2010 21:32

Re: vs 2010

Postby brandon » 14 Dec 2010 17:03

Also, I mentioned before about the lack of a resource compiler in the express version, you can still link in the application icon by deleting the contents of Skript.rc and replacing it with the following:

Code: Select all
#include "resource.h"
IDI_ICON1 ICON "idr_main.ico"
brandon
Flyon
Flyon
 
Posts: 13
Joined: 19 Oct 2010 21:32

Re: vs 2010

Postby FluXy » 16 Dec 2010 06:19

Thanks for reporting your findings brandon :)

If you have some time can you check if SMC should not use SDL_malloc directly or if the the compiler is problematic ?
If i didn't read your post but it was important you can send me a PM.
Any Donation will help this project!
User avatar
FluXy
Admin
Admin
 
Posts: 2858
Joined: 04 May 2004 19:44
Location: Germany

Re: vs 2010

Postby brandon » 17 Dec 2010 19:16

I'm pretty sure SDL_malloc and SDL_free are just macros for malloc and free. The issue may be with the compiler, since it works fine in Release mode. It only throws the heap exception in Debug mode.
brandon
Flyon
Flyon
 
Posts: 13
Joined: 19 Oct 2010 21:32

Re: vs 2010

Postby tawandachinaka » 09 May 2011 07:43

//these are the errors im getting when compiling with vs2010
help how do i compile this?

Error 1 fatal error C1083: Cannot open include file: 'SDL_image.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\video\video.h 22 Secret Maryo Chronicles
Error 2 fatal error C1083: Cannot open include file: 'SDL_mixer.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\audio\sound_manager.h 23 Secret Maryo Chronicles
Error 3 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 4 fatal error C1083: Cannot open include file: 'boost/filesystem/convenience.hpp': No such file or directory c:\Users\scheduling solutions\Downloads\SMC_1.9_win32\SMC_1.9_win32\src\core\filesystem\filesystem.cpp 18 Secret Maryo Chronicles
Error 5 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 6 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 7 fatal error C1083: Cannot open include file: 'libintl.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\i18n.h 20 Secret Maryo Chronicles
Error 8 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 9 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\framerate.h 19 Secret Maryo Chronicles
Error 10 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 11 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\collision.h 24 Secret Maryo Chronicles
Error 12 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 13 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 14 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 15 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 16 fatal error C1083: Cannot open include file: 'SDL_image.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\video\video.h 22 Secret Maryo Chronicles
Error 17 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 18 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 19 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 20 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 21 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\input\keyboard.h 21 Secret Maryo Chronicles
Error 22 fatal error C1083: Cannot open include file: 'SDL_image.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\video\video.h 22 Secret Maryo Chronicles
Error 23 fatal error C1083: Cannot open include file: 'SDL_image.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\video\video.h 22 Secret Maryo Chronicles
Error 24 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\video\gl_surface.h 22 Secret Maryo Chronicles
Error 25 fatal error C1083: Cannot open include file: 'SDL_image.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\video\video.h 22 Secret Maryo Chronicles
Error 26 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\video\gl_surface.h 22 Secret Maryo Chronicles
Error 27 fatal error C1083: Cannot open include file: 'SDL_image.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\video\video.h 22 Secret Maryo Chronicles
Error 28 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 29 fatal error C1083: Cannot open include file: 'SDL_image.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\video\video.h 22 Secret Maryo Chronicles
Error 30 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 31 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 32 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 33 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 34 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 35 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 36 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 37 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 38 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 39 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 40 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 41 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 42 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 43 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 44 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 45 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 46 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 47 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 48 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 49 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 50 fatal error C1083: Cannot open include file: 'SDL_image.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\video\video.h 22 Secret Maryo Chronicles
Error 51 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 52 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 53 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\user\preferences.h 21 Secret Maryo Chronicles
Error 54 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 55 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 56 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 57 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 58 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 59 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 60 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 61 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 62 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 63 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 64 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 65 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 66 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 67 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 68 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 69 fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory c:\users\scheduling solutions\downloads\smc_1.9_win32\smc_1.9_win32\src\core\math\rect.h 22 Secret Maryo Chronicles
Error 70 error BK1506 : cannot open file '.\Debug\enemy.sbr': No such file or directory BSCMAKE Secret Maryo Chronicles
tawandachinaka
Furball brown
Furball brown
 
Posts: 1
Joined: 09 May 2011 07:39

Re: vs 2010

Postby Luiji » 11 May 2011 15:10

Looks like the SDL headers cannot be found by VS.
Custom Built IBM-Compatible (Arch Linux w/ KDE)
Dell Vostro (Windows 7)
Dell Inspiron 1440 (Windows Server 2003, Debian w/ KDE)
Dell Inspiron 11z (Linux Mint)
Luiji
MVP
MVP
 
Posts: 2703
Joined: 14 Jan 2010 23:20
Location: The Mushroom Kyngdom

Re: vs 2010

Postby filtoid » 23 Jun 2011 23:39

brandon wrote:Also, I mentioned before about the lack of a resource compiler in the express version, you can still link in the application icon by deleting the contents of Skript.rc and replacing it with the following:

Code: Select all
#include "resource.h"
IDI_ICON1 ICON "idr_main.ico"



My understanding was that it can compile .rc files but cannot edit them visually - although there is a free program called resEdit which allows you to do this. (as you point out though there is only a icon binding within this file so prob not too much problem).
filtoid
Furball blue
Furball blue
 
Posts: 9
Joined: 21 Jun 2011 21:57

Re: vs 2010

Postby penguin » 24 Jun 2011 00:37

I unfourtuately had no luck compiling the .rc files, it would error out on me.

I did a little research on this and you apparently cannot compile the .rc files since this is a "premium Visual Studio feature"
My resolution on this is to remove the Skript.rc completely from the project and once you get it compiled, to edit the physical shortcut to point to....

C:\Program Files**\Secret Maryo Chronicles\makefiles\MSVC90*\idr_main.ico

* = I'm not sure on the folder name.
** = Use Program Files (x86) for 64-bit processors.
my wiki page
I may disappear for a long time, but trust me, I'm still alive.
User avatar
penguin
Turtle boss
Turtle boss
 
Posts: 665
Joined: 14 Nov 2009 14:37
Location: Nebraska

Re: vs 2010

Postby Luiji » 24 Jun 2011 15:28

They count resource compilation as a Premium feature? Microsoft you moth--
Custom Built IBM-Compatible (Arch Linux w/ KDE)
Dell Vostro (Windows 7)
Dell Inspiron 1440 (Windows Server 2003, Debian w/ KDE)
Dell Inspiron 11z (Linux Mint)
Luiji
MVP
MVP
 
Posts: 2703
Joined: 14 Jan 2010 23:20
Location: The Mushroom Kyngdom

Re: vs 2010

Postby filtoid » 11 Aug 2011 22:16

Do you know what the error is? I've not had any problems compiling .rc files before (only editing them with a visual editor). I haven't got very far with getting other things to compile (i.e. installing dependancies - ran out of time to continue with this venture more than getting stuck). I shall see if i can recreate this problem and let you know what i find :)
filtoid
Furball blue
Furball blue
 
Posts: 9
Joined: 21 Jun 2011 21:57

Next

Return to Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron