[opensource-dev] 64 bit viewers build instructions

Nicky Perian nickyperian at gmail.com
Thu Dec 8 16:07:42 PST 2016


Fault:
LINK : fatal error LNK1181: cannot open input file 'fmodex_vc.lib'
[C:\Users\Bill\P64\viewer64\build-vc120-64\newview\secondlife-bin.vcxproj]

Possible Correction, Parts of this were in declined Pull Request #4
This is windows only Darwin and Linux will need a similar code.
# HG changeset patch
# User Nicky Perian <nickyperian at yahoo.com>
# Date 1480710394 21600
#      Fri Dec 02 14:26:34 2016 -0600
# Node ID f70e1917b449af35d719e3a572694c6768d87254
# Parent  290ae1d71523ee22a079421d4fdeee4225a9f7cc
Provide for x64 FMOD ex libraries

diff -r 290ae1d71523 -r f70e1917b449 indra/cmake/Copy3rdPartyLibs.cmake
--- a/indra/cmake/Copy3rdPartyLibs.cmake Wed Dec 07 22:50:25 2016 -0500
+++ b/indra/cmake/Copy3rdPartyLibs.cmake Fri Dec 02 14:26:34 2016 -0600
@@ -43,12 +43,12 @@
         )

     if (FMODEX)
-
-        if(ADDRESS_SIZE EQUAL 32)
+        if (ADDRESS_SIZE EQUAL 32)
             set(release_files ${release_files} fmodex.dll)
-        else(ADDRESS_SIZE EQUAL 32)
+        elseif (ADDRESS_SIZE EQUAL 64)
             set(release_files ${release_files} fmodex64.dll)
-        endif(ADDRESS_SIZE EQUAL 32)
+    endif (ADDRESS_SIZE EQUAL 32)
+#      set(debug_files ${debug_files} fmodexL.dll)
     endif (FMODEX)

     #*******************************
diff -r 290ae1d71523 -r f70e1917b449 indra/cmake/FMODEX.cmake
--- a/indra/cmake/FMODEX.cmake Wed Dec 07 22:50:25 2016 -0500
+++ b/indra/cmake/FMODEX.cmake Fri Dec 02 14:26:34 2016 -0600
@@ -26,10 +26,16 @@
       include(Prebuilt)
       use_prebuilt_binary(fmodex)
       if (WINDOWS)
-        set(FMODEX_LIBRARY
-            debug fmodexL_vc
-            optimized fmodex_vc)
-      elseif (DARWIN)
+        if (ADDRESS_SIZE EQUAL 32)
+            set(FMODEX_LIBRARY
+                debug fmodexL_vc
+                optimized fmodex_vc)
+        elseif (ADDRESS_SIZE EQUAL 64)
+            set(FMODEX_LIBRARY
+                debug fmodexL64_vc
+                optimized fmodex64_vc)
+        endif (ADDRESS_SIZE EQUAL 32)
+        elseif (DARWIN)
         set(FMODEX_LIBRARY
             debug fmodexL
             optimized fmodex)


On Sat, Dec 3, 2016 at 7:32 PM, Callum Prentice (Callum) <
callum at lindenlab.com> wrote:

> woohoo - thanks nicky.
>
> On Sat, Dec 3, 2016 at 5:12 PM, Nicky Perian <nickyperian at gmail.com>
> wrote:
>
>> *only issue is that some script is trying to copy fmodex.dll to the right
>> place and not (the correct) fmodex64.dll (I fixed the third party package).*
>>
>> It's fixed at:
>> https://bitbucket.org/kokua/viewer64/commits/ca4ffedff48cf4a
>> e29622434567a59f6b010708b
>>
>> On Sat, Dec 3, 2016 at 7:07 PM, Callum Prentice (Callum) <
>> callum at lindenlab.com> wrote:
>>
>>> Yep - we;re all following along similar tracks by the sound of it Nicky
>>>  :)
>>>
>>> With my latest changes, if I unload the VLC plugin (as you say, that
>>> needs a little work) the build completes - only issue is that some script
>>> is trying to copy fmodex.dll to the right place and not (the correct)
>>> fmodex64.dll (I fixed the third party package).
>>>
>>> If I move that DLL manually, the viewer starts and seems to run, as
>>> first glance anyway, pretty normally.
>>>
>>> I'll attack the fmodex and vlc issues on Monday.
>>>
>>>
>>>
>>> On Sat, Dec 3, 2016 at 4:35 PM, Nat Goodspeed <nat at lindenlab.com> wrote:
>>>
>>>> On Dec 3, 2016 7:18 PM, "Nicky Perian" <nickyperian at gmail.com> wrote:
>>>>
>>>> With:
>>>> (autobuild-1.1) C:\Users\Bill\P64\viewer64>autobuild --address-size=64
>>>> configure  -c ReleaseOS -- -DCMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
>>>> -DLL_TESTS:BOOL=OFF -DPACKAGE:BOOL=FALSE  -DOPENAL:BOOL=FALSE
>>>> -DFMODEX:BOOL=ON    2>&1  | c:\cygwin64\bin\tee configRel.log
>>>>
>>>> I get many:
>>>>
>>>> No windows64 configuration found; inheriting windows
>>>>
>>>> But, build-vc120-64/packages has 64 bit libraries and the viewer builds
>>>> 64 bit and it runs.
>>>>
>>>>
>>>> Yes: we've been discussing those messages internally. The viewer's
>>>> CMake logic runs autobuild install for each applicable package, and I think
>>>> the messages you're seeing are simply from autobuild waking up each time
>>>> and reading autobuild.xml. In other words, I believe the message is about
>>>> the package_description rather than any of the installables.
>>>>
>>>> We really want to avoid duplicating all of the windows section of
>>>> autobuild.xml for windows64, which is why we added $parameter support in
>>>> autobuild 1.1. So we don't plan to add a windows64 section to
>>>> package_description.
>>>>
>>>> vlc plugin had may unresolved externals so, commented it out in
>>>> media-plugins CMakeLists.txt in order to complete the build.
>>>>
>>>> This was with viewer64-callum changes merged in.
>>>>
>>>>
>>>> I'm pretty sure Callum disabled VLC too, though perhaps that's only
>>>> local so far.
>>>>
>>>> We're really at about the same point! Please bear with us. :-)
>>>>
>>>> _______________________________________________
>>>> Policies and (un)subscribe information available here:
>>>> http://wiki.secondlife.com/wiki/OpenSource-Dev
>>>> Please read the policies before posting to keep unmoderated posting
>>>> privileges
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> CALLUM PRENTICE | Software Engineer
>>>
>>> LINDEN LAB | Create Virtual Experiences <http://www.lindenlab.com/>
>>>
>>
>>
>
>
> --
>
> CALLUM PRENTICE | Software Engineer
>
> LINDEN LAB | Create Virtual Experiences <http://www.lindenlab.com/>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.secondlife.com/pipermail/opensource-dev/attachments/20161208/a1dce262/attachment.htm 


More information about the opensource-dev mailing list