Esempio n. 1
0
    def setup(self, transfer_binaries=True):
        self.defaultPlatform = "x11-egl-es-3-0"
        libPath = "~/{}/lib".format(self.ramsesInstallDir)
        self.defaultEnvironment = {"DISPLAY": ":0", "LD_LIBRARY_PATH": libPath}

        # base implementation that includes setup of connection and transfer of binaries
        return RemoteTarget.setup(self, transfer_binaries)
Esempio n. 2
0
    def setup(self, transfer_binaries=True):
        self.defaultPlatform = "windows-wgl-es-3-0"
        self.defaultEnvironment = {
            "PATH": "${HOME}/" + self.ramsesInstallDir + "/bin:${PATH}"
        }

        # base implementation that includes setup of connection and transfer of binaries
        baseSetupSuccessful = RemoteTarget.setup(self, transfer_binaries)

        if not baseSetupSuccessful:
            return False

        # must set dll executable to prevent error when running executables using these dlls. cmake/cpack
        # is not able to do this on windows. without you get following errors:
        # return code 127 (file not found) on cygwin. error code 0xc000022 in gui mode
        self.execute_on_target("cd '" + self.ramsesInstallDir +
                               "/bin/'; chmod +x *.dll")

        # Path conversion to windows-style (/c/folder -> C:/folder)
        # Conversion is needed because screenshopts in RAMSES use Windows APIs directly
        # and require windows-style paths
        stdout, stderr, returncode = self.execute_on_target(
            "cygpath -am ${HOME}")
        if returncode == 0:
            self.tmpDir = stdout[0].strip()
        else:
            log.error(
                "Error getting tmp directory: returncode {} stdout: {} stderr: {}"
                .format(returncode, stdout, stderr))

        return True
Esempio n. 3
0
    def setup(self, transfer_binaries=True):
        self.defaultPlatform = "windows-wgl-es-3-0"
        self.defaultEnvironment = {"PATH" : "${PATH}:${HOME}/" + self.ramsesInstallDir + "/lib", "TMP" : "/tmp"}

        # base implementation that includes setup of connection and transfer of binaries
        baseSetupSuccessful = RemoteTarget.setup(self, transfer_binaries)

        if not baseSetupSuccessful:
            return False

        # must set dll executable to prevent error when running executables using these dlls. cmake/cpack
        # is not able to do this on windows. without you get following errors:
        # return code 127 (file not found) on cygwin. error code 0xc000022 in gui mode
        self.execute_on_target("cd '" + self.ramsesInstallDir + "/lib/'; chmod +x *.dll")

        stdout, stderr, returncode = self.execute_on_target("cygpath -am {}".format(self.defaultEnvironment["TMP"]))
        if returncode == 0:
            self.tmpDir = stdout[0].strip()
        else:
            log.error("Error getting tmp directory: returncode {} stdout: {} stderr: {}".format(returncode, stdout, stderr))

        return True