fatal error LNK1105 in Segof's Bullet Dev branch

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

CGEffex
Posts: 4
Joined: Sat Nov 03, 2012 1:16 am

fatal error LNK1105 in Segof's Bullet Dev branch

Postby CGEffex » Sat Nov 03, 2012 1:24 am

I've been trying all day to try and compile an up-to-date build of Segof's Bullet branch, but failing every step of the way. After figuring out and getting git working, I can't compile the code at all. I cloned the git repository into a sub-folder of my working directory ((C:\BlenderSVN)- Containing the blender trunk source folder and my lib folder) and so because my libs weren't detected from there, I copied it in with the rest of my sources, renaming the folder from 'blender' to sergof-bullet-dev (So it didn't conflict with my other folder. I turned of blenderplayer (Which doesn't work in that branch yet) and game engine in my user-config folder, and tried to compile. However, I keep getting this error at the start:

Code: Select all

Cleaning build dir...
clean dir C:\build\win32-vc\bin
clean dir C:\build\win32-vc\data_headers
clean dir C:\build\win32-vc\data_sources
clean dir C:\build\win32-vc\extern
clean dir C:\build\win32-vc\intern
clean dir C:\build\win32-vc\lib
remove file C:\build\win32-vc\makesdna.exe
WindowsError: [Error 5] Access is denied: 'C:\\build\\win32-vc\\makesdna.exe':
  File "C:\BlenderSVN\sergof-bullet-dev\SConstruct", line 405:
    os.remove(B.root_build_dir+entry)


and this error right before it fails to compile:

Code: Select all

Compiling ==> 'makesdna.c'
makesdna.c
Compiling ==> 'mallocn.c'
mallocn.c
Compiling ==> 'mmap_win.c'
mmap_win.c
Linking library ==> 'bf_intern_guardedalloc.lib'
Linking program ==> 'makesdna.exe'
LINK : fatal error LNK1105: cannot close file 'C:\build\win32-vc\makesdna.exe'
scons: *** [C:\build\win32-vc\makesdna.exe] Error 1105
scons: building terminated because of errors.


I'm compiling with Visual C++ 2008 Express Edition and scons, and my system is Windows XP 32 bit. My user config file is as follows:

Code: Select all

BF_BUILDDIR = 'C:\\BlenderSVN\\build\\win32-vc'
BF_INSTALLDIR = 'C:\\BlenderSVN\\install\\win32-vc'
WITH_BF_OPENMP = False
WITH_BF_JACK = False
WITH_BF_FFMPEG = True
WITH_BF_OPENAL = True
WITH_BF_ICONV = True
WITH_BF_SNDFILE = True
WITH_BF_SDL = True
WITH_BF_OPENEXR = True
WITH_BF_JPEG = True
WITH_BF_PNG = True
WITH_BF_TIFF = True
WITH_BF_COLLADA = True
WITH_BF_GAMEENGINE = False
WITH_BF_PLAYER = False
WITH_BF_RAYOPTIMIZATION = True
WITH_BF_CYCLES_CUDA_BINARIES = True
BF_CYCLES_CUDA_NVCC = "C:/CUDA/40/bin/nvcc.exe"
BF_CYCLES_CUDA_BINARIES_ARCH = ['sm_21']
BF_DEBUG = False
BF_NUMJOBS = 2

stiv
Posts: 3646
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Postby stiv » Sat Nov 03, 2012 2:13 am

Curious. Just for grins, try setting NUMJOBS=1.

It wouldn't hurt to reboot first, just to make sure *everything* is closed.

CGEffex
Posts: 4
Joined: Sat Nov 03, 2012 1:16 am

Postby CGEffex » Sat Nov 03, 2012 1:40 pm

I already tried with NUMJOBS=1, and that didn't help. I just tried a reboot, and that didn't work either. Anyone else have any thoughts on this?

CGEffex
Posts: 4
Joined: Sat Nov 03, 2012 1:16 am

Postby CGEffex » Sun Nov 04, 2012 9:25 pm

I found out the problem and I'm just gonna go ahead and post the solution for anyone else who happens upon this thread with the same issue. Apparently Comodo Firewall was the culprit. I can probably set up some special exceptions, but disabling the firewall and defense+ completely fixed this issue for me. Cheers!


Return to “Coding Blender”

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests