"Questions that don't deserve their own thread" thread

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Locked
User avatar
pacman
Citizen
Posts: 81
Joined: Thu Mar 14, 2013 4:10 pm

Re: "Questions that don't deserve their own thread" thread

Post by pacman »

If you will turn on vsync it won't be turned on for some people.
If you turn it off some people will still have it.
IMO don't even bother :roll:
Put an option to toggle it and cross your fingers :)
User avatar
DekuJuice
Prole
Posts: 14
Joined: Mon Nov 24, 2014 9:31 pm

Re: "Questions that don't deserve their own thread" thread

Post by DekuJuice »

I'm trying to get a value inside of a nested table, but I'm given the id of the table instead of the actual value. The value I'm trying to get is inside layers.data.

Code: Select all

--Map class
local sti = require "libraries/sti" -- Simple Tiled Implementation
local HC = require "libraries/HardonCollider" -- Hardon Collider
map = sti.new("assets/maps/testmap")
collider = HC(100, on_collider)

function SetTileCollision(map)

local collidable_tiles = {}

local layerdata = map.layers[2]["data"][1]
local tileset = map.tilesets

local test = tostring(layerdata)

debugline = test

end
This problem has had me stumped for a while, and I can't seem to find any solutions online, but I get the feeling that I'm overlooking something really obvious. Help would be greatly appreciated.
Attachments
testmap.lua
(4.74 KiB) Downloaded 165 times
Wojak
Party member
Posts: 134
Joined: Tue Jan 24, 2012 7:15 pm

Re: "Questions that don't deserve their own thread" thread

Post by Wojak »

DekuJuice wrote: I'm trying to get a value inside of a nested table, but I'm given the id of the table instead of the actual value. The value I'm trying to get is inside layers.data.
The problem is that STI overwrites the “data” table when calling sti.new ()

Code: Select all

function Map:setTileData(layer)
	local i = 1
	local map = {}

	for y = 1, layer.height do
		map[y] = {}
		for x = 1, layer.width do
			local gid = layer.data[i]

			if gid > 0 then
				local tile = self.tiles[gid]

				if tile then
					map[y][x] = tile
				else
					local bit31	= 2147483648
					local bit30	= 1073741824
					local bit29	= 536870912
					local flipX		= false
					local flipY		= false
					local flipD		= false
					local realgid	= gid

					if realgid >= bit31 then
						realgid = realgid - bit31
						flipX = not flipX
					end

					if realgid >= bit30 then
						realgid = realgid - bit30
						flipY = not flipY
					end

					if realgid >= bit29 then
						realgid = realgid - bit29
						flipD = not flipD
					end

					local tile = self.tiles[realgid]
					local data = {
						gid			= tile.gid,
						tileset		= tile.tileset,
						offset		= tile.offset,
						quad		= tile.quad,
						properties	= tile.properties,
						animation   = tile.animation,
						sx			= tile.sx,
						sy			= tile.sy,
						r			= tile.r,
					}

					if flipX then
						if flipY then
							data.sx = -1
							data.sy = -1
						elseif flipD then
							data.r = math.rad(90)
						else
							data.sx = -1
						end
					elseif flipY then
						if flipD then
							data.r = math.rad(-90)
						else
							data.sy = -1
						end
					elseif flipD then
						data.r = math.rad(90)
						data.sy = -1
					end

					self.tiles[gid] = data
					map[y][x] = self.tiles[gid]
				end
			end

			i = i + 1
		end
	end

	layer.data = map
end
Ranguna259 wrote: I've got another shader problem, I created an extern image called map and then I use that image in the effect function of the shader code but whenever I try to send the image to the shader it says "Variable 'map' does not exist", but it does.
The GLSL version used by LÖVE uses an“Image” keyword instead of “sampler2D”

Code: Select all

shader = love.graphics.newShader([[
		extern Image map;
		extern vec2 dimensions;
		vec4 effect( vec4 col, Image texture, vec2 texturePos, vec2 screenPos ){
			vec4 c;
			vec2 step = vec2(1/dimensions.x,1/dimensions.y);
			for(number x = 0.0; x > 1; x+step.x){
				for(number y = 0.0; y > 1; y+step.y){
					c += texture2D(map,vec2(x,y)).rgba/vec4(2);
				}
			}
			return c;
		}
		]]
	)
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: "Questions that don't deserve their own thread" thread

Post by Ranguna259 »

Thanks but that didn't fix it, I changed sampler2D to Image and it still says that the variable map doesn't exist.
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
Wojak
Party member
Posts: 134
Joined: Tue Jan 24, 2012 7:15 pm

Re: "Questions that don't deserve their own thread" thread

Post by Wojak »

I think everything involving shaders deserves it's own thread...
GLSL seams to be lacking a lot of functionality (for loop by float)
If I haven't messed up this is the fix:

Code: Select all

shader = love.graphics.newShader([[
		extern Image map;
		extern vec2 dimensions;
		vec4 effect( vec4 col, Image texture, vec2 texturePos, vec2 screenPos ){
			vec4 c;
			//vec2 step = vec2(1/dimensions.x,1/dimensions.y);
			for(int x = 0; x >= dimensions.x; x++){
				for(int y = 0; y >= dimensions.y; y++){
					c += texture2D(map,vec2(x/dimensions.x,y/dimensions.y)).rgba/vec4(2);
				}
			}
			return c;
		}
		]]
	)
However the output is black...
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: "Questions that don't deserve their own thread" thread

Post by s-ol »

Wojak wrote:I think everything involving shaders deserves it's own thread...
GLSL seams to be lacking a lot of functionality (for loop by float)
If I haven't messed up this is the fix:

Code: Select all

shader = love.graphics.newShader([[
		extern Image map;
		extern vec2 dimensions;
		vec4 effect( vec4 col, Image texture, vec2 texturePos, vec2 screenPos ){
			vec4 c;
			//vec2 step = vec2(1/dimensions.x,1/dimensions.y);
			for(int x = 0; x >= dimensions.x; x++){
				for(int y = 0; y >= dimensions.y; y++){
					c += texture2D(map,vec2(x/dimensions.x,y/dimensions.y)).rgba/vec4(2);
				}
			}
			return c;
		}
		]]
	)
However the output is black...
It doesn't "lack" functionality, you are simply overestimating the shaders abilities. Despite looking like a higher-level blend of C and C++ GLSL is actually a very tiny and limited language. AFAIK for loops only work with indexes over uniform arrays.

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: "Questions that don't deserve their own thread" thread

Post by Ranguna259 »

Wojak wrote:However the output is black...
Yep, the output should be a canvas with pure red all over..
S0lll0s wrote:AFAIK for loops only work with indexes over uniform arrays.
What do you mean ?
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: "Questions that don't deserve their own thread" thread

Post by s-ol »

Ranguna259 wrote:
Wojak wrote:However the output is black...
Yep, the output should be a canvas with pure red all over..
S0lll0s wrote:AFAIK for loops only work with indexes over uniform arrays.
What do you mean ?
uniform = extern

Code: Select all

extern vec4 colors[4];
... 
for( int i = 0; i < 4; i++)
  // use colors[i] now
It could be that the language has been expanded since I last read about for loops though.

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
magnetron
Prole
Posts: 1
Joined: Tue Dec 23, 2014 9:31 pm

Re: "Questions that don't deserve their own thread" thread

Post by magnetron »

All I want for xmas is a little love, compiled from scratch on a fresh Mint install...

Ran sudo apt-get install build-essential autotools-dev pkg-config libdevil-dev libfreetype6-dev libluajit-5.1-dev libphysfs-dev libsdl2-dev libopenal-dev libogg-dev libvorbis-dev libflac-dev libflac++-dev libmodplug-dev libmpg123-dev libmng-dev

Installed http://community.linuxmint.com/software/view/luajit via browser link

Grabbed https://bitbucket.org/rude/love/downloa ... src.tar.gz

Unpacked in ~/gen/love-0.9.1

Attempted ./platform/unix/automagic (bash: ./platform/unix/automagic: No such file or directory)

Ran ./configure

Code: Select all

t@t-VirtualBox ~/gen/love-0.9.1 $ sudo ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for a sed that does not truncate output... (cached) /bin/sed
checking for g++... g++
checking whether we are using the GNU Objective C++ compiler... no
checking whether g++ accepts -g... no
checking whether byte ordering is bigendian... no
checking whether g++ supports flag -std=c++0x... yes
checking whether g++ supports flag -std=c++11... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SDL... yes
checking for lua... no
checking for lua... yes
checking for freetype2... yes
checking for openal... yes
checking for devil... yes
checking for libmodplug... yes
checking for vorbisfile... yes
checking for library containing sqrt... none required
checking for library containing PHYSFS_init... -lphysfs
checking for library containing glLoadIdentity... -lGL
checking for library containing lua_pcall... -L/usr//lib -lluajit-5.1  
checking for library containing mpg123_open_feed... -lmpg123
checking for library containing mpg123_seek_64... none required
checking for socklen_t... yes
checking for luajit5.1... no
checking for luajit... luajit
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating platform/unix/debian/control
config.status: creating platform/unix/debian/changelog
config.status: creating platform/unix/debian/rules
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
Ran make

Code: Select all

... libtool: link: ln ./libraries/luasocket/libluasocket/unix.o .libs/liblove.lax/lt25-unix.o || cp ./libraries/luasocket/libluasocket/unix.o .libs/liblove.lax/lt25-unix.o
libtool: link: ln ./libraries/luasocket/libluasocket/luasocket.o .libs/liblove.lax/lt26-luasocket.o || cp ./libraries/luasocket/libluasocket/luasocket.o .libs/liblove.lax/lt26-luasocket.o
libtool: link: ar cru .libs/liblove.a ./common/Module.o ./common/runtime.o ./common/utf8.o ./common/Object.o ./common/b64.o ./common/Matrix.o ./common/Memoizer.o ./common/Exception.o ./common/Reference.o ./common/delay.o ./common/wrap_Data.o ./common/Variant.o ./common/Vector.o ./modules/audio/null/Audio.o ./modules/audio/null/Source.o ./modules/audio/openal/Pool.o .libs/liblove.lax/lt1-Audio.o .libs/liblove.lax/lt2-Source.o ./modules/audio/wrap_Source.o .libs/liblove.lax/lt3-Audio.o .libs/liblove.lax/lt4-Source.o ./modules/audio/wrap_Audio.o ./modules/event/sdl/Event.o ./modules/event/sdl/wrap_Event.o .libs/liblove.lax/lt5-Event.o ./modules/filesystem/physfs/wrap_FileData.o ./modules/filesystem/physfs/File.o ./modules/filesystem/physfs/wrap_File.o ./modules/filesystem/physfs/wrap_Filesystem.o ./modules/filesystem/physfs/Filesystem.o ./modules/filesystem/FileData.o .libs/liblove.lax/lt6-File.o ./modules/font/freetype/Font.o ./modules/font/freetype/TrueTypeRasterizer.o ./modules/font/freetype/wrap_Font.o ./modules/font/wrap_Rasterizer.o ./modules/font/Rasterizer.o ./modules/font/GlyphData.o ./modules/font/wrap_GlyphData.o ./modules/font/ImageRasterizer.o ./modules/graphics/opengl/VertexBuffer.o ./modules/graphics/opengl/SpriteBatch.o ./modules/graphics/opengl/wrap_Quad.o .libs/liblove.lax/lt7-Font.o ./modules/graphics/opengl/GLee.o ./modules/graphics/opengl/wrap_SpriteBatch.o ./modules/graphics/opengl/OpenGL.o ./modules/graphics/opengl/ParticleSystem.o ./modules/graphics/opengl/wrap_Mesh.o ./modules/graphics/opengl/wrap_Shader.o ./modules/graphics/opengl/wrap_Texture.o ./modules/graphics/opengl/Image.o ./modules/graphics/opengl/Graphics.o ./modules/graphics/opengl/Canvas.o ./modules/graphics/opengl/wrap_Image.o ./modules/graphics/opengl/Shader.o ./modules/graphics/opengl/Mesh.o ./modules/graphics/opengl/wrap_Canvas.o ./modules/graphics/opengl/wrap_ParticleSystem.o ./modules/graphics/opengl/wrap_Graphics.o .libs/liblove.lax/lt8-wrap_Font.o ./modules/graphics/opengl/Polyline.o ./modules/graphics/Texture.o ./modules/graphics/Quad.o .libs/liblove.lax/lt9-Graphics.o ./modules/graphics/Volatile.o ./modules/image/magpie/ddsHandler.o ./modules/image/magpie/FormatHandler.o .libs/liblove.lax/lt10-Image.o ./modules/image/magpie/ImageData.o ./modules/image/magpie/CompressedData.o ./modules/image/magpie/DevilHandler.o ./modules/image/wrap_CompressedData.o .libs/liblove.lax/lt11-wrap_Image.o ./modules/image/wrap_ImageData.o .libs/liblove.lax/lt12-ImageData.o .libs/liblove.lax/lt13-CompressedData.o ./modules/joystick/sdl/wrap_Joystick.o ./modules/joystick/sdl/wrap_JoystickModule.o ./modules/joystick/sdl/JoystickModule.o ./modules/joystick/sdl/Joystick.o .libs/liblove.lax/lt14-Joystick.o ./modules/keyboard/sdl/Keyboard.o ./modules/keyboard/wrap_Keyboard.o .libs/liblove.lax/lt15-Keyboard.o ./modules/love/love.o ./modules/math/wrap_BezierCurve.o ./modules/math/BezierCurve.o ./modules/math/RandomGenerator.o ./modules/math/wrap_RandomGenerator.o ./modules/math/MathModule.o ./modules/math/wrap_Math.o ./modules/mouse/sdl/Cursor.o ./modules/mouse/sdl/Mouse.o .libs/liblove.lax/lt16-Cursor.o ./modules/mouse/wrap_Mouse.o .libs/liblove.lax/lt17-Mouse.o ./modules/mouse/wrap_Cursor.o ./modules/physics/box2d/EdgeShape.o ./modules/physics/box2d/wrap_Fixture.o ./modules/physics/box2d/World.o ./modules/physics/box2d/wrap_DistanceJoint.o ./modules/physics/box2d/DistanceJoint.o ./modules/physics/box2d/wrap_FrictionJoint.o ./modules/physics/box2d/wrap_Shape.o ./modules/physics/box2d/Physics.o ./modules/physics/box2d/Joint.o ./modules/physics/box2d/wrap_CircleShape.o ./modules/physics/box2d/Body.o ./modules/physics/box2d/wrap_GearJoint.o ./modules/physics/box2d/wrap_MouseJoint.o ./modules/physics/box2d/GearJoint.o ./modules/physics/box2d/wrap_EdgeShape.o ./modules/physics/box2d/FrictionJoint.o ./modules/physics/box2d/wrap_ChainShape.o ./modules/physics/box2d/wrap_Physics.o ./modules/physics/box2d/WheelJoint.o ./modules/physics/box2d/RopeJoint.o ./modules/physics/box2d/PolygonShape.o ./modules/physics/box2d/CircleShape.o ./modules/physics/box2d/wrap_PolygonShape.o ./modules/physics/box2d/wrap_Joint.o ./modules/physics/box2d/MotorJoint.o ./modules/physics/box2d/MouseJoint.o ./modules/physics/box2d/wrap_Body.o ./modules/physics/box2d/Contact.o ./modules/physics/box2d/PulleyJoint.o ./modules/physics/box2d/wrap_MotorJoint.o ./modules/physics/box2d/wrap_WheelJoint.o ./modules/physics/box2d/wrap_WeldJoint.o ./modules/physics/box2d/wrap_World.o ./modules/physics/box2d/wrap_PrismaticJoint.o ./modules/physics/box2d/wrap_PulleyJoint.o ./modules/physics/box2d/ChainShape.o ./modules/physics/box2d/PrismaticJoint.o ./modules/physics/box2d/WeldJoint.o ./modules/physics/box2d/Shape.o ./modules/physics/box2d/RevoluteJoint.o ./modules/physics/box2d/wrap_RopeJoint.o ./modules/physics/box2d/wrap_Contact.o ./modules/physics/box2d/Fixture.o ./modules/physics/box2d/wrap_RevoluteJoint.o .libs/liblove.lax/lt18-Joint.o .libs/liblove.lax/lt19-Body.o .libs/liblove.lax/lt20-Shape.o ./modules/sound/lullaby/WaveDecoder.o ./modules/sound/lullaby/VorbisDecoder.o ./modules/sound/lullaby/Decoder.o ./modules/sound/lullaby/ModPlugDecoder.o ./modules/sound/lullaby/GmeDecoder.o ./modules/sound/lullaby/Sound.o ./modules/sound/SoundData.o ./modules/sound/wrap_Sound.o ./modules/sound/wrap_SoundData.o ./modules/sound/wrap_Decoder.o .libs/liblove.lax/lt21-Sound.o ./modules/system/sdl/System.o .libs/liblove.lax/lt22-System.o ./modules/system/wrap_System.o ./modules/thread/sdl/Thread.o ./modules/thread/sdl/threads.o ./modules/thread/ThreadModule.o .libs/liblove.lax/lt23-threads.o ./modules/thread/wrap_LuaThread.o ./modules/thread/Channel.o ./modules/thread/wrap_ThreadModule.o ./modules/thread/wrap_Channel.o ./modules/thread/LuaThread.o ./modules/timer/sdl/Timer.o ./modules/timer/wrap_Timer.o ./modules/window/sdl/Window.o .libs/liblove.lax/lt24-Window.o ./modules/window/wrap_Window.o ./libraries/Box2D/Collision/b2BroadPhase.o ./libraries/Box2D/Collision/b2CollideEdge.o ./libraries/Box2D/Collision/b2DynamicTree.o ./libraries/Box2D/Collision/b2CollideCircle.o ./libraries/Box2D/Collision/b2Collision.o ./libraries/Box2D/Collision/b2TimeOfImpact.o ./libraries/Box2D/Collision/b2CollidePolygon.o ./libraries/Box2D/Collision/b2Distance.o ./libraries/Box2D/Collision/Shapes/b2ChainShape.o ./libraries/Box2D/Collision/Shapes/b2PolygonShape.o ./libraries/Box2D/Collision/Shapes/b2EdgeShape.o ./libraries/Box2D/Collision/Shapes/b2CircleShape.o ./libraries/Box2D/Common/b2StackAllocator.o ./libraries/Box2D/Common/b2Draw.o ./libraries/Box2D/Common/b2BlockAllocator.o ./libraries/Box2D/Common/b2Math.o ./libraries/Box2D/Common/b2Settings.o ./libraries/Box2D/Common/b2Timer.o ./libraries/Box2D/Rope/b2Rope.o ./libraries/Box2D/Dynamics/Joints/b2Joint.o ./libraries/Box2D/Dynamics/Joints/b2PulleyJoint.o ./libraries/Box2D/Dynamics/Joints/b2RopeJoint.o ./libraries/Box2D/Dynamics/Joints/b2MotorJoint.o ./libraries/Box2D/Dynamics/Joints/b2FrictionJoint.o ./libraries/Box2D/Dynamics/Joints/b2GearJoint.o ./libraries/Box2D/Dynamics/Joints/b2WeldJoint.o ./libraries/Box2D/Dynamics/Joints/b2PrismaticJoint.o ./libraries/Box2D/Dynamics/Joints/b2WheelJoint.o ./libraries/Box2D/Dynamics/Joints/b2MouseJoint.o ./libraries/Box2D/Dynamics/Joints/b2RevoluteJoint.o ./libraries/Box2D/Dynamics/Joints/b2DistanceJoint.o ./libraries/Box2D/Dynamics/b2WorldCallbacks.o ./libraries/Box2D/Dynamics/b2Island.o ./libraries/Box2D/Dynamics/b2World.o ./libraries/Box2D/Dynamics/Contacts/b2CircleContact.o ./libraries/Box2D/Dynamics/Contacts/b2ChainAndPolygonContact.o ./libraries/Box2D/Dynamics/Contacts/b2ChainAndCircleContact.o ./libraries/Box2D/Dynamics/Contacts/b2EdgeAndCircleContact.o ./libraries/Box2D/Dynamics/Contacts/b2ContactSolver.o ./libraries/Box2D/Dynamics/Contacts/b2EdgeAndPolygonContact.o ./libraries/Box2D/Dynamics/Contacts/b2Contact.o ./libraries/Box2D/Dynamics/Contacts/b2PolygonAndCircleContact.o ./libraries/Box2D/Dynamics/Contacts/b2PolygonContact.o ./libraries/Box2D/Dynamics/b2ContactManager.o ./libraries/Box2D/Dynamics/b2Fixture.o ./libraries/Box2D/Dynamics/b2Body.o ./libraries/Wuff/wuff_memory.o ./libraries/Wuff/wuff_convert.o ./libraries/Wuff/wuff.o ./libraries/Wuff/wuff_internal.o ./libraries/ddsparse/ddsparse.o ./libraries/enet/libenet/packet.o ./libraries/enet/libenet/protocol.o ./libraries/enet/libenet/win32.o ./libraries/enet/libenet/callbacks.o ./libraries/enet/libenet/list.o ./libraries/enet/libenet/compress.o ./libraries/enet/libenet/unix.o ./libraries/enet/libenet/peer.o ./libraries/enet/libenet/host.o ./libraries/enet/enet.o ./libraries/luasocket/luasocket.o ./libraries/luasocket/libluasocket/udp.o ./libraries/luasocket/libluasocket/usocket.o ./libraries/luasocket/libluasocket/auxiliar.o ./libraries/luasocket/libluasocket/io.o ./libraries/luasocket/libluasocket/select.o ./libraries/luasocket/libluasocket/tcp.o ./libraries/luasocket/libluasocket/inet.o ./libraries/luasocket/libluasocket/options.o .libs/liblove.lax/lt25-unix.o ./libraries/luasocket/libluasocket/timeout.o ./libraries/luasocket/libluasocket/except.o ./libraries/luasocket/libluasocket/buffer.o ./libraries/luasocket/libluasocket/mime.o .libs/liblove.lax/lt26-luasocket.o ./libraries/noise1234/simplexnoise1234.o ./modules/sound/lullaby/Mpg123Decoder.o
libtool: link: ranlib .libs/liblove.a
libtool: link: rm -fr .libs/liblove.lax
libtool: link: ( cd ".libs" && rm -f "liblove.la" && ln -s "../liblove.la" "liblove.la" )
depbase=`echo love.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
	g++ -DHAVE_CONFIG_H -I. -I..  -I. -I./modules -I./libraries -I./libraries/enet/libenet/include  -D_FILE_OFFSET_BITS=64	-D_REENTRANT -I/usr/include/SDL2   -I/usr//include/luajit-2.0   -I/usr/include/freetype2  	  	   -g -O2 -std=c++11 -MT love.o -MD -MP -MF $depbase.Tpo -c -o love.o love.cpp &&\
	mv -f $depbase.Tpo $depbase.Po
/bin/bash ../libtool  --tag=CXX --tag=CXX  --mode=link g++  -g -O2 -std=c++11   -o love love.o  liblove.la -L/usr//lib -lluajit-5.1   -lmpg123 -lGL -lphysfs 

*** Warning: Linking the executable love against the loadable module
*** liblove.so is not portable!
libtool: link: g++ -g -O2 -std=c++11 -o .libs/love love.o  ./.libs/liblove.so -L/usr//lib -lluajit-5.1 -lmpg123 -lGL -lphysfs
make[3]: Leaving directory `/home/t/gen/love-0.9.1/src'
make[2]: Leaving directory `/home/t/gen/love-0.9.1/src'
make[2]: Entering directory `/home/t/gen/love-0.9.1'
/bin/mkdir -p platform/unix
rm -f platform/unix/love.desktop platform/unix/love.desktop.tmp
/bin/sed \
		-e "s|@bindir[@]|/usr/bin|" \
		./platform/unix/love.desktop.in > platform/unix/love.desktop.tmp
chmod a-w platform/unix/love.desktop.tmp
mv platform/unix/love.desktop.tmp platform/unix/love.desktop
A love.desktop file is created under platform/unix, however I see no corresponding love in /usr/bin/. I know virtually nothing about linux; tried it again after "make clean" using sudo on the off chance it would make a difference somewhere. If anyone has any hints on where I screwed up, will try again.

edit: After installing some lua 5.1 related dev packages with the package manager and retrying, then looking in the right place ( " Your LÖVE binary will end up in the src directory. " ), I now have a functioning new build of love 0.9.1. If only building for Android were so easy...
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: "Questions that don't deserve their own thread" thread

Post by bartbes »

You could probably just add the ppa and be done with it.
Otherwise, a tip: never run configure or make as root, unless it's 'make install', which installs it and therefore needs to be run as root. I also believe that 'make install' is what you were missing.
Locked

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 11 guests