gsdx compiling error
#1

sorry im not sure where to post this but, like the name says im having errors compiling gsdx. I've already checked over all the directories 200 times and ive redownloaded the svn over 5 times. Ive tried searching all over google and over a bunch of forums but i cant find out where i went wrong. My build log looks like this:
(Cut some off cuase it's long but it only errors after GS.cpp is read)
1>GSState.cpp
1>GSLocalMemory.cpp
1>GSdx.cpp
1>GSBlock.cpp
1>GS.cpp
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(96) : error C2146: syntax error : missing ';' before identifier 'm_context'
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(98) : error C2061: syntax error : identifier 'CGcontext'
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(99) : error C2061: syntax error : identifier 'CGcontext'
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(98) : error C2065: 'p' : undeclared identifier
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(98) : error C2227: left of '->OnCgError' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(98) : error C2065: 'ctx' : undeclared identifier
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(98) : error C2065: 'err' : undeclared identifier
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(172) : error C2065: 'CGerror' : undeclared identifier
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(172) : error C2146: syntax error : missing ';' before identifier 'error'
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(172) : error C2065: 'error' : undeclared identifier
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(174) : error C2065: 'error' : undeclared identifier
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(174) : error C3861: 'cgGetLastErrorString': identifier not found
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(176) : error C2065: 'error' : undeclared identifier
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(176) : error C2065: 'CG_NO_ERROR' : undeclared identifier
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(180) : error C2065: 'error' : undeclared identifier
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(180) : error C2065: 'CG_COMPILER_ERROR' : undeclared identifier
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(182) : error C2065: 'm_context' : undeclared identifier
1>Project : warning PRJ0018 : The following environment variables were not found:
1>$(DXSDK_DIR)

I think im just doing something stupid so if anyone can help please do Smile
Reply

Sponsored links

#2
You seem to be missing a few necessary things for a successful compile (nvidia CG, GLEW and DirectX SDK apparently), I'd recommend you follow the guide:
http://forums.pcsx2.net/thread-11179.html
Core i5 3570k -- Geforce GTX 670  --  Windows 7 x64
Reply
#3
I have all three things Sad i read the compiling with windows guide when i originally started working with the svns.
Reply
#4
I redownloaded the three requirements to compile gsdx again to insure they are on my computer. After doing so the warning
1>Project : warning PRJ0018 : The following environment variables were not found:
1>$(DXSDK_DIR)
was corrected and no longer appears but the build is still failing. The updated build log looks like this:

1>------ Build started: Project: GSdx, Configuration: Release SSE4 Win32 ------
1>Performing Pre-Build Event...
1>SubWCRev: 'c:\Users\Jon\Desktop\pcsx2 0.9.7\plugins\GSdx'
1>Last committed at revision 2660
1>Updated to revision 2666
1>Compiling...
1>GS.cpp
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(96) : error C2146: syntax error : missing ';' before identifier 'm_context'
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(98) : error C2061: syntax error : identifier 'CGcontext'
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(99) : error C2061: syntax error : identifier 'CGcontext'
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(98) : error C2065: 'p' : undeclared identifier
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(98) : error C2227: left of '->OnCgError' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(98) : error C2065: 'ctx' : undeclared identifier
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(98) : error C2065: 'err' : undeclared identifier
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(172) : error C2065: 'CGerror' : undeclared identifier
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(172) : error C2146: syntax error : missing ';' before identifier 'error'
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(172) : error C2065: 'error' : undeclared identifier
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(174) : error C2065: 'error' : undeclared identifier
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(174) : error C3861: 'cgGetLastErrorString': identifier not found
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(176) : error C2065: 'error' : undeclared identifier
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(176) : error C2065: 'CG_NO_ERROR' : undeclared identifier
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(180) : error C2065: 'error' : undeclared identifier
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(180) : error C2065: 'CG_COMPILER_ERROR' : undeclared identifier
1>c:\users\jon\desktop\pcsx2 0.9.7\plugins\gsdx\GSDeviceOGL.h(182) : error C2065: 'm_context' : undeclared identifier
1>GSdx - 19 error(s), 0 warning(s)

And if it helps here is some screenshots of my directories:

[Image: Visual1.jpg]

[Image: visual2.jpg]

[Image: visual3.jpg]
Reply




Users browsing this thread: 1 Guest(s)