JediBantha Posted August 25, 2013 Share Posted August 25, 2013 Every time I try to compile OpenJK, I first get errors concerning "q_shared.cpp" and "q_math.cpp", stating that they "don't exist" . After I replace them with the existing files, I then run into a couple of .exe errors stating the same thing about "game/q_math.cpp" and "game/q_shared.cpp" (?) and I replace those. After doing that, I try to build my solution, only to read this: Error LNK1181: cannot open input file 'ALut.lib' This has been going on for awhile now... I have no idea how it started. I tried reinstalling VS2010 and SP1, but no joy. Link to comment
eezstreet Posted August 25, 2013 Share Posted August 25, 2013 Are you using CMake to generate the .vcxproj files? Link to comment
JediBantha Posted August 25, 2013 Author Share Posted August 25, 2013 No... Just using VS seemed to work 'till now... I dunno what happened. o.o Link to comment
Tempust85 Posted August 25, 2013 Share Posted August 25, 2013 Yeah I had that too on singleplayer code. I had to manually redo the paths to the missing .cpp files, they are still there but in "\qcommon". Had to move "ALut.lib" to the root of the "code" folder. I'm sure there's a better way to get it to work but I don't know how and I just wanted to compile some code lol. I guess no one's been updating the VS files as well. Link to comment
JediBantha Posted August 25, 2013 Author Share Posted August 25, 2013 That solved the problem with the exe... But apparently it needs rd-vanilla and *possibly* jk2game to even launch. Link to comment
eezstreet Posted August 25, 2013 Share Posted August 25, 2013 protip: use CMake and follow the compile guide... Link to comment
Tempust85 Posted August 25, 2013 Share Posted August 25, 2013 I got Cmake, and that's as far as I could get. Step 4 in this guide https://github.com/Razish/OpenJK/wiki/Compilation-guide doesn't work: In the build folder, run cmake .. Link to comment
eezstreet Posted August 25, 2013 Share Posted August 25, 2013 Get CMake GUI version, set "Source directory" to the folder which contains codemp, code, and codeJK2. Set output directory to /build/. Hit configure. Select your compiler. Then set your settings, and hit Generate. It will create files in your /build/ directory. Tempust85 likes this Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now