Question / Help Some quetsion of complier OBS source data

Ken_JJ

New Member
Hello,
I complier OBS source data recently,but I have some error,for examle: x264,rtmp.lib,OBSApi.dll complier error...etc.

I use Visual studio 2012 pro,win 7 x64

What environment is better for OBS?

Is it need bulid the Mingw environment ?

Sorry,my English is poor.

Thank you
 

Tak0r

Member
no it works with VS 2012 too but jim developes with VS 2008 as for your error i think it's more a linking problem than a source or IDE thing
 

Ken_JJ

New Member
Tak0r said:
no it works with VS 2012 too but jim developes with VS 2008 as for your error i think it's more a linking problem than a source or IDE thing

1.I download "Microsoft DirectX SDK (June 2010)"
2.I link incluld "C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include"
lib incluld "C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib\x86"
for Project OBS-ALL\ "Source"

Have anything I miss ?
Thank you
 

Tak0r

Member
No i have done the same. Are you compiling 32 bit when using the x86 libs? Maybe you have selected 64 bit by chance
 

Ken_JJ

New Member
Tak0r said:
No i have done the same. Are you compiling 32 bit when using the x86 libs? Maybe you have selected 64 bit by chance
I tried to compiling 32 bit using x86 lib and compiling 64 bit using x64 lib,but it still fail.
If I don't download "Microsoft DirectX SDK (June 2010)",it will show miss "D3DX10.h" & "dxguid.lib",
so I download it.

Thank you
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Unfortunately I am using 2008. I don't have 2010 or 2012 currently so I'm just not sure how compatible they are at the moment.
 

Muf

Forum Moderator
I use 2012 and it compiles fine. Make sure the June 2010 DXSDK is installed, the Windows SDK is installed, and your paths are correctly set. You have to define your per-user include and library paths to point to the respective DXSDK folders, and make sure to use different paths for the x64 and x86 library directories. You also need to disable /SAFESEH in the linker options for the OBS project. After that everything will compile fine. Make sure to open the OBS-All solution and hit "Compile Solution".
 

Ken_JJ

New Member
Muf said:
I use 2012 and it compiles fine. Make sure the June 2010 DXSDK is installed, the Windows SDK is installed, and your paths are correctly set. You have to define your per-user include and library paths to point to the respective DXSDK folders, and make sure to use different paths for the x64 and x86 library directories. You also need to disable /SAFESEH in the linker options for the OBS project. After that everything will compile fine. Make sure to open the OBS-All solution and hit "Compile Solution".
Thank !
I success for VS 2010 SP1 & Release win 32 version on win7 64bit
1.I updata VS2010 SP1
ANS:
http://stackoverflow.com/questions/1088 ... valid-or-c
2.It show the error message "LINK : fatal error LNK1181"
ANS:add " " for /LIBPATH EX: "C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Lib\x86"
http://msdn.microsoft.com/en-us/library ... kc(v=vs.80).aspx
3.When I using the complier data "OBS.exe", OBS show not find OBSApi.dll
ANS:I copy OBSApi.dll from OBSApi/Release/OBSApi.dll to Release

I have one question :
Don't I combine any Release data ? for example: OBSApi/Release copy to Release

Thank you
 

Muf

Forum Moderator
Ken_JJ said:
3.When I using the complier data "OBS.exe", OBS show not find OBSApi.dll
ANS:I copy OBSApi.dll from OBSApi/Release/OBSApi.dll to Release

I have one question :
Don't I combine any Release data ? for example: OBSApi/Release copy to Release

The build scripts copy OBSApi and OBS to rundir. You can run the app from there.
 
Top