Jump to content

rb1598

Community Members
  • Posts

    10
  • Joined

  • Last visited

rb1598's Achievements

Discens

Discens (2/14)

0

Reputation

  1. Yes, you're right - should I set C, CC or LANG to gcc46? Re the error at GraphicsSetupHandlers.cpp: Actually the error message was longer, my bad: ../../../source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp: In function 'void AtlasMessage::fInitGraphics(AtlasMessage::mInitGraphics*)': ../../../source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp:60: error: expected primary-expression before '<<' token ../../../source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp:60: error: expected primary-expression before '<<' token ../../../source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp:60: error: expected primary-expression before '<<' token ../../../source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp:60: error: expected primary-expression before '<' token ../../../source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp:60: error: expected primary-expression before '.' token ../../../source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp:62: error: expected primary-expression before '||' token ../../../source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp:62: error: expected primary-expression before '||' token ../../../source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp:62: error: expected primary-expression before '|' token ../../../source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp:62: error: expected primary-expression before '.' token ../../../source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp:63: error: expected `;' before '}' token ../../../source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp: At global scope: ../../../source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp:63: error: expected `}' at end of input /usr/X11R6/include/boost/system/error_code.hpp:214: warning: 'boost::system::posix_category' defined but not used /usr/X11R6/include/boost/system/error_code.hpp:215: warning: 'boost::system::errno_ecat' defined but not used /usr/X11R6/include/boost/system/error_code.hpp:216: warning: 'boost::system::native_ecat' defined but not used gmake[1]: *** [obj/atlas_Release/GraphicsSetupHandlers.o] Error 1 gmake: *** [atlas] Error 2 I checked the file btw and there is no missing "}"
  2. @ historic_bruno: I was busy for a while with building the latest mesa and its depends, among other things. Placing this in jsnativestack.cpp:54 worked, but I also had to comment out the tar -xzf command in 0ad/libraries/spidermonkey/build.sh, so that it would not over-write the manually made changes. #pragma GCC visibility push(default) #include <pthread_np.h> #pragma GCC visibility pop After spidermonkey, all other builds completed successfully. Now I have 2 questions: 1. I ran the script as thus, but build did not use GCC46. How can I pass that? ./update-workspaces.sh CC=gcc46 SET_MAKE=gmake 2. To install the build (as per the wiki) # cd gcc && # gmake config=release unfortunately gave: /source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp: At global scope: /source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp:62: error: expected `}' at end of input /usr/X11R6/include/boost/system/error_code.hpp:214: warning: 'boost::system::posix_category' defined but not used /usr/X11R6/include/boost/system/error_code.hpp:215: warning: 'boost::system::errno_ecat' defined but not used /usr/X11R6/include/boost/system/error_code.hpp:216: warning: 'boost::system::native_ecat' defined but not used gmake[1]: *** [obj/atlas_Release/GraphicsSetupHandlers.o] Error 1 gmake: *** [atlas] Error 2
  3. Spidermonkey in ports is ver 1.7.0, so you got me there My system is FreeBSD 9.0-RC2 on amd64, normally using gcc46 as ports compiler but defaults to base (4.2) when building outside of ports tree (will look into that asap!). I can re-confirm that my system is able to build spidermonkey from ports (1.7) without any problems. I cleaned the build directory and re-ran from 0ad/libraries/spidermonkey># ./build.sh Same result and no errors that I can see..
  4. Great work - many thanks. FCollada builds without problems. There is one small new problem however, it's Spidermonkey - fils with: jsnativestack.o: In function `js::GetNativeStackBaseImpl()': /asp/s.0ad/libraries/spidermonkey/js-1.8.5/js/src/build-debug/../jsnativestack.cpp:201: undefined reference to `pthread_attr_get_np' /usr/bin/ld: jsnativestack.o: relocation R_X86_64_PC32 against `pthread_attr_get_np' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value gmake[1]: *** [libmozjs185-ps-debug.so] Error 1 gmake[1]: Leaving directory `/asp/s.0ad/libraries/spidermonkey/js-1.8.5/js/src/build-debug' gmake: *** [default] Error 2 ERROR: SpiderMonkey build failed Also, Spidermonkey is already in the native ports structure (lang/spidermonkey). The native port builds fine, but conflicts with an already installed port seamonkey.
  5. @ykkrosh: OK - NVTT is in the ports tree: http://www.freshport...a-texture-tools The depends list does not show any other Nvidia, so that's good. I really wonder if the patch is necessary though, since patch is from Nov&Mar-09, while the latest commit for the port is Nov-11. The patches should be out-dated by now given that NVTT is now natively available from the ports tree. @historic_bruno: Sometimes my brain locks-up. Re your last paragraph: There is no setting for libld in my Premake4.make, so I guess my system passed good info to some script. For premae4.lua, can you specify where I could just hard-code into the file to set amd64 as default and skip-detects? I am running on amd64 (stupid I forgot to mention that in 1st post), while c/gcc default on FreeBSD is 4.2. However, I use 4.6 to build my ports/apps (4.2 is reserved by default for base system).
  6. historic_bruno: Thanks for pitching in. Re your suggestions, some good news, some not-so-good. First the not-so-good: 1. NVTT 2.0.8-1 (r907 and r1025) are parts of Nvidia tools. I, however am using a radeon card/driver, compiled from latest git repo from DRI/Mesa, which must include the option WITHOUT_NOUVEAU (nvidia) in the make.conf in order to use the latest driver. It looks like I'll have to take my chances on the graphics engine side... 2. Could not get passed the ecvt block. My "C skills" are negligible, and admittedly all I tried was to dump the linked code at the beginning of (at about line 30) the file FUStringBuilder.hpp. Where did you place the code in that file? What worked: Enet builds, thanks for the "SET_MAKE=gmake" tip. Did not try any of your last paragraph, since it mostly references (if I understood correctly) NVTT workarounds anyway. Track ticket: Would be more than happy to help, but I have 0 (zero) experience with that - Is the purpose of opening a ticket like a bug report &amp; a developer or team gets assigned to the ticket? Thanks again.
  7. OK, making some progress... Got rid of the 1) make 2) malloc.h errors (by modifying the files - not an elegant solution but works for testing) gmake for fcollada started and ran for some time, but then: FCollada/FUtils/FUStringBuilder.hpp: In function 'void FloatToString(FloatType, Char*) [with Char = char, FloatType = double]': FCollada/FUtils/FUStringBuilder.hpp:274: instantiated from 'void FUStringBuilderT<Char>::append(double) [with Char = char]' FCollada/FUtils/FUStringBuilder.cpp:102: instantiated from here FCollada/FUtils/FUStringBuilder.hpp:37: error: 'ecvt' was not declared in this scope gmake: *** [output/debug/FCollada/FUtils/FUStringBuilder.o] Error 1 gmake: *** Waiting for unfinished jobs.... ERROR: FCollada build failed I have done some searching and I cannot find anything about what this error means.
  8. OK, Thanks! I will play around with several alternatives and post result here (probably tomorrow) Can you offer any input on the dependencies needed on FreeBSD (Q# 1)?
  9. Thanks for the reply. A little better, but still problems. 0ad/libraries/fcollada/src># gmake g++ -fvisibility=hidden -W -Wall -Wno-unused-parameter -Wno-unused-function -DLINUX -fpic -fno-strict-aliasing -O0 -g -D_DEBUG -DRETAIL -IFCollada `pkg-config libxml-2.0 --cflags` -MD -MF output/debug/FCollada/FCollada.d -c FCollada/FCollada.cpp -o output/debug/FCollada/FCollada.o In file included from FCollada/FUtils/Platforms.h:84, from FCollada/FUtils/FUtils.h:72, from FCollada/FCollada.h:49, from FCollada/StdAfx.h:13, from FCollada/FCollada.cpp:9: /usr/include/malloc.h:3:2: error: #error "<malloc.h> has been replaced by <stdlib.h>" gmake: *** [output/debug/FCollada/FCollada.o] Error 1 2. How do I modify update-workspaces.sh to run through gmake?
  10. Your instruction set provides a list of dependencies for most linuxes and MacOSX, so the game should be able to build on BSD as well. I am trying to do this, but I have 2 problems: 1. As far as I can tell, the dependencies list for BSD are: boost, libnet, libvorbis, libxml2, openal, libjpeg-turbo, fpc-libpng, wxgtk2-common (gcc - cmake - curl are installed by default in the base system). Are these the correct dependencies? You can look through the ports collection at http://www.freshports.org/ 2. # ./update-workspaces.sh gives error, all from the Makefile for FCollada. When I switch to 0ad/libraries/fcollada/src and run # make, I get same error: Updating bundled third-party dependencies... "Makefile", line 3: Missing dependency operator "Makefile", line 5: Need an operator "Makefile", line 8: Need an operator "Makefile", line 275: Missing dependency operator make: fatal errors encountered -- cannot continue ERROR: FCollada build failed Line 3-5-8 in Makefile for FCollada is the if-else-endif statement.
×
×
  • Create New...