1

Topic: [HELP] Adding external libraries to teeworlds

Hello there.
I am trying to implement a certain library into teeworlds, let's just call it "x". The corresponding file structure is like this:
other/x/lib/x.dll
other/x/lib/x.lib
other/x/include/x/x.h

In bam.lua, I added this:

table.insert(client_depends, CopyToDirectory(".", "other\\x\\lib\\x.dll"))

also, further below:

client_settings.cc.includes:Add("other/x/include")
client_settings.link.libpath:Add("other/x/lib")
client_settings.link.libs:Add("x");

Yes, I am trying to modify my client. Now, the error is that "x/x.h" can't be found. What am I missing here? Thanks for you time,
Ikaron

2

Re: [HELP] Adding external libraries to teeworlds

Where is x.h located? In include dir i guess?

3

Re: [HELP] Adding external libraries to teeworlds

I use bam.lua + #pragma comment(lib, "/path to lib")

4 (edited by Broken 2013-04-10 14:57:57)

Re: [HELP] Adding external libraries to teeworlds

the latest mod starts randomly playing tw menu music. also there should be a force pause of one second before ground hook works again. also please fix the having to be awake before counting a freeze thing.

5

Re: [HELP] Adding external libraries to teeworlds

Shahan wrote:

Where is x.h located? In include dir i guess?

As I said in the file structure, x.h is in include/x/x.h
[br]

Matodor wrote:

I use bam.lua + #pragma comment(lib, "/path to lib")

Where to add this in bam.lua?
[br]

Broken wrote:

the latest mod starts randomly playing tw menu music. also there should be a force pause of one second before ground hook works again. also please fix the having to be awake before counting a freeze thing.

Wrong topic? big_smile

6

Re: [HELP] Adding external libraries to teeworlds

Search:

-- set some platform specific settings
    settings.cc.includes:Add("src")

And down settings.link.libs:Add("name lib")

7

Re: [HELP] Adding external libraries to teeworlds

Matodor wrote:

Search:

-- set some platform specific settings
    settings.cc.includes:Add("src")

And down settings.link.libs:Add("name lib")

I added that below the include add, but it's still not found. Do you have skype? Would be faster that way. If yes, please send me a private message with your name.