Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 307 308 [309] 310 311 ... 360

Author Topic: DFHack 0.43.03-r1  (Read 1124184 times)

jecowa

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4620 on: August 28, 2016, 05:11:59 pm »

Thanks for the help.

I was getting those errors both with your GCC 4.8p running on my 10.6 Snow Leopard machine and with GCC compiled by Brew on my 10.10 Yosemite machine.

What version do you use for compiling DFHack? Maybe 10.7 Lion?
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4621 on: August 28, 2016, 05:39:08 pm »

I've compiled it successfully with GCC 4.5 and 4.8 on OS X 10.9, and GCC 4.8 on OS X 10.10. Are you sure you're using the homebrew-compiled GCC on 10.10?
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.

jecowa

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4622 on: August 28, 2016, 06:08:10 pm »

Sorry, I got confused. Just tested it again, and it works just fine on Mac OS X 10.10 Yosemite. It turns out I was having a different problem related to the library files of Dwarf Fortress v0.43.03. After replacing those with better versions it works fine. Thanks for the help!

Now I just need to get Dwarf Therapist and PyLNP to compile.

Edit: Spent all day trying to get it to compile a second time. Looks like my problem this time was leaving "export MACOSX_DEPLOYMENT_TARGET=10.9" out of my build script.

Posting build script here, so I don't lose it.

Spoiler: part 1 (click to show/hide)

part 1a - Place a "df_osx_v0.43.03" at ~/Desktop/dfhack_comptile/df_osx_v0.43.03/ if there isn't one already.

Spoiler: part 2 (click to show/hide)
« Last Edit: August 29, 2016, 09:04:28 am by jecowa »
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4623 on: August 30, 2016, 11:09:15 pm »

Odd, I've never had to set MACOSX_DEPLOYMENT_TARGET on 10.10 or 10.11 with GCC 4.8, although I haven't tested those builds elsewhere. Was it failing to build for you without it, or failing to run on older systems? I suppose GCC 4.5 could be the reason too, but I'm not sure why that would be it.
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.

jecowa

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4624 on: August 31, 2016, 12:32:37 am »

If I used GCC 4.8, it would cmake fine without the deployment target, but then it wouldn't make. Using deployment target 10.9 with GCC 4.5 let it both cmake and make.

It looks like the DFHack I built the first time actually doesn't run, but the last two I built work (both vanilla DFHack and Japa's fork of it).
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4625 on: August 31, 2016, 07:08:49 am »

It should compile with GCC 4.8. Do you have any specific error messages? What DFHack version/commit are you building?
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.

jecowa

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4626 on: August 31, 2016, 07:33:41 am »

I'm using DFHack 0.43.03-r1.
Code: [Select]
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean
Spoiler: .git/FETCH_HEAD (click to show/hide)

Spoiler: Output (click to show/hide)

This is with GCC 4.8 and export MACOSX_DEPLOYMENT_TARGET=10.9.
Logged

Blaze

  • Bay Watcher
  • The Chaos that Crawls up on you with a Smile.
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4627 on: August 31, 2016, 08:31:31 am »

Anyone know the correct offset for the startdwarf plugin? All the ones I've tried appear to be outdated.
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4628 on: August 31, 2016, 08:36:47 am »

...
Wow, I've never seen that before. What GCC 4.8 is that from - Homebrew, self-compiled, MacPorts, something else?

Anyone know the correct offset for the startdwarf plugin? All the ones I've tried appear to be outdated.
Do you mean start_dwarf_count? That changes with pretty much every DF version, as do all of the other offsets (except in rare cases/coincidences), so anything in older versions is likely not right in whatever version you're using.
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.

mifki

  • Bay Watcher
  • works secretly...
    • View Profile
    • mifki
Re: DFHack 0.43.03-r1
« Reply #4629 on: August 31, 2016, 08:41:07 am »

...
Wow, I've never seen that before. What GCC 4.8 is that from - Homebrew, self-compiled, MacPorts, something else?

Something is wrong with Xcode I think.

Blaze

  • Bay Watcher
  • The Chaos that Crawls up on you with a Smile.
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4630 on: August 31, 2016, 08:42:35 am »

Do you mean start_dwarf_count? That changes with pretty much every DF version, as do all of the other offsets (except in rare cases/coincidences), so anything in older versions is likely not right in whatever version you're using.
I'm using 43.03. It's not just outdated, symbols.xml shows that it doesn't even exist.
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4631 on: August 31, 2016, 08:46:11 am »

Do you mean start_dwarf_count? That changes with pretty much every DF version, as do all of the other offsets (except in rare cases/coincidences), so anything in older versions is likely not right in whatever version you're using.
I'm using 43.03. It's not just outdated, symbols.xml shows that it doesn't even exist.
No, symbols.xml isn't showing that it doesn't exist. It exists, and likely will exist until Toady scraps the 7-dwarf default. The fact that it's missing from symbols.xml simply means that nobody has found it.
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.

jecowa

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4632 on: August 31, 2016, 08:52:32 am »

...
Wow, I've never seen that before. What GCC 4.8 is that from - Homebrew, self-compiled, MacPorts, something else?

Something is wrong with Xcode I think.

Homebrew/gcc48-4.8.5.yosemite.bottle.1.tar.gz

XCode 6.4. I might be able to switch to XCode 5 or XCode 7.
Logged

jecowa

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4634 on: August 31, 2016, 09:30:01 am »

I just had 5 on it originally, but I installed 6 while trying to get this or something else to work. I still have 5 on it too, but I think 6 seems to have taken over.
Logged
Pages: 1 ... 307 308 [309] 310 311 ... 360