Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile errors on Ubuntu 20.04 #654

Closed
z0rti opened this issue Jul 6, 2020 · 2 comments
Closed

Compile errors on Ubuntu 20.04 #654

z0rti opened this issue Jul 6, 2020 · 2 comments

Comments

@z0rti
Copy link

z0rti commented Jul 6, 2020

Tried to compile it for Ubuntu 20.04, but got errors:

tools/quake3/q3map2/light_ydnar.c: In function ‘FloodLightForSample’:
tools/quake3/q3map2/light_ydnar.c:4112:7: error: ‘lm’ undeclared (first use in this function); did you mean ‘tm’?
 4112 |   if( lm->styles[lightmapNum] != LS_NORMAL && lm->styles[lightmapNum] != LS_NONE ) // isStyleLight
      |       ^~
      |       tm
tools/quake3/q3map2/light_ydnar.c:4112:7: note: each undeclared identifier is reported only once for each function it appears in
tools/quake3/q3map2/light_ydnar.c:4112:18: error: ‘lightmapNum’ undeclared (first use in this function); did you mean ‘lightmapGamma’?
 4112 |   if( lm->styles[lightmapNum] != LS_NORMAL && lm->styles[lightmapNum] != LS_NONE ) // isStyleLight
      |                  ^~~~~~~~~~~
      |                  lightmapGamma
scons: *** [build/release/q3map2/tools/quake3/q3map2/light_ydnar.o] Error 1
scons: building terminated because of errors.
@tkoeppe
Copy link
Collaborator

tkoeppe commented Jul 6, 2020

I agree, that looks odd. @illwieckz, could you kindly take a look? #652 seems to be pasting code from a different fork (Garux/netradiant-custom@1a614ef) that doesn't apply here?

@illwieckz
Copy link
Contributor

illwieckz commented Jul 7, 2020

Hmm, something weird happened with my workspace. Because of Python3 issue with Scons, I made some python fixes to be able to build the tree again (similar to #651 I haven't yet seen at the time), so basically I wanted to merge the commit above my Python3 branch, check the build, then cherry-pick the commit into a feature branch to ship it on master. It looks like at some point I did something wrong at some merge or cherry-picking step and in fact the branches I built did not included the commit…

Obviously the patch does not apply, I'm surprised it technically applied. In fact it looks like the part of floodlight code that is known to be broken is not yet merged to master so the fix does not apply yet.

@TTimo sorry for the noise then, it looks like the buggy code is not there yet and therefore can't be fixed. You may just revert 090fbf3.

🤦‍♀️

@TTimo TTimo closed this as completed in 3aee572 Jul 11, 2020
TTimo added a commit that referenced this issue Jul 11, 2020
Revert "q3map2	* fix: do not affect styled lightmaps by floodlight", fix #654
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants