问题标签 [premake]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1067 浏览

opengl - 无法让预制工作 - gltut 演示

https://bitbucket.org/alfonse/gltut/downloads

这是这本在线书籍中几个教程的存储库

http://www.arcsynthesis.org/gltut

作者使用premake作为 cmake 的替代品,我尝试了所有可能的命令行选项,但没有任何效果。

我不明白作者为什么要使用地球上最新的工具,但我需要解决这个问题,我什至对 Lua 和这个工具一无所知。

对于想要帮助我的人,您必须下载以实际构建演示并将其放在您的 gltut 项目的根文件夹中。

mercurial 存储库的 URL 是

我的操作系统是 Ubuntu 12.04 64 位。

0 投票
1 回答
3421 浏览

c++ - 静态链接 wxWidgets 时的引用错误

我在构建脚本中为 wxWidgets 使用了这个 Premake4脚本:

但是 CodeBlocks 分别 MinGW 输出很多错误:

您可以在此处查看所有链接器错误:http: //pastebin.com/UGSRg4DX

有人在 wxWidgets 错误报告(链接丢失)中提到库顺序导致了这个问题。但他没有说哪个图书馆必须放在第一位。

0 投票
1 回答
1167 浏览

linux - 如何更新 premake 以便我可以编译项目?

我正在尝试在运行 Fedora 17 的新计算机上构建库 Box2D。当我尝试构建 Box2D 时,出现错误

一些谷歌搜索表明我需要使用更新版本的 premake。我去了premake 网站尝试下载一个可执行文件(Linux 的 4.4 beta 版本),但是运行他们网站上的版本却给了我这个错误:

获取正确版本并运行它的正确方法是什么?

0 投票
1 回答
600 浏览

c++ - Premake OpenGL SDK 无法从教程中构建项目

我正在尝试从http://www.arcsynthesis.org/gltut/index.html构建教程,但我似乎无法超越链接部分。这就是当我转到 Tut 01 文件夹并在之后输入“premake4 gmake”和“make”时得到的。

如您所见,将项目链接在一起存在问题。我从这里下载了教程 0.3.8.7z:https ://bitbucket.org/alfonse/gltut/downloads

0 投票
1 回答
304 浏览

c++ - How to get executables using premake?

sorry if this question is too naive but i'm new to using build tools as previously i used visual studio's default build tool( just right click and select build ).

Now i am working with linux, and want to develop a cross platform application.I'm now using premake as i've heard that it is "insanely" cross platform compatible. I made the premake.lua but i am unable to find what should be the appropriate name for the toolset parameter if i want to compile using g++( i believe it stands for the compiler ) in the command:

premake --target toolset

I checked the link: http://premake.sourceforge.net/what_is_premake and many others they give the toolset name for gcc, code::blocks etc but not for g++.Secondly even if i give toolset name as cb-ow, for Cde::Blocks. I don't get the executables, i get the .cbw files

0 投票
1 回答
130 浏览

lua - premake 中的 os.rmdir 不能在普通 lua 中使用

从预制食谱中,我得到以下代码:

我在我的普通 lua 应用程序中尝试了 os.rmdir("bin") ,把它放在我的 hello1.lua 中,用这个命令运行它:

但得到错误:

似乎 os.rmdir 不是标准的 lua 函数,只是来自 premake4,对吗?我在哪里可以找到 os.rmdir 的文档?

0 投票
1 回答
205 浏览

premake - 如何在 premake 中一次生成 .so 和 .a 文件

我正在使用 premake,但不知道如何在一次编译期间构建 .so 和 .a 文件。kind 只接受一个参数,“SharedLib”或“StaticLib”。我不想为了生成不同类型的 lib 文件而两次编译同一个项目。

0 投票
1 回答
1318 浏览

premake - 如何在 premake4 中设置编译器选项?

如何设置可用于 premake4 中特定编译器的选项?

例如仅在 Visual Studio 中设置“整个程序优化”?此选项在 GCC 中不可用...

0 投票
2 回答
3375 浏览

opengl - 使用 premake4 构建项目文件 - 如何?

基于http://arcsynthesis.org/gltut/Building%20the%20Tutorials.html - 我正在阅读以学习 openGL 的书,我需要使用 premake4 构建我的文件项目。书上说:

“SDK 他的库使用 Premake 生成它的构建文件。因此,使用路径中的 premake4.exe,转到 glsdk 目录。键入 premake4 plat,其中 plat 是所选平台的名称。对于 Visual Studio 2008,此将是“vs2008”;对于 VS2010,这将是“vs2010”。这将为该特定版本生成 Visual Studio 项目和解决方案文件。”

因此,我将 premake4.exe 文件放入其中,但问题是:当我执行它时,一个黑色的命令窗口会显示几毫秒,然后消失,没有任何反应。

我在谷歌上做了一项关于如何使用 premake4 的研究,但我找不到任何有用的东西,即使是在堆栈或你的管子上。无论如何,这似乎已经磨损了,因为 premake4 真的是众所周知的,然后我问:有谁知道我缺少什么或者可以指向我可以理解如何构建我的 openGL“sdk”文件的某个地方?

我在 Windows 8 中使用 premake 4.3。

编辑:我刚刚发现有人有同样的问题 - 但解决方案并不真正适用于我:无法让预制工作 - gltut 演示

编辑2:再次发现有同样问题的人,但这没有关于该主题的解决方案,而且操作系统与我的不同.. http://industriousone.com/topic/terminal-logout-when-running-premake4exe

在此处输入图像描述

0 投票
1 回答
504 浏览

visual-studio-2012 - premake不支持vs2012?

这是我的情景:

  • 我正在尝试使用 vs2012 构建 TinyXML++
  • 据说 premake 需要为 vs studio 生成一个 *.sln 来构建 TinyXML++ lib 文件。
  • 但是premake4.4 beta,我猜是最新的,好像不支持vs2012;它无法为 vs2012 构建 *.sln
  • 我可以为 vs2010 生成 *sln,但它不会通过 vs2012 构建,因为TinyXML++ 项目中的 cpp 文件之一include "stdafx.h"ticpp.cpp中的 # 出现无法打开源文件的错误

所以我想知道,我该如何解决这个问题?谢谢。以前有人做过吗?谢谢。