Compiling error - CMakeLists.txt missing

sturnclaw
Posts: 82
Joined: Tue Sep 18, 2018 12:20 am

Re: Compiling error - CMakeLists.txt missing

Post by sturnclaw »

The bootstrap log would simply be the entire terminal output between when you invoked the command and when it returns the prompt to you :) I just want to see if there's something else in the output that might point to the issue.
Bugbear
Posts: 30
Joined: Sun Jan 11, 2015 3:45 am

Re: Compiling error - CMakeLists.txt missing

Post by Bugbear »

Ah, got it. Here it is:

Code: Select all

(base) xxxxxx@xxxxxx:~/Documents/Games/Pioneer/pioneer$ ./bootstrap
cmake opts = -DCMAKE_EXPORT_COMPILE_COMMANDS=1
-- Version: 6.2.1
-- Build type: RelWithDebInfo
-- CXX_STANDARD: 11
-- Required features: cxx_variadic_templates
-- Configuring done
CMake Error at CMakeLists.txt:282 (add_executable):
  Target "modelcompiler" links to target "Threads::Threads" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at CMakeLists.txt:282 (add_executable):
  Target "modelcompiler" links to target "Threads::Threads" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at CMakeLists.txt:281 (add_executable):
  Target "pioneer" links to target "Threads::Threads" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?


-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
(base) xxxxxx@xxxxxx:~/Documents/Games/Pioneer/pioneer$ 
Bugbear
Posts: 30
Joined: Sun Jan 11, 2015 3:45 am

Re: Compiling error - CMakeLists.txt missing

Post by Bugbear »

Just confirmed - it's not you, it's me.

I built a Debian 10.3.0 VM on VirtualBox, installed all the repository-supplied prerequisite packages as specified in COMPILING.txt.

./bootstrap ran without error. It's currently running make.

There's gotta be something wrong with my prereq packages. I'll have another go at installing them.
sturnclaw
Posts: 82
Joined: Tue Sep 18, 2018 12:20 am

Re: Compiling error - CMakeLists.txt missing

Post by sturnclaw »

Ah, I should have specified that I wanted a full re-bootstrap, which involves deleting the build/ folder and re-running, but it's good to hear you're getting it fixed! When your IRC registration finishes, I'm (usually) active in EST afternoon / evenings, although most of the team tends to be active in UTC / UTC+1 midday to afternoons, if you have any questions!
Bugbear
Posts: 30
Joined: Sun Jan 11, 2015 3:45 am

Re: Compiling error - CMakeLists.txt missing

Post by Bugbear »

SUCCESS!!!!

I deleted the build folder then ./bootstrap and make completed without error.

The game is up and running.

(Admittedly it did crash while I was orbiting Mars on my way to Olympus Mons, but that's a story for another time).

Thanks everyone.

P.S. If anyone is interested, here's the terminal output when the game crashed...

Code: Select all

Fatal: [string "[T] @modules/TradeShips.lua"]:625: attempt to index field 'dest_path' (a nil value)
stack traceback:
	[string "[T] @modules/TradeShips.lua"]:625: in function 'cb'
	[string "[T] @libs/Event.lua"]:34: in function '?'
	[string "[T] @libs/Event.lua"]:185: in function <[string "[T] @libs/Event.lua"]:180>Fatal: Frame instance deletion outside 'DeleteFrame' [0]
terminate called after throwing an instance of 'fmt::v6::system_error'
  what():  cannot write to file: Bad file descriptor
Aborted (core dumped)
impaktor
Posts: 1008
Joined: Fri Dec 20, 2013 9:54 am
Location: Tellus
Contact:

Re: Compiling error - CMakeLists.txt missing

Post by impaktor »

Looks like a bug worth addressing, if you could open an issue, please?
FluffyFreak
Posts: 1343
Joined: Tue Jul 02, 2013 1:49 pm
Location: Beeston, Nottinghamshire, GB
Contact:

Re: Compiling error - CMakeLists.txt missing

Post by FluffyFreak »

Glad you got it solved Bugbear!
Post Reply