Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 19 20 [21] 22 23

Author Topic: [PRINT_MODE:SHADER]  (Read 90423 times)

arclance

  • Bay Watcher
    • View Profile
Re: [PRINT_MODE:SHADER]
« Reply #300 on: December 26, 2012, 06:26:56 pm »

I am getting "Permission denied (publickey)" when I run "git submodule update" and it tries to get "df-structures" in Windows.
Logged
I think that might be one of the most dwarfen contraptions I've ever seen the blueprints of.
The Bloodwinery v1.3.1 | Dwarven Lamination v1.5 | Tileset Resizer v2.5 - Mac Beta Tester Needed
Sigtext

arclance

  • Bay Watcher
    • View Profile
Re: [PRINT_MODE:SHADER]
« Reply #301 on: December 26, 2012, 08:30:25 pm »

Okay it starts building if I remove "-Wextra -Werror" from the CMakeLists.txt file but fails at
Code: [Select]
2>..\modules\glue.cpp(42): fatal error C1083: Cannot open include file: 'dlfcn.h': No such file or directory
when I try to build glue.cpp.
Looking at the code it seems your check for Windows compilers is not working.
« Last Edit: December 26, 2012, 08:51:03 pm by arclance »
Logged
I think that might be one of the most dwarfen contraptions I've ever seen the blueprints of.
The Bloodwinery v1.3.1 | Dwarven Lamination v1.5 | Tileset Resizer v2.5 - Mac Beta Tester Needed
Sigtext
Re: [PRINT_MODE:SHADER]
« Reply #302 on: December 26, 2012, 08:37:27 pm »

Why does an ASCII game need a shader mod? lol
Logged

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: [PRINT_MODE:SHADER]
« Reply #303 on: December 26, 2012, 08:49:32 pm »

All games need a shader mod
Logged

Bloax

  • Bay Watcher
    • View Profile
Re: [PRINT_MODE:SHADER]
« Reply #304 on: December 26, 2012, 08:55:39 pm »

From what the purpose was, then this is for dumping the graphics over to the GPU, freeing up CPU power for the game stuff - not just for effects.

Unlike the usual "shader mod" stuff, which is  just effects.
Logged

oh_no

arclance

  • Bay Watcher
    • View Profile
Re: [PRINT_MODE:SHADER]
« Reply #305 on: December 26, 2012, 09:25:04 pm »

Okay it starts building if I remove "-Wextra -Werror" from the CMakeLists.txt file but fails at
Code: [Select]
2>..\modules\glue.cpp(42): fatal error C1083: Cannot open include file: 'dlfcn.h': No such file or directory
when I try to build glue.cpp.
Looking at the code it seems your check for Windows compilers is not working.
Changing
Code: [Select]
#if defined(__WIN32__) || defined(__CYGWIN__)
to
Code: [Select]
#if defined(_WIN32) || defined(__CYGWIN__)
gets it farther but it fails as an unsucessful build.
I don't know why this time.

Build log for glue on pastebin.

test-life
Code: [Select]
Build started 12/26/2012 9:18:08 PM.
     1>Project "C:\Users\arclance\Documents\Print_Mode_Shader\rendumper_2012-12-26_2\build\test-life.vcxproj" on node 3 (build target(s)).
     1>InitializeBuildStatus:
         Touching "test-life.dir\Debug\test-life.unsuccessfulbuild".
       CustomBuild:
         Building Custom Rule C:/Users/arclance/Documents/Print_Mode_Shader/rendumper_2012-12-26_2/modules/CMakeLists.txt
         CMake does not need to re-run because C:\Users\arclance\Documents\Print_Mode_Shader\rendumper_2012-12-26_2\build\CMakeFiles\generate.stamp is up-to-date.
       ClCompile:
         C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /I"C:/Users/arclance/Documents/Print_Mode_Shader/rendumper_2012-12-26_2/modules/include" /I"C:/Users/arclance/Documents/Print_Mode_Shader/rendumper_2012-12-26_2/modules/common" /nologo /Wall /WX- /O2 /Oy- /D "DF_MODULES_PATH=\"C:/Program Files/dfmodules/lib/dfmodules\"" /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"test-life.dir\Debug\\" /Fd"C:/Users/arclance/Documents/Print_Mode_Shader/rendumper_2012-12-26_2/build/Debug/test-life.pdb" /Gd /TP /analyze- /errorReport:prompt ..\modules\tests\life.cpp  -std=c++0x -fvisibility-inlines-hidden -fvisibility=hidden -ggdb3
     1>cl : Command line warning D9002: ignoring unknown option '-std=c++0x'
     1>cl : Command line warning D9002: ignoring unknown option '-fvisibility-inlines-hidden'
     1>cl : Command line warning D9002: ignoring unknown option '-fvisibility=hidden'
     1>cl : Command line warning D9002: ignoring unknown option '-ggdb3'
         life.cpp
     1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\stdint.h(105): warning C4668: '_INTPTR' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
     1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\cstdint(36): warning C4668: '_HAS_TR1_DECLARATIONS' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
     1>c:\users\arclance\documents\print_mode_shader\rendumper_2012-12-26_2\modules\include\itypes.h(72): warning C4480: nonstandard extension used: specifying underlying type for enum 'DFKeySym'
     1>c:\users\arclance\documents\print_mode_shader\rendumper_2012-12-26_2\modules\include\itypes.h(321): warning C4480: nonstandard extension used: specifying underlying type for enum 'df_input_event_t::ev_type'
     1>c:\users\arclance\documents\print_mode_shader\rendumper_2012-12-26_2\modules\include\itypes.h(322): warning C4480: nonstandard extension used: specifying underlying type for enum 'df_input_event_t::but_num'
     1>c:\users\arclance\documents\print_mode_shader\rendumper_2012-12-26_2\modules\include\itypes.h(328): warning C4820: 'df_input_event_t' : '3' bytes padding added after data member 'df_input_event_t::reports_release'
     1>C:/Users/arclance/Documents/Print_Mode_Shader/rendumper_2012-12-26_2/modules/include\iplatform.h(70): warning C4820: '<unnamed-tag>' : '2' bytes padding added after data member '<unnamed-tag>::wParam'
     1>C:/Users/arclance/Documents/Print_Mode_Shader/rendumper_2012-12-26_2/modules/include\iplatform.h(77): warning C4668: 'and' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
     1>C:/Users/arclance/Documents/Print_Mode_Shader/rendumper_2012-12-26_2/modules/include\iplatform.h(77): warning C4067: unexpected tokens following preprocessor directive - expected a newline
     1>C:/Users/arclance/Documents/Print_Mode_Shader/rendumper_2012-12-26_2/modules/include\iplatform.h(77): warning C4067: unexpected tokens following preprocessor directive - expected a newline
     1>..\modules\tests\life.cpp(55): error C2470: 'blse' : looks like a function definition, but there is no parameter list; skipping apparent body
     1>..\modules\tests\life.cpp(63): error C2470: 'twentyfive' : looks like a function definition, but there is no parameter list; skipping apparent body
     1>..\modules\tests\life.cpp(70): warning C4510: 'lfidxntry' : default constructor could not be generated
                 ..\modules\tests\life.cpp(70) : see declaration of 'lfidxntry'
     1>..\modules\tests\life.cpp(70): warning C4512: 'lfidxntry' : assignment operator could not be generated
                 ..\modules\tests\life.cpp(70) : see declaration of 'lfidxntry'
     1>..\modules\tests\life.cpp(70): warning C4610: struct 'lfidxntry' can never be instantiated - user defined constructor required
     1>..\modules\tests\life.cpp(74): error C2065: 'blse' : undeclared identifier
     1>..\modules\tests\life.cpp(75): error C2065: 'twentyfive' : undeclared identifier
     1>..\modules\tests\life.cpp(196): warning C4820: 'gofsim_t' : '3' bytes padding added after data member 'gofsim_t::tor'
     1>..\modules\tests\life.cpp(203): warning C4365: 'argument' : conversion from 'int' to 'size_t', signed/unsigned mismatch
     1>..\modules\tests\life.cpp(204): warning C4365: 'argument' : conversion from 'int' to 'size_t', signed/unsigned mismatch
     1>..\modules\tests\life.cpp(352): error C2146: syntax error : missing ')' before identifier 'and'
     1>..\modules\tests\life.cpp(352): error C2065: 'and' : undeclared identifier
     1>..\modules\tests\life.cpp(352): error C2143: syntax error : missing ';' before '!'
     1>..\modules\tests\life.cpp(352): error C2146: syntax error : missing ';' before identifier 'and'
     1>..\modules\tests\life.cpp(352): warning C4552: '!' : operator has no effect; expected operator with side-effect
     1>..\modules\tests\life.cpp(352): error C2065: 'and' : undeclared identifier
     1>..\modules\tests\life.cpp(352): error C2146: syntax error : missing ';' before identifier 'event'
     1>..\modules\tests\life.cpp(352): error C2059: syntax error : ')'
     1>..\modules\tests\life.cpp(352): error C2143: syntax error : missing ';' before '{'
     1>..\modules\tests\life.cpp(352): warning C4553: '==' : operator has no effect; did you intend '='?
     1>..\modules\tests\life.cpp(367): error C2065: 'not' : undeclared identifier
     1>..\modules\tests\life.cpp(367): error C2146: syntax error : missing ';' before identifier 'paused'
     1>..\modules\tests\life.cpp(368): error C2181: illegal else without matching if
     1>..\modules\tests\life.cpp(405): warning C4365: '=' : conversion from 'int' to 'uint32_t', signed/unsigned mismatch
     1>..\modules\tests\life.cpp(408): warning C4365: '=' : conversion from 'int' to 'uint32_t', signed/unsigned mismatch
     1>..\modules\tests\life.cpp(416): warning C4365: '=' : conversion from 'int' to 'uint32_t', signed/unsigned mismatch
     1>..\modules\tests\life.cpp(431): warning C4365: 'argument' : conversion from 'uint32_t' to 'int', signed/unsigned mismatch
     1>..\modules\tests\life.cpp(431): warning C4365: 'argument' : conversion from 'uint32_t' to 'int', signed/unsigned mismatch
     1>..\modules\tests\life.cpp(434): warning C4242: '=' : conversion from 'int' to 'unsigned char', possible loss of data
     1>..\modules\tests\life.cpp(434): warning C4365: '=' : conversion from 'int' to 'unsigned char', signed/unsigned mismatch
     1>Done Building Project "C:\Users\arclance\Documents\Print_Mode_Shader\rendumper_2012-12-26_2\build\test-life.vcxproj" (build target(s)) -- FAILED.

Build FAILED.

Time Elapsed 00:00:00.21
Logged
I think that might be one of the most dwarfen contraptions I've ever seen the blueprints of.
The Bloodwinery v1.3.1 | Dwarven Lamination v1.5 | Tileset Resizer v2.5 - Mac Beta Tester Needed
Sigtext

smirk

  • Bay Watcher
    • View Profile
Re: [PRINT_MODE:SHADER]
« Reply #306 on: December 26, 2012, 09:31:46 pm »

Why does an ASCII game need a shader mod? lol

From what little I understand, this mod should eventually allow such things as layering ground tiles visibly under creatures, and supporting different sizes of tiles (possibly at the same time?).
Kudos to lxnt and arclance; still eagerly following this even if I barely understand any of it =D
Logged
When i think of toady i think of a toad hopping arround on a keyboard
also
he should stay out of the light it will dry out his skin
his moist amphibian skin
.

lxnt

  • Bay Watcher
    • View Profile
    • pm:full_graphics
Re: [PRINT_MODE:SHADER]
« Reply #307 on: December 27, 2012, 09:53:29 am »

... valiant efforts ...

Many thanks for this.

I redid the build system and moved code around a bit so that tests now do get built by VS Express 2010.

Haven't tested them yet, though. Building modules themselves will surely turn out a nightmare since C++-0x support in VC-2010 is, ahem, barely visible. I'll put out crosscompiled binaries for win32 today if all happens to just work.

lxnt

  • Bay Watcher
    • View Profile
    • pm:full_graphics
Re: [PRINT_MODE:SHADER]
« Reply #308 on: December 27, 2012, 12:28:06 pm »

Of course is doesn't work  >:(

lxnt

  • Bay Watcher
    • View Profile
    • pm:full_graphics
Re: [PRINT_MODE:SHADER]
« Reply #309 on: December 27, 2012, 01:02:03 pm »

Running MSVC-compiled test-alert.exe with Mingw-compiled .dlls has become successful. The VM doesn't have enough GL to test the renderer.

Had to use latest mingw-w64 though, there was some abi mismatch present before gcc 4.7 at least.

http://dffd.wimbli.com/file.php?id=7250


« Last Edit: December 28, 2012, 09:12:29 am by lxnt »
Logged

lxnt

  • Bay Watcher
    • View Profile
    • pm:full_graphics
Re: [PRINT_MODE:SHADER]
« Reply #310 on: December 28, 2012, 09:21:03 am »

test-life.exe works in wine though.

this proves that cross-platform modular rendering backend is possible.

hooray.

lxnt

  • Bay Watcher
    • View Profile
    • pm:full_graphics
Re: [PRINT_MODE:SHADER]
« Reply #311 on: December 28, 2012, 05:33:34 pm »

A stub has been made to simulate building real Dwarf Fortress with the modular backend.

It works as in compiling ok on every compiler I have - linux gcc, mingw gcc, msvc. Can't persuade msvc to link with zlib atm, but it's a settings problem, and compession should be moved to the platform .so anyway.

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: [PRINT_MODE:SHADER]
« Reply #312 on: December 28, 2012, 05:38:18 pm »

I will follow this as well. Even if I feel a bit like smirk, and cant follow the discussion. For being a graphics centered addition, you might want to consider a screenshot (with/without) at the first post. Once there is a major difference to see...
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

King Mir

  • Bay Watcher
    • View Profile
Re: [PRINT_MODE:SHADER]
« Reply #313 on: December 29, 2012, 11:49:15 pm »

Anyone got a win32 compiler other that mingw32msvc or i686-w64-mingw32? Preferably something from MSVC series.

The time has come to test if the modularization works across different C/C++ runtimes.
I can get Microsoft Visual Studio 2012, and try this out.

It has better C++11 support btw.
« Last Edit: December 29, 2012, 11:57:52 pm by King Mir »
Logged

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: [PRINT_MODE:SHADER]
« Reply #314 on: December 29, 2012, 11:59:01 pm »

If you want to stick this into DFhack (which can be done, actually) the only MSVC you need is 2010.
Logged
Pages: 1 ... 19 20 [21] 22 23